/* Simko Shikak Institute — light heritage palette: stone ground, mountain green, sun gold, a touch of Kurdish red. Single 1200px column; editorial type for history. */
:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --band: #ecebe2;
  --ink: #1f2a24;
  --ink-2: #3b463f;
  --muted: #5f6a63;
  --line: #d8d5ca;
  --green: #1f5a43;
  --green-dark: #17463a;
  --gold: #c9a24a;
  --gold-text: #8a6516;
  --red: #c8322b;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --rtl: "Vazirmatn", Tahoma, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.25rem; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.measure { max-width: 66ch; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--gold-text); }
.rtl { font-family: var(--rtl); direction: rtl; unicode-bidi: isolate; }
.skip { position: absolute; left: -999px; top: 0; background: var(--green); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* Flag stripe + header */
.stripe { display: flex; height: 5px; }
.stripe span { flex: 1; }
.stripe span:nth-child(1) { background: var(--red); }
.stripe span:nth-child(2) { background: #ffffff; }
.stripe span:nth-child(3) { background: var(--green); }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name strong { font-family: var(--display); font-size: 1.45rem; font-weight: 700; }
.brand-name small { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.nav-toggle { display: none; font: inherit; font-weight: 700; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; color: var(--ink); cursor: pointer; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.97rem; }
.site-nav a:hover { background: var(--band); color: var(--green); }
.site-nav a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.site-nav a.cta-link { background: var(--green); color: #fff; }
.site-nav a.cta-link:hover { background: var(--green-dark); color: #fff; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding-bottom: 8px; }
}

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 13px 26px; border-radius: 6px; font-weight: 700; text-decoration: none; letter-spacing: 0.02em; border: 2px solid transparent; }
.btn-gold { background: var(--gold); color: #1d1606; }
.btn-gold:hover { background: #b8913a; color: #1d1606; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-line { border-color: var(--green); color: var(--green); }
.btn-line:hover { background: var(--green); color: #fff; }

/* Home hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: sepia(0.35) contrast(1.02); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247,245,239,0.97) 0%, rgba(247,245,239,0.9) 42%, rgba(247,245,239,0.25) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(64px, 10vw, 128px); padding-bottom: clamp(64px, 10vw, 120px); display: flex; flex-direction: column; gap: 22px; }
.hero h1 { max-width: 12ch; line-height: 0.98; }
.hero .alt { font-size: 1.15rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero .lead { font-size: 1.25rem; color: var(--ink-2); max-width: 52ch; }
@media (max-width: 700px) { .hero::after { background: rgba(247,245,239,0.9); } }

/* Page hero (inner pages) */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.page-hero .intro { font-size: 1.2rem; color: var(--ink-2); max-width: 58ch; }
.page-hero figure { margin: 0; }
.page-hero figure img { width: 100%; height: 300px; object-fit: cover; object-position: top; border: 1px solid var(--line); filter: sepia(0.25); }
@media (max-width: 820px) { .page-hero .wrap { grid-template-columns: 1fr; } }

/* Stats band */
.stats { background: var(--green); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; padding-top: 36px; padding-bottom: 36px; }
.stat b { display: block; font-family: var(--display); font-size: 2.8rem; line-height: 1; color: #f3d27f; font-variant-numeric: lining-nums; }
.stat span { color: #dcebe2; font-size: 0.98rem; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; }
.section-head > div { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.portrait-frame { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.portrait-frame img { width: 100%; max-width: 440px; aspect-ratio: 3/4; object-fit: cover; object-position: top; border: 6px solid var(--surface); box-shadow: 0 18px 40px rgba(31,42,36,0.18); }
figcaption { font-size: 0.9rem; color: var(--muted); }
figcaption b { color: var(--ink); font-weight: 700; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.pillar { border-top: 2px solid var(--green); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.pillar .num { font-family: var(--display); font-size: 1.3rem; color: var(--gold-text); }
.pillar p { color: var(--muted); font-size: 1rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.card .icon { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: #e5efe9; }
.card .icon svg { width: 24px; height: 24px; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted); font-size: 1rem; }
.card ul { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 0.98rem; }
.tag { align-self: flex-start; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: #f6ecd0; color: #6d4f0e; }

/* Plates (gallery) */
.plates { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.plate { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.plate button { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.plate img { width: 100%; height: 300px; object-fit: cover; object-position: top; filter: sepia(0.2); transition: filter .2s; }
.plate button:hover img { filter: none; }
.plate.w2 { grid-column: span 2; } .plate.w3 { grid-column: span 3; } .plate.w4 { grid-column: span 4; }
.plate.w3 img, .plate.w4 img { object-position: center; }
@media (max-width: 860px) { .plate.w2, .plate.w3, .plate.w4 { grid-column: span 3; } .plate img { height: 240px; } }
@media (max-width: 520px) { .plates { grid-template-columns: 1fr; } .plate.w2, .plate.w3, .plate.w4 { grid-column: auto; } }
.lightbox { position: fixed; inset: 0; background: rgba(31,42,36,0.92); display: none; align-items: center; justify-content: center; padding: 24px; z-index: 200; flex-direction: column; gap: 14px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 80vh; max-width: 100%; border: 6px solid #fff; }
.lightbox p { color: #f1efe8; max-width: 70ch; text-align: center; }
.lightbox button { font: inherit; font-weight: 700; background: var(--gold); border: 0; border-radius: 6px; padding: 10px 20px; cursor: pointer; }

/* CTA band */
.cta-band { background: var(--gold); color: #1d1606; }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; padding-top: 64px; padding-bottom: 64px; }
.cta-band h2 { color: #1d1606; max-width: 22ch; }

/* History (editorial) */
.history-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: 96px; border-top: 3px solid var(--ink); padding-top: 14px; }
.toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; counter-reset: ch; }
.toc li { counter-increment: ch; }
.toc a { display: flex; gap: 10px; padding: 6px 0; text-decoration: none; color: var(--ink-2); font-size: 0.97rem; border-bottom: 1px solid var(--line); }
.toc a::before { content: counter(ch, upper-roman); font-family: var(--display); color: var(--gold-text); min-width: 28px; }
.toc a:hover { color: var(--green); }
@media (max-width: 900px) { .history-layout { grid-template-columns: 1fr; } .toc { position: static; } }
.chapter { padding: 0 0 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 100px; }
.chapter:last-child { border-bottom: 0; }
.chapter .ch-num { font-family: var(--display); font-size: 1.1rem; color: var(--gold-text); letter-spacing: 0.1em; }
.chapter p { max-width: 68ch; font-size: 1.1rem; color: var(--ink-2); }
.chapter p.first::first-letter { float: left; font-family: var(--display); font-size: 4.6rem; line-height: 0.82; padding: 6px 10px 0 0; color: var(--green); }
.chapter .ref { font-size: 0.82rem; vertical-align: super; text-decoration: none; color: var(--gold-text); font-weight: 700; }
.pullquote { border-left: 3px solid var(--gold); padding: 6px 0 6px 22px; font-family: var(--display); font-size: 1.6rem; line-height: 1.35; color: var(--ink); max-width: 40ch; }
.note-box { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; max-width: 72ch; }
.note-box h4 { color: var(--green); }
.views { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.view { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.view:nth-child(2) { border-top-color: var(--gold); }
.view:nth-child(3) { border-top-color: var(--red); }
.view p { font-size: 0.98rem !important; color: var(--muted) !important; }

/* Timeline table */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--gold); }
.timeline li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 14px 0 14px 26px; position: relative; border-bottom: 1px dashed var(--line); }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--gold); }
.timeline time { font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: var(--green); font-variant-numeric: lining-nums; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }

/* Bibliography */
.biblio { list-style: none; margin: 0; padding: 0; }
.biblio li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 18px; }
.biblio .yr { font-family: var(--display); font-size: 1.35rem; color: var(--gold-text); font-weight: 700; }
.biblio .title { font-family: var(--display); font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.biblio .meta { color: var(--muted); font-size: 0.97rem; }
.biblio .links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.92rem; font-weight: 700; margin-top: 4px; }
.biblio ol.notes { padding-left: 22px; }
ol.refs { margin: 0; padding-left: 22px; color: var(--ink-2); font-size: 0.97rem; display: flex; flex-direction: column; gap: 8px; }

/* Forms */
form.contact { display: grid; gap: 14px; }
form.contact label { display: grid; gap: 6px; font-weight: 700; font-size: 0.95rem; }
form.contact input, form.contact textarea, form.contact select { font: inherit; padding: 12px 14px; border: 1px solid #c4c1b6; border-radius: 6px; background: var(--surface); color: var(--ink); }
form.contact button { justify-self: start; font: inherit; font-weight: 700; background: var(--green); color: #fff; border: 0; border-radius: 6px; padding: 13px 26px; cursor: pointer; }
.form-status { font-weight: 700; color: var(--green); min-height: 1.6em; }

/* Footer */
.site-footer { background: var(--green-dark); color: #d6e4dc; font-size: 0.97rem; }
.site-footer .wrap { padding-top: 64px; padding-bottom: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 36px; }
.site-footer h4 { color: #fff; font-family: var(--body); font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: #f3d27f; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer .fname { font-family: var(--display); font-size: 1.7rem; color: #fff; font-weight: 700; line-height: 1.1; }
.site-footer .base { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.88rem; color: #b8cbbf; }

/* ---- v2 additions ---- */
.hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.hub-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.hub-card:nth-child(2) { border-top-color: var(--gold); }
.hub-card:nth-child(3) { border-top-color: var(--red); }
.hub-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(31,42,36,0.12); color: var(--ink); }
.hub-card .num { font-family: var(--display); font-size: 1.4rem; color: var(--gold-text); }
.hub-card p { color: var(--muted); }
.hub-card .go { margin-top: auto; font-weight: 700; color: var(--green); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.fact dt { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.fact dd { margin: 2px 0 0; font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
.map-figure { margin: 8px 0 0; display: flex; flex-direction: column; gap: 10px; }
.map { width: 100%; max-width: 640px; height: auto; border: 1px solid var(--line); background: #efeee6; }
.map .m-label { font: 600 15px var(--body); fill: #1f2a24; paint-order: stroke; stroke: #efeee6; stroke-width: 4px; }
.map .m-key { font-weight: 700; fill: #8f1f1a; font-size: 16px; }
.map .m-water { font: italic 600 18px var(--display); fill: #3f6676; }
.map .m-note { font: 600 13px var(--body); fill: #5f6a63; letter-spacing: 0.06em; }
.map .m-leg { font: 600 13px var(--body); fill: #1f2a24; }
.profile-links { display: flex; flex-direction: column; gap: 10px; }
.profile-links a { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 8px; text-decoration: none; color: var(--ink); }
.profile-links a:hover { border-left-color: var(--gold); }
.profile-links b { font-size: 1.05rem; color: var(--green); }
.profile-links span { color: var(--muted); font-size: 0.95rem; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.share span { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.share a { font-size: 0.92rem; font-weight: 700; text-decoration: none; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.share a:hover { border-color: var(--green); background: #e5efe9; }
.table-wrap { overflow-x: auto; }
table.words { border-collapse: collapse; width: 100%; max-width: 680px; background: var(--surface); border: 1px solid var(--line); }
table.words th, table.words td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
table.words th { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--band); }
table.words td:first-child { color: var(--muted); }
table.words td:not(:first-child) { font-family: var(--display); font-size: 1.2rem; font-weight: 600; }
.script-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.script-row > div { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; }
.script-row .big { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--green); }
.script-row .big.rtl { font-family: var(--rtl); font-size: 1.8rem; }
.chapter .cards { margin-top: 4px; }
.chapter .card p { font-size: 0.98rem !important; }
.site-nav a { padding: 8px 10px; }
.founder-thumb { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 4px solid var(--surface); box-shadow: 0 10px 24px rgba(31,42,36,0.18); }
.page-hero figure img[src*="dr-keivan-simko"] { height: 380px; object-position: center 15%; filter: none; }
