/* Dokimasia — a classical "examination" aesthetic.
   Parchment + ink, inscriptional Roman caps over a Garamond body,
   hard offset rules instead of soft shadows, numbered ledger options. */

/* ---- Self-hosted fonts (variable weight; subsets load on demand) ---- */
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("fonts/cinzel-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/ebgaramond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/ebgaramond-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/ebgaramond-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ebgaramond-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper:     #efe6d0;   /* parchment */
  --paper-2:   #e7dbbe;   /* inset / hover */
  --ink:       #241c11;   /* warm near-black */
  --ink-2:     #6c5e44;   /* secondary text */
  --rule:      #c9ba96;   /* hairline rules */
  --oxblood:   #8c2c1d;   /* primary accent */
  --verdigris: #2f6a55;   /* correct */
  --wrong:     #9e3320;   /* incorrect */
  --gold:      #7a611f;   /* badges / flourishes (4.5:1 on parchment) */
  --display: "Cinzel", "Georgia", "Times New Roman", serif;
  --body: "EB Garamond", "Georgia", "Times New Roman", serif;
  --grain-blend: multiply;
  --grain-opacity: .06;
  --glow-1: #f5ecd7;
  --glow-2: #e6d9ba;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:     #201a12;   /* midnight ink */
    --paper-2:   #2a2218;
    --ink:       #e9dfc7;
    --ink-2:     #b3a486;
    --rule:      #4a3f2c;
    --oxblood:   #d4715a;
    --verdigris: #6fae92;
    --wrong:     #d4715a;
    --gold:      #c9a857;
    --grain-blend: screen;
    --grain-opacity: .04;
    --glow-1: #271f15;
    --glow-2: #1d1710;
  }
}

/* One frame width governs nav, landing, bands and wide app views.
   It steps up on large displays so wide monitors aren't all gutter. */
:root { --frame: 1280px; }
@media (min-width: 1600px) { :root { --frame: 1520px; } }
@media (min-width: 2200px) { :root { --frame: 1760px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--paper);
  background: radial-gradient(125% 120% at 50% -10%, var(--glow-1) 0%, var(--paper) 42%, var(--glow-2) 100%) fixed;
}

/* Paper grain (subtle, desaturated noise blended over everything) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: var(--grain-opacity); mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Accessibility helpers ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 2px; }
h2[tabindex="-1"], p[tabindex="-1"] { outline: none; }

/* ---- Masthead ---- */
.site-header { text-align: center; padding: 2.6rem 1rem 0; }
.eyebrow {
  font-family: var(--body); font-weight: 600;
  letter-spacing: .5em; text-indent: .5em; font-size: .72rem;
  color: var(--oxblood); margin: 0 0 .55rem;
}
.site-header h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 7vw, 3.1rem); letter-spacing: .14em; text-indent: .14em;
  margin: 0; color: var(--ink);
}
.site-header h1 a { color: inherit; text-decoration: none; }
.tagline { font-style: italic; color: var(--ink-2); margin: .55rem 0 0; font-size: 1.02rem; }
.site-header::after {
  content: ""; display: block; width: min(440px, 78%); height: 0;
  margin: 1.4rem auto 0; border-top: 1px solid var(--rule);
  box-shadow: 0 3px 0 -2px var(--rule);   /* a second hairline = double rule */
}

.app { max-width: 660px; margin: 0 auto; padding: 1.8rem 1.25rem 4rem; }

/* ---- Entrance motion ---- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.setup, .progress, .question, .result-score, .result-verdict, .recap, .btn-row, .error {
  animation: rise .4s cubic-bezier(.2, .7, .2, 1) both;
}
.card { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.card:nth-child(2) { animation-delay: .06s; }
.card:nth-child(3) { animation-delay: .12s; }
.card:nth-child(4) { animation-delay: .18s; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

/* ---- Buttons ---- */
.btn {
  font-family: var(--display); font-weight: 600; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase;
  display: inline-block; margin-top: 1.4rem; padding: .8rem 1.6rem;
  border: 1px solid var(--ink); border-radius: 1px;
  background: var(--ink); color: var(--paper); cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .05s ease;
}
.btn:hover { background: var(--oxblood); border-color: var(--oxblood); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:hover { background: var(--ink); border-color: var(--ink); }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---- Home: a ledger of subjects ---- */
.card-list { display: grid; gap: 1.1rem; }
.card {
  position: relative; width: 100%; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr; gap: .2rem 1.1rem; align-items: center;
  font-family: var(--body); font-size: inherit; line-height: inherit;
  background: var(--paper); color: inherit;
  border: 1px solid var(--rule); border-radius: 2px; padding: 1.15rem 1.3rem;
  transition: border-color .15s ease, background .15s ease;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--oxblood); transform: scaleY(0); transform-origin: top;
  transition: transform .18s ease;
}
.card:hover { border-color: var(--ink); background: var(--paper-2); }
.card:hover::before { transform: scaleY(1); }
.card .emoji {
  grid-row: 1 / span 2; align-self: center;
  width: 2.7rem; height: 2.7rem; border-radius: 50%;
  border: 1px solid var(--rule); background: var(--paper-2);
  display: grid; place-items: center; font-size: 1.4rem;
  filter: sepia(.12) contrast(.98);
}
.card-title {
  display: block; font-family: var(--display); font-weight: 600; font-size: 1.18rem;
  letter-spacing: .04em; align-self: end;
}
.card-desc { display: block; grid-column: 2; color: var(--ink-2); font-style: italic; font-size: .98rem; align-self: start; }
.badge {
  grid-column: 2; justify-self: start; margin-top: .5rem;
  font-family: var(--display); font-weight: 600; font-size: .75rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
}

