/* ==========================================================================
   COLT — Annotated Corpus of Old Turkic
   Stylesheet — parallel to onurbulbul.com (Cardo + Inter, parchment/navy/gold)
   with COLT-specific additions (runiform mark, worked example, roadmap rows).
   ========================================================================== */

/* -- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* -- No hyphenation, no mid-word breaks site-wide ------------------------ */
html { hyphens: none; -webkit-hyphens: none; -ms-hyphens: none; }
body, p, li, dd, dt, h1, h2, h3, h4, h5, h6, .bio, .prose,
.author-panel, .status-panel, .entry-block, .entry-note, .entry-etym,
.strata-row .content, .roadmap-row .label {
  hyphens: none; -webkit-hyphens: none; -ms-hyphens: none;
  overflow-wrap: normal; word-break: normal;
}

/* -- Theme tokens -------------------------------------------------------- */
:root {
  --bg: #f5ecd9;
  --bg-soft: #ede2c9;
  --ink: #1a2847;
  --ink-soft: rgba(26, 40, 71, 0.65);
  --ink-faint: rgba(26, 40, 71, 0.18);
  --gold: #a8834a;
  --gold-soft: rgba(168, 131, 74, 0.45);
}
:root[data-theme="dark"] {
  --bg: #0f1729;
  --bg-soft: #14203a;
  --ink: #ecdfbf;
  --ink-soft: rgba(236, 223, 191, 0.65);
  --ink-faint: rgba(236, 223, 191, 0.15);
  --gold: #c9a86a;
  --gold-soft: rgba(201, 168, 106, 0.4);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0f1729;
    --bg-soft: #14203a;
    --ink: #ecdfbf;
    --ink-soft: rgba(236, 223, 191, 0.65);
    --ink-faint: rgba(236, 223, 191, 0.15);
    --gold: #c9a86a;
    --gold-soft: rgba(201, 168, 106, 0.4);
  }
}

/* -- Base ---------------------------------------------------------------- */
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.25s ease, color 0.25s ease;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold-soft); color: var(--ink); }
.wrap { width: 100%; max-width: 920px; margin: 0 auto; padding: 0 32px; }

/* -- Header -------------------------------------------------------------- */
header.site {
  width: 100%;
  padding: 28px clamp(24px, 4vw, 48px) 22px;
  border-bottom: 0.5px solid var(--ink-faint);
}
header.site .row {
  max-width: 1320px;
  margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.brand {
  font-family: 'Cardo', Garamond, serif;
  font-size: 18px;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.brand .brand-mark {
  font-family: 'Noto Sans Old Turkic', 'Cardo', serif;
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
}
nav.primary { display: flex; align-items: center; gap: 24px; font-size: 14px; }
nav.primary a {
  opacity: 0.55;
  transition: opacity 0.2s ease, border-color 0.2s ease;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
nav.primary a:hover { opacity: 1; }
nav.primary a.current { opacity: 1; border-bottom-color: var(--ink); }

.theme-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--ink);
  padding: 4px; margin-left: 4px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.7; transition: opacity 0.2s ease;
  font: inherit;
}
.theme-toggle:hover { opacity: 1; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .moon { display: none; }
  :root:not([data-theme]) .theme-toggle .sun { display: block; }
}

/* -- Main ---------------------------------------------------------------- */
main { flex: 1; padding: 88px 0 64px; }
main.center { text-align: center; }

/* -- Hero (home page) ---------------------------------------------------- */
.hero-mark {
  font-family: 'Noto Sans Old Turkic', 'Cardo', serif;
  color: var(--gold);
  font-size: 56px;
  line-height: 1;
  text-align: center;
  margin-bottom: 18px;
}
h1.name {
  font-family: 'Cardo', Garamond, serif;
  font-size: clamp(36px, 4.8vw, 46px);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.1;
  margin-bottom: 14px;
  text-align: center;
}
.tagline {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
}

/* -- Page headings (other pages) ---------------------------------------- */
h1.page {
  font-family: 'Cardo', Garamond, serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin-bottom: 32px;
}
h2.section {
  font-family: 'Cardo', Garamond, serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 48px;
  margin-bottom: 16px;
}
h2.section:first-child { margin-top: 0; }

/* -- Ornament ------------------------------------------------------------ */
.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 22px; margin: 40px auto 36px;
}
.ornament .line { display: block; width: 100px; height: 1px; background: var(--gold-soft); }
.ornament svg { color: var(--gold); flex-shrink: 0; }

