/* 4ᵗʰ Place — site stylesheet (home, register, directory, privacy, soon) */
:root {
  --cobalt: #0C3F7C; --navy: #08305F; --cobalt-tint: #1E5499;
  --bone: #F4F0E8; --vellum: #ECE5D6; --stone: #675F54;
  --ink: #1A1B1F; --mist: #C4C9D2; --hair: #DDD5C2;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bone); color: var(--ink); }
body { font-family: 'IBM Plex Sans', system-ui, sans-serif; font-weight: 400; font-size: 16px; line-height: 1.55; letter-spacing: -0.005em; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 56px; }
a { color: var(--cobalt); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(12,63,124,0.35); transition: text-decoration-color 0.2s; }
a:hover { text-decoration-color: var(--cobalt); }
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; border-radius: 2px; }
.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; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--cobalt); color: var(--bone); padding: 10px 18px; border-radius: 2px; text-decoration: none; z-index: 100; transition: top 0.15s; }
.skip-link:focus { top: 12px; }

.btn { display: inline-block; padding: 14px 28px; background: var(--cobalt); color: var(--bone); text-decoration: none; font-size: 14px; letter-spacing: 0.04em; border-radius: 2px; border: 1px solid var(--cobalt); cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.btn:hover { background: var(--navy); border-color: var(--navy); }
.btn.ghost { background: transparent; color: var(--cobalt); border-color: var(--cobalt); }
.btn.ghost:hover { background: var(--cobalt); color: var(--bone); }
.btn[disabled] { opacity: 0.55; cursor: default; }

/* NAV */
nav.site { padding: 22px 0; border-bottom: 1px solid var(--hair); position: sticky; top: 0; background: var(--bone); z-index: 10; }
nav.site .row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.nav-mark { font-family: 'Source Serif 4', Georgia, serif; font-variation-settings: 'opsz' 60,'wght' 600; font-size: 26px; line-height: 1; letter-spacing: -0.02em; color: var(--cobalt); text-decoration: none; }
.nav-mark sup { font-size: 0.45em; }
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { font-size: 14px; text-decoration: none; color: var(--ink); letter-spacing: 0.01em; }
.nav-links a:hover { color: var(--cobalt); }
.nav-cta { font-size: 13px; padding: 9px 18px; }
/* language switcher */
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cobalt); padding: 6px 10px; border: 1px solid var(--hair); border-radius: 2px; }
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary { background: var(--cobalt); color: var(--bone); border-color: var(--cobalt); }
.lang .panel { position: absolute; right: 0; top: calc(100% + 8px); background: var(--bone); border: 1px solid var(--hair); border-radius: 4px; padding: 6px; min-width: 130px; box-shadow: 0 8px 28px rgba(8,48,95,0.12); z-index: 30; }
.lang .panel a { display: block; padding: 8px 12px; font-size: 14px; text-decoration: none; color: var(--ink); }
.lang .panel a[aria-current="true"] { color: var(--cobalt); font-weight: 600; }
.lang .panel a:hover { color: var(--cobalt); }
/* mobile menu */
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; font-family: 'IBM Plex Sans'; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cobalt); padding: 8px 12px; border: 1px solid var(--hair); border-radius: 2px; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary { background: var(--cobalt); color: var(--bone); border-color: var(--cobalt); }
.nav-menu .panel { position: absolute; right: 0; top: calc(100% + 10px); background: var(--bone); border: 1px solid var(--hair); border-radius: 4px; padding: 8px; min-width: 200px; box-shadow: 0 8px 28px rgba(8,48,95,0.12); z-index: 30; }
.nav-menu .panel a { display: block; padding: 10px 14px; font-size: 15px; text-decoration: none; color: var(--ink); }
.nav-menu .panel a:hover { color: var(--cobalt); }

/* HERO */
.hero { padding: 118px 0 80px; border-bottom: 1px solid var(--hair); }
.hero-glyph { font-family: 'Source Serif 4', Georgia, serif; font-variation-settings: 'opsz' 60,'wght' 600; font-size: 320px; line-height: 0.85; letter-spacing: -0.05em; margin: 0; color: var(--cobalt); }
.hero-glyph sup { font-size: 0.32em; vertical-align: super; font-weight: 500; }
.hero-tagline { margin-top: 32px; font-family: 'Source Serif 4', Georgia, serif; font-style: italic; font-variation-settings: 'opsz' 32,'wght' 400; font-size: 36px; line-height: 1.25; color: var(--ink); max-width: 720px; }
.hero-sub { margin-top: 28px; font-size: 18px; line-height: 1.55; color: var(--navy); max-width: 560px; }
.hero-cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

