/* Bannerhall: quiet stone, warm parchment, and a little brass. */
:root { color-scheme: dark; --bg: #171a19; --surface: #202422; --surface-raised: #272c29; --ivory: #eee9dc; --muted: #b4b7ac; --brass: #c5ac76; --line: #3b413b; --error: #f1b3a3; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ivory); line-height: 1.6; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
a:hover { color: var(--brass); }
button, input { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 5px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); letter-spacing: -.035em; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin-bottom: 1rem; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { color: var(--muted); }
.small { font-size: .85rem; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.username, dd, .lede, .dashboard-account h2 { overflow-wrap: anywhere; }
.eyebrow, .nav-caption { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
.eyebrow { display: block; margin-bottom: .9rem; }
.lede { font-size: 1.05rem; max-width: 44rem; }
.skip-link { position: absolute; z-index: 10; top: -8rem; left: 1rem; padding: .8rem 1.3rem; background: var(--ivory); color: var(--bg); }
.skip-link:focus { top: 1rem; }
.site-header { min-height: 100px; padding: 1.5rem clamp(1.2rem, 4vw, 4rem); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; font-family: Georgia, serif; font-size: 1.6rem; letter-spacing: .015em; }
.brand small { display: block; color: var(--muted); font: .6rem system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; margin-top: .2rem; }
.crest { display: inline-flex; flex-shrink: 0; width: 42px; height: 50px; align-items: center; justify-content: center; color: var(--brass); background: var(--surface-raised); border: 1px solid var(--brass); clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%); }
.crest span { font: 1.6rem Georgia, serif; margin-top: -.4rem; }
.header-account { font-size: .85rem; text-decoration: none; }
.header-account span { color: var(--brass); margin-left: .5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; padding: .75rem 1.15rem; border: 1px solid var(--brass); border-radius: 2px; background: var(--brass); color: #1b211e; font-size: .9rem; font-weight: 600; text-decoration: none; min-height: 46px; }
.button:hover { background: #dbc592; border-color: #dbc592; color: #1b211e; }
.button.secondary { background: transparent; color: var(--ivory); border-color: #62695e; }
.button.secondary:hover { background: var(--surface-raised); border-color: var(--brass); }
.button:disabled { opacity: .6; cursor: wait; }
.public-layout { max-width: 1220px; margin: auto; padding: 0 clamp(1.2rem, 4vw, 4rem) 4rem; }
.hero { display: grid; grid-template-columns: 1fr .6fr; align-items: center; gap: 4rem; padding: 5rem 0 4.5rem; }
.hero h1 { font-size: clamp(3.4rem, 6.5vw, 5.6rem); }
.hero .lede { max-width: 35rem; margin: 1.6rem 0 2rem; }
.hero .button + p { margin: 1rem 0 0; }
.hero-banner { position: relative; justify-self: center; width: 240px; min-height: 320px; padding: 3rem 1.5rem 5rem; display: flex; flex-direction: column; align-items: center; background: #29312c; border-top: 5px solid var(--brass); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 90%, 0 100%); }
.hero-banner .crest { width: 80px; height: 95px; margin-bottom: 1.6rem; background: transparent; }
.hero-banner .crest span { font-size: 3rem; }
.hero-banner > span { font-family: Georgia, serif; font-size: 1.15rem; letter-spacing: .15em; }
.hero-banner small { color: var(--brass); font: italic 1rem Georgia, serif; }
.banner-rule { width: 65px; border-top: 1px solid #68715e; margin: 1rem 0; }
.banner-rivet { width: 8px; height: 8px; border: 1px solid var(--brass); margin-bottom: 1.5rem; }
.intro-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 2.4rem 0; border-block: 1px solid var(--line); margin-bottom: 3.5rem; align-items: center; }
.intro-strip h2 { margin: 1rem 0 0; font-size: 1.6rem; }
.intro-strip p { font-size: .95rem; margin-bottom: 0; }
.badge { display: inline-flex; border: 1px solid #62695e; border-radius: 2px; padding: .15rem .5rem; font-size: .65rem; letter-spacing: .07em; text-transform: uppercase; color: #cac9bd; }
.badge.live { border-color: #5a7259; color: #c1d5b5; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 2rem; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin: 2.5rem 0 1.5rem; }
.section-heading h2, .section-heading p { margin-bottom: 0; }
.section-heading .eyebrow { margin-bottom: .5rem; }
.public-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.public-preview h3 { margin-top: 1.2rem; }
.public-preview p { font-size: .9rem; margin-bottom: 0; }
.roman { font: 1.4rem Georgia, serif; color: var(--brass); }
.roman.large { display: block; font-size: 4rem; margin-bottom: 1.5rem; }
.notice { background: var(--surface); border: 1px solid var(--brass); padding: 1rem 1.4rem; margin-top: 2rem; color: var(--ivory); }
.portal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); max-width: 1500px; margin: auto; min-height: calc(100vh - 210px); }
.sidebar { border-right: 1px solid var(--line); padding: 2.5rem 1.5rem; }
.nav-caption { margin: 0 .8rem 1rem; color: var(--muted); }
.sidebar nav, .mobile-navigation nav { display: flex; flex-direction: column; gap: .25rem; }
.sidebar a, .mobile-navigation nav a { padding: .65rem .8rem; border: 1px solid transparent; border-radius: 2px; text-decoration: none; font-size: .9rem; color: var(--muted); }
.sidebar a:hover, .mobile-navigation nav a:hover { color: var(--ivory); background: var(--surface); }
.sidebar a[aria-current], .mobile-navigation a[aria-current] { background: var(--surface-raised); border-color: var(--line); border-left-color: var(--brass); color: var(--ivory); }
.sidebar-note { margin: 3rem .8rem 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.sidebar-note .eyebrow { margin-bottom: .5rem; }
.sidebar-note p { font-size: .8rem; }
.mobile-navigation { display: none; }
.portal-layout main { padding: 3rem clamp(1.5rem, 4vw, 4rem) 4rem; }
.page-heading { margin-bottom: 2.5rem; }
.dashboard-account { display: flex; align-items: center; gap: 1.5rem; }
.dashboard-account h2 { margin: .5rem 0; font-size: 1.5rem; }
.dashboard-account p { margin-bottom: 0; }
.dashboard-account > .button { margin-left: auto; flex-shrink: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.feature-card { text-decoration: none; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); padding: 1.5rem; border-radius: 3px; }
.feature-card:hover { color: var(--ivory); border-color: #79755b; }
.panel-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.panel-top .eyebrow { margin: 0; }
.feature-card h3 { margin-bottom: .65rem; }
.feature-card h3 span { float: right; color: var(--brass); }
.feature-card p { font-size: .85rem; }
.availability { margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); color: var(--brass); }
.account-panel { max-width: 850px; }
.account-panel h2 { margin-bottom: 1.5rem; }
.account-details { margin: 0 0 2rem; }
.account-details > div { display: grid; grid-template-columns: 170px 1fr; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
dt { font-size: .85rem; color: var(--muted); }
dd { margin: 0; }
.panel-footer { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.panel-footer p { margin-bottom: 0; max-width: 28rem; }
.logout-form { flex-shrink: 0; }
.account-note { max-width: 850px; margin-top: 1.5rem; }
.refresh-controls { max-width: 850px; align-items: start; }
.refresh-controls form { flex-shrink: 0; }
.refresh-controls p { max-width: 30rem; }
.inline-feedback { font-size: .9rem; color: var(--brass); padding: .7rem 0; }
.error-text { color: var(--error); }
.upcoming-panel { max-width: 800px; padding: 3rem; }
.upcoming-panel h2 { margin-top: 1.5rem; font-size: 2.4rem; }
.upcoming-panel p { max-width: 37rem; }
.upcoming-panel .button { margin-top: 1rem; }
.error-panel { max-width: 850px; margin: 4rem auto; padding: 3rem; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.site-footer { display: flex; align-items: center; gap: 2rem; justify-content: space-between; padding: 1.8rem clamp(1.2rem, 4vw, 4rem); border-top: 1px solid var(--line); font-size: .75rem; }
.site-footer > span { font: 1rem Georgia, serif; color: var(--brass); }
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; }
@media (max-width: 1150px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .portal-layout { grid-template-columns: 200px minmax(0, 1fr); } .sidebar { padding-inline: 1rem; } }
@media (max-width: 760px) {
 .site-header { min-height: 85px; gap: 1rem; padding: 1.1rem 1.2rem; } .brand { font-size: 1.3rem; gap: .7rem; } .header-account { font-size: .75rem; max-width: 130px; }
 .hero { grid-template-columns: 1fr; padding: 3.5rem 0; gap: 2.5rem; } .hero-banner { display: none; } .hero h1 { font-size: 3.8rem; }
 .intro-strip { grid-template-columns: 1fr; gap: 1.2rem; } .public-preview { grid-template-columns: 1fr; }
 .section-heading { align-items: start; flex-direction: column; gap: 1rem; }
 .portal-layout { display: block; } .sidebar { display: none; } .portal-layout main { padding: 2rem 1.2rem 3rem; }
 .mobile-navigation { display: block; margin: 1rem 1.2rem 0; border: 1px solid var(--line); background: var(--surface); border-radius: 3px; }
 .mobile-navigation summary { padding: .8rem 1rem; font-size: .9rem; } .mobile-navigation summary span { float: right; color: var(--brass); } .mobile-navigation nav { padding: .5rem; border-top: 1px solid var(--line); }
 .dashboard-account { flex-wrap: wrap; padding: 1.5rem; } .dashboard-account > .button { margin-left: 0; }
 .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feature-card { padding: 1rem; }
 .panel { padding: 1.5rem; } .panel-footer { flex-direction: column; align-items: start; gap: 1rem; }
 .account-details > div { grid-template-columns: 1fr; gap: .25rem; } .upcoming-panel, .error-panel { padding: 2rem 1.5rem; }
 .site-footer { flex-wrap: wrap; gap: .5rem 1rem; } .site-footer p { order: 3; width: 100%; } .site-footer a { margin-left: auto; }
}
@media (max-width: 430px) { .feature-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 3.2rem; } .hero .button { width: 100%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
