/* shared cathedral shell — change these values to retheme every page */
@font-face {
  font-family: "Old English Gothic Pixel";
  src: url("assets/fonts/OldEnglishGothicPixelRegular-ow2Bo.ttf") format("truetype");
}

@font-face {
  font-family: "Unifraktur Maguntia";
  src: url("assets/fonts/unifraktur-maguntia.ttf") format("truetype");
}

:root {
  --site-width: 900px;

  /* ground — the big picture behind everything */
  --site-board: url("/assets/circuit-board-bg.png");
  --site-wallpaper: url("/assets/greytile01.jpg");
  --site-banner: url("/assets/new-banner.png");
  --site-cross: url("/assets/cross-silver.gif");
  --site-board-edge: #1d3a2f;

  /* surface + frames */
  --site-surface: #d0bd9e;
  --site-surface-tex: url("assets/parchment-tan.png");
  --site-frames: #aa9a82;

  /* ink */
  --site-ink: #1d201b;
  --site-ink-dim: #4f564e;
  --site-deep: #081c15;

  /* chrome — red. never on anything clickable. */
  --site-red: #69010f;
  --site-red-bevel: linear-gradient(#8a0a1a, #69010f 55%, #4a0009);

  /* action — green. only on things you can click. */
  --site-link: #1d4631;
  --site-acid: #6dd626;

  /* window bevel, derived from the surface */
  --site-bevel-hi: #e8dcc6;
  --site-bevel-lo: #7a6a55;
  --site-bevel-hi-soft: #ddd0b7;
  --site-bevel-lo-soft: #8f7f68;

  /* semantic state — deliberately not the chrome red */
  --site-ok: #1d4631;
  --site-ok-bg: #cdd8bc;
  --site-warn: #6b3410;
  --site-warn-bg: #cfae94;

  /* incidentals */
  --site-red-bright: #ff2f2f;
  --site-steel: #939390;
  --site-steel-bevel: linear-gradient(#b3b3b0, #939390 60%, #76766f);
  --site-gold: #b8893b;
  --site-border: #333;
  --site-drop: 3px 3px 0 rgba(29, 32, 27, 0.35);

  /* dashed frame around the circuit-board runner */
  --site-frame-dark: #2b2b2b;
  --site-frame-dash: #8c8c8c;
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  left: 8px;
  top: 8px;
  z-index: 10000;
  padding: 8px 10px;
  border: 2px solid var(--site-ink);
  background: var(--site-surface);
  color: var(--site-red);
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

body {
  margin: 0;
  color: var(--site-ink);
  font-family: monospace;
  background-image: var(--site-wallpaper);
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* secondary layer: a table runner — the board bleeds off the top and bottom
   of the screen, wallpaper shows only down the left and right */
#container {
  position: relative;
  max-width: var(--site-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  /* deeper top padding drops the banner without moving the frame itself;
     no bottom padding, so the footer stays flush against the dashed edge */
  padding: 60px 12px 0;
  border: 6px dashed var(--site-frame-dash);
  background:
    linear-gradient(rgba(12, 32, 24, 0.35), rgba(12, 32, 24, 0.55)),
    var(--site-board) center / 368px 496px repeat,
    var(--site-frame-dark);
  background-clip: padding-box, padding-box, border-box;
  box-shadow:
    inset 2px 0 0 rgba(184, 137, 59, 0.55),
    inset -2px 0 0 rgba(184, 137, 59, 0.55),
    inset 0 0 36px rgba(0, 0, 0, 0.6),
    6px 0 0 rgba(0, 0, 0, 0.35),
    -6px 0 0 rgba(0, 0, 0, 0.35);
}

/* the bottom slab: takes whatever vertical room the page leaves over */
#cyborgBar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, var(--site-width));
  margin: 10px auto;
  padding: 14px 20px;
  border: 2px solid;
  border-color: var(--site-bevel-lo) #14140f #14140f var(--site-bevel-lo);
  background: linear-gradient(#333330, #1f1f1d);
  color: var(--site-red-bright);
  font-weight: bold;
  /* one line, and never louder than the banner above it */
  font-size: clamp(0.78rem, 3.4vw, 2.3rem);
  white-space: nowrap;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-align: center;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
  box-shadow: var(--site-drop);
}

/* the slab already ate the slack, so the footer must not also push down */
#cyborgBar + footer {
  margin-top: 0;
}

@media only screen and (max-width: 480px) {
  #cyborgBar {
    padding: 12px 8px;
    letter-spacing: 0.02em;
  }
}

#headerArea {
  width: min(100%, var(--site-width));
  margin-right: auto;
  margin-left: auto;
}

#header {
  position: relative;
  width: 100%;
  aspect-ratio: 3808 / 320;
  margin-bottom: 10px;
  background: var(--site-banner) center / contain no-repeat;
}

