/* Koine Association — website styles */

/* ---------- fonts (self-hosted: no third-party requests) ---------- */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/fraunces-latin-400-normal.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: 'Fraunces'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/fraunces-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/fraunces-latin-600-normal.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: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/fraunces-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: 'Figtree'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/figtree-latin-400-normal.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: 'Figtree'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/figtree-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: 'Figtree'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/figtree-latin-600-normal.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: 'Figtree'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/figtree-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: 'KoineIPA'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/koine-ipa.woff2') format('woff2'); }

/* ---------- tokens ---------- */
:root {
  --navy: #1B2A4A;
  --corn: #6F94D6;
  --corn-light: #A9BFE6;
  --mist: #F3F5FA;
  --text: #3B4763;
  --muted: #5A6580;
  --line: #E3E6EE;
  --white: #FFFFFF;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', Arial, Helvetica, sans-serif;
  --wrap: 70rem;
  --header-h: 4.75rem;
  --radius: 14px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: clamp(16px, 0.55vw + 8px, 22px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--corn); }
:focus-visible { outline: 3px solid var(--corn); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--white); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 16px; top: 16px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .75rem 1.5rem; border-radius: 999px; background: var(--corn); color: var(--white); font-weight: 600; text-decoration: none; transition: background .2s, color .2s, border-color .2s; border: 2px solid var(--corn); }
.btn:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-small { min-height: 2.5rem; padding: .5rem 1.15rem; background: var(--navy); border-color: var(--navy); }
.btn-small:hover { background: var(--corn); border-color: var(--corn); color: var(--white); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header { height: var(--header-h); box-sizing: border-box; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; }
.brand img { height: 2.75rem; width: auto; }
.nav { list-style: none; display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; font-weight: 600; font-size: .98rem; }
.nav a:not(.btn) { text-decoration: none; }
.menu-toggle { display: none; }
.header-right { display: flex; align-items: center; gap: 10px; }
@media (max-width: 760px) {
  .brand img { height: 2.4rem; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); cursor: pointer; padding: 0; }
  .menu-toggle svg { width: 20px; height: 20px; }
  .nav { position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(27,42,74,.10); padding: 6px 24px 18px; display: none; }
  .nav.open { display: flex; }
  .nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav li.nav-cta { display: none; }
}
.header-contact { display: none; }
@media (max-width: 760px) { .header-contact { display: inline-flex; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #D4DCEF; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding: 3rem 0; }
.hero-wing { position: absolute; right: -4%; top: 50%; transform: translateY(-50%); height: 118%; width: auto; max-width: none; opacity: .10; pointer-events: none; }
.hero-inner { width: 100%; }
.hero-inner { position: relative; max-width: var(--wrap); }
.definition { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: 1rem; margin-bottom: 28px; color: var(--corn-light); }
.definition .word { font-family: var(--serif); font-size: 1.5rem; color: var(--white); font-weight: 600; }
.definition .ipa { font-family: 'KoineIPA', 'Charis SIL', 'Gentium Plus', 'Segoe UI', 'Noto Sans', 'Lucida Grande', sans-serif; font-size: 1.1em; }
.definition .origin { font-style: italic; }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 5.6vw, 6rem); max-width: 13ch; margin-bottom: 1.5rem; }
.hero-lead { font-size: clamp(1.08rem, 1.6vw, 1.35rem); max-width: 40rem; color: #D4DCEF; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-mist { background: var(--mist); }
.overline { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--corn); margin-bottom: 12px; }
.overline-light { color: var(--corn-light); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 6vw, 80px); align-items: start; }
.prose p { font-size: 1.12rem; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.card { background: var(--white); border-radius: var(--radius); padding: 32px 30px; border: 1px solid var(--line); }
.card p { margin: 0; }
.feather { display: block; width: 46px; height: 24px; margin-bottom: 18px; background: url("img/feather.svg") left center / contain no-repeat; }
@media (max-width: 720px) { .cards { grid-template-columns: 1fr; } }

.soon > * { max-width: 46rem; }
.soon h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ---------- FAQ ---------- */
.faq { margin-top: 28px; border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-family: var(--serif); font-weight: 600; font-size: 1.18rem; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid var(--corn); border-bottom: 2px solid var(--corn); transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(3px) rotate(225deg); }
.faq details p { margin: 0 0 22px; max-width: 46rem; }

/* ---------- contact ---------- */
.contact { background: var(--navy); color: #D4DCEF; padding: clamp(64px, 9vw, 104px) 0; }
.contact h2 { color: var(--white); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.contact-list span { color: var(--corn-light); font-size: .95rem; }
.contact-list a { color: var(--white); font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: var(--corn-light); }
@media (max-width: 820px) { .contact-inner { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- footer ---------- */
.site-footer { background: #142038; color: #9AA8C8; padding: 44px 0; font-size: .92rem; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: 28px; }
.footer-col h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--corn-light); margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.10); padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-inner img { height: 46px; width: auto; margin-bottom: 14px; }
.footer-inner p { margin: 0; }
.site-footer a { color: #D4DCEF; }
.site-footer a:hover { color: var(--white); }

/* ---------- inner pages ---------- */
.page-head { background: var(--navy); color: #D4DCEF; padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.page-head h1 { color: var(--white); font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin: 0; }
.breadcrumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: .92rem; color: var(--corn-light); }
.breadcrumbs li + li::before { content: '/'; margin-right: 8px; opacity: .6; }
.breadcrumbs a { color: var(--white); }
.legal > * { max-width: 46rem; }
.legal h2 { font-size: 1.5rem; margin-top: 2.2em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.updated { color: var(--muted); font-size: .95rem; }