/* Two ledger columns once there is room for them */
@media (min-width: 880px) {
  .app.wide { max-width: var(--frame); }
  .app.wide .card-list { grid-template-columns: 1fr 1fr; }
}

/* ---- The daily examination: a sealed notice above the ledger ---- */
.daily-card { border-color: var(--oxblood); margin-bottom: 1.1rem; }
.daily-card::before { transform: scaleY(1); }
.daily-card .emoji {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  background: var(--oxblood); color: var(--paper); border-color: var(--oxblood);
  filter: none;
}
.daily-card .badge { color: var(--oxblood); }
.daily-grid {
  text-align: center; font-size: 1.5rem; letter-spacing: .25em; text-indent: .25em;
  margin: .4rem 0 1rem;
}
.daily-next { text-align: center; font-style: italic; font-size: .95rem; }

/* ---- Panels (setup + question) ---- */
.setup, .question {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 2px;
  padding: 1.7rem 1.6rem; box-shadow: 7px 7px 0 -3px var(--rule);   /* hard offset, not blur */
}
.setup h2 {
  font-family: var(--display); font-weight: 600; letter-spacing: .03em;
  margin: 0 0 1.4rem; font-size: 1.4rem;
}

/* ---- Setup controls ---- */
.setup-group { margin-bottom: 1.3rem; }
.setup-label {
  display: block; font-family: var(--display); font-weight: 600;
  font-size: .75rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--oxblood); margin-bottom: .6rem;
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font-family: var(--body); font-size: .98rem; padding: .45rem 1rem; min-height: 44px;
  border: 1px solid var(--rule); border-radius: 2px;
  background: var(--paper); color: var(--ink); cursor: pointer;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.match-count { margin: .2rem 0 0; font-style: italic; font-size: .95rem; color: var(--ink-2); }

/* ---- Question ---- */
.progress {
  font-family: var(--display); font-weight: 600; font-size: .72rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2);
  margin: 0 0 1rem; display: flex; align-items: center; gap: .9rem;
}
.progress::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.question h2 { font-family: var(--body); font-weight: 600; font-size: 1.5rem; line-height: 1.3; margin: 0; }

.options { display: grid; gap: .55rem; counter-reset: opt; margin-top: 1.3rem; }
.option {
  counter-increment: opt; position: relative; text-align: left;
  font-family: var(--body); font-size: 1.05rem;
  padding: .8rem 1rem .8rem 3rem; min-height: 44px; cursor: pointer; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 2px;
  transition: border-color .12s ease, background .12s ease;
}
.option::before {
  content: counter(opt); position: absolute; left: 0; top: 0; bottom: 0; width: 2.3rem;
  display: grid; place-items: center;
  font-family: var(--display); font-size: .8rem; color: var(--ink-2);
  background: var(--paper-2); border-right: 1px solid var(--rule);
}
.option:hover:not(:disabled) { border-color: var(--ink); }
.option:disabled { cursor: default; }
/* Provisional pick, before Confirm locks it in */
.option.selected { border-color: var(--ink); background: var(--paper-2); }
.option.selected::before { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.option-text { display: block; }
.option-info {
  display: block; margin-top: .35rem; font-style: italic;
  font-size: .92rem; color: var(--ink-2); line-height: 1.4;
  animation: rise .3s cubic-bezier(.2,.7,.2,1) both;
}
#confirm { margin-top: 1.3rem; }

/* Subject shown above every question */
.subject-line {
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--oxblood);
  text-align: center; margin: 0 0 1.1rem;
}

/* Question images (flags, paintings, …) */
.q-img {
  display: block; max-width: min(320px, 70%); height: auto;
  margin: 1.2rem 0 0; border: 1px solid var(--rule);
  box-shadow: 5px 5px 0 -2px var(--rule); background: #fff;
}
/* Resolution is marked with glyphs as well as colour (colour-blind safe). */
.option.correct { border-color: var(--verdigris); background: color-mix(in srgb, var(--verdigris) 12%, var(--paper)); }
.option.correct::before { content: "✓"; font-size: 1rem; background: var(--verdigris); color: var(--paper); border-color: var(--verdigris); }
.option.wrong { border-color: var(--wrong); background: color-mix(in srgb, var(--wrong) 12%, var(--paper)); }
.option.wrong::before { content: "✗"; font-size: 1rem; background: var(--wrong); color: var(--paper); border-color: var(--wrong); }

.kbd-hint { display: none; margin: 1rem 0 0; font-size: .88rem; font-style: italic; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .kbd-hint { display: block; } }

.explanation {
  margin-top: 1.2rem; padding: .6rem 0 .6rem 1.1rem;
  border-left: 3px solid var(--oxblood); color: var(--ink-2);
  font-style: italic; font-size: 1rem;
}