#header h1 {
  margin: 0;
  overflow: hidden;
  color: transparent;
  font-size: 0;
}

#flex {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

aside {
  width: 200px;
  font-size: 0.85rem;
}

#leftSidebar {
  order: 1;
}

.profile-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 10px;
  aspect-ratio: 496 / 800;
  background: url("assets/profile-card-base.png?v=3") center / cover no-repeat;
  filter: drop-shadow(4px 5px 3px rgba(36, 28, 24, 0.4));
}

.profile-card-oval {
  position: absolute;
  left: 45.36%;
  top: 10.63%;
  width: 41.33%;
  height: 36.25%;
  background: url("assets/profile-oval-anim.gif?v=5") center / 100% 100% no-repeat;
}

/* covers the text panel painted into the card art, measured off the artwork */
.card-panel {
  position: absolute;
  left: 15.73%;
  top: 17.12%;
  width: 24.8%;
  height: 66.5%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 2% 2px 4%;
  background: var(--site-surface);
  color: var(--site-ink);
  font-family: "Unifraktur Maguntia", Georgia, serif;
  font-size: 19px;
  line-height: 1.02;
  text-align: center;
}

.card-line {
  margin: 0;
  padding-bottom: 15px;
  background: url("assets/card-flourish.png") bottom center / 92% auto no-repeat;
}

.card-line:last-child {
  padding-bottom: 0;
  background: none;
}

.card-gap {
  display: block;
  height: 0.75em;
}

.card-dropcap {
  font-size: 2.1em;
  line-height: 0.75;
}

.card-welcome {
  font-size: 21px;
}

#flex main {
  flex: 1;
  order: 2;
  min-width: 0;
}

#rightSidebar {
  order: 3;
}

/* ===== links =====
   one rule governs every link on the site. rest is green on parchment;
   hover/focus inverts to a filled bar with an acid edge, so the state
   change is a change of FORM, not just more green. */
a,
.panel-menu a,
.card-panel a {
  color: var(--site-link);
  text-underline-offset: 2px;
}

#erynLink {
  text-decoration: underline;
  text-decoration-style: dashed;
  cursor: pointer;
}

a:hover,
a:focus-visible {
  background: var(--site-acid);
  color: var(--site-ink);
  box-shadow: inset 3px 0 0 var(--site-link);
  outline: none;
}

.box {
  padding: 0.6rem;
  margin: 0.5rem 0;
  border: 1px solid var(--site-frames);
  background: var(--site-surface);
}

#musicplayer {
  background: var(--site-surface);
  border: 2px solid var(--site-red);
  box-shadow: var(--site-drop);
}

.songtitle {
  display: block;
  padding: 5px;
  border-bottom: 2px solid var(--site-frames);
  background: #e2ded4;
  color: var(--site-ink);
}

.controls {
  display: flex;
  justify-content: space-evenly;
  font-size: 18px;
  text-align: center;
  background: var(--site-steel-bevel);
}

.controls button {
  padding: 6px 5px;
  border: none;
  font: inherit;
  background: none;
  color: var(--site-deep);
  cursor: help;
}

.controls button:hover {
  color: var(--site-link);
}

.seeking {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 5px;
  background: var(--site-steel-bevel);
  color: var(--site-deep);
}

.current-time {
  padding-right: 5px;
}

.total-duration {
  padding-left: 5px;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: var(--site-steel);
}

input[type="range"]:focus {
  outline: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 2px;
  cursor: help;
  background: var(--site-link);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  margin-top: -4.5px;
  border-radius: 0;
  background: var(--site-link);
  cursor: help;
}

input[type="range"]::-moz-range-track {
  width: 100%;
  height: 2px;
  cursor: help;
  background: var(--site-link);
}

