/* =========================================================
   Rang-e-Pehchan — Editorial Stylesheet
   Palette: warm off-white, charcoal ink, terracotta accent
   ========================================================= */

:root {
  --color-bg: #f3e1bf;
  --color-bg-alt: #EFE8DB;
  --color-ink: #2B2621;
  --color-ink-soft: #5B5348;
  --color-accent: #B15A3E;
  --color-accent-soft: #D9C7B0;
  --color-line: #DCD3C3;

  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Karla', -apple-system, Segoe UI, Roboto, sans-serif;

  --max-width: 1120px;
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.25; margin: 0 0 .5em; color: var(--color-ink); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

img { max-width: 100%; display: block; }

button, input, textarea, select { font-family: inherit; font-size: inherit; }

:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,243,236,.92);
  backdrop-filter: blur(6px);
  border-bottom: 4px solid var(--color-line);
  
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px; height: 100px;
}
.brand-mark { display: flex; align-items: center; }
.nav-wrap { display: flex; align-items: center; gap: 28px; position: relative; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: .95rem; color: var(--color-ink-soft); }
.nav-links a.active, .nav-links a:hover { color: var(--color-ink); border-bottom: 2px solid var(--color-accent); padding-bottom: 4px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--color-ink); }

@media (max-width: 820px) {
  .site-header .container { height: 72px; }
  .nav-wrap { position: static; }            /* so the menu anchors to the full-width header */
  .nav-toggle { display: block; min-width: 44px; min-height: 44px; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
    background: var(--color-bg); border-bottom: 1px solid var(--color-line);
    box-shadow: 0 10px 18px rgba(43,38,33,.12);
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .25s ease, visibility 0s linear .25s;
  }
  .nav-links.open { max-height: 80vh; overflow-y: auto; visibility: visible; transition: max-height .25s ease; }
  .nav-links a { display: block; width: 100%; padding: 16px 24px; font-size: 1.05rem; border-bottom: 1px solid var(--color-line); }
  .nav-links a.active, .nav-links a:hover { padding-bottom: 16px; border-bottom: 1px solid var(--color-accent); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: var(--radius);
  border: 1px solid var(--color-ink); font-size: .95rem; cursor: pointer;
  background: transparent; color: var(--color-ink); transition: background .15s, color .15s;
}
.btn:hover { background: var(--color-ink); color: var(--color-bg); }
.btn-primary { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.btn-primary:hover { background: #97472F; color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 70px; }
@media (max-width: 620px) { .hero { padding: 44px 0 56px; } }
.hero h1 { font-size: clamp(3.6rem, 17vw, 5.6rem); line-height: 1.15; margin-bottom: .2em; }
.hero .slogan { font-family: var(--font-serif); font-style: italic; color: var(--color-accent); font-size: clamp(1.7rem, 7vw, 2.3rem); margin-bottom: 24px; }
.hero p.lede { max-width: 640px; color: var(--color-ink-soft); font-size: clamp(1.1rem, 4.4vw, 1.5rem); margin-bottom: 30px; }
.hero .hero-purpose { margin-top: 24px; font-size: clamp(1rem, 3.6vw, 1.2rem); color: var(--color-ink-soft); max-width: 520px; line-height: 1.6; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Section headings ---------- */
.section { padding: 60px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; border-bottom: 1px solid var(--color-line); padding-bottom: 16px; }
.section-head h2 { font-size: 1.8rem; margin: 0; }
.section-head a { font-size: .9rem; color: var(--color-accent); }
@media (max-width: 620px) { .section-head { flex-direction: column; align-items: flex-start; gap: 6px; } }

/* ---------- Story cards ---------- */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 900px) { .story-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .story-grid { grid-template-columns: 1fr; } }

.story-card { display: flex; flex-direction: column; }
.story-card .thumb { width: 100%; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); margin-bottom: 14px; background: var(--color-bg-alt); }
.story-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.story-card .meta { font-size: .78rem; color: var(--color-ink-soft); margin-bottom: 6px; }
.story-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.story-card p.excerpt { color: var(--color-ink-soft); font-size: 1.1rem; margin-bottom: 12px; flex-grow: 1; }
.story-card .read-link { font-size: .88rem; font-weight: 600; color: var(--color-accent); }

/* ---------- Filters / search ---------- */
.filters-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 36px; }
.filters-bar input[type="search"] {
  flex: 1 1 240px; min-width: 0; font-size: 1rem; padding: 11px 16px; border: 1px solid var(--color-line);
  border-radius: var(--radius); background: #fff;
}
.filters-bar select {
  max-width: 100%; font-size: 1rem; padding: 11px 12px; border: 1px solid var(--color-line); border-radius: var(--radius); background: #fff;
}
.result-count { color: var(--color-ink-soft); font-size: .9rem; margin-bottom: 20px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--color-ink-soft); }