/* ---- Results ---- */
.result-score {
  font-family: var(--display); font-weight: 700; letter-spacing: .02em;
  font-size: clamp(3.5rem, 16vw, 5.5rem); text-align: center; color: var(--ink); margin: .6rem 0 0;
}
.result-verdict { text-align: center; font-style: italic; font-size: 1.25rem; color: var(--oxblood); margin: .2rem 0 .4rem; }
.new-best {
  display: block; text-align: center; margin: 0 0 1.8rem;
  font-family: var(--display); font-weight: 600; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
}
.recap { list-style: none; padding: 0; margin: 1.6rem 0; }
.recap li {
  display: flex; gap: .7rem; align-items: baseline; padding: .7rem .2rem;
  font-size: 1rem; border-bottom: 1px solid var(--rule);
}
.recap li:first-child { border-top: 1px solid var(--rule); }
.recap li::before { font-family: var(--display); font-weight: 700; flex-shrink: 0; }
.recap li.ok::before { content: "✓"; color: var(--verdigris); }
.recap li.miss::before { content: "✗"; color: var(--wrong); }

/* Clipboard fallback: a selectable field */
.share-url {
  display: block; width: 100%; margin-top: .8rem; padding: .6rem .8rem;
  font-family: var(--body); font-size: .92rem; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: 2px;
  resize: none;
}

.error { color: var(--oxblood); font-style: italic; font-size: 1.15rem; }
.muted { color: var(--ink-2); }

.result-time {
  text-align: center; margin: .1rem 0 0;
  font-family: var(--display); font-weight: 600; font-size: .72rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2);
}
.beta-pill, .beta-sup {
  font-family: var(--display); font-weight: 600; font-size: .6em;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.uni-note { margin: -0.6rem 0 1.4rem; font-style: italic; }
.uni-year { margin-top: 1.8rem; }
.uni-year .section-head { font-size: .92rem; margin-bottom: 1.1rem; }

/* ---- Account, groups, standings ---- */
.field { display: flex; gap: .5rem; margin: .2rem 0 1.2rem; }
.field input {
  flex: 1; min-width: 0; padding: .55rem .8rem;
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: 2px;
}
.field input:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 1px; }
.field .btn { margin-top: 0; white-space: nowrap; }
.setup .setup-label { margin-top: 1.4rem; }
.btn.danger { background: transparent; color: var(--wrong); border-color: var(--wrong); }
.btn.danger:hover { background: var(--wrong); color: var(--paper); border-color: var(--wrong); }
.code-display {
  font-family: var(--display); font-weight: 600; letter-spacing: .18em;
  font-size: 1.05rem; text-align: center; padding: .7rem;
  background: var(--paper-2); border: 1px dashed var(--rule); border-radius: 2px;
}
.group-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.group-row { padding: .8rem 0; border-bottom: 1px solid var(--rule); }
.group-row:first-child { border-top: 1px solid var(--rule); }
.group-name { display: block; font-family: var(--display); font-weight: 600; }
.group-row .muted { display: block; font-size: .92rem; margin: .15rem 0 .5rem; }
.group-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.group-actions .btn { margin-top: 0; padding: .45rem .9rem; font-size: .72rem; }
.board { width: 100%; border-collapse: collapse; margin: 1rem 0 .4rem; }
.board th {
  font-family: var(--display); font-weight: 600; font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  text-align: left; padding: .45rem .4rem; border-bottom: 1px solid var(--ink);
}
.board td { padding: .55rem .4rem; border-bottom: 1px solid var(--rule); font-size: 1rem; }
.board-rank { width: 2.2rem; font-family: var(--display); font-weight: 600; color: var(--ink-2); }
.board-score { font-family: var(--display); font-weight: 600; }
.board-streak { color: var(--ink-2); }
.board-me td { background: color-mix(in srgb, var(--gold) 10%, transparent); }
.board-links { text-align: center; margin: .2rem 0 1rem; }
.board-links a { color: var(--oxblood); }
.footer-sep { color: var(--ink-2); margin: 0 .5rem; }

/* ---- Footer ---- */
.site-footer { padding: 0 1.5rem 2.2rem; margin-top: 4rem; }
.site-footer::before {
  content: ""; display: block; max-width: var(--frame); margin: 0 auto 2rem;
  border-top: 1px solid var(--rule); box-shadow: 0 3px 0 -2px var(--rule);
}
.site-footer a {
  font-family: var(--display); font-weight: 600; font-size: .72rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
}
.site-footer a:hover { color: var(--oxblood); }
.footer-inner {
  max-width: var(--frame); margin: 0 auto; display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: 1.4rem;
}
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-name {
  font-family: var(--display); font-weight: 700; font-size: .95rem;
  letter-spacing: .16em; text-transform: uppercase;
}
.footer-tag { font-style: italic; color: var(--ink-2); font-size: .92rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-line {
  max-width: var(--frame); margin: 1.8rem auto 0; text-align: center;
  font-family: var(--display); font-weight: 600; font-size: .68rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2);
}
/* Bare-link footers on the static pages (privacy, 404) */
.site-footer > a { display: block; text-align: center; border-bottom: 1px solid var(--rule); width: fit-content; margin: 0 auto; }