input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 0;
  background: var(--site-link);
  cursor: help;
}

footer {
  position: relative;
  width: 100%;
  margin-top: auto;
  padding: 0.6rem;
  border: 1px solid var(--site-border);
  border-top: 2px solid var(--site-gold);
  background: var(--site-red-bevel);
  color: var(--site-surface);
  text-align: center;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45);
  box-shadow: var(--site-drop);
}

#circus-toggle {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  padding: 0.2rem 0.35rem;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  line-height: 1;
  opacity: 0.12;
  transform: translateY(-50%);
}

#circus-toggle:hover,
#circus-toggle:focus-visible,
.circus-layout #circus-toggle {
  opacity: 0.8;
}

#circus-toggle:focus-visible {
  outline: 1px dotted currentColor;
  outline-offset: 2px;
}

@media only screen and (max-width: 800px) {
  #flex {
    flex-wrap: wrap;
  }

  aside {
    width: 100%;
  }

  #flex main {
    order: 1;
  }

  #leftSidebar {
    order: 2;
  }

  #rightSidebar {
    order: 3;
  }
}

#photoWindow,
#piece {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
}

.photo-window-frame {
  width: min(700px, 90vw);
  max-height: 85vh;
  overflow: auto;
  border: 2px solid;
  border-color: var(--site-bevel-hi) var(--site-bevel-lo) var(--site-bevel-lo) var(--site-bevel-hi);
  background: var(--site-surface-tex) repeat;
  box-shadow:
    inset 1px 1px 0 var(--site-bevel-hi-soft),
    inset -1px -1px 0 var(--site-bevel-lo-soft),
    6px 6px 0 rgba(0, 0, 0, 0.45);
}

.photo-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px;
  padding: 2px 3px 2px 6px;
  border-bottom: 1px solid var(--site-gold);
  background: var(--site-red-bevel);
  color: var(--site-bevel-hi-soft);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45);
  font-family: "Old English Gothic Pixel", Georgia, serif;
  font-size: 18px;
}

.photo-window-close {
  width: 20px;
  height: 18px;
  padding: 0;
  border: 2px solid;
  border-color: var(--site-bevel-hi) var(--site-bevel-lo) var(--site-bevel-lo) var(--site-bevel-hi);
  background: var(--site-frames) url("assets/close-x.png") center no-repeat;
  background-size: 8px 7px;
  image-rendering: pixelated;
  font-size: 0;
  cursor: pointer;
}

.photo-window-close:active {
  border-color: var(--site-bevel-lo) var(--site-bevel-hi) var(--site-bevel-hi) var(--site-bevel-lo);
}

.photo-window-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 8px;
}

.photo-window-grid img {
  width: 100%;
  border: 2px solid;
  border-color: var(--site-bevel-lo) var(--site-bevel-hi) var(--site-bevel-hi) var(--site-bevel-lo);
  cursor: pointer;
}

.photo-window-grid img.selected {
  border-color: var(--site-acid);
}

#photoWindow[hidden],
#piece[hidden] {
  display: none;
}

.photo-window-caption {
  margin: 0;
  min-height: 1.2em;
  padding: 0 10px 12px;
  color: var(--site-ink-dim);
  font-family: monospace;
  text-align: center;
}

.photo-window-bio {
  padding: 10px 12px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  line-height: 1.35;
}

.photo-window-bio p {
  margin: 0 0 0.5em;
}

/* every piece of content on the site is one of these */
.panel {
  margin-bottom: 10px;
  border: 2px solid;
  border-color: var(--site-bevel-hi) var(--site-bevel-lo) var(--site-bevel-lo) var(--site-bevel-hi);
  background: var(--site-surface-tex) repeat;
  box-shadow:
    inset 1px 1px 0 var(--site-bevel-hi-soft),
    inset -1px -1px 0 var(--site-bevel-lo-soft),
    var(--site-drop);
  color: var(--site-ink);
}

.panel--gargoyle {
  position: relative;
}

/* perched on the panel's outer top corner, overhanging it like a cornice beast */
.panel-gargoyle {
  position: absolute;
  top: -80px;
  width: 80px;
  height: auto;
  pointer-events: none;
}