/* -- Bio (home) ---------------------------------------------------------- */
.bio {
  max-width: 540px; margin: 0 auto;
  font-family: 'Cardo', Garamond, serif;
  font-size: 18px; line-height: 1.75;
  text-align: left;
  hyphens: none; -webkit-hyphens: none; -ms-hyphens: none;
  overflow-wrap: normal; word-break: normal;
}
.bio p { margin-bottom: 1em; }
.bio p:last-child { margin-bottom: 0; }

/* -- Prose (about, methodology, roadmap) -------------------------------- */
.prose {
  max-width: 640px;
  font-family: 'Cardo', Garamond, serif;
  font-size: 18px; line-height: 1.75;
  text-align: left;
  hyphens: none; -webkit-hyphens: none; -ms-hyphens: none;
  overflow-wrap: normal; word-break: normal;
}
.prose p { margin-bottom: 1.2em; }
.prose p:last-child { margin-bottom: 0; }
.prose a { border-bottom: 0.5px solid var(--ink-faint); transition: border-color 0.2s; }
.prose a:hover { border-color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose em { font-style: italic; }

/* -- Action buttons ----------------------------------------------------- */
.actions {
  display: flex; justify-content: center; gap: 14px;
  margin-top: 44px; flex-wrap: wrap;
}
.btn {
  border: 0.5px solid var(--ink); color: var(--ink);
  padding: 10px 26px;
  font-size: 11.5px; letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-block;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-primary { border-color: var(--gold); color: var(--gold); }
.btn-primary:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.btn .arrow { margin-left: 8px; }

/* -- Worked example block (methodology) --------------------------------- */
.entry-block {
  max-width: 700px;
  margin: 32px 0 36px;
  padding: 28px 32px;
  background: var(--bg-soft);
  border: 0.5px solid var(--ink-faint);
  border-left: 3px solid var(--gold);
  font-family: 'Cardo', Garamond, serif;
}
.entry-runic {
  font-family: 'Noto Sans Old Turkic', 'Cardo', serif;
  font-size: 36px;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.entry-translit {
  font-family: 'Inter', monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.entry-form {
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 4px;
}
.entry-form .gloss { color: var(--ink-soft); font-style: normal; font-size: 17px; font-family: 'Cardo', serif; margin-left: 8px; }
.entry-segments {
  font-family: 'Inter', monospace;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.entry-table {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 22px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 0.5px solid var(--ink-faint);
}
.entry-table dt {
  font-family: 'Inter', monospace;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
  align-self: baseline;
}
.entry-table dd {
  margin: 0;
  font-size: 17px;
  color: var(--ink);
}
.entry-note, .entry-etym {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 12px;
  text-align: left;
}
.entry-note strong, .entry-etym strong {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  display: inline-block;
  margin-right: 6px;
}

/* -- Four-strata example table (methodology) --------------------------- */
.strata-table {
  max-width: 760px;
  margin: 24px 0 36px;
  border: 0.5px solid var(--ink-faint);
}
.strata-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-bottom: 0.5px solid var(--ink-faint);
}
.strata-row:last-child { border-bottom: none; }
.strata-row .label {
  background: var(--bg-soft);
  padding: 16px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border-right: 0.5px solid var(--ink-faint);
}
.strata-row .content {
  padding: 16px 22px;
  font-family: 'Cardo', Garamond, serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}
.strata-row .content.runic {
  font-family: 'Noto Sans Old Turkic', serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  word-break: break-all;
  direction: rtl;
  text-align: right;
  unicode-bidi: embed;
}
.strata-row .content.transcription {
  font-family: 'Cardo', Garamond, serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  font-style: normal;
}
.strata-row .content.translit {
  font-family: 'Inter', monospace;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  word-break: break-word;
}

/* -- Roadmap rows ------------------------------------------------------ */
.roadmap {
  max-width: 640px;
  margin: 24px 0 36px;
  font-family: 'Cardo', Garamond, serif;
  font-size: 17px;
  line-height: 1.6;
}
.roadmap-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  padding: 14px 0;
  border-bottom: 0.5px solid var(--ink-faint);
}
.roadmap-row:last-child { border-bottom: none; }
.roadmap-row .year {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  align-self: center;
}
.roadmap-row .label { color: var(--ink); }

/* Status panel (used on home + roadmap) */
.status-panel {
  max-width: 640px;
  background: var(--bg-soft);
  border: 0.5px solid var(--ink-faint);
  padding: 22px 26px;
  margin: 24px 0;
  font-family: 'Cardo', Garamond, serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.status-panel strong { color: var(--ink); font-weight: 700; }

/* -- Author panel (about) ---------------------------------------------- */
.author-panel {
  max-width: 640px;
  background: var(--bg-soft);
  border: 0.5px solid var(--ink-faint);
  padding: 24px 28px;
  margin: 24px 0;
  font-family: 'Cardo', Garamond, serif;
  font-size: 16px;
  line-height: 1.65;
}
.author-panel .author-name {
  font-size: 19px;
  margin-bottom: 8px;
  color: var(--ink);
}
.author-panel p { color: var(--ink-soft); margin: 0; }

/* -- Contact list (parallel to personal site) -------------------------- */
.contact-list { max-width: 480px; }
.contact-list dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 28px;
  margin-bottom: 6px;
  font-weight: 500;
}
.contact-list dt:first-child { margin-top: 0; }
.contact-list dd {
  font-family: 'Cardo', Garamond, serif;
  font-size: 18px;
  margin-bottom: 4px;
}
.contact-list a { border-bottom: 0.5px solid var(--ink-faint); transition: border-color 0.2s ease; }
.contact-list a:hover { border-color: var(--ink); }

/* -- Footer ----------------------------------------------------------- */
footer.site {
  padding: 32px 0 40px;
  text-align: center;
  border-top: 0.5px solid var(--ink-faint);
  margin-top: auto;
}
footer.site .profiles {
  display: flex; justify-content: center; align-items: center;
  gap: 18px; flex-wrap: wrap;
  font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--ink-soft);
}
footer.site .profiles a { color: var(--ink-soft); transition: color 0.2s ease; }
footer.site .profiles a:hover { color: var(--ink); }
footer.site .profiles .dot { opacity: 0.4; font-size: 9px; }
footer.site .copyright {
  margin-top: 16px;
  font-size: 10.5px; letter-spacing: 0.05em;
  color: var(--ink-soft); opacity: 0.7;
}

/* -- Mobile ------------------------------------------------------------ */
@media (max-width: 720px) {
  .wrap { padding: 0 22px; }
  header.site { padding: 20px 22px 16px; }
  header.site .row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .brand { font-size: 17px; }
  nav.primary { flex-wrap: wrap; gap: 14px 18px; font-size: 13px; width: 100%; }
  main { padding: 64px 0 48px; }
  h1.name { font-size: 36px; }
  h1.page { font-size: 26px; margin-bottom: 24px; }
  .bio, .prose { font-size: 16px; }
  .ornament .line { width: 60px; }
  .hero-mark { font-size: 48px; }
  .entry-block { padding: 22px 20px; }
  .entry-runic { font-size: 28px; }
  .entry-form { font-size: 19px; }
  .strata-row { grid-template-columns: 1fr; }
  .strata-row .label { border-right: none; border-bottom: 0.5px solid var(--ink-faint); padding: 10px 16px; }
  .strata-row .content { padding: 12px 16px; font-size: 15px; }
  .strata-row .content.runic { font-size: 16px; }
  .roadmap-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .actions { gap: 10px; }
  .btn { padding: 9px 22px; font-size: 11px; }
}

/* -- Inline citation pattern / harmony markers (replaces <code> in methodology) -- */
.citation-pattern {
  font-family: 'Cardo', Garamond, serif;
  color: var(--gold);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.vh-back, .vh-front {
  font-family: 'Cardo', Garamond, serif;
  color: var(--gold);
}
/* Override any <code> remaining in prose so it matches Cardo */
.prose code {
  font-family: 'Cardo', Garamond, serif;
  font-size: inherit;
  background: transparent;
  color: var(--gold);
  padding: 0;
}