/* ---- Static pages (privacy, 404) ---- */
.prose { background: var(--paper); border: 1px solid var(--rule); border-radius: 2px; padding: 1.7rem 1.6rem; box-shadow: 7px 7px 0 -3px var(--rule); }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: 1.4rem; letter-spacing: .03em; margin: 0 0 1rem; }
.prose h3 { font-family: var(--display); font-weight: 600; font-size: 1.02rem; letter-spacing: .05em; margin: 1.6rem 0 .4rem; }
.prose p, .prose li { font-size: 1.02rem; }
.prose a { color: var(--oxblood); }

@media (max-width: 480px) {
  body { font-size: 17px; }
  .app { padding: 1.2rem 1rem 3rem; }
  .setup, .question { padding: 1.3rem 1.2rem; box-shadow: 5px 5px 0 -3px var(--rule); }
}

/* ================================================================
   The landing — an examination society front page.
   ================================================================ */

/* ---- Band variables (the inverted notice board) ---- */
:root {
  --band-bg: #241c11;
  --band-fg: #efe6d0;
  --band-muted: #beb29a;
  --band-gold: #c9a857;
}
@media (prefers-color-scheme: dark) {
  :root {
    --band-bg: #e9dfc7;
    --band-fg: #201a12;
    --band-muted: #5d513c;
    --band-gold: #7a611f;
  }
}

/* ---- Top nav: a printed rule bar ---- */
.site-nav {
  max-width: var(--frame); margin: 0 auto; padding: 1.05rem 1.5rem .95rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  border-bottom: 1px solid var(--rule); box-shadow: 0 3px 0 -2px var(--rule);
}
.nav-brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.nav-seal {
  width: 1.9rem; height: 1.9rem; flex: none;
  display: grid; place-items: center;
  background: var(--oxblood); color: #efe6d0;
  font-family: Georgia, serif; font-size: 1.25rem; line-height: 1;
}
.nav-wordmark {
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  letter-spacing: .2em; text-transform: uppercase;
}
.nav-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.nav-links a {
  font-family: var(--display); font-weight: 600; font-size: .72rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none; padding: .3rem 0;
}
.nav-links a:hover { color: var(--oxblood); }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; }
.hero-ghost {
  position: absolute; right: -4rem; top: -7rem; z-index: 0;
  font-family: var(--display); font-weight: 700; font-size: 34rem; line-height: 1;
  color: var(--ink); opacity: .035; pointer-events: none; user-select: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--frame); margin: 0 auto; padding: 4.2rem 1.5rem 1rem;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center;
}
.hero-copy { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
.hero .eyebrow { font-size: .8rem; }
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.1rem, 3.9vw, 3.6rem); line-height: 1.08;
  letter-spacing: .03em; margin: .4rem 0 0; outline: none;
}
.hero-lede {
  font-size: 1.22rem; font-style: italic; color: var(--ink-2);
  max-width: 36ch; margin: 1.1rem 0 0;
}
.hero-actions { margin-top: 1.9rem; }
.hero-actions .btn { margin-top: 0; text-decoration: none; }
.btn [lang="el"] { font-family: var(--body); font-weight: 600; letter-spacing: .12em; }
.hero-groups {
  margin: 1.7rem 0 0; max-width: 44ch;
  padding: .55rem 0 .55rem 1rem; border-left: 3px solid var(--oxblood);
  font-size: 1rem; font-style: italic; color: var(--ink-2);
}
.hero-groups strong { font-style: normal; color: var(--ink); }
.hero-groups a { color: var(--oxblood); }
.hero-docket {
  margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; align-items: center;
  font-family: var(--display); font-weight: 600; font-size: .68rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2);
}
.hero-docket span { display: inline-flex; align-items: center; }
.hero-docket span + span::before { content: "·"; margin: 0 .7em; color: var(--rule); }

/* The graded specimen paper */
.specimen-wrap {
  position: relative; padding: 1.6rem 1.4rem 0 0; pointer-events: none;
  animation: rise .6s cubic-bezier(.2,.7,.2,1) .12s both;
}
.specimen {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 2px;
  padding: 1.5rem 1.4rem; box-shadow: 9px 9px 0 -3px var(--rule);
  transform: rotate(1.4deg);
}
.specimen .progress { margin-bottom: .8rem; }
.specimen-q { font-weight: 600; font-size: 1.3rem; line-height: 1.3; margin: 0 0 1.1rem; }
.specimen-options { display: grid; gap: .55rem; counter-reset: opt; }
.specimen-options .option { display: block; min-height: 0; padding: .65rem 1rem .65rem 3rem; }
.specimen .explanation { margin-top: 1.1rem; font-size: .95rem; }
.specimen-seal {
  position: absolute; top: 0; right: 0; width: 108px; height: 108px;
  transform: rotate(9deg); filter: drop-shadow(4px 5px 0 rgba(36,28,17,.18));
}

