﻿@font-face {
  font-family: Cinzel;
  src: url(/Cinzel.ttf) format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "IM Fell English";
  src: url(/IMFellEnglish-Regular.ttf) format("truetype");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --gold: #d7b878;
  --text: #ede3d2;
  --muted: #beb0c2;
  --edge: #41352d;
  --serif: "IM Fell English", Georgia, serif;
  font: 16px/1.5 system-ui, sans-serif;
  color: var(--text);
  background: #0c0a0d;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 15% 0, #302116, transparent 56%),
    radial-gradient(ellipse at 80% 100%, #20162b, transparent 60%);
  padding: clamp(.65rem, 3vw, 2.5rem);
}
.frame {
  position: relative;
  max-width: 76rem;
  margin: auto;
  border: 1px solid #554534;
  box-shadow: 0 0 0 4px #0e0c10, 0 1.25rem 5rem #0009;
  background: #151217;
}
.frame::before, .frame::after {
  content: "";
  position: absolute;
  width: 2rem;
  height: 2rem;
  border: solid var(--gold);
  pointer-events: none;
}
.frame::before { top: -4px; left: -4px; border-width: 1px 0 0 1px; }
.frame::after { bottom: -4px; right: -4px; border-width: 0 1px 1px 0; }
.masthead, .bar { padding: .8rem clamp(1rem, 4vw, 2.25rem); border-bottom: 1px solid var(--edge); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 6rem; background: linear-gradient(110deg, #211b1b, #151218); }
.brand { display: flex; align-items: center; gap: 1rem; }
.wordmark { margin: 0; }
.wordmark { font: clamp(1.05rem, 4vw, 1.8rem)/1.2 Cinzel, Georgia, serif; letter-spacing: .14em; }
.mast-label, .step { color: var(--gold); font-size: .68rem; letter-spacing: .19em; text-transform: uppercase; }
.seal { display: grid; place-items: center; width: 2.1rem; aspect-ratio: 1; border: 3px double var(--gold); transform: rotate(45deg); color: var(--gold); font-size: 1.35rem; margin: .4rem; }
.skip { position: absolute; transform: translateY(-200px); background: #151218; color: var(--gold); padding: .5rem; }
.skip:focus { transform: none; }
.bar { display: flex; align-items: center; gap: .65rem; background: #100e13; font-size: .9rem; font-weight: 650; }
.bar span { color: var(--gold); }
.layout { display: grid; grid-template-columns: minmax(12rem, 22%) minmax(0, 1fr); min-height: 36rem; }
.sidebar { padding: 1.5rem 1rem; border-right: 1px solid var(--edge); background: #121016; }
.step { margin: 0 0 .45rem; font-weight: 700; }
progress { display: block; width: 100%; height: .4rem; accent-color: var(--gold); }
#stepList { list-style: none; padding: 0; margin: 1rem 0 0; }
#stepList li { border: 1px solid transparent; padding: .6rem .65rem; color: var(--muted); font: 1rem/1.35 var(--serif); }
#stepList li::before { content: "◇"; margin-right: .55rem; }
#stepList [aria-current] { border-color: #574631; box-shadow: inset 2px 0 var(--gold); background: linear-gradient(90deg, #31261f, #1a1519); color: var(--text); }
#stepList [aria-current]::before { color: var(--gold); content: "◆"; }
.content { grid-column: 2; padding: clamp(1rem, 4vw, 2.25rem); background: radial-gradient(ellipse at 12% 0, #241d1c, transparent 65%); }
h1, h2 { font: 400 clamp(1.85rem, 4vw, 3rem)/1.1 var(--serif); margin: 0; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 1.3rem 0 1rem; }
.intro p { margin: .45rem 0 1rem; color: var(--muted); }
.notice { border-left: 2px solid #8e7349; padding: .55rem .8rem; color: var(--muted); background: #171319; font-size: .88rem; }
fieldset { min-width: 0; padding: 0; margin: 0 0 1.15rem; border: 0; }
legend, label.prompt { font-weight: 650; padding: 0; margin-bottom: .45rem; display: block; }
.choices { display: flex; flex-wrap: wrap; gap: .45rem; }
.choice { display: inline-flex; gap: .45rem; align-items: center; min-height: 44px; border: 1px solid var(--edge); padding: .48rem .7rem; cursor: pointer; background: #181419; font-size: .9rem; }
.choice:hover { border-color: #8d744c; }
.choice:has(input:checked) { color: #ffe2ae; border-color: #ad8b54; background: #30251f; }
input { accent-color: var(--gold); margin: 0; }
input[type=text], textarea { width: min(100%, 37rem); background: #0f0d11; border: 1px solid #695642; color: var(--text); font: inherit; padding: .65rem .75rem; }
textarea { min-height: 5rem; resize: vertical; }
.reason { margin-top: .75rem; }
.actions { display: flex; justify-content: flex-end; gap: .65rem; border-top: 1px solid var(--edge); padding-top: 1rem; }
button { min-height: 44px; font: 1.1rem var(--serif); padding: .5rem 1.15rem; cursor: pointer; border: 1px solid #a68654; background: linear-gradient(110deg, #65462e, #433027); box-shadow: inset 0 0 0 2px #1a120e80; color: #f7e9d4; }
button.back { background: #110e14; color: var(--text); border-color: #695642; }
button:hover { border-color: var(--gold); }
button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
#status { color: #ffd1a7; }
#status:empty { display: none; }
@media (max-width: 42rem) {
  .mast-label { display: none; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--edge); padding: .75rem 1rem; }
  #stepList { display: none; }
  .content { grid-column: 1; }
}

