/* ==========================================================
   Kailani Fountaine — site styles
   Colors and fonts live in :root. Change them here once and the
   whole site updates.
   ========================================================== */

:root {
  --ivory: #f6f2ec;
  --paper: #fbf9f5;
  --ink: #171414;
  --ink-soft: #4a4442;
  --muted: #8a817c;
  --line: #e2dbd2;
  --rose: #7a2e3b;        /* deep lace-rose accent */
  --rose-soft: #efe2df;
  --blush: #d9b8b0;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--blush); color: var(--ink); }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p { margin: 0 0 1.1em; }
.eyebrow {
  font-family: var(--sans); font-size: .74rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--rose); margin: 0 0 1.2em; font-weight: 500;
}
.lede { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--ink-soft); max-width: 640px; }
.italic { font-style: italic; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 245, .92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.wordmark {
  font-family: var(--serif); font-size: 1.15rem; letter-spacing: .32em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
}
.nav { display: flex; gap: clamp(16px, 2.2vw, 34px); align-items: center; }
.nav a {
  text-decoration: none; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--ink); }
.nav .nav-cta { border: 1px solid var(--ink); padding: 8px 16px; }
.nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { background: var(--ink); color: var(--paper); }
.menu-btn {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer;
  font: 500 .74rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
}

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 72px 0 0 0; background: var(--paper);
    flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 0;
    padding: 24px var(--gutter); opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
    overflow-y: auto;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease; }
  .nav a { font-size: 1rem; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--rose); }
  .nav .nav-cta { margin-top: 24px; text-align: center; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: 500 .76rem var(--sans); letter-spacing: .22em; text-transform: uppercase;
  padding: 16px 30px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: background .2s, color .2s; border-radius: var(--radius);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.text-link {
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.text-link:hover { color: var(--rose); }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 10vw, 128px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.tone { background: var(--ivory); }
.dark { background: var(--ink); color: var(--paper); }
.dark .eyebrow { color: var(--blush); }
.dark .lede { color: #cfc6c0; }
.dark .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.dark .btn:hover { background: transparent; color: var(--paper); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.section-head h2 { margin: 0; }

/* ---------- Page hero ---------- */
.page-hero { padding: clamp(56px, 9vw, 120px) 0 clamp(32px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 14ch; }

/* ---------- Home hero ---------- */
.hero { padding: 0; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 8vw, 110px) var(--gutter); }
.hero-copy h1 { font-size: clamp(3.4rem, 9vw, 7.8rem); line-height: .95; }
.hero-copy h1 em { color: var(--rose); }
.hero-media { position: relative; background: var(--ivory); overflow: hidden; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-tag {
  position: absolute; left: 20px; bottom: 20px; background: rgba(251,249,245,.92);
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; padding: 10px 14px;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { aspect-ratio: 4 / 5; }
}

/* ---------- Credits strip ---------- */
.credits-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.credits-strip ul {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px 40px; font-family: var(--serif); font-size: clamp(1rem, 1.6vw, 1.2rem); font-style: italic; color: var(--ink-soft);
}

/* ---------- Three pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.pillar { text-decoration: none; display: block; }
.pillar .frame { aspect-ratio: 3 / 4; overflow: hidden; background: var(--ivory); margin-bottom: 22px; }
.pillar .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.pillar:hover .frame img { transform: scale(1.04); }
.pillar .num { font-family: var(--serif); font-style: italic; color: var(--rose); font-size: 1.1rem; }
.pillar h3 { margin: 6px 0 8px; }
.pillar p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Two column ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.top { align-items: start; }
.split .media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ivory); }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Galleries ---------- */
.collection { padding: clamp(56px, 8vw, 104px) 0; border-bottom: 1px solid var(--line); }
.collection:last-of-type { border-bottom: 0; }
.collection-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px 64px; margin-bottom: 40px; align-items: end; }
.collection-head .meta { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.collection-head h2 { margin: 0; }
.collection-head p { margin: 0 0 14px; color: var(--ink-soft); }
@media (max-width: 860px) { .collection-head { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1.2vw, 16px); }
.gallery.four { grid-template-columns: repeat(4, 1fr); }
.gallery figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: var(--ivory); cursor: zoom-in; position: relative; }
.gallery figure.wide { grid-column: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease, opacity .3s; }
.gallery figure:hover img { transform: scale(1.03); }
@media (max-width: 860px) {
  .gallery, .gallery.four { grid-template-columns: repeat(2, 1fr); }
  .gallery figure.wide { grid-column: span 2; aspect-ratio: 4 / 3; }
}

/* Missing-photo placeholder (shows until the file is added) */
.img-missing { position: relative; background: repeating-linear-gradient(135deg, var(--ivory) 0 14px, #efe8df 14px 28px) !important; }
.img-missing img { opacity: 0; }
.img-missing::after {
  content: attr(data-missing); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 16px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(23,20,20,.94);
  display: none; align-items: center; justify-content: center; padding: 56px 16px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font: 500 .74rem var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: 14px;
}
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
.lb-cap { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #cfc6c0; font-size: .82rem; padding: 0 16px; }

/* ---------- Styling credits ---------- */
.credit-group { padding: clamp(48px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); }
.credit-group:last-of-type { border-bottom: 0; }
.credit-group > .wrap > header { margin-bottom: 36px; max-width: 760px; }
.credit-role { font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.credits { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px); }
.credit { margin: 0; }
.credit .frame { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ivory); margin-bottom: 18px; cursor: zoom-in; }
.credit .frame img { width: 100%; height: 100%; object-fit: cover; }
.credit h3 { margin: 0 0 4px; }
.credit .detail { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rose); margin: 0 0 8px; }
.credit p { color: var(--ink-soft); font-size: .96rem; margin: 0; }
@media (max-width: 700px) { .credits { grid-template-columns: 1fr; } }

/* ---------- Facts list ---------- */
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts .k { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
@media (max-width: 600px) { .facts li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.step { border-top: 1px solid var(--ink); padding-top: 18px; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--serif); font-style: italic; color: var(--rose); font-size: 1.3rem; display: block; margin-bottom: 8px; }
.step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Form ---------- */
.form { display: grid; gap: 40px; }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form legend { font-family: var(--serif); font-size: 1.6rem; padding: 0; margin-bottom: 6px; }
.form .help { color: var(--muted); font-size: .92rem; margin: 0 0 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 16px; }
.full { grid-column: 1 / -1; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
.field label, .field .label { display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; color: var(--ink-soft); }
.field .req { color: var(--rose); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=url],
.field input[type=date], .field input[type=number], .field select, .field textarea {
  width: 100%; font: 400 1rem var(--sans); color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px; transition: border-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field input[type=file] { font: 400 .95rem var(--sans); }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: block; border: 1px solid var(--line); background: #fff; padding: 14px 16px; font-size: .95rem; height: 100%;
  transition: border-color .2s, background .2s;
}
.choice span small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.choice input:checked + span { border-color: var(--ink); background: var(--rose-soft); }
.choice input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--rose); flex: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 18px 20px; border: 1px solid var(--line); background: #fff; display: none; }
.form-status.show { display: block; }
.form-status.error { border-color: var(--rose); color: var(--rose); }
.form-status.ok { border-color: var(--ink); }
[hidden] { display: none !important; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.3rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 14px 0 0; color: var(--ink-soft); }

/* ---------- Journal ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.post-card { text-decoration: none; display: block; }
.post-card .frame { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ivory); margin-bottom: 18px; }
.post-card .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.post-card:hover .frame img { transform: scale(1.03); }
.post-card time { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.post-card h3 { margin: 8px 0 8px; }
.post-card p { color: var(--ink-soft); font-size: .96rem; margin: 0; }
@media (max-width: 860px) { .posts { grid-template-columns: 1fr; } }

.article { padding: clamp(48px, 7vw, 96px) 0; }
.article-head { text-align: center; margin-bottom: 48px; }
.article-head h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); margin-left: auto; margin-right: auto; max-width: 18ch; }
.article-head .byline { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.prose { font-size: 1.07rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 1.8em 0 .6em; }
.prose h3 { margin: 1.6em 0 .5em; }
.prose figure { margin: 2.2em 0; }
.prose figure img { width: 100%; }
.prose figcaption { font-size: .86rem; color: var(--muted); margin-top: 10px; font-style: italic; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .6em; }
.prose a { color: var(--rose); }
.prose blockquote { margin: 2em 0; padding-left: 24px; border-left: 2px solid var(--rose); font-family: var(--serif); font-size: 1.35rem; font-style: italic; }
.reading { background: var(--ivory); padding: 28px 30px; margin-top: 3em; font-size: .97rem; }
.reading h2 { font-size: 1.4rem; margin: 0 0 .8em; }
.post-nav { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); margin-top: 56px; padding-top: 28px; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.cta-band .lede { margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfc6c0; padding: 72px 0 32px; font-size: .95rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-grid h2 { font-size: 1.6rem; color: var(--paper); }
.foot-grid h3 { font-family: var(--sans); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--blush); margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-note { border-top: 1px solid #3a3433; margin-top: 56px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: #8f8580; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