/* ---- The Daily band ---- */
.daily-band { background: var(--band-bg); color: var(--band-fg); margin-top: 3.6rem; }
.band-inner {
  max-width: var(--frame); margin: 0 auto; padding: 3.2rem 1.5rem 3.4rem;
}
.band-label {
  font-family: var(--display); font-weight: 600; font-size: .72rem;
  letter-spacing: .26em; text-transform: uppercase; color: var(--band-gold); margin: 0 0 .7rem;
}
.band-copy h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.45rem, 2.8vw, 2.1rem); line-height: 1.22; margin: 0;
  letter-spacing: .02em;
}
.band-lede { color: var(--band-muted); font-size: 1.08rem; font-style: italic; margin: .9rem 0 0; max-width: 52ch; }
.band-grid { font-size: 1.45rem; letter-spacing: .3em; margin: 1.1rem 0 0; }
.band-cta { text-align: center; justify-self: center; }
.band-no { font-family: var(--display); font-weight: 700; font-size: 3.6rem; line-height: 1; margin: 0; }
.band-date {
  font-family: var(--display); font-weight: 600; font-size: .72rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--band-muted); margin: .5rem 0 0;
}
.btn.paper {
  background: var(--band-fg); color: var(--band-bg); border-color: var(--band-fg);
  text-decoration: none;
}
.btn.paper:hover { background: var(--band-gold); border-color: var(--band-gold); color: var(--band-bg); }

/* ---- Generic landing sections ---- */
.land-section { max-width: var(--frame); margin: 0 auto; padding: 4.4rem 1.5rem 0; }
.section-head {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: .24em; text-transform: uppercase; margin: 0 0 2rem;
}
.section-head::after { content: ""; flex: 1; height: 0; border-top: 1px solid var(--rule); box-shadow: 0 3px 0 -2px var(--rule); }
.section-no { color: var(--oxblood); }

/* Subjects */
.subjects-grid { display: grid; gap: 1.1rem; }
@media (min-width: 880px) { .subjects-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1180px) { .subjects-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 1600px) { .subjects-grid { grid-template-columns: repeat(4, 1fr); } }

/* The play page (subject selection) */
.play-title {
  font-family: var(--display); font-weight: 600; font-size: 1.4rem;
  letter-spacing: .05em; margin: 0 0 1.4rem; outline: none;
}
.play-banner {
  background: var(--paper); border: 1px solid var(--rule); border-left: 3px solid var(--oxblood);
  border-radius: 2px; padding: 1.1rem 1.3rem 1.3rem; margin-bottom: 1.4rem;
  box-shadow: 5px 5px 0 -2px var(--rule);
  animation: rise .4s cubic-bezier(.2,.7,.2,1) both;
}
.play-banner p { margin: 0 0 .4rem; font-size: 1.02rem; }
.play-banner .btn { margin-top: .6rem; text-decoration: none; }
/* Today's Trials repeated on the subject-selection page: a compact board */
.play-trials {
  background: var(--band-bg); color: var(--band-fg); border-radius: 2px;
  padding: 1.35rem 1.5rem 1.6rem; margin-bottom: 2rem;
  box-shadow: 7px 7px 0 -3px var(--rule);
}
.play-trials .band-label { margin-bottom: 0; }
.play-trials .trials { margin-top: .9rem; }
.subjects-note {
  margin: 1.6rem 0 0; font-style: italic; color: var(--ink-2); font-size: .98rem;
}
.card-count {
  grid-column: 2; justify-self: start; margin-top: .5rem;
  font-family: var(--display); font-weight: 600; font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}

/* Procedure */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 2.2rem;
}
@media (min-width: 820px) { .steps { grid-template-columns: 1fr 1fr 1fr; } }
.steps li { border-top: 1px solid var(--rule); padding-top: 1.2rem; }
.step-no {
  font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1;
  color: var(--oxblood); display: block;
}
.steps h3 {
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: .05em; margin: .9rem 0 .5rem;
}
.steps p { margin: 0; color: var(--ink-2); font-size: 1.02rem; }

/* Principles */
.principles { display: grid; gap: 1.1rem; }
@media (min-width: 700px) { .principles { grid-template-columns: 1fr 1fr; } }
.principles article {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 2px;
  padding: 1.5rem 1.5rem 1.6rem; box-shadow: 7px 7px 0 -3px var(--rule);
}
.principles h3 {
  font-family: var(--display); font-weight: 600; font-size: 1.02rem;
  letter-spacing: .06em; margin: 0 0 .55rem; color: var(--oxblood);
}
.principles p { margin: 0; color: var(--ink-2); font-size: 1.02rem; }

/* Convene */
.convene { text-align: center; padding-bottom: 1rem; }
.convene h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem); letter-spacing: .04em; margin: .4rem 0 0;
}
.convene-actions { justify-content: center; margin-top: 1.6rem; }
.convene-actions .btn { margin-top: 0; text-decoration: none; }