/* SECTIONS */
section { padding: 96px 0; border-bottom: 1px solid var(--hair); }
.eyebrow { font-family: 'IBM Plex Sans', sans-serif; font-weight: 500; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 24px; }
.h2 { font-family: 'Source Serif 4', Georgia, serif; font-variation-settings: 'opsz' 60,'wght' 600; font-size: 48px; line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 24px; color: var(--ink); }
.lead { font-size: 19px; line-height: 1.55; color: var(--ink); max-width: 680px; margin-bottom: 24px; }
section p { max-width: 680px; }

.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.problem-card { padding: 32px 0; border-top: 1px solid var(--cobalt); }
.problem-card .num { font-family: 'Source Serif 4', Georgia, serif; font-variation-settings: 'opsz' 60,'wght' 500; font-size: 56px; line-height: 1; color: var(--cobalt); margin-bottom: 18px; }
.problem-card .title { font-family: 'Source Serif 4', Georgia, serif; font-size: 22px; font-variation-settings: 'opsz' 32,'wght' 600; margin-bottom: 12px; }
.problem-card .body { font-size: 15px; color: var(--ink); line-height: 1.55; }

.standard-block { background: var(--vellum); padding: 80px 64px; margin-top: 48px; border-radius: 6px; display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; border-left: 4px solid var(--cobalt); }
.standard-mark { aspect-ratio: 1/1; background: var(--cobalt); border: 3px solid var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; position: relative; }
.standard-mark .g { font-family: 'Source Serif 4', Georgia, serif; font-variation-settings: 'opsz' 60,'wght' 700; font-size: 88px; line-height: 1; letter-spacing: -0.04em; color: var(--bone); }
.standard-mark .g sup { font-size: 0.42em; }
.standard-mark .l { font-family: 'IBM Plex Sans', sans-serif; font-weight: 500; font-size: 13px; letter-spacing: 0.32em; margin-top: 8px; color: var(--bone); }
.standard-mark .u { position: absolute; bottom: 10px; font-family: 'IBM Plex Mono', monospace; font-size: 7px; letter-spacing: 0.1em; color: var(--bone); opacity: 0.75; }
.standard-quote { font-family: 'Source Serif 4', Georgia, serif; font-style: italic; font-variation-settings: 'opsz' 32,'wght' 500; font-size: 28px; line-height: 1.35; color: var(--ink); margin: 0 0 24px; }
.standard-detail { font-size: 15px; color: var(--ink); line-height: 1.6; margin-bottom: 16px; }
.standard-detail strong { font-weight: 600; color: var(--cobalt); }

.two-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px; }
.path-card { padding: 48px 40px; background: #fff; border: 1px solid var(--hair); border-radius: 6px; }
.path-card .eyebrow { color: var(--cobalt); }
.path-card .title { font-family: 'Source Serif 4', Georgia, serif; font-size: 32px; font-variation-settings: 'opsz' 60,'wght' 600; margin: 0 0 18px; letter-spacing: -0.02em; }
.path-card p { font-size: 15px; line-height: 1.6; margin-bottom: 20px; }
.path-card ul { margin: 0 0 28px; padding-left: 18px; font-size: 15px; line-height: 1.7; }
.path-card ul li { margin-bottom: 6px; }

.dir-note { font-size: 13px; color: var(--stone); margin: 8px 0 0; font-style: italic; }

.manifesto { padding: 118px 0; background: var(--cobalt); color: var(--bone); }
.manifesto .wrap { max-width: 800px; }
.manifesto .eyebrow { color: var(--mist); }
.manifesto h2 { font-family: 'Source Serif 4', Georgia, serif; font-variation-settings: 'opsz' 60,'wght' 500; font-style: italic; font-size: 56px; line-height: 1.2; margin: 0 0 32px; letter-spacing: -0.02em; }
.manifesto p { color: var(--mist); font-size: 18px; line-height: 1.65; margin-bottom: 20px; max-width: none; }
.manifesto p strong { color: var(--bone); font-weight: 500; }

.faq-list { margin-top: 40px; max-width: 760px; }
.faq-item { padding: 28px 0; border-top: 1px solid var(--hair); }
.faq-q { font-family: 'Source Serif 4', Georgia, serif; font-size: 22px; font-variation-settings: 'opsz' 32,'wght' 500; margin: 0 0 12px; }
.faq-a { font-size: 15px; color: var(--ink); line-height: 1.6; max-width: 680px; }

/* FOOTER */
footer.site { padding: 64px 0 40px; background: var(--vellum); }
footer.site .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; flex-wrap: wrap; }
footer.site .col h4 { font-family: 'IBM Plex Sans'; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cobalt); margin: 0 0 16px; font-weight: 600; }
footer.site .col a { display: block; font-size: 14px; color: var(--ink); text-decoration: none; padding: 4px 0; }
footer.site .col a:hover { color: var(--cobalt); }
footer.site .meta { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--stone); flex-wrap: wrap; gap: 16px; }
footer.site .meta-mark { font-family: 'Source Serif 4', Georgia, serif; font-variation-settings: 'opsz' 60,'wght' 600; font-size: 36px; line-height: 1; color: var(--cobalt); }
footer.site .meta-mark sup { font-size: 0.42em; }

