@import "tailwindcss";

/* ============================================================
   New Light Hai Salon — editorial design system
   Warm ivory paper, ink typography, hairline structure.
   ============================================================ */

:root {
  --paper: #f6f2ea;
  --paper-soft: #fbf8f2;
  --paper-deep: #efe9dd;
  --ink: #24201b;
  --ink-soft: #5d5445;
  --ink-faint: #8b8172;
  --accent: #7a5138;
  --accent-deep: #61402b;
  --line: rgba(36, 32, 27, 0.14);
  --line-soft: rgba(36, 32, 27, 0.08);
  --footer: #221e19;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-capsule: 0 1px 2px rgba(36, 32, 27, 0.05), 0 12px 32px rgba(36, 32, 27, 0.1);
  --shadow-lift: 0 24px 60px -24px rgba(36, 32, 27, 0.25);
  --font-display: var(--fraunces), "Georgia", serif;
  --font-body: var(--inter), "Helvetica Neue", Arial, sans-serif;
  --header-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--ink); color: var(--paper-soft); }

img { max-width: 100%; height: auto; }

a { color: var(--accent-deep); text-decoration-color: rgba(122, 81, 56, 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 420;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper-soft);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus-visible { top: 14px; color: var(--paper-soft); }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4.5vw, 44px);
}

.container-wide { max-width: 1360px; }
.container-narrow { max-width: 860px; }

.section { padding-block: clamp(64px, 9vw, 118px); }
.section + .section { padding-top: 0; }
.section-lined { border-top: 1px solid var(--line-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
.eyebrow--bare::before { display: none; }

.display-1 {
  font-size: clamp(2.7rem, 6.4vw, 4.9rem);
  font-weight: 380;
  letter-spacing: -0.02em;
}
.display-2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 400; }
.display-3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.display em, .display-1 em, .display-2 em, .display-3 em {
  font-style: italic;
  font-weight: 340;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 58ch;
}

.text-soft { color: var(--ink-soft); }
.text-faint { color: var(--ink-faint); }
.small { font-size: 0.85rem; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head > div:first-child { max-width: 620px; display: grid; gap: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 550;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-solid { background: var(--ink); color: var(--paper-soft); }
.btn-solid:hover { background: var(--accent-deep); color: var(--paper-soft); }
.btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); background: rgba(36, 32, 27, 0.04); }
.btn-ghost { color: var(--ink); padding-inline: 10px; }
.btn-sm { padding: 11px 20px; font-size: 0.85rem; }
.btn svg { width: 16px; height: 16px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 550;
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color 0.25s, gap 0.25s var(--ease-out);
}
.text-link:hover { border-color: var(--ink); gap: 12px; }
.text-link svg { width: 15px; height: 15px; }

/* ---------- Capsule navigation ---------- */
.site-header {
  position: fixed;
  inset: 14px 0 auto 0;
  z-index: 60;
  padding-inline: clamp(12px, 3vw, 28px);
  pointer-events: none;
}
.capsule {
  pointer-events: auto;
  max-width: 1120px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 10px 9px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--paper-soft) 86%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-capsule);
  transition: padding 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.35s;
}
.site-header.is-scrolled .capsule {
  padding-block: 7px;
  background: color-mix(in srgb, var(--paper-soft) 94%, transparent);
  box-shadow: 0 1px 2px rgba(36, 32, 27, 0.06), 0 16px 40px -12px rgba(36, 32, 27, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand-mark {
  width: 37px;
  height: 37px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper-soft);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}
.brand-text { display: grid; line-height: 1.15; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 480;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(36, 32, 27, 0.05); }
.nav-links a[aria-current="page"] { color: var(--ink); background: rgba(36, 32, 27, 0.07); }

.nav-cta { flex: none; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  color: var(--ink);
  cursor: pointer;
  place-items: center;
  flex: none;
}
.nav-toggle svg { width: 19px; height: 19px; display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-panel {
  pointer-events: auto;
  max-width: 1120px;
  margin: 8px auto 0;
  border-radius: 24px;
  border: 1px solid var(--line-soft);
  background: var(--paper-soft);
  box-shadow: var(--shadow-lift);
  padding: 14px;
  display: none;
}
.mobile-panel.is-open { display: block; animation: panel-in 0.3s var(--ease-out); }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-panel ul { list-style: none; margin: 0; padding: 0; display: grid; }
.mobile-panel a.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 12px;
  border-radius: 14px;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.mobile-panel a.nav-item:hover, .mobile-panel a.nav-item:focus-visible { background: var(--paper-deep); }
.mobile-panel a.nav-item svg { width: 16px; height: 16px; color: var(--ink-faint); }
.mobile-panel .panel-foot { padding: 12px 12px 4px; display: grid; gap: 8px; }

@media (max-width: 900px) {
  .nav-links, .capsule .nav-cta { display: none; }
  .nav-toggle { display: grid; }
  .capsule { padding: 7px 8px 7px 16px; }
}

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 84px)); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding-top: 6px;
  border-top: 1px solid var(--line-soft);
  width: 100%;
  margin-top: 8px;
  padding-top: 20px;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.hero-meta svg { width: 15px; height: 15px; color: var(--accent); }