/* Primary (oxblood) call-to-action */
.btn.primary { background: var(--oxblood); border-color: var(--oxblood); color: #efe6d0; }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---- Scroll reveals (enhanced only; everything visible without JS) ---- */
.enhanced .reveal { opacity: 0; }
.enhanced .reveal.in { animation: rise .55s cubic-bezier(.2,.7,.2,1) both; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .enhanced .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---- Landing responsiveness ---- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.4rem; padding-top: 3rem; }
  .specimen-wrap { max-width: 460px; justify-self: center; width: 100%; }
  .band-inner { grid-template-columns: 1fr; }
  .band-cta { justify-self: start; text-align: left; }
  .hero-ghost { font-size: 22rem; right: -6rem; top: -4rem; }
}
@media (max-width: 560px) {
  .site-nav { flex-direction: column; align-items: flex-start; gap: .55rem; padding-bottom: .8rem; }
  .nav-links { gap: 1.2rem; }
  .land-section { padding-top: 3.2rem; }
  .specimen-seal { width: 88px; height: 88px; }
}


/* ---- The Word (daily word trial) ---- */
.word-wrap { max-width: 420px; margin: 0 auto; text-align: center; }
.word-langs { justify-content: center; margin-bottom: 1.1rem; }
.word-board { display: grid; gap: .4rem; justify-content: center; margin: 0 auto; }
.word-row { display: grid; grid-template-columns: repeat(5, 3.2rem); gap: .4rem; justify-content: center; }
.tile {
  width: 3.2rem; height: 3.2rem; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  border: 2px solid var(--rule); border-radius: 2px; background: var(--paper);
  text-transform: uppercase;
}
.tile.filled, .tile.current.filled { border-color: var(--ink-2); }
.tile.hit  { background: var(--verdigris); border-color: var(--verdigris); color: #efe6d0; }
.tile.near { background: var(--gold); border-color: var(--gold); color: #efe6d0; }
.tile.miss { background: var(--paper-2); border-color: var(--paper-2); color: var(--ink-2); }
.word-row.shake { animation: shake .3s linear; }
@keyframes shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.word-msg { min-height: 1.3em; margin: .7rem 0 .3rem; font-style: italic; color: var(--oxblood); }
.kb { display: grid; gap: .35rem; margin-top: .4rem; }
.kb-row { display: flex; gap: .3rem; justify-content: center; }
.key {
  min-width: 2rem; padding: .65rem .35rem; flex: 0 1 2.4rem;
  font-family: var(--display); font-weight: 600; font-size: .85rem;
  border: 1px solid var(--rule); border-radius: 2px;
  background: var(--paper); color: var(--ink); cursor: pointer;
}
.key.wide { flex: 0 1 3.4rem; }
.key:hover { border-color: var(--ink); }
.key.hit  { background: var(--verdigris); border-color: var(--verdigris); color: #efe6d0; }
.key.near { background: var(--gold); border-color: var(--gold); color: #efe6d0; }
.key.miss { background: var(--paper-2); color: var(--ink-2); }
.word-reveal { font-size: 1.1rem; margin: .8rem 0 0; }
.word-actions { justify-content: center; margin-top: .6rem; }
.word-actions .btn { text-decoration: none; }
@media (max-width: 400px) {
  .word-row { grid-template-columns: repeat(5, 2.7rem); }
  .tile { width: 2.7rem; height: 2.7rem; font-size: 1.3rem; }
}

/* Landing band: second trial link */
.band-word {
  display: inline-block; margin-top: .9rem;
  font-family: var(--display); font-weight: 600; font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--band-gold); text-decoration: none;
  border-bottom: 1px solid var(--band-gold);
}
.band-word:hover { color: var(--band-fg); border-color: var(--band-fg); }

/* ---- Account overhaul: guided entry + carded sections ---- */
/* Account v2: tabbed single column, open sections instead of boxes */
.acct-tabs { display: flex; gap: .4rem; border-bottom: 1px solid var(--rule); margin: 0 0 .4rem; }
.acct-tab {
  font-family: var(--display); font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: var(--ink-2); padding: .55rem 1rem .6rem;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.acct-tab:hover { color: var(--ink); }
.acct-tab.active { color: var(--oxblood); border-bottom-color: var(--oxblood); }
.acct-col { max-width: 860px; display: grid; gap: 0; min-width: 0; }
.acct-section { min-width: 0; padding: 1.9rem 0 2.1rem; border-bottom: 1px solid var(--rule); }
.acct-section.first { padding-top: 1.1rem; }
.acct-section h3 {
  font-family: var(--display); font-weight: 600; font-size: 1.02rem;
  letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .6rem; color: var(--oxblood);
}
.acct-section > p.muted { margin: 0 0 .9rem; font-size: .98rem; max-width: 70ch; }
.acct-section .group-list { margin-top: .8rem; }
.acct-section .legacy-link { margin-top: 1.2rem; }

.acct-grid { display: grid; gap: 1.1rem; }
@media (min-width: 880px) { .acct-grid { grid-template-columns: 1fr 1fr; } }
.acct-card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 2px;
  padding: 1.4rem 1.5rem 1.5rem; box-shadow: 7px 7px 0 -3px var(--rule);
}
.acct-card h3 {
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  letter-spacing: .08em; margin: 0 0 .35rem; color: var(--oxblood);
}
.acct-card > p.muted { margin: 0 0 .9rem; font-size: .98rem; }
.acct-card .btn-row { margin-top: .2rem; }
.acct-card .group-list { margin-top: .8rem; }
.state-line { font-style: italic; margin: 0 0 .8rem; }
.group-row { flex-wrap: wrap; }
.group-actions { display: inline-flex; flex-wrap: wrap; gap: .45rem; }
.field { flex-wrap: wrap; }
.chips { flex-wrap: wrap; }
.code-display, .code-big { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .code-big { letter-spacing: .12em; font-size: 1rem; }
}
.code-big {
  font-family: var(--display); font-weight: 700; letter-spacing: .22em;
  font-size: clamp(1.1rem, 4.5vw, 1.6rem); text-align: center;
  padding: 1rem .5rem; margin: 1rem 0;
  background: var(--paper-2); border: 1px dashed var(--gold); border-radius: 2px;
}
.ceremony { max-width: 560px; margin: 0 auto; }
.ceremony .warn { color: var(--oxblood); font-weight: 600; font-style: normal; }
.mt-gap { margin-top: 1.2rem; }
.narrow-note { max-width: 60ch; margin-bottom: 1.2rem; }
.acct-choice { display: grid; gap: 1.1rem; }
@media (min-width: 760px) { .acct-choice { grid-template-columns: 1fr 1fr; } }


/* ---- Today's Trials: twin cards on the notice board ---- */
.band-head h2 { max-width: 30ch; }
.trials { display: grid; gap: 1rem; margin-top: 1.8rem; }
@media (min-width: 760px) { .trials { grid-template-columns: 1fr 1fr; } }
.trial {
  display: block; text-decoration: none; color: var(--band-fg);
  border: 1px solid color-mix(in srgb, var(--band-fg) 28%, transparent);
  background: color-mix(in srgb, var(--band-fg) 6%, transparent);
  border-radius: 2px; padding: 1.3rem 1.4rem 1.4rem;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.trial:hover { border-color: var(--band-gold); background: color-mix(in srgb, var(--band-fg) 10%, transparent); transform: translateY(-2px); }
.trial-no {
  font-family: var(--display); font-weight: 600; font-size: .68rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--band-gold);
}
.trial-name { display: block; font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: .03em; margin: .35rem 0 .25rem; }
.trial-desc { display: block; font-style: italic; color: var(--band-muted); font-size: .98rem; }
.trial-state {
  display: inline-block; margin-top: .95rem; padding: .5rem 1.1rem;
  font-family: var(--display); font-weight: 600; font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--band-fg); color: var(--band-fg);
}
.trial:hover .trial-state { background: var(--band-fg); color: var(--band-bg); }

/* ---- Motion grammar (View Transitions + reveals) ---- */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; }

.word-row.revealing .tile { animation: flip-in .42s cubic-bezier(.2, .7, .2, 1) both; }
.word-row.revealing .tile:nth-child(2) { animation-delay: .07s; }
.word-row.revealing .tile:nth-child(3) { animation-delay: .14s; }
.word-row.revealing .tile:nth-child(4) { animation-delay: .21s; }
.word-row.revealing .tile:nth-child(5) { animation-delay: .28s; }
@keyframes flip-in {
  from { transform: rotateX(88deg); }
  55%  { transform: rotateX(-12deg); }
  to   { transform: none; }
}

.word-wrap { position: relative; }
.word-stamp {
  position: absolute; top: 4.4rem; right: -.4rem; width: 86px; height: 86px;
  transform: rotate(-9deg);
  animation: stamp-in .5s cubic-bezier(.2, .9, .25, 1.2) both;
  filter: drop-shadow(3px 4px 0 rgba(36, 28, 17, .18));
  pointer-events: none;
}
@keyframes stamp-in {
  from { transform: rotate(-22deg) scale(1.7); opacity: 0; }
  60%  { opacity: 1; }
  to   { transform: rotate(-9deg) scale(1); opacity: 1; }
}


/* ---- Auth forms ---- */
.stack-form { display: grid; gap: .55rem; margin: .4rem 0 1.1rem; }
.stack-form input {
  padding: .6rem .8rem; font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: 2px;
}
.stack-form input:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 1px; }
.stack-form .btn { justify-self: start; margin-top: .2rem; }

