/* Tree Branch Fruits — warm, light, calm */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Lato:wght@400;700&display=swap');

/* Palette: warm ivory, cream marble, walnut, aged brass */
:root {
  --cream: #F3EEE7;        /* warm ivory page */
  --paper: #FAF7F2;        /* light ivory cards */
  --sand: #E6DFD5;         /* cream marble */
  --sand-dark: #D3C8B8;
  --ink: #3A2A21;          /* deep walnut text */
  --muted: #7C6C5F;
  --olive: #5A3A2B;        /* walnut (main accent) */
  --olive-dark: #3E271D;
  --olive-soft: #ECE4D8;
  --fruit: #8C6F43;        /* aged brass, darker */
  --fruit-soft: #F1E8D8;
  --gold: #A88A5A;         /* aged brass */
  --tile: #7A3B2A;         /* hexagon tile brown */
  --radius: 10px;
  --shadow: 0 1px 2px rgba(58,42,33,.05), 0 10px 30px rgba(58,42,33,.08);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Lato', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --brass: linear-gradient(100deg, #7E6239 0%, #B39462 35%, #8C6F43 60%, #A88A5A 100%);
  --marble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .016' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .40 0 0 0 0 .35 0 0 0 -2 1.15'/%3E%3C/filter%3E%3Crect width='900' height='900' filter='url(%23m)' opacity='.09'/%3E%3C/svg%3E");
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='36' viewBox='0 0 21 36'%3E%3Crect width='21' height='36' fill='%23CFC3B3'/%3E%3Cpath d='M10.5 .8 L18.4 5.1 V13.9 L10.5 18.2 L2.6 13.9 V5.1Z' fill='%237A3B2A'/%3E%3Cpath d='M0 18.8 L7.9 23.1 V31.9 L0 36.2 L-7.9 31.9 V23.1Z' fill='%23FAF7F2'/%3E%3Cpath d='M21 18.8 L28.9 23.1 V31.9 L21 36.2 L13.1 31.9 V23.1Z' fill='%23FAF7F2'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--olive-dark); text-decoration-color: rgba(69,92,54,.35); text-underline-offset: 3px; }
a:hover { color: var(--fruit); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.4rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,241,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav button.nav-link {
  font: 600 .95rem var(--sans); color: var(--ink); text-decoration: none;
  padding: 8px 14px; border-radius: 999px; background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav a:hover, .nav button.nav-link:hover { background: var(--sand); color: var(--ink); }
.nav a.active, .nav button.nav-link.active { background: var(--olive-soft); color: var(--olive-dark); }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
  background: var(--paper); border: 1px solid var(--sand); border-radius: 14px; box-shadow: var(--shadow);
  padding: 8px; display: none;
}
.dropdown.open .dropdown-menu { display: block; }
@media (hover: hover) { .dropdown:hover .dropdown-menu { display: block; } }
.dropdown-menu::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.dropdown-menu a { display: flex; border-radius: 10px; padding: 8px 12px; font-weight: 600; }
.dropdown-menu a.all { border-bottom: 1px solid var(--sand); border-radius: 10px 10px 0 0; margin-bottom: 4px; }
.chev { width: 12px; height: 12px; }
.lang-switch { display: inline-flex; background: var(--sand); border-radius: 999px; padding: 3px; margin-left: 8px; }
.lang-switch button { border: 0; background: none; font: 700 .8rem var(--sans); padding: 5px 10px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.lang-switch button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--sand); padding: 12px 16px 20px; gap: 2px;
    display: none; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a, .nav button.nav-link { padding: 12px 14px; justify-content: flex-start; width: 100%; }
  .dropdown-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 14px; background: none; min-width: 0; }
  .dropdown-menu a.all { border: 0; }
  .lang-switch { align-self: flex-start; margin: 10px 0 0 6px; }
  .brand-name { font-size: 1.3rem; }
}

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; }
.hero h1 { margin-bottom: .3em; }
.hero .verse { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--muted); max-width: 30ch; margin: 0 0 1.6em; line-height: 1.45; }
.hero .verse cite { display: block; font-style: normal; font-family: var(--sans); font-size: .85rem; margin-top: .5em; color: var(--olive); font-weight: 700; letter-spacing: .04em; }
.hero-art svg { width: 100%; height: auto; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  font: 700 .95rem var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: .15s;
}
.btn-primary { background: var(--olive); color: #fff; }
.btn-primary:hover { background: var(--olive-dark); color: #fff; }
.btn-ghost { border-color: var(--sand-dark); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--olive); color: var(--olive-dark); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 800px) {
  .hero { padding-top: 28px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 380px; margin: 0 auto; }
}

/* ---------- Sections & cards ---------- */
.section { padding: 48px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s;
  border: 1px solid rgba(228,214,193,.5);
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(59,52,44,.06), 0 14px 32px rgba(59,52,44,.1); color: var(--ink); }
.card-img { aspect-ratio: 16/9; background: var(--sand); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img svg { width: 100%; height: 100%; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.45rem; }
.card-meta { font-size: .82rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.card-excerpt { color: var(--muted); font-size: .95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--olive-soft); color: var(--olive-dark); font-size: .75rem; font-weight: 700; text-decoration: none; }
.pill.fruit { background: var(--fruit-soft); color: var(--fruit); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.tile {
  background: var(--paper); border: 1px solid var(--sand); border-radius: 16px; padding: 18px 18px 16px;
  text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; transition: .15s;
}
.tile:hover { border-color: var(--olive); color: var(--ink); transform: translateY(-2px); }
.tile .tile-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--olive-soft); display: grid; place-items: center; }
.tile .tile-icon svg { width: 22px; height: 22px; }
.tile strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.tile span { font-size: .82rem; color: var(--muted); }

.band { background: var(--sand); border-radius: 28px; padding: 40px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.band svg { width: 90px; height: 90px; }
@media (max-width: 700px) { .band { grid-template-columns: 1fr; padding: 28px; text-align: left; } }

/* ---------- Page header ---------- */
.page-head { padding: 48px 0 20px; }
.page-head p { color: var(--muted); max-width: 60ch; margin: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 8px; }
.chip {
  padding: 8px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--sand-dark);
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; display: inline-flex; gap: 8px; align-items: center;
}
.chip:hover { border-color: var(--olive); color: var(--olive-dark); }
.chip.on { background: var(--olive); border-color: var(--olive); color: #fff; }
.chip .count { font-size: .75rem; opacity: .7; }

.empty {
  text-align: center; padding: 56px 24px; background: var(--paper); border: 1.5px dashed var(--sand-dark); border-radius: var(--radius); color: var(--muted);
}
.empty svg { width: 80px; height: 80px; margin: 0 auto 12px; }
.empty h3 { color: var(--ink); }

/* ---------- Post ---------- */
.post-head { padding: 48px 0 12px; text-align: center; }
.post-head h1 { margin: 12px 0 14px; }
.post-head .card-meta { justify-content: center; font-size: .9rem; }
.post-cover { max-width: 960px; margin: 24px auto 8px; padding: 0 24px; }
.post-cover img { border-radius: var(--radius); width: 100%; max-height: 480px; object-fit: cover; }
.refs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0 0; }
.ref {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--sand-dark); font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--olive-dark);
}
.ref svg { width: 14px; height: 14px; }
.ref:hover { border-color: var(--olive); }
.prose { font-size: 1.08rem; padding: 24px 0 8px; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { margin: 1.6em 0 .6em; font-size: 1.9rem; }
.prose h3 { margin: 1.4em 0 .5em; }
.prose ol, .prose ul { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin: .2em 0; }
.prose blockquote {
  margin: 1.5em 0; padding: 18px 24px; background: var(--paper); border-left: 4px solid var(--gold);
  border-radius: 0 14px 14px 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; font-style: italic;
}
.prose blockquote p:last-child { margin: 0; }
.prose a.bible { text-decoration: underline dotted; text-decoration-color: var(--olive); white-space: nowrap; }
.divider { display: flex; justify-content: center; margin: 32px 0; }
.divider svg { width: 120px; height: 24px; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 24px; }
.post-tags a { padding: 5px 12px; border-radius: 999px; background: var(--sand); color: var(--ink); text-decoration: none; font-size: .85rem; font-weight: 600; }
.post-tags a:hover { background: var(--olive-soft); color: var(--olive-dark); }
.media { margin: 32px 0; display: grid; gap: 20px; }
.media h3 { margin: 0; font-size: 1.5rem; }
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.spotify iframe { width: 100%; border: 0; border-radius: 14px; }
.media-card {
  display: flex; gap: 16px; align-items: center; background: var(--paper); border: 1px solid var(--sand); border-radius: var(--radius); padding: 14px; text-decoration: none; color: var(--ink);
}
.media-card img { width: 160px; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; flex: none; }
.media-card small { color: var(--muted); display: block; }
.notice {
  background: var(--fruit-soft); color: #7a3a26; border-radius: 14px; padding: 12px 18px; font-size: .92rem; margin: 16px 0;
}
.notice a { color: #7a3a26; font-weight: 700; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin: 32px 0 0; padding-top: 24px; border-top: 1px solid var(--sand); flex-wrap: wrap; }

/* ---------- Search ---------- */
.search-box { display: flex; gap: 10px; margin: 20px 0 8px; }
.search-box input {
  flex: 1; font: 1.05rem var(--sans); padding: 14px 20px; border-radius: 999px; border: 1.5px solid var(--sand-dark); background: var(--paper); color: var(--ink);
}
.search-box input:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 4px var(--olive-soft); }
.result-count { color: var(--muted); margin: 16px 0; font-size: .95rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
mark { background: #F5E6B8; color: inherit; padding: 0 2px; border-radius: 3px; }

/* ---------- About ---------- */
.about-art { max-width: 280px; margin: 0 auto 8px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 64px; background: var(--sand); padding: 48px 0 32px; font-size: .9rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
.footer-grid .brand-name { color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--fruit); }
.credits { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--sand-dark); font-size: .75rem; line-height: 1.6; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }


/* ================= Walnut & brass theme ================= */
body { background: var(--cream) var(--marble); background-size: 1800px 1800px; font-size: 17px; }
h1, h2, h3 { font-weight: 500; letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.eyebrow { font-family: var(--serif); font-weight: 600; letter-spacing: .32em; font-size: .8rem; color: var(--fruit); }
a { color: var(--olive); text-decoration-color: rgba(168,138,90,.6); }
a:hover { color: var(--fruit); }

/* Header */
.site-header { background: rgba(243,238,231,.94); border-bottom: 1px solid var(--sand-dark); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--brass); opacity: .55; }
.brand-name { font-size: 1.15rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }
.nav a, .nav button.nav-link { font-family: var(--sans); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--ink); }
.nav a:hover, .nav button.nav-link:hover { background: var(--olive-soft); }
.nav a.active, .nav button.nav-link.active { background: var(--olive); color: var(--paper); }
.dropdown-menu a { text-transform: none; letter-spacing: .02em; font-size: .92rem; font-weight: 400; font-family: var(--sans); }
.lang-switch { background: var(--sand); }
@media (max-width: 900px) { .brand-name { font-size: .95rem; letter-spacing: .2em; } }

/* Hero */
.hero { padding: 64px 0 48px; }
.hero h1 { text-transform: uppercase; letter-spacing: .14em; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.15; }
.hero .verse { color: var(--muted); }
.hero .verse cite { color: var(--fruit); font-family: var(--serif); font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; }

/* Buttons: walnut and brass */
.btn { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; padding: 14px 26px; }
.btn-primary { background: var(--olive); color: var(--paper); }
.btn-primary:hover { background: var(--olive-dark); color: var(--paper); }
.btn-ghost { background: transparent; border-color: var(--gold); color: var(--olive); }
.btn-ghost:hover { background: var(--paper); border-color: var(--fruit); color: var(--olive-dark); }

/* Cards with arched tops, like the window */
.card { border-radius: 4px; border: 1px solid var(--sand-dark); box-shadow: none; background: var(--paper); }
a.card:hover { box-shadow: var(--shadow); }
.card-img { aspect-ratio: 4/3; margin: 12px 12px 0; border-radius: 999px 999px 0 0; }
.card-body h3 { font-size: 1.55rem; }
.pill { background: transparent; border: 1px solid var(--gold); color: var(--fruit); letter-spacing: .12em; text-transform: uppercase; font-size: .66rem; padding: 3px 10px; }
.pill.fruit { background: var(--olive); border-color: var(--olive); color: var(--paper); }

/* Category tiles */
.tile { border-radius: 4px; border-color: var(--sand-dark); background: var(--paper); }
.tile:hover { border-color: var(--gold); }
.tile .tile-icon { border-radius: 50%; background: var(--olive-soft); border: 1px solid var(--sand-dark); }
.tile strong { font-weight: 500; font-size: 1.3rem; }

/* Page headers and chips */
.page-head h1 { text-transform: uppercase; letter-spacing: .1em; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.chip { background: transparent; border-color: var(--sand-dark); font-weight: 400; }
.chip:hover { border-color: var(--gold); color: var(--olive); }
.chip.on { background: var(--olive); border-color: var(--olive); color: var(--paper); }
.empty { border-radius: 4px; border-color: var(--sand-dark); background: var(--paper); }

/* Post */
.post-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.post-cover img { border-radius: 999px 999px 4px 4px; max-height: 520px; }
.ref { background: transparent; border-color: var(--gold); color: var(--olive); font-weight: 700; }
.ref:hover { background: var(--paper); border-color: var(--fruit); }
.prose { font-size: 1.1rem; }
.prose h2 { font-weight: 500; }
.prose blockquote { background: var(--paper); border-left: 0; border-radius: 4px; position: relative; padding: 24px 28px 24px 34px; }
.prose blockquote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brass); border-radius: 4px 0 0 4px; }
.prose a.bible { text-decoration-color: var(--gold); }
.post-tags a { background: transparent; border: 1px solid var(--sand-dark); font-weight: 400; }
.post-tags a:hover { border-color: var(--gold); background: var(--paper); color: var(--olive); }
.notice { background: var(--fruit-soft); color: var(--olive-dark); border: 1px solid #E3D3B5; border-radius: 4px; }
.notice a { color: var(--olive-dark); }
.media-card, .video { border-radius: 6px; }
mark { background: #EADBB8; }

/* Search */
.search-box input { border-color: var(--sand-dark); }
.search-box input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(168,138,90,.18); }

/* About: arched illustration */
.about-art { max-width: 300px; }

/* Footer: walnut with a hexagon tile border */
.site-footer { position: relative; margin-top: 80px; background: var(--olive-dark); color: #CBBBA8; padding-top: 80px; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 36px; background: var(--hex); background-size: 21px 36px; }
.site-footer .brand-name, .footer-grid .brand-name { color: var(--paper); }
.footer-links a { color: var(--paper); font-weight: 400; letter-spacing: .14em; text-transform: uppercase; font-size: .74rem; }
.footer-links a:hover { color: #D6BC8A; }
.site-footer a { color: #E2CFA6; }
.credits { border-top-color: rgba(214,188,138,.25); color: #A8968A; }
.site-footer .brand svg path[stroke] { stroke: #D6BC8A; }

/* ================= Phones & tablets first ================= */
.tabbar, .lang-phone { display: none; }
.menu-toggle { display: none !important; }
.share-btn {
  margin: 16px auto 0; display: inline-flex; gap: 8px; align-items: center; background: none; border: 1px solid var(--gold);
  color: var(--olive); border-radius: 999px; padding: 9px 18px; font: 700 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; min-height: 40px;
}
.share-btn svg { width: 16px; height: 16px; }
.share-btn:hover { background: var(--paper); border-color: var(--fruit); }

/* Tablets (portrait and small landscape): name on top, menu centred underneath */
@media (min-width: 720px) and (max-width: 1023px) {
  .header-inner { flex-wrap: wrap; height: auto; justify-content: center; padding-top: 14px; padding-bottom: 8px; gap: 6px; }
  .brand { flex-basis: 100%; justify-content: center; margin: 0; }
  .brand-name { font-size: 1.05rem; letter-spacing: .26em; }
  .nav { display: flex !important; position: static; flex-direction: row; align-items: center; justify-content: center; background: none; box-shadow: none; border: 0; padding: 0; width: auto; gap: 2px; }
  .nav a, .nav button.nav-link { width: auto; padding: 10px 12px; }
  .dropdown-menu { position: absolute; display: none; background: var(--paper); border: 1px solid var(--sand); box-shadow: var(--shadow); padding: 8px; min-width: 250px; border-radius: 14px; }
  .dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu a.all { border-bottom: 1px solid var(--sand); }
  .lang-switch { margin: 0 0 0 8px; align-self: center; }
  .hero { padding: 40px 0 32px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 24px; }
  .hero-art { order: 0; max-width: none; margin: 0; }
  .hero h1 { font-size: 2.4rem; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .prose { font-size: 1.15rem; }
}

/* Phones: compact header, menu bar at the bottom within thumb reach */
@media (max-width: 719px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); font-size: 17px; }
  .nav { display: none !important; }
  .lang-phone { display: inline-flex; margin: 0; align-self: center; }
  .header-inner { height: 60px; gap: 12px; }
  .brand svg { width: 32px; height: 32px; }
  .brand-name { font-size: .82rem; letter-spacing: .18em; }
  .wrap, .narrow { padding: 0 20px; }

  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(250,247,242,.97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--sand-dark); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--brass); opacity: .5; }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px;
    text-decoration: none; color: var(--muted); font: 700 .6rem var(--sans); letter-spacing: .08em; text-transform: uppercase; border-radius: 12px;
  }
  .tabbar svg { width: 24px; height: 24px; }
  .tabbar a.active { color: var(--olive); background: var(--olive-soft); }
  .tabbar a.active svg { stroke-width: 2.1; }

  .hero { padding: 16px 0 20px; }
  .hero-art { max-width: 290px; }
  .hero h1 { font-size: 2rem; letter-spacing: .12em; }
  .hero .verse { font-size: 1.2rem; }
  .btn-row .btn { flex: 1 1 100%; justify-content: center; min-height: 50px; }
  .section { padding: 28px 0; }
  .section-head { margin-bottom: 16px; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .card-img { aspect-ratio: 16/10; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile { padding: 14px; min-height: 120px; }
  .tile strong { font-size: 1.15rem; }

  .page-head { padding: 28px 0 8px; }
  .chips, .refs { flex-wrap: nowrap; overflow-x: auto; margin-left: -20px; margin-right: -20px; padding: 0 20px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar, .refs::-webkit-scrollbar { display: none; }
  .chip, .ref { flex: none; min-height: 42px; }
  .refs { justify-content: flex-start; }

  .post-head { padding: 24px 20px 4px; }
  .post-head h1 { font-size: 2rem; }
  .prose { font-size: 1.12rem; line-height: 1.78; padding-top: 16px; }
  .prose h2 { font-size: 1.65rem; }
  .prose blockquote { font-size: 1.2rem; padding: 18px 18px 18px 24px; margin-left: -4px; margin-right: -4px; }
  .post-tags a { padding: 8px 14px; }
  .media-card img { width: 110px; }

  .search-box { flex-direction: column; }
  .search-box .btn { justify-content: center; min-height: 50px; }

  .site-footer { margin-top: 48px; padding: 64px 0 20px; }
  .footer-links { display: none; }
  .footer-grid { gap: 8px; }
}