/* the two gifs are a mirrored pair, so each corner gets the one facing inward */
.panel-gargoyle--left {
  left: -44px;
}

.panel-gargoyle--right {
  right: -44px;
}

/* sidebars go full width on mobile, so the perches move inside the edge */
@media only screen and (max-width: 800px) {
  .panel-gargoyle {
    top: -88px;
  }

  .panel-gargoyle--left {
    left: 0;
  }

  .panel-gargoyle--right {
    right: 0;
  }
}

.panel-title {
  margin: 2px;
  padding: 3px 8px;
  border-bottom: 1px solid var(--site-gold);
  background: var(--site-red-bevel);
  color: var(--site-bevel-hi-soft);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45);
  font-family: "Old English Gothic Pixel", Georgia, serif;
  font-size: 18px;
  font-weight: normal;
  line-height: 1.2;
  text-align: left;
}



.panel-body {
  padding: 6px 9px 9px;
}

.panel-body p {
  margin: 0 0 0.6em;
}

.panel-body p:last-child {
  margin-bottom: 0;
}

/* standard navigation for every page below the homepage */
.panel-menu span[aria-current] {
  display: block;
  padding: 4px 2px;
  opacity: 0.6;
}

.panel-menu {
  margin: 0;
  padding: 3px 9px 4px;
  list-style: none;
}

.panel-menu li {
  padding-bottom: 0;
}

.panel-menu li:last-child {
  padding-bottom: 0;
}

.panel-menu a {
  display: block;
  padding: 5px 2px;
  text-decoration: none;
}

.panel-menu summary {
  display: block;
  padding: 4px 2px;
  color: var(--site-link);
  cursor: pointer;
  list-style: none;
}

.panel-menu summary::-webkit-details-marker {
  display: none;
}

.panel-menu summary::before {
  content: "▸ ";
}

.panel-menu details[open] > summary::before {
  content: "▾ ";
}

.panel-menu summary:hover,
.panel-menu summary:focus-visible {
  background: var(--site-acid);
  color: var(--site-ink);
  box-shadow: inset 3px 0 0 var(--site-link);
  outline: none;
}

.menu-submenu {
  margin: 2px 0 0 14px;
  padding: 0;
  list-style: none;
}

.menu-submenu li {
  padding-bottom: 4px;
}

.menu-submenu li:last-child {
  padding-bottom: 0;
}

.menu-submenu a {
  display: block;
  padding: 3px 2px;
  text-decoration: none;
}

.mini-window {
  margin-top: 10px;
  border: 2px solid;
  border-color: var(--site-bevel-hi) var(--site-bevel-lo) var(--site-bevel-lo) var(--site-bevel-hi);
  background: var(--site-surface-tex) repeat;
  box-shadow:
    inset 1px 1px 0 var(--site-bevel-hi-soft),
    inset -1px -1px 0 var(--site-bevel-lo-soft),
    4px 4px 0 rgba(0, 0, 0, 0.45);
}

.mini-window-bar {
  margin: 2px;
  padding: 2px 6px;
  border-bottom: 1px solid var(--site-gold);
  background: var(--site-red-bevel);
  color: var(--site-bevel-hi-soft);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45);
  font-family: "Old English Gothic Pixel", Georgia, serif;
  font-size: 16px;
}

#cornerPortrait {
  display: block;
  width: calc(100% - 8px);
  margin: 2px 4px 4px;
  transform: scaleX(-1);
}

.badge-shelf {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
  justify-content: flex-start;
  align-items: flex-start;
}

/* the christmeat badge is square, so the two beside it space themselves out to
   match its height and the shelf keeps its two-across rhythm */
.badge-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 88px;
}

.shelf-badge {
  width: 88px;
  height: auto;
  border: 2px outset #ffffff;
}

.shelf-badge--square {
  height: 88px;
}

.new-mercy-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 31px;
  background-color: #c0c0c0;
  border: 2px outset #ffffff;
  color: #000080;
  font-family: "Times New Roman", Times, serif;
  font-size: 9px;
  font-weight: bold;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

/* ---------- buttons ---------- */
/* same face as the tool pages: filled = the action this panel exists for. */
.site-button {
  padding: 6px 10px;
  border: 1px solid var(--site-ink);
  background: var(--site-red);
  color: var(--site-surface);
  font-family: monospace;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--site-steel);
}