/* ---- Further Trials: duels and the dilemma ---- */
.further-head {
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  margin: 2.4rem 0 1rem; padding-top: 1.6rem; border-top: 1px solid var(--rule);
}
.duel-cards {
  display: grid; gap: .9rem; margin: 1.4rem 0 1.2rem; align-items: stretch;
}
@media (min-width: 640px) { .duel-cards { grid-template-columns: 1fr auto 1fr; } }
.duel-card {
  border: 1px solid var(--rule); border-radius: 2px; background: var(--paper);
  box-shadow: 5px 5px 0 -2px var(--rule); padding: 1.2rem 1.3rem;
  display: grid; gap: .45rem; align-content: center; text-align: center;
}
.duel-card.right { border-color: var(--verdigris); }
.duel-card.wrong { border-color: var(--wrong); }
.duel-vs { align-self: center; text-align: center; color: var(--ink-2); font-size: 1.4rem; }
.duel-name { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; }
.duel-value { font-size: 1.25rem; font-weight: 600; color: var(--gold); }
.duel-value.unknown { font-size: 1.7rem; color: var(--ink-2); }
.duel-question { font-style: italic; color: var(--ink-2); margin: 0 0 .4rem; }
.duel-choices .btn { margin-top: .4rem; }
.duel-choices kbd, .dilemma-choices kbd {
  font-family: var(--display); font-weight: 600; opacity: .65; margin-right: .5rem;
}
.duel-verdict { font-weight: 600; margin: 1rem 0 .2rem; }
.duel-verdict.right { color: var(--verdigris); }
.duel-verdict.wrong { color: var(--wrong); }
.duel-info { max-width: 56ch; }
.keyhint { font-size: .88rem; }