/* ---------- Story reading page ---------- */
.story-header { padding: 50px 0 24px; }
.story-header .meta { color: var(--color-ink-soft); font-size: 1rem; margin-bottom: 12px; }
.story-header h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
 .story-cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); margin: 24px 0 40px; }

/* ---------- Comments ---------- */
.comments-section { max-width: 700px; margin: 56px auto 0; }
.comment-form { display: grid; gap: 12px; margin-bottom: 32px; }
.comment-form input, .comment-form textarea {
  padding: 11px 14px; border: 1px solid var(--color-line); border-radius: var(--radius); background: #fff; width: 100%;
}
.comment-form textarea { min-height: 100px; resize: vertical; }
.comment { border-top: 1px solid var(--color-line); padding: 18px 0; }
.comment .comment-head { display: flex; justify-content: space-between; font-size: .85rem; color: var(--color-ink-soft); margin-bottom: 6px; }
.comment .comment-name { font-weight: 700; color: var(--color-ink); }
.reply-link { font-size: .82rem; color: var(--color-accent); cursor: pointer; background: none; border: none; padding: 0; margin-top: 6px; }
.comment .reply { margin-left: 24px; margin-top: 12px; padding-left: 16px; border-left: 2px solid var(--color-line); }

/* ---------- Forms (Write Your Story) ---------- */
.story-form { max-width: 720px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.story-form > *, .form-cols > *, .form-row > * { min-width: 0; }
.form-row { display: grid; gap: 6px; }
.form-row label { font-size: .88rem; font-weight: 700; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--color-line); border-radius: var(--radius); background: #fff;
  font-size: 1rem; /* 16px+ stops iOS zooming into fields */
}
.form-row textarea { min-height: 220px; resize: vertical; }
.form-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 620px) { .form-cols { grid-template-columns: minmax(0, 1fr); } }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--color-ink-soft); }
.form-success { background: var(--color-bg-alt); border-radius: var(--radius); padding: 32px; text-align: center; }

/* ---------- People grid ---------- */
.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 900px) { .people-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .people-grid { grid-template-columns: 1fr; } }
.person-card { text-align: center; }
.person-card img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; }
.person-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.person-card .meta { font-size: .82rem; color: var(--color-ink-soft); margin-bottom: 8px; }

.person-profile { display: flex; gap: 28px; align-items: center; padding: 40px 0; flex-wrap: wrap; }
.person-profile img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; }

/* ---------- Neighborhood map/list ---------- */
.hood-list { display: flex; flex-wrap: wrap; gap: 12px; }
.hood-chip {
  padding: 10px 18px; border: 1px solid var(--color-line); border-radius: 999px;
  font-size: .9rem; cursor: pointer; background: #fff;
}
.hood-chip.active, .hood-chip:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ---------- About ---------- */
.prose { max-width: 680px; font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.85; }
.prose p { margin-bottom: 1.3em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 5px solid var(--color-line); padding: 44px 0 30px; margin-top: 60px; background: var(--color-bg-alt); }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 24px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: .9rem; color: var(--color-ink-soft); }
.footer-social { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-social a { font-size: .9rem; color: var(--color-ink-soft); }
.footer-bottom { font-size: .9rem; color: var(--color-ink-soft); border-top: 5px solid var(--color-line); padding-top: 32px; }

.bg-alt-section { background: var(--color-bg-alt); }

/* ---------- Cultures of Karachi — CSS-drawn textile swatches ---------- */
.culture-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 900px) { .culture-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .culture-grid { grid-template-columns: 1fr; } }