.site-button:hover,
.site-button:focus-visible {
  background: var(--site-surface);
  color: var(--site-red);
  outline: 2px solid var(--site-red);
  outline-offset: 1px;
}

.site-button:active {
  box-shadow: none;
  transform: translate(2px, 2px);
}

/* long skinny playlist bar, last item on the badge shelf. a badge, not chrome —
   silver and clickable like the new mercy badge, so the red/green rule holds.
   24px is the floor: AGENTS.md requires 24px minimum on interactive targets. */
.playlist-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-basis: 100%;
  height: 24px;
  border: 2px solid;
  border-color: var(--site-bevel-lo) var(--site-bevel-hi) var(--site-bevel-hi) var(--site-bevel-lo);
  background: radial-gradient(ellipse at 50% 40%, #16241d, var(--site-deep));
  color: var(--site-acid);
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(109, 214, 38, 0.65);
}

.playlist-banner:hover,
.playlist-banner:focus-visible {
  background: var(--site-acid);
  color: var(--site-deep);
  outline: none;
  text-shadow: none;
}

.playlist-banner:active {
  border-color: var(--site-bevel-hi) var(--site-bevel-lo) var(--site-bevel-lo) var(--site-bevel-hi);
}

.new-mercy-badge:hover,
.new-mercy-badge:focus-visible {
  border-style: inset;
}

.new-mercy-badge:focus-visible {
  outline: 2px solid #000080;
  outline-offset: 2px;
}

.counter {
  margin: 0;
  padding: 4px 0;
  border: 2px solid;
  border-color: var(--site-bevel-lo) var(--site-bevel-hi) var(--site-bevel-hi) var(--site-bevel-lo);
  background: radial-gradient(ellipse at 50% 40%, #16241d, var(--site-deep));
  color: var(--site-acid);
  font-family: monospace;
  font-size: 20px;
  letter-spacing: 3px;
  text-align: center;
  text-shadow: 0 0 6px rgba(109, 214, 38, 0.65);
}

#fly {
  position: fixed;
  z-index: 200;
  width: 14px;
  height: 14px;
  cursor: crosshair;
}

@media (prefers-reduced-motion: reduce) {
  #fly {
    display: none;
  }
}

/* the pulpit: click the gif, scripture lands on top of it */
.altar {
  position: relative;
  margin-bottom: 10px;
  border: 2px dashed var(--site-gold);
  background: radial-gradient(ellipse at 50% 30%, #a8271c, #6d140d);
  text-align: center;
  box-shadow: var(--site-drop);
}

#pulpitButton {
  position: relative;
  display: block;
  width: 100%;
  padding: 4px;
  border: none;
  background: none;
  cursor: pointer;
}

#pulpitButton img {
  display: block;
  width: 116px;
  margin: 0 auto;
  image-rendering: pixelated;
}

.pulpit-cta {
  position: absolute;
  right: 5px;
  bottom: 6px;
  left: 5px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.pulpit-cta span {
  padding: 3px 5px 2px;
  border: 1px solid var(--site-acid);
  background: var(--site-deep);
  color: var(--site-acid);
  font-family: "Courier New", monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-shadow: 1px 0 var(--site-red), -1px 0 var(--site-acid);
  box-shadow: 2px 2px 0 var(--site-red);
  animation: scripture-terminal-flicker 1s steps(2, jump-none) infinite;
}

#pulpitButton:hover .pulpit-cta span,
#pulpitButton:focus-visible .pulpit-cta span {
  border-color: var(--site-bevel-hi);
  background: var(--site-acid);
  color: var(--site-deep);
  text-shadow: none;
}

#pulpitButton[aria-expanded="true"] .pulpit-cta {
  opacity: 0;
}

@keyframes scripture-terminal-flicker {
  0%, 62%, 100% { opacity: 1; transform: translateX(0); }
  64% { opacity: 0.65; transform: translateX(-1px); }
  68% { opacity: 1; transform: translateX(1px); }
}

#pulpitButton:focus-visible {
  outline: 2px solid var(--site-acid);
  outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
  .pulpit-cta span {
    animation: none;
  }
}