.hero-figure { position: relative; }
.hero-figure .frame-arch {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 400px 400px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--paper-deep);
}
.hero-figure .frame-arch img { object-fit: cover; }
.hero-figure figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  background: color-mix(in srgb, var(--paper-soft) 90%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-kicker {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 420px; }
}

/* ---------- Pillars / intro ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-soft);
}
.pillar {
  padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 36px);
  border-left: 1px solid var(--line-soft);
  display: grid;
  gap: 12px;
  align-content: start;
}
.pillar:first-child { border-left: 0; padding-left: 0; }
.pillar svg { width: 22px; height: 22px; color: var(--accent); }
.pillar h3 { font-size: 1.35rem; }
.pillar p { font-size: 0.93rem; color: var(--ink-soft); }
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-left: 0; border-top: 1px solid var(--line-soft); padding-left: 0; }
  .pillar:first-child { border-top: 0; }
}

/* ---------- Service rows (editorial list, not cards) ---------- */
.service-rows { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 90px 1.1fr 1.4fr auto;
  gap: 24px;
  align-items: baseline;
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.3s;
}
.service-row .idx {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ink-faint);
}
.service-row h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); transition: transform 0.35s var(--ease-out); }
.service-row:hover h3 { transform: translateX(6px); }
.service-row p { font-size: 0.94rem; color: var(--ink-soft); max-width: 52ch; }
.service-row .tag {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
@media (max-width: 760px) {
  .service-row { grid-template-columns: 44px 1fr; gap: 8px 18px; }
  .service-row p, .service-row .tag { grid-column: 2; }
}

/* ---------- Split feature (experience) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
}
.split.reverse > .split-media { order: 2; }
.split-media { position: relative; }
.split-media .frame-soft {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--paper-deep);
}
.split-copy { display: grid; gap: 20px; justify-items: start; }
.steps { display: grid; gap: 0; width: 100%; border-top: 1px solid var(--line-soft); }
.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.step .n {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--accent);
}
.step h4 { font-family: var(--font-body); font-size: 0.98rem; font-weight: 600; letter-spacing: 0; margin-bottom: 4px; }
.step p { font-size: 0.9rem; color: var(--ink-soft); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > .split-media { order: 0; }
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.gallery-item { position: relative; }
.gallery-item .g-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: var(--paper-deep);
}
.gallery-item img {
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.035); }
.gallery-item figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  font-size: 0.8rem;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.g-a { grid-column: span 7; aspect-ratio: 16 / 11; }
.g-b { grid-column: span 5; aspect-ratio: 4 / 4.55; }
.g-c { grid-column: span 4; aspect-ratio: 3 / 3.8; }
.g-d { grid-column: span 4; aspect-ratio: 3 / 3.8; }
.g-e { grid-column: span 4; aspect-ratio: 3 / 3.8; }
.g-f { grid-column: span 5; aspect-ratio: 4 / 4.55; }
.g-g { grid-column: span 7; aspect-ratio: 16 / 11; }
@media (max-width: 760px) {
  .g-a, .g-b, .g-c, .g-d, .g-e, .g-f, .g-g { grid-column: span 12; aspect-ratio: 4 / 3; }
}

/* ---------- Post cards ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 3vw, 36px);
}
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr; max-width: 560px; } }

.post-card { display: grid; gap: 16px; align-content: start; }
.post-card .pc-frame {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--paper-deep);
}
.post-card .pc-frame img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.9s var(--ease-out);
}
.post-card:hover img { transform: scale(1.04); }
.pc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.pc-meta a { color: var(--accent); text-decoration: none; }
.pc-meta a:hover { text-decoration: underline; }
.post-card h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.18; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent-deep); }
.post-card p { font-size: 0.93rem; color: var(--ink-soft); }
.pc-more { display: inline-flex; align-items: center; gap: 7px; font-size: 0.85rem; font-weight: 550; color: var(--ink); text-decoration: none; }
.pc-more svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease-out); }
.post-card:hover .pc-more svg { transform: translate(3px, -3px); }

/* ---------- Visit / contact band ---------- */
.visit {
  border-top: 1px solid var(--line);
}
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
}
@media (max-width: 820px) { .visit-grid { grid-template-columns: 1fr; } }
.fact-list { display: grid; border-top: 1px solid var(--line-soft); margin-top: 10px; }
.fact {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.94rem;
}
.fact dt {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-faint);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.fact dt svg { width: 15px; height: 15px; color: var(--accent); }
.fact dd { margin: 0; color: var(--ink); }
.fact dd a { color: var(--ink); }
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.hours-table td { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.hours-table td:last-child { text-align: right; color: var(--ink-soft); }
.hours-table tr:last-child td { border-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.cta-band .cta-bg { position: absolute; inset: 0; }
.cta-band .cta-bg img { object-fit: cover; opacity: 0.28; }
.cta-band .cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(34, 30, 25, 0.82), rgba(34, 30, 25, 0.9));
}
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(56px, 8vw, 104px) clamp(24px, 5vw, 72px);
  display: grid;
  gap: 22px;
  justify-items: center;
}
.cta-inner h2 { color: var(--paper-soft); font-size: clamp(2rem, 4.4vw, 3.4rem); }
.cta-inner p { color: rgba(246, 242, 234, 0.78); max-width: 52ch; }
.cta-inner .btn-solid { background: var(--paper-soft); color: var(--ink); }
.cta-inner .btn-solid:hover { background: #fff; }
.cta-inner .btn-outline { border-color: rgba(246, 242, 234, 0.35); color: var(--paper-soft); }
.cta-inner .btn-outline:hover { border-color: var(--paper-soft); background: rgba(246, 242, 234, 0.08); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer);
  color: rgba(246, 242, 234, 0.82);
  margin-top: clamp(64px, 9vw, 118px);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(48px, 6vw, 80px);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand-mark { background: var(--paper-soft); color: var(--ink); }
.footer-brand .brand-name, .footer-brand .brand-sub { color: var(--paper-soft); }
.footer-brand p { margin-top: 18px; font-size: 0.9rem; color: rgba(246, 242, 234, 0.6); max-width: 30ch; }
.footer-col h4 {
  font-family: var(--font-body);
  color: var(--paper-soft);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.92rem; }
.footer-col a { color: rgba(246, 242, 234, 0.82); text-decoration: none; }
.footer-col a:hover { color: var(--paper-soft); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(246, 242, 234, 0.14);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(246, 242, 234, 0.5);
}
.footer-bottom a { color: rgba(246, 242, 234, 0.7); }
.footer-word {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 350;
  font-size: clamp(2.6rem, 9vw, 6.5rem);
  line-height: 1;
  color: rgba(246, 242, 234, 0.16);
  padding: 8px 0 30px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  user-select: none;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(44px, 7vw, 88px));
  padding-bottom: clamp(36px, 5vw, 64px);
  display: grid;
  gap: 18px;
}
.page-hero .lead { max-width: 62ch; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  color: var(--ink-faint);
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs svg { width: 13px; height: 13px; opacity: 0.6; }
.breadcrumbs [aria-current] { color: var(--ink); }
@media (max-width: 640px) {
  .breadcrumbs { flex-wrap: nowrap; overflow: hidden; }
  .breadcrumbs li { flex: none; }
  .breadcrumbs li:last-child { flex: 0 1 auto; min-width: 0; }
  .breadcrumbs li:last-child [aria-current] { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .breadcrumbs svg { flex: none; }
}

/* ---------- Article (prose) ---------- */
.article-hero { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 72px)); }
.article-hero .inner { display: grid; gap: 20px; max-width: 820px; }
.standfirst { font-size: clamp(1.08rem, 1.8vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.article-meta a { color: var(--accent); text-decoration: none; }
/* Featured image keeps its natural ratio: the full photograph is always
   visible at every viewport width — never cropped on mobile. */
.article-figure {
  --fig-max-h: 2400px;               /* no height cap on phones/tablets */
  margin: clamp(24px, 4vw, 44px) 0 0;
  max-width: 100%;
}
.article-figure img {
  display: block;
  /* Full width, but never taller than --fig-max-h: width = min(100%, maxH x ratio).
     --ar (width/height) is set on the figure by single.php. The photo is never cropped. */
  width: min(100%, calc(var(--fig-max-h) * var(--ar, 1.5)));
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: var(--paper-deep);
}
@media (min-width: 781px) {
  .article-figure { --fig-max-h: min(78vh, 720px); }
}

.article-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(44px, 6vw, 80px);
  align-items: start;
}
.article-layout.no-toc { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 940px) { .article-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------- Table of contents ---------- */
.article-aside { position: sticky; top: 108px; align-self: start; }
@media (max-width: 940px) { .article-aside { position: static; } }

.toc {
  border: 1px solid var(--line-soft);
  background: var(--paper-soft);
  border-radius: var(--radius-md);
  padding: 6px 8px 8px;
}
.toc summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  padding: 12px 12px;
  border-radius: calc(var(--radius-md) - 4px);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.toc-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.toc-count {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--ink-soft);
}
.toc-chevron { margin-left: auto; color: var(--ink-faint); transition: transform 0.2s ease; }
.toc:not([open]) .toc-chevron { transform: rotate(-90deg); }

.toc nav {
  max-height: calc(100vh - 230px);
  overflow-y: auto;
  padding: 2px 4px 6px 12px;
  scrollbar-width: thin;
}
@media (max-width: 940px) { .toc nav { max-height: 60vh; } }
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
  font-size: 0.86rem;
  line-height: 1.4;
}
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: 7px 10px 7px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.toc a:hover,
.toc a:focus-visible { color: var(--ink); background: var(--paper-deep); }
.toc a.is-active {
  color: var(--ink);
  font-weight: 600;
  border-left-color: var(--accent);
}