.dilemma-ask { font-style: italic; font-size: 1.15rem; color: var(--ink-2); margin: 1.2rem 0 .8rem; }
.dilemma-choices { display: grid; gap: .8rem; margin-bottom: 1rem; }
.dilemma-choices .option {
  width: 100%; text-align: left; cursor: pointer; font-family: var(--body);
  font-size: 1.05rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); border-radius: 2px; padding: 1rem 1.2rem;
  box-shadow: 5px 5px 0 -2px var(--rule);
  transition: border-color .15s ease, background .15s ease;
}
.dilemma-choices .option:hover { border-color: var(--ink); background: var(--paper-2); }
.dilemma-choices .option:disabled { opacity: .55; cursor: wait; }
.tally { display: grid; gap: .7rem; margin: 1.2rem 0 1rem; }
.tally-row {
  display: grid; gap: .15rem .8rem; align-items: baseline;
  border: 1px solid var(--rule); border-radius: 2px; padding: .8rem 1rem;
  background: var(--paper);
}
@media (min-width: 640px) { .tally-row { grid-template-columns: 1fr auto auto; } }
.tally-row.chosen { border-color: var(--gold); box-shadow: 4px 4px 0 -2px var(--gold); }
.tally-label { font-weight: 600; }
.tally-bar { letter-spacing: .08em; color: var(--gold); font-size: .8rem; }
.tally-pct { font-family: var(--display); font-weight: 600; }
.dilemma-stand { font-weight: 600; }

/* The Record: points, calendar, subjects ledger */
.record-points { font-size: 1.15rem; margin: .2rem 0 1rem; }
.record-points .muted { font-size: .92rem; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 2.4rem); gap: .35rem; }
.cal-head { margin-bottom: .35rem; color: var(--ink-2); font-size: .75rem; text-align: center; }
.cal-head span { width: 2.4rem; }
.cal-cell {
  width: 2.4rem; height: 2.4rem; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule); border-radius: 2px; font-size: .85rem; color: var(--ink-2);
  background: var(--paper);
}
.cal-cell.void { border-color: transparent; background: none; }
.cal-cell.done { background: var(--paper-2); color: var(--ink); border-color: var(--gold); font-weight: 600; }
.cal-cell.perfect { background: var(--verdigris); color: var(--paper); border-color: var(--verdigris); font-weight: 600; }
.cal-cell.today { outline: 2px solid var(--oxblood); outline-offset: 1px; }
@media (max-width: 480px) { .cal-head, .cal-grid { grid-template-columns: repeat(7, 1fr); } .cal-cell, .cal-head span { width: auto; } }
.record-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.record-table th {
  text-align: left; font-family: var(--display); font-weight: 600; font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
  padding: .45rem .6rem; border-bottom: 1px solid var(--rule);
}
.record-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--rule); }
.record-table a { color: var(--oxblood); }
.strike-row { margin: .9rem 0 0; }
.option.struck { opacity: .35; text-decoration: line-through; cursor: not-allowed; }

/* Google sign-in + recovery */
.btn-google {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: .2rem;
  padding: .7rem 1.3rem; border: 1px solid var(--rule); border-radius: 2px;
  background: var(--paper); color: var(--ink); text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase;
}
.btn-google:hover { border-color: var(--ink); background: var(--paper-2); }
.or-rule {
  display: flex; align-items: center; gap: .8rem; margin: .9rem 0 .7rem;
  color: var(--ink-2); font-style: italic; font-size: .9rem;
}
.or-rule::before, .or-rule::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.forgot-line { margin: .5rem 0 0; font-size: .92rem; }
.forgot-line a { color: var(--oxblood); }
.linklike {
  border: 0; background: none; cursor: pointer; padding: 0;
  font-family: var(--body); font-style: italic; font-size: .95rem;
  color: var(--oxblood); text-decoration: underline;
}
.ok-note { color: var(--verdigris); font-weight: 600; }
.narrow-form { max-width: 380px; }

/* Show/hide password — text toggle set into the field, no iconography */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 3.6rem; }
.pw-toggle {
  position: absolute; top: 50%; right: .55rem; transform: translateY(-50%);
  border: 0; background: none; cursor: pointer; padding: .15rem .3rem;
  font-family: var(--body); font-style: italic; font-size: .85rem; color: var(--ink-2);
}
.pw-toggle:hover { color: var(--oxblood); }
.pw-toggle:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 1px; }
.legacy-link { margin-top: 1.3rem; }
.legacy-link summary {
  cursor: pointer; font-style: italic; color: var(--ink-2);
  font-size: .95rem; width: fit-content;
}
.legacy-link summary:hover { color: var(--oxblood); }
.legacy-link .field { max-width: 480px; margin-top: .8rem; }
