@font-face { font-family: 'Instrument Serif'; src: url('./assets/instrument-serif.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('./assets/instrument-serif-italic.woff2') format('woff2'); font-style: italic; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('./assets/dm-sans.woff2') format('woff2'); font-weight: 100 1000; font-display: swap; }
:root { color-scheme: light; --ink: #173f32; --body: #354d42; --paper: #f6f2e8; --rule: #cec8b6; --gold: #84662e; --serif: 'Instrument Serif', Georgia, serif; --sans: 'DM Sans', system-ui, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--sans); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:where(button, a, input, textarea):focus-visible { outline: 3px solid #925218; outline-offset: 4px; }
.masthead { height: 5.1rem; margin: 0 auto; padding-inline: clamp(1.25rem, 5vw, 5rem); border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; }
.wordmark { width: 6.85rem; height: auto; filter: brightness(0) saturate(100%) invert(18%) sepia(17%) saturate(1356%) hue-rotate(100deg) brightness(96%); }
.storefront-link { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink); font-size: .85rem; font-weight: 650; text-underline-offset: .2em; }
.kicker { font-size: .67rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.desk { width: min(100%, 85rem); margin-inline: auto; padding: clamp(2.3rem, 5vw, 5rem) clamp(1.25rem, 6vw, 6rem) 3rem; display: grid; grid-template-columns: minmax(0, .98fr) minmax(0, 1.04fr); column-gap: clamp(2.2rem, 7vw, 7.3rem); align-items: center; }
.introduction, .reception { grid-area: 1 / 2; min-width: 0; }
.kicker { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.4rem; color: var(--gold); }
.kicker span { width: 1.75rem; height: 1px; background: currentColor; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(4rem, 7.3vw, 6.6rem); line-height: .98; letter-spacing: -.042em; }
h1 em { display: block; font-weight: 400; }
.lede { max-width: 22rem; margin-top: 1.5rem; color: var(--body); font-size: clamp(1.05rem, 1.35vw, 1.24rem); line-height: 1.55; }
.welcome-access { max-width: 24rem; margin-top: 1.15rem; color: var(--body); font-size: .9rem; }
.stage { grid-area: 1 / 1; width: min(100%, 28rem); justify-self: center; }
.portrait { isolation: isolate; position: relative; width: 100%; aspect-ratio: .83; padding: 0; display: block; border: 0; background: transparent; color: #fff7df; border-radius: 49% 49% 1rem 1rem / 41% 41% 1rem 1rem; }
.arch { position: absolute; inset: 0 0 1.2rem; overflow: hidden; border: 1px solid #b39f75; border-radius: 49% 49% .3rem .3rem / 41% 41% .3rem .3rem; background: radial-gradient(ellipse at 45% 37%, #ffedc3 0%, #eee0b6 43%, #d5c59e 72%, #b9a680 100%); }
.arch-outline { position: absolute; inset: .65rem; border: 1px solid rgba(113,90,48,.42); border-radius: 49% 49% .12rem .12rem / 41% 41% .12rem .12rem; z-index: 2; pointer-events: none; }
.floor { position: absolute; inset: 82% 0 0; background: linear-gradient(#ddcda6, #ece3c8); border-top: 1px solid #b9a783; }
.shadow { position: absolute; bottom: 6.7%; left: 27%; width: 46%; height: 5%; background: #756243; opacity: .38; filter: blur(.6rem); border-radius: 50%; }
.character { position: absolute; z-index: 1; height: 88%; width: auto; left: 50%; bottom: 6.4%; translate: -54% 0; transform-origin: 52% 95%; }
@keyframes welcome-bow { 0%, 100% { transform: perspective(650px) rotateX(0deg) rotate(0deg); } 45% { transform: perspective(650px) rotateX(-12deg) rotate(5deg) scaleY(.96); } 70% { transform: perspective(650px) rotateX(-6deg) rotate(2.5deg) scaleY(.98); } }
.bowing { animation: welcome-bow .64s ease-in-out both; }
.plaque { position: absolute; left: 50%; bottom: 0; translate: -50% 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 1.1rem; max-width: 92%; width: max-content; padding: .76rem 1.25rem; min-height: 2.9rem; border: 1px solid #254936; border-radius: 8rem; background: var(--ink); color: #fff6dc; box-shadow: 0 .2rem .65rem #3d44251c; font-weight: 600; font-size: .93rem; }
.plaque-arrow { font-size: 1.15em; }
@media (hover: hover) { .portrait:hover .plaque, .primary:hover { background: #244f3f; } }
.back { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 0; border: 0; background: transparent; color: var(--body); font-size: .85rem; min-height: 2.75rem; }
.back:hover { text-decoration: underline; }
.reception-portrait { display: none; }
h2 { margin: .65rem 0 1rem; font-size: clamp(2.45rem, 4.35vw, 4.45rem); letter-spacing: -.03em; line-height: 1.04; overflow-wrap: anywhere; }
h2:focus { outline: 0; }
.reception p { color: var(--body); }
.reception p + p { margin-top: .8rem; }
.reception .note { margin: .9rem 0; font-size: .86rem; }
.primary { width: fit-content; display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; border: 1px solid var(--ink); border-radius: 8rem; padding: .66rem 1.36rem; background: var(--ink); color: #fff6dc; font-weight: 600; text-decoration: none; }
.primary:disabled { cursor: wait; opacity: .64; }
#desk-content > .primary { margin-top: 1rem; }
.field { display: grid; gap: .5rem; margin-top: .95rem; }
.field label { font-size: .87rem; font-weight: 650; }
.field input, .field textarea { width: 100%; border: 1px solid #a69e89; border-radius: .35rem; padding: .7rem .8rem; background: #fffdf6; color: var(--ink); }
.field textarea { min-height: 5rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #63695b; }
.field .primary { margin-top: .3rem; }
.log { max-height: min(43vh, 25rem); overflow: auto; margin: 0; padding: 0 .5rem 0 0; list-style: none; scrollbar-color: #9aab98 transparent; }
.log:not(:empty) { margin: 1rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.log > li { padding: .8rem 0; }
.log > li + li { border-top: 1px solid var(--rule); }
.log strong { display: block; margin-bottom: .27rem; font-size: .77rem; color: var(--ink); }
.log p { white-space: pre-wrap; overflow-wrap: anywhere; }
.sources { list-style: none; padding: 0; margin: .4rem 0 0; }
.sources a { color: var(--ink); padding-block: .3rem; display: inline-block; font-size: .9rem; text-underline-offset: .18em; overflow-wrap: anywhere; }
.status { min-height: 1.35rem; margin-top: .4rem; font-size: .84rem; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 720px) {
  .masthead { height: 3.8rem; }
  .wordmark { width: 5.8rem; }
  .desk { width: min(100%, 35rem); grid-template-columns: minmax(0, 1fr); gap: 1.45rem; padding-top: 1.9rem; }
  .introduction, .reception { grid-area: 1 / 1; }
  .introduction { text-align: center; }
  .kicker { justify-content: center; margin-bottom: .65rem; font-size: .61rem; }
  .kicker span { display: none; }
  h1 { font-size: clamp(2.8rem, 11vw, 4.2rem); }
  h1 em { display: inline; }
  .lede { margin: .75rem auto 0; font-size: .95rem; max-width: 20rem; }
  .welcome-access { max-width: 21rem; margin: .65rem auto 0; font-size: .85rem; }
  .stage { grid-area: 2 / 1; width: min(100%, 20.5rem, max(14rem, 43svh)); }
  .desk.open .stage { display: none; }
  .desk.open { padding-top: 1.2rem; }
  .reception-heading { display: flex; align-items: center; justify-content: space-between; gap: .85rem; margin-bottom: .75rem; }
  .reception-heading h2 { margin-bottom: 0; }
  .reception-portrait { flex: 0 0 4.5rem; display: grid; place-items: start center; height: 5rem; overflow: hidden; border: 1px solid #c5b585; border-radius: 2.3rem 2.3rem .55rem .55rem; background: #f3e7c5; }
  .reception-portrait img { display: block; width: auto; height: 6.5rem; max-width: none; }
  h2 { margin-top: .75rem; }
}
@media (prefers-reduced-motion: reduce) { .bowing { animation: none; } }
@media (max-width: 720px) and (max-height: 650px) {
  .desk:not(.open) { padding-top: 1rem; gap: .75rem; }
  .stage { width: min(100%, max(11rem, 32svh), 14rem); }
}