.prose { max-width: 68ch; font-size: clamp(1rem, 0.96rem + 0.18vw, 1.1rem); line-height: 1.75; color: var(--ink); overflow-wrap: break-word; }
.prose > * { max-width: 100%; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  line-height: 1.2;
  margin-top: 2em;
  padding-top: 0.6em;
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 110px;
}
.prose h2:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.prose h2 { scroll-margin-top: 110px; }
.prose h3 { font-size: 1.3rem; margin-top: 1.8em; scroll-margin-top: 110px; }
.prose p { color: #403a30; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 0.5em; color: #403a30; }
.prose li::marker { color: var(--accent); }
.prose a { font-weight: 500; }
.prose strong { font-weight: 600; }
.prose blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--ink);
}
/* Inline photos: shown compact on a soft mat, whole picture visible (never cropped);
   tap/click opens the full-size viewer (see main.js). */
.prose figure {
  margin: 2em 0;
  padding: clamp(10px, 2.4vw, 18px);
  background: var(--paper-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  display: grid;
  justify-items: center;
  gap: 12px;
}
.prose figure img,
.prose p > img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(56vh, 480px);
  object-fit: contain;
  border: 0;
  border-radius: var(--radius-md);
}
.prose figcaption { font-size: 0.84rem; line-height: 1.5; color: var(--ink-faint); margin: 0; text-align: center; letter-spacing: 0.02em; max-width: 52ch; }