/* PAGE HEADER (register/directory/privacy) */
.page-head { padding: 72px 0 40px; border-bottom: 1px solid var(--hair); }
.page-head h1 { font-family: 'Source Serif 4', Georgia, serif; font-variation-settings: 'opsz' 60,'wght' 600; font-size: 52px; line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 14px; }
.page-head .sub { font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: 0.02em; color: var(--stone); }
.page-body { padding: 56px 0 96px; }

/* FORM */
.form { max-width: 640px; }
.form .intro { font-size: 16px; color: var(--ink); margin: 0 0 32px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 7px; color: var(--ink); }
.field .opt { color: var(--stone); font-weight: 400; }
.field .help { font-size: 12.5px; color: var(--stone); margin-top: 6px; line-height: 1.45; }
.field input, .field select, .field textarea { width: 100%; font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--hair); border-radius: 3px; padding: 12px 14px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cobalt); outline: none; box-shadow: 0 0 0 3px rgba(12,63,124,0.12); }
.field textarea { min-height: 92px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 26px 0; padding: 20px; background: var(--vellum); border-left: 4px solid var(--cobalt); border-radius: 4px; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--cobalt); }
.check label { font-size: 14px; line-height: 1.5; }
.privacy-note { font-size: 12.5px; color: var(--stone); margin: 0 0 24px; line-height: 1.5; }
.form-status { display: none; padding: 22px 24px; border-radius: 4px; margin-bottom: 24px; font-size: 15px; line-height: 1.55; }
.form-status.err { display: block; background: #f7e9e4; border-left: 4px solid #9a3b1e; color: #5c2412; }
.panel-success { display: none; max-width: 640px; padding: 40px; background: var(--vellum); border-left: 4px solid var(--cobalt); border-radius: 6px; }
.panel-success h2 { font-family: 'Source Serif 4', Georgia, serif; font-size: 28px; font-variation-settings: 'opsz' 32,'wght' 600; margin: 0 0 14px; }
.panel-success p { font-size: 15px; line-height: 1.6; margin: 0 0 20px; }

/* DIRECTORY */
.dir-toolbar { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.dir-toolbar input, .dir-toolbar select { font-family: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid var(--hair); border-radius: 3px; background: #fff; color: var(--ink); }
.dir-toolbar input { flex: 1 1 320px; }
.dir-count { font-size: 13px; color: var(--stone); margin: 0 0 28px; font-family: 'IBM Plex Mono', monospace; }
.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.venue { padding: 24px; background: #fff; border: 1px solid var(--hair); border-radius: 4px; }
.venue .mini { width: 48px; height: 48px; background: var(--cobalt); border: 2px solid var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 16px; }
.venue .mini .g { font-family: 'Source Serif 4', Georgia, serif; font-variation-settings: 'opsz' 60,'wght' 600; font-size: 19px; line-height: 1; color: var(--bone); }
.venue .mini .g sup { font-size: 0.42em; }
.venue .vname { font-family: 'Source Serif 4', Georgia, serif; font-size: 19px; font-variation-settings: 'opsz' 32,'wght' 500; margin-bottom: 4px; }
.venue .vname a { text-decoration: none; color: var(--ink); }
.venue .vname a:hover { color: var(--cobalt); }
.venue .vloc { color: var(--stone); font-size: 13px; }
.venue .vmeta { color: var(--stone); font-size: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hair); }
.dir-empty, .dir-loading { padding: 48px 0; font-size: 16px; color: var(--stone); max-width: 560px; }
.dir-empty .btn { margin-top: 20px; }

/* DOC-STYLE (privacy) */
.doc-col { max-width: 720px; }
.doc-col h2 { font-family: 'Source Serif 4', Georgia, serif; font-variation-settings: 'opsz' 60,'wght' 600; font-size: 24px; margin: 40px 0 12px; padding-top: 22px; border-top: 1px solid var(--cobalt); }
.doc-col p { font-size: 16px; line-height: 1.65; color: var(--ink); }
.doc-col .updated { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--stone); margin-bottom: 8px; }

@media (max-width: 860px) {
  .wrap { padding: 0 24px; }
  .hero-glyph { font-size: 150px; }
  .hero-tagline { font-size: 26px; }
  .h2 { font-size: 32px; }
  .page-head h1 { font-size: 38px; }
  .problem-grid, .two-paths, .dir-grid { grid-template-columns: 1fr; }
  .standard-block { grid-template-columns: 1fr; padding: 48px 28px; gap: 32px; }
  .standard-mark { max-width: 200px; }
  .manifesto h2 { font-size: 34px; }
  .row2 { grid-template-columns: 1fr; }
  .dir-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-menu { display: block; }
}
@media (max-width: 560px) { .dir-grid { grid-template-columns: 1fr; } }