.culture-card { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); overflow: hidden; }
.culture-swatch { width: 100%; aspect-ratio: 1/1; }
.culture-card .culture-info { padding: 16px; }
.culture-card .community { font-family: var(--font-serif); font-size: 1.4rem; margin-bottom: 2px; }
.culture-card .symbol { font-size: 1.0rem; color: var(--color-accent); margin-bottom: 8px; }
.culture-card .note { font-size: 1.0rem; color: var(--color-ink-soft); line-height: 1.55; }

/* Ajrak — Sindhi block-print: repeating diamond lattice in indigo/maroon/mustard */
.swatch-ajrak {
  background-color: #8C2F39;
  background-image:
    repeating-linear-gradient(45deg, #1F3A5F 0, #1F3A5F 6px, transparent 6px, transparent 14px),
    repeating-linear-gradient(-45deg, #E0A83E 0, #E0A83E 4px, transparent 4px, transparent 14px);
}

/* Balochi embroidery — dense mirror-work dots on deep red */
.swatch-balochi {
  background-color: #7A1F2B;
  background-image: radial-gradient(#F2C744 2px, transparent 2.5px), radial-gradient(#2E7D6B 2px, transparent 2.5px);
  background-size: 18px 18px, 18px 18px;
  background-position: 0 0, 9px 9px;
}

/* Pashtun — Peshawari chappal leather tan with geometric pakol weave */
.swatch-pashtun {
  background-color: #A9752F;
  background-image: repeating-linear-gradient(0deg, #6E4A21 0, #6E4A21 3px, transparent 3px, transparent 16px), repeating-linear-gradient(90deg, #6E4A21 0, #6E4A21 3px, transparent 3px, transparent 16px);
}

/* Punjabi — Phulkari bright floral geometric stitch on saffron */
.swatch-punjabi {
  background-color: #D9762B;
  background-image: radial-gradient(circle at 25% 25%, #C4123F 0 6px, transparent 7px), radial-gradient(circle at 75% 75%, #2E7D32 0 6px, transparent 7px), radial-gradient(circle at 75% 25%, #F4D03F 0 5px, transparent 6px), radial-gradient(circle at 25% 75%, #F4D03F 0 5px, transparent 6px);
  background-size: 40px 40px;
}

/* Muhajir / Urdu-speaking — Lucknawi chikankari, white-on-white floral */
.swatch-muhajir {
  background-color: #F3EFE6;
  background-image: radial-gradient(#D9C7B0 2px, transparent 2.5px), radial-gradient(#B15A3E 1.5px, transparent 2px);
  background-size: 22px 22px, 22px 22px;
  background-position: 0 0, 11px 11px;
}

/* Seraiki — Multani blue pottery glaze pattern */
.swatch-seraiki {
  background-color: #1D4E6B;
  background-image: repeating-radial-gradient(circle at 50% 50%, #E8DCC5 0 4px, transparent 5px 20px);
}

/* Sheedi — dhamal drum rhythm, bold warm bands */
.swatch-sheedi {
  background-color: #B15A3E;
  background-image: repeating-linear-gradient(90deg, #2B2621 0 8px, transparent 8px 20px, #E0A83E 20px 24px, transparent 24px 36px);
}

/* Bengali — Jamdani weave, fine white lattice on teal */
.swatch-bengali {
  background-color: #17635A;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.55) 0 2px, transparent 2px 12px), repeating-linear-gradient(-45deg, rgba(255,255,255,.3) 0 2px, transparent 2px 12px);
}

/* Gujarati (Memon/Bohra) — Bandhani tie-dye dot grid on maroon */
.swatch-gujarati {
  background-color: #6B1E3C;
  background-image: radial-gradient(#F2C744 3px, transparent 3.5px), radial-gradient(#F2C744 3px, transparent 3.5px), radial-gradient(#E8DCC5 1.5px, transparent 2px);
  background-size: 26px 26px, 26px 26px, 13px 13px;
  background-position: 0 0, 13px 13px, 6.5px 6.5px;
}

/* ---------- Mosaic border — a woven strip carrying every community's
   colour into the site's chrome: Ajrak indigo/maroon, Bandhani gold,
   Phulkari saffron/rose, Chikankari cream, Balochi teal, Sheedi warm band ---------- */
.mosaic-border {
  height: 8px;
  width: 100%;
  background-image: repeating-linear-gradient(
    90deg,
    #1F3A5F 0 22px,
    #8C2F39 22px 44px,
    #E0A83E 44px 66px,
    #2E7D6B 66px 88px,
    #D9762B 88px 110px,
    #6B1E3C 110px 132px,
    #B15A3E 132px 154px,
    #17635A 154px 176px
  );
}

.culture-dots { display: flex; gap: 8px; align-items: center; margin: 18px 0 30px; }
.culture-dots span {
  width: 14px; height: 14px; border-radius: 50%; display: inline-block;
  border: 1px solid rgba(0,0,0,.08);
}
.culture-dots .d1 { background: #1F3A5F; }
.culture-dots .d2 { background: #8C2F39; }
.culture-dots .d3 { background: #E0A83E; }
.culture-dots .d4 { background: #2E7D6B; }
.culture-dots .d5 { background: #D9762B; }
.culture-dots .d6 { background: #6B1E3C; }
.culture-dots .d7 { background: #B15A3E; }
.culture-dots .d8 { background: #17635A; }
.culture-dots .label { font-size: .82rem; color: var(--color-ink-soft); margin-left: 6px; }

/* =========================================================
   Editorial refresh: curved dividers, arch imagery, eyebrow
   tags and sparkle accents — inspired by gallery/marketplace
   reference layouts.
   ========================================================= */

/* Curved section dividers: an <svg> sits between two sections;
   its own background = the section above, its path fill = the
   section below, giving a soft arc instead of a hard seam. */
.curve-divider { display: block; width: 100%; height: 56px; }
@media (max-width: 620px) { .curve-divider { height: 34px; } }

.section-alt { background: var(--color-bg-alt); }

/* Eyebrow — a small italic serif tag above a heading, echoing
   the script "Projects / Reviews" labels in editorial layouts */
.eyebrow {
  display: block; font-family: var(--font-serif); font-style: italic;
  color: var(--color-accent); font-size: 1.3rem; margin-bottom: 6px;
}

/* Sparkle accent used sparingly beside a handful of headings */
.spark { color: var(--color-accent); font-size: .75em; vertical-align: 2px; margin: 0 6px; }

/* ---------- Hero, two-column with arched photo ---------- */
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-left: 35px; padding-right: 35px;}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-photo-wrap { position: relative; }
.hero-photo {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  border-radius: 260px 260px 20px 20px;
}
.hero-floating-card {
  position: absolute; left: -20px; bottom: 34px; max-width: 250px;
  background: #fff; border-radius: var(--radius); padding: 16px 18px;
  box-shadow: 0 14px 30px rgba(43,38,33,.14);
}
@media (max-width: 880px) { .hero-floating-card { left: 50%; transform: translateX(-50%); bottom: -24px; } }
.hero-floating-card .tag { font-size: .74rem; color: var(--color-accent); font-weight: 700; letter-spacing: .02em; margin-bottom: 4px; }
.hero-floating-card p { font-family: var(--font-serif); font-size: .95rem; margin: 0; color: var(--color-ink); }

/* ---------- Testimonial / reader-voice cards ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: 24px; }
.testimonial-card .who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.testimonial-card .avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--color-accent);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 700;
}
.testimonial-card .who-name { font-weight: 700; font-size: .92rem; }
.testimonial-card .who-origin { font-size: .78rem; color: var(--color-ink-soft); }
.testimonial-card p.quote { font-family: var(--font-serif); font-style: italic; color: var(--color-ink-soft); font-size: .98rem; line-height: 1.6; margin: 0; }

/* ---------- Numbered step boxes (Write Your Story intro) ---------- */
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0 auto 44px; max-width: 900px; }
@media (max-width: 720px) { .step-grid { grid-template-columns: 1fr; } }
.step-box { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: 22px; }
.step-number {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: var(--color-ink); color: var(--color-bg); font-family: var(--font-serif); font-weight: 700;
  border-radius: 4px; margin-bottom: 14px; font-size: .95rem;
}
.step-box h4 { font-size: 1.02rem; margin-bottom: 6px; }
.step-box p { font-size: .88rem; color: var(--color-ink-soft); margin: 0; }

/* ---------- Pill quick-filter tabs (Stories page) ---------- */
.pill-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.pill-tab {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--color-line);
  background: #fff; font-size: .85rem; cursor: pointer; color: var(--color-ink-soft);
}
.pill-tab.active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.pill-tab:hover:not(.active) { border-color: var(--color-accent); color: var(--color-accent); }

/* ---------- Karachi skyline artwork ---------- */
.skyline-band { width: 100%; overflow: hidden; line-height: 0; }
.skyline-band svg { display: block; width: 100%; height: auto; }
.skyline-caption {
  text-align: center; font-family: var(--font-serif); font-style: italic;
  color: var(--color-ink-soft); font-size: .85rem; line-height: 1.5; padding: 10px 0 0;
}

/* Small dome mark beside the wordmark in the header */
.brand-mark { display: flex; align-items: center; gap: 10px; }
.brand-mark svg { flex-shrink: 0; }

/* ---------- Interactivity: clickable skyline landmarks ---------- */
.landmark { cursor: pointer; }
.landmark:hover, .landmark:focus-visible { color: var(--color-accent); outline: none; }
.skyline-hint {
  text-align: center; font-size: .78rem; color: var(--color-ink-soft);
  padding: 2px 0 12px; line-height: 1.4;
}

/* ---------- Hover-lift on cards ---------- */
.story-card, .testimonial-card, .step-box, .culture-card { transition: transform .2s ease, box-shadow .2s ease; }
.story-card:hover, .testimonial-card:hover, .step-box:hover, .culture-card:hover {
  transform: translateY(-5px); box-shadow: 0 14px 28px rgba(43,38,33,.10);
}
.story-card .thumb img { transition: transform .35s ease; }
.story-card:hover .thumb img { transform: scale(1.05); }
.culture-swatch { transition: transform .35s ease; }
.culture-card:hover .culture-swatch { transform: scale(1.05); }
.person-card img { transition: transform .25s ease; }
.person-card:hover img { transform: scale(1.06); }

/* ---------- Scroll-reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ---------- Story reactions ---------- */
.reaction-bar { max-width: 700px; margin: 30px auto 0; padding-bottom: 25px; }
.like-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 22px;
  border-radius: 999px; border: 1px solid var(--color-line); background: #fff;
  cursor: pointer; font-size: .92rem; color: var(--color-ink-soft); transition: all .15s ease;
}
.like-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.like-btn.liked { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.like-btn .heart { font-size: 1.05rem; }

/* ---------- Logo ---------- */
.brand-logo { height: 70px; width: auto; border-radius: 10px; display: block; }
.footer-logo { height: 64px; width: auto; border-radius: 10px; display: block; }
.header-right { display: flex; align-items: center; gap: 10px; }

@media (max-width: 820px) {
  .brand-logo { height: 44px; }
}

/* ---------- Accessibility: text-size toggle ---------- */
.text-size-toggle {
  background: none; border: 1px solid var(--color-line); border-radius: 6px;
  padding: 6px 11px; font-family: var(--font-serif); font-weight: 700;
  font-size: .95rem; color: var(--color-ink); cursor: pointer;
}
.text-size-toggle:hover { border-color: var(--color-accent); color: var(--color-accent); }

html.text-large body { font-size: 19px; }
html.text-xlarge body { font-size: 21.5px; }
html.text-large .story-body, html.text-xlarge .story-body { font-size: 1.25em; }
html.text-large .prose, html.text-xlarge .prose { font-size: 1.15em; }

/* ---------- Read-aloud control (story pages) ---------- */
.listen-bar { max-width: 700px; margin: 0 auto 28px; }
.listen-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 22px;
  border-radius: 999px; border: 1px solid var(--color-line); background: #fff;
  cursor: pointer; font-size: .92rem; color: var(--color-ink-soft); transition: all .15s ease;
}
.listen-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.listen-btn.speaking { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }

/* ---------- Mission strip (homepage) ---------- */
.mission-strip { text-align: center; max-width: 760px; margin: 0 auto; }
.mission-strip p { color: var(--color-ink-soft); font-size: 1.02rem; line-height: 1.7; }


/* =========================================================
   Phase 2 additions: touch targets, skip link, utilities
   ========================================================= */
.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; z-index: 100; background: var(--color-ink); color: var(--color-bg); padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: var(--color-bg); }

.btn { text-align: center; }
@media (pointer: coarse), (max-width: 620px) {
  .btn, .btn-sm { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .text-size-toggle { min-width: 44px; min-height: 44px; }
  .pill-tab, .hood-chip { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-links a, .footer-social a { display: inline-block; padding: 10px 0; }
  .filters-bar select { min-height: 44px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .read-link, .section-head a, .story-card h3 a { display: inline-block; padding: 10px 0; }
  .story-card h3 a { padding: 4px 0; }
}
@media (max-width: 620px) {
  .filters-bar select { flex: 1 1 calc(50% - 7px); }
  .filters-bar select:last-of-type { flex-basis: 100%; }
}

/* Production additions: archive gallery, request forms and spam honeypots */
.hp-field{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.story-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:28px auto;max-width:980px}
.story-gallery img{width:100%;height:220px;object-fit:cover;border-radius:10px;border:1px solid var(--color-border, #ddd)}
.comment{padding:16px 0;border-bottom:1px solid var(--color-border, #ddd)}
.comment-head{display:flex;justify-content:space-between;gap:12px;align-items:center;color:var(--color-ink-soft);font-size:.9rem}
.comment p{margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.request-form [role=status]{min-height:1.4em;color:var(--color-accent)}
.culture-card[href]{display:block;color:inherit;text-decoration:none}
.culture-card[href]:focus-visible{outline:3px solid var(--color-accent);outline-offset:4px}
.swatch-journey{background-color:#8C2F39;background-image:repeating-linear-gradient(45deg,#1F3A5F 0 5px,transparent 5px 14px),repeating-linear-gradient(-45deg,#E0A83E 0 3px,transparent 3px 14px)}
.swatch-family{background-color:#E8DCC5;background-image:repeating-linear-gradient(0deg,rgba(140,47,57,.28) 0 1px,transparent 1px 12px),repeating-linear-gradient(90deg,rgba(31,58,95,.25) 0 1px,transparent 1px 12px)}
.swatch-traditions{background-color:#17635A;background-image:radial-gradient(#E0A83E 3px,transparent 4px),radial-gradient(rgba(255,255,255,.55) 1px,transparent 2px);background-size:22px 22px,11px 11px;background-position:0 0,5px 5px}
.swatch-city{background-color:#A9752F;background-image:repeating-linear-gradient(0deg,rgba(43,38,33,.45) 0 2px,transparent 2px 16px),repeating-linear-gradient(90deg,rgba(43,38,33,.35) 0 2px,transparent 2px 16px)}