.zoom-btn {
  position: relative;
  display: block;
  max-width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  line-height: 0;
  cursor: zoom-in;
  border-radius: var(--radius-md);
}
.zoom-btn::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(30, 27, 22, 0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.15s ease;
}
.zoom-btn:hover::after { transform: scale(1.08); }
.zoom-link { cursor: zoom-in; }
.zoom-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Image viewer (lightbox) ---------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 56px 12px 64px;
  background: rgba(20, 18, 14, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0s linear 0.18s;
}
.lb.is-open { opacity: 1; visibility: visible; transition: opacity 0.18s ease; }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: 12px; max-width: 100%; max-height: 100%; }
.lb-img {
  display: block;
  max-width: min(96vw, 1400px);
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: #2a2620;
}
.lb-cap { color: #e9e3d8; font-size: 0.9rem; line-height: 1.45; text-align: center; max-width: 60ch; margin: 0; }
.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.22); }
.lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { top: 10px; right: 10px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-count { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: #cfc8ba; font-size: 0.8rem; letter-spacing: 0.12em; }
.lb-single .lb-prev, .lb-single .lb-next, .lb-single .lb-count { display: none; }
@media (max-width: 640px) {
  .lb { padding: 56px 8px 72px; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; }
  .lb-prev { left: calc(50% - 110px); }
  .lb-next { right: calc(50% - 110px); }
  .lb-count { bottom: 22px; }
}
html.lb-lock, html.lb-lock body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .lb, .lb.is-open, .zoom-btn::after { transition: none; } }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 1.8em 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.prose th { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* ---------- Chips, badges, pagination ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  background: transparent;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper-soft); }
.chip .count { font-size: 0.72rem; opacity: 0.6; }