/* sits over the gif, but grows past it rather than clipping a long verse */
#scripture {
  cursor: pointer;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 9px;
  border: 2px solid var(--site-red);
  background: rgba(243, 235, 224, 0.97);
  box-shadow:
    inset 0 0 0 1px var(--site-gold),
    3px 3px 0 rgba(36, 28, 24, 0.35);
}

#scripture[hidden] {
  display: none;
}

.scripture-text {
  margin: 0 0 0.5em;
  color: var(--site-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
}

.scripture-ref {
  display: block;
  margin-bottom: 0;
  color: var(--site-red);
  font-family: monospace;
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
}

/* ---- confession booth ---- */

/* the praying hands open the booth. dashed gold, the same frame the altar
   wears, because they are the two things on the page that ask something of you */
.booth-open {
  position: relative;
  display: block;
  width: 100%;
  margin: 14px 0;
  padding: 6px;
  border: 2px dashed var(--site-gold);
  background: radial-gradient(ellipse at 50% 30%, #a8271c, #6d140d);
  box-shadow: var(--site-drop);
  cursor: pointer;
  line-height: 0;
}

.booth-open img {
  display: block;
  width: 117px;
  height: 180px;
  margin: 0 auto;
  image-rendering: pixelated;
}

.booth-open-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  color: var(--site-acid);
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.1;
  text-align: center;
  text-shadow:
    1px 1px 0 #000000,
    -1px -1px 0 #000000,
    1px -1px 0 #000000,
    -1px 1px 0 #000000;
  animation: booth-blink 1s steps(1, end) infinite;
}

@keyframes booth-blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .booth-open-text {
    animation: none;
  }
}

.booth-open:active {
  border-style: dotted;
}

#boothWindow {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
}

#boothWindow[hidden] {
  display: none;
}

.booth-frame {
  width: min(520px, 90vw);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  border: 2px solid;
  border-color: var(--site-bevel-hi) var(--site-bevel-lo) var(--site-bevel-lo) var(--site-bevel-hi);
  background: var(--site-surface-tex) repeat;
  box-shadow:
    inset 1px 1px 0 var(--site-bevel-hi-soft),
    inset -1px -1px 0 var(--site-bevel-lo-soft),
    6px 6px 0 rgba(0, 0, 0, 0.45);
}

.booth-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px;
  padding: 2px 3px 2px 6px;
  border-bottom: 1px solid var(--site-gold);
  background: var(--site-red-bevel);
  color: var(--site-bevel-hi-soft);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45);
  font-family: "Old English Gothic Pixel", Georgia, serif;
  font-size: 18px;
}

.booth-inner {
  overflow: auto;
  padding: 10px;
}

.booth-intro {
  margin: 0 0 6px;
}

#boothText {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  padding: 4px;
  font-family: inherit;
  font-size: 13px;
}

.booth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.booth-count {
  font-size: 11px;
  opacity: 0.7;
}

.booth-status:empty {
  display: none;
}

.booth-status {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--site-acid);
}

.booth-divider {
  margin: 12px 0 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--site-gold);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.confession {
  position: relative;
  margin-bottom: 8px;
  padding: 8px 10px;
}

.confession p {
  margin: 0;
  padding-right: 18px;
}

.confession-delete {
  position: absolute;
  top: 4px;
  right: 6px;
  padding: 1px 4px;
  border: 1px solid var(--site-link);
  background: none;
  color: var(--site-link);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

/* ---- guestbook ---- */

.gb-form label {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
}

.gb-form input,
.gb-form textarea {
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
  padding: 4px;
  font-family: inherit;
  font-size: 13px;
}

.gb-form textarea {
  resize: vertical;
}

.gb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  margin-top: 6px;
}

.gb-count {
  font-size: 11px;
  opacity: 0.7;
}

.gb-status:empty {
  display: none;
}

.gb-status {
  margin: 8px 0 0;
  color: var(--site-acid);
  font-size: 12px;
}

.gb-entry {
  position: relative;
  margin-bottom: 8px;
  padding: 8px 10px;
}

.gb-who {
  margin: 0 0 3px;
  font-weight: bold;
}

.gb-date {
  margin-left: 8px;
  font-size: 11px;
  font-weight: normal;
  opacity: 0.6;
}

.gb-message {
  margin: 0;
  padding-right: 18px;
}