.pagination { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }
.pagination a, .pagination span.pg {
  min-width: 44px; height: 44px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 0.9rem; font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding-inline: 14px;
}
.pagination a:hover { border-color: var(--ink); }
.pagination [aria-current="page"] { background: var(--ink); color: var(--paper-soft); border-color: var(--ink); }
.pagination .disabled { opacity: 0.35; pointer-events: none; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--paper-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; color: var(--ink); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(122, 81, 56, 0.16);
}
.field .hint { font-size: 0.78rem; color: var(--ink-faint); }
.form-error {
  border: 1px solid rgba(156, 59, 43, 0.4);
  background: rgba(156, 59, 43, 0.07);
  color: #8d3623;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 0.9rem;
}
.form-success {
  text-align: center;
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: clamp(20px, 4vw, 40px) 0;
}
.form-success .ok {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--accent-deep);
  background: var(--paper);
}
.form-success .ok svg { width: 24px; height: 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Search ---------- */
.search-bar { display: flex; gap: 10px; max-width: 560px; }
.search-bar input {
  flex: 1;
  font: inherit;
  font-size: 0.95rem;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  color: var(--ink);
}
.search-bar input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(122, 81, 56, 0.16); }

.empty-state {
  text-align: center;
  padding: clamp(48px, 7vw, 88px) 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 14px;
  justify-items: center;
}
.empty-state h2, .empty-state h3 { font-size: 1.6rem; }

/* ---------- Admin ---------- */
.admin-shell { padding-top: calc(var(--header-h) + 32px); min-height: 70vh; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th { text-align: left; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; }
.status-published { background: rgba(63, 110, 72, 0.14); color: #365f3f; }
.status-draft { background: rgba(150, 118, 46, 0.16); color: #7c6117; }
.status-flag { background: rgba(156, 59, 43, 0.12); color: #8d3623; }
.admin-note { border: 1px solid rgba(150, 118, 46, 0.45); background: rgba(150, 118, 46, 0.09); border-radius: 14px; padding: 14px 18px; font-size: 0.88rem; color: #6c5514; }
.admin-note strong { color: #57430d; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Utility ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.stack-s { display: grid; gap: 12px; }
.stack-m { display: grid; gap: 20px; }
.center { text-align: center; }
.main-content { min-height: 60vh; }

/* ============================================================
   WordPress layer: local fonts, WP classes, menu/pagination
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-italic.woff2") format("woff2");
}

:root {
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* Accessibility helper used across core + theme */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  word-wrap: normal !important;
  border: 0;
}
.screen-reader-text:focus {
  position: fixed !important;
  top: 12px; left: 12px;
  width: auto; height: auto;
  clip: auto; clip-path: none;
  z-index: 100000;
  background: var(--ink); color: var(--paper-soft);
  padding: 10px 18px; border-radius: 999px;
  font-size: 0.85rem;
}

/* Active menu state (WP adds .current-menu-item on <li>) */
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a {
  color: var(--ink);
  background: rgba(36, 32, 27, 0.07);
}
.mobile-panel ul { list-style: none; margin: 0; padding: 0; display: grid; }
.mobile-panel ul a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 12px; border-radius: 14px;
  font-size: 1.02rem; font-weight: 500;
  color: var(--ink); text-decoration: none;
}
.mobile-panel ul a:hover, .mobile-panel ul a:focus-visible { background: var(--paper-deep); }
.mobile-panel .current-menu-item > a { background: var(--paper-deep); }

/* Custom logo inside the round brand mark */
.brand-mark--logo { background: transparent; overflow: hidden; }
.brand-mark--logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Pagination output from paginate_links() */
.pagination .page-numbers {
  min-width: 44px; height: 44px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 0.9rem; font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding-inline: 14px;
}
.pagination a.page-numbers:hover { border-color: var(--ink); }
.pagination .page-numbers.current { background: var(--ink); color: var(--paper-soft); border-color: var(--ink); }
.pagination .page-numbers.dots { border: 0; }

/* Article images: natural ratio at every width — never cropped. */
.article-figure .post-thumbnail { display: block; }
.pc-frame img { display: block; width: 100%; height: auto; }
.post-card .pc-frame { display: block; }

/* Gallery frames: deliberate, designed crops inside a fixed ratio grid. */
.gallery-item .g-frame { height: 100%; }
.gallery-item .g-frame img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* Generic WP image helpers */
img[class*="wp-image-"] { height: auto; max-width: 100%; }
.prose .wp-block-image img, .prose img { border-radius: var(--radius-md); }
.prose .wp-caption-text, .prose .wp-block-image figcaption {
  font-size: 0.82rem; color: var(--ink-faint); margin-top: 10px;
}
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { width: 100%; }

/* WP admin bar: keep the fixed capsule clear of it. */
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) {
  .admin-bar .site-header { top: 32px; }
}
