/* =============================================================
   GRACEFUL BALLET — stylesheet
   Palette: ivory & blush, antique gold, deep pine
   Type:    Cormorant Garamond (display) · Mulish (body)
   ============================================================= */

/* ----- Fonts (self-hosted variable fonts) -------------------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/CormorantGaramond.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/CormorantGaramond-Italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("/assets/fonts/Mulish.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("/assets/fonts/Mulish-Italic.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}

/* ----- Tokens ------------------------------------------------- */
:root {
  --cream: #fbf7f1;
  --ivory: #fffdf9;
  --blush: #f4e6e0;
  --blush-deep: #e9d0c6;
  --rose: #b98070;
  --rose-deep: #a2685a;
  --gold: #b3915a;
  --gold-soft: #d8c193;
  --bronze: #8a6a3f;
  --pine: #1d332a;
  --pine-soft: #2e4b3e;
  --ink: #2b261f;
  --muted: #7d7368;
  --line: rgba(29, 51, 42, 0.12);

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Mulish", "Avenir Next", "Segoe UI", sans-serif;

  --w-page: 1200px;
  --w-narrow: 760px;
  --header-h: 86px;

  --ease-out: cubic-bezier(0.22, 0.7, 0.3, 1);
  --shadow-soft: 0 18px 45px -22px rgba(29, 51, 42, 0.28);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
@media (max-width: 900px) {
  :root { --header-h: 70px; }
}

/* ----- Reset & base ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  color: var(--pine);
  letter-spacing: 0.005em;
  text-wrap: balance;
}

a {
  color: var(--pine-soft);
  text-decoration: underline;
  text-decoration-color: var(--gold-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.25s var(--ease-out), text-decoration-color 0.25s var(--ease-out);
}
a:hover { color: var(--rose-deep); text-decoration-color: currentColor; }

::selection { background: var(--blush-deep); color: var(--pine); }

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.7rem 1.2rem;
  background: var(--pine);
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--cream); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ----- Layout utilities ---------------------------------------- */
.container {
  width: min(var(--w-page), 100% - 3rem);
  margin-inline: auto;
}
.container-narrow {
  width: min(var(--w-narrow), 100% - 3rem);
  margin-inline: auto;
}
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section-ivory { background: var(--ivory); }
.section-blush {
  background: linear-gradient(180deg, var(--blush) 0%, #f8ece6 100%);
}

.page-top { padding-top: calc(var(--header-h) + clamp(3.5rem, 8vw, 6rem)); }

/* ----- Small type pieces ---------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bronze);
}
.eyebrow em { font-style: normal; color: var(--rose-deep); }

.lede {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 58ch;
}

.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head.centered .lede { margin-inline: auto; }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 500;
}
.section-title em { font-style: italic; color: var(--rose-deep); }
.section-head .lede { margin-top: 1rem; }

/* The “barre line” ornament — a hairline with a pointe at its centre */
.ornament {
  display: flex;
  justify-content: center;
  padding-block: 0.6rem;
}
.ornament span {
  position: relative;
  width: 86px;
  height: 1px;
  background: var(--gold);
}
.ornament span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%);
}
.ornament.left { justify-content: flex-start; }

/* ----- Buttons & links ------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2.1rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease-out), background-color 0.3s var(--ease-out),
    color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-solid {
  background: var(--pine);
  color: var(--cream);
  box-shadow: 0 12px 28px -16px rgba(29, 51, 42, 0.55);
}
.btn-solid:hover { background: var(--pine-soft); color: var(--cream); box-shadow: 0 16px 32px -16px rgba(29, 51, 42, 0.55); }

.btn-ghost {
  border-color: rgba(29, 51, 42, 0.35);
  color: var(--pine);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--pine); background: rgba(179, 145, 90, 0.08); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pine);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 0.3rem;
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), gap 0.25s var(--ease-out);
}
.link-arrow:hover { color: var(--rose-deep); border-color: var(--rose-deep); gap: 0.85rem; }

/* ----- Header ------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(251, 247, 241, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header-inner {
  width: min(1320px, 100% - 3rem);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--pine);
  text-decoration: none;
  z-index: 130;
}
.brand span { font-style: italic; font-weight: 500; color: var(--rose-deep); }
.brand:hover { color: var(--pine); }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.6vw, 2.4rem);
  list-style: none;
  padding: 0;
}
.site-nav { display: flex; align-items: center; gap: clamp(1.4rem, 2.6vw, 2.4rem); }
.site-nav a {
  position: relative;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pine);
  text-decoration: none;
  padding-bottom: 0.35rem;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.site-nav a:hover { color: var(--rose-deep); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--rose-deep); }

.nav-social { display: inline-flex; align-items: center; gap: 0.5rem; }
.nav-social .icon { width: 17px; height: 17px; }
.nav-social span { display: none; }
.nav-extra { display: flex; align-items: center; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.7rem;
  z-index: 130;
  padding: 0.5rem 0;
}
.nav-toggle-label {
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--pine);
}
.nav-toggle-box { display: inline-flex; flex-direction: column; gap: 6px; width: 26px; }
.nav-toggle-box span {
  height: 1.5px;
  background: var(--pine);
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}
.nav-open .nav-toggle-box span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-open .nav-toggle-box span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 120;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    background: rgba(251, 247, 241, 0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease-out), visibility 0.35s var(--ease-out);
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; gap: 2rem; text-align: center; }
  .site-nav a { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; letter-spacing: 0.03em; text-transform: none; }
  .nav-list a { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
  .nav-open .nav-list li:nth-child(1) a { transition-delay: 0.08s; }
  .nav-open .nav-list li:nth-child(2) a { transition-delay: 0.14s; }
  .nav-open .nav-list li:nth-child(3) a { transition-delay: 0.2s; }
  .nav-open .nav-list li:nth-child(4) a { transition-delay: 0.26s; }
  .nav-open .nav-list li:nth-child(5) a { transition-delay: 0.32s; }
  .nav-open .nav-list a { opacity: 1; transform: none; }
  .nav-social span { display: inline; font-size: 0.74rem; letter-spacing: 0.2em; }
  .nav-open { overflow: hidden; }
}

/* ----- Hero --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(46rem 32rem at 12% 8%, rgba(233, 208, 198, 0.55), transparent 65%),
    radial-gradient(40rem 30rem at 88% 18%, rgba(216, 193, 147, 0.28), transparent 65%),
    radial-gradient(50rem 36rem at 50% 108%, rgba(233, 208, 198, 0.5), transparent 68%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--noise);
  opacity: 0.05;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.hero-ghost {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(5.5rem, 21vw, 19rem);
  letter-spacing: 0.02em;
  color: rgba(29, 51, 42, 0.05);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.hero-inner { max-width: 60rem; }
.hero .eyebrow { margin-bottom: 1.6rem; }
.hero-title {
  font-size: clamp(3rem, 8.4vw, 6.4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.005em;
}
.hero-title .accent {
  position: relative;
  display: inline-block;
  font-style: italic;
  font-weight: 500;
  color: var(--rose-deep);
}
.swash {
  position: absolute;
  left: -5%;
  bottom: -0.22em;
  width: 110%;
  height: auto;
  overflow: visible;
}
.swash path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 460;
  stroke-dashoffset: 460;
  animation: draw 1.2s var(--ease-out) 1s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-sub {
  margin: 2rem auto 0;
  max-width: 46ch;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--muted);
}
.hero-actions {
  margin-top: 2.8rem;
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.scroll-cue .cue-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bronze);
}
.scroll-cue .cue-line {
  position: relative;
  width: 1px;
  height: 52px;
  background: rgba(29, 51, 42, 0.2);
  overflow: hidden;
}
.scroll-cue .cue-line::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--gold);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue {
  0% { top: -40%; }
  60%, 100% { top: 105%; }
}

/* Page-load rise (hero only) */
.rise {
  opacity: 0;
  transform: translateY(26px);
  animation: rise 0.95s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ----- Scroll reveal ------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ----- Welcome (home) -------------------------------------------------- */
.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.frame { position: relative; }
.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(16px, 16px);
  border: 1px solid var(--gold);
  opacity: 0.6;
  z-index: -1;
}
.frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}
.welcome-copy .eyebrow { margin-bottom: 1.1rem; }
.welcome-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 1.4rem; }
.welcome-copy p + p { margin-top: 1.1rem; }
.welcome-copy p { color: var(--muted); max-width: 52ch; }
.signature {
  margin-top: 1.8rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.9rem;
  color: var(--pine);
}
.welcome-copy .link-arrow { margin-top: 2rem; }

/* ----- Cards (journal entries) ------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 3vw, 2.4rem);
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(179, 145, 90, 0.5);
}
.card-media { overflow: hidden; aspect-ratio: 4 / 3; }
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.card:hover .card-media img { transform: scale(1.045); }
.card-body { padding: 1.6rem 1.7rem 1.9rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.card-eyebrow {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze);
}
.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.22;
  color: var(--pine);
  transition: color 0.25s var(--ease-out);
}
.card:hover .card-title { color: var(--rose-deep); }
.card-desc { font-size: 0.94rem; line-height: 1.7; color: var(--muted); }
.card-meta {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-foot { margin-top: clamp(2.4rem, 5vw, 3.6rem); text-align: center; }

/* ----- Quote band ----------------------------------------------------------- */
.quote-band {
  position: relative;
  background: var(--pine);
  color: var(--cream);
  text-align: center;
  padding-block: clamp(5rem, 10vw, 8rem);
  overflow: hidden;
}
.quote-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(42rem 26rem at 15% 0%, rgba(185, 128, 112, 0.14), transparent 60%),
    radial-gradient(44rem 30rem at 88% 100%, rgba(216, 193, 147, 0.1), transparent 60%);
}
.quote-band .container { position: relative; }
.quote-band .ornament span { background: var(--gold-soft); }
.quote-band .ornament span::after { background: var(--gold-soft); }
.quote-band blockquote {
  margin: 1.6rem auto;
  max-width: 26ch;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 4.4vw, 3.1rem);
  line-height: 1.3;
  color: var(--cream);
}
.quote-band cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* ----- Explore tiles (home) --------------------------------------------------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.2rem);
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(2rem, 3.5vw, 2.8rem);
  min-height: 240px;
  border: 1px solid var(--line);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.tile:nth-child(1) { background: linear-gradient(160deg, #f7ebe5, var(--ivory) 70%); }
.tile:nth-child(2) { background: linear-gradient(160deg, #f3ede1, var(--ivory) 70%); }
.tile:nth-child(3) { background: linear-gradient(160deg, #eef0e9, var(--ivory) 70%); }
.tile:hover { transform: translateY(-5px); border-color: rgba(179, 145, 90, 0.55); box-shadow: var(--shadow-soft); }
.tile-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bronze);
}
.tile h3 { font-size: 1.7rem; font-weight: 600; }
.tile p { font-size: 0.93rem; color: var(--muted); max-width: 30ch; }
.tile-arrow {
  margin-top: auto;
  font-size: 1.15rem;
  color: var(--gold);
  transition: transform 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.tile:hover .tile-arrow { transform: translateX(7px); color: var(--rose-deep); }

/* ----- Newsletter band ------------------------------------------------------------ */
.newsletter {
  position: relative;
  background: linear-gradient(180deg, var(--blush) 0%, #f6e9e2 100%);
  text-align: center;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  overflow: hidden;
}
.newsletter::after {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--noise);
  opacity: 0.05;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.newsletter-inner { position: relative; z-index: 1; }
.newsletter-title { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-top: 1rem; }
.newsletter-copy { margin: 1.1rem auto 0; max-width: 46ch; color: var(--muted); }
.newsletter-form {
  margin: 2.2rem auto 0;
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 34rem;
}
.newsletter-form input {
  flex: 1 1 16rem;
  padding: 0.95rem 0.4rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(29, 51, 42, 0.35);
  color: var(--ink);
  transition: border-color 0.25s var(--ease-out);
}
.newsletter-form input::placeholder { color: rgba(43, 38, 31, 0.45); }
.newsletter-form input:focus { outline: none; border-bottom-color: var(--bronze); }
.form-note { margin-top: 1.1rem; font-size: 0.76rem; letter-spacing: 0.06em; color: var(--muted); }
.form-note-alert { color: var(--rose-deep); }
.form-note code { font-size: 0.9em; }

/* ----- Footer --------------------------------------------------------------------- */
.site-footer {
  background: var(--pine);
  color: rgba(251, 247, 241, 0.78);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 0.9rem;
}
.footer-blurb { max-width: 34ch; line-height: 1.8; }
.footer-heading {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a {
  color: rgba(251, 247, 241, 0.78);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.site-footer a:hover { color: var(--cream); border-bottom-color: var(--gold-soft); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(251, 247, 241, 0.14);
  padding-block: 1.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

/* ----- Page headers (inner pages) ---------------------------------------------------- */
.page-header {
  text-align: center;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.page-header .eyebrow { margin-bottom: 1.2rem; }
.page-title { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.page-header .lede { margin: 1.4rem auto 0; }
.page-header .ornament { margin-top: 1.6rem; }

/* ----- Journal index -------------------------------------------------------------------- */
.filter-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.filter-btn {
  padding: 0.55rem 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.filter-btn:hover { color: var(--pine); }
.filter-btn.is-active { color: var(--pine); border-bottom-color: var(--gold); }

.featured {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  border: 1px solid var(--line);
  background: var(--ivory);
  text-decoration: none;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  transition: box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.featured:hover { box-shadow: var(--shadow-soft); border-color: rgba(179, 145, 90, 0.5); }
.featured-media { overflow: hidden; }
.featured-media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.featured:hover .featured-media img { transform: scale(1.035); }
.featured-body {
  padding: clamp(1.8rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
}
.featured-body .card-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }

/* ----- Post article ------------------------------------------------------------------------ */
.post-header { text-align: center; padding-bottom: clamp(2rem, 4vw, 3rem); }
.post-title { font-size: clamp(2.2rem, 5.4vw, 3.8rem); margin-top: 1.1rem; }
.post-meta { margin-top: 1.1rem; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.post-header .ornament { margin-top: 1.4rem; }

.post-hero { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.post-hero img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.post-body { font-size: 1.08rem; line-height: 1.9; }
.flow > * + * { margin-top: 1.35em; }
.post-body p { color: #3d372f; }
.post-body > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 4.4em;
  line-height: 0.78;
  float: left;
  padding: 0.08em 0.14em 0 0;
  color: var(--pine);
}
.post-body h2 {
  font-size: 1.9rem;
  margin-top: 2em;
}
.post-body h3 { font-size: 1.45rem; margin-top: 1.8em; }
.post-body a { color: var(--rose-deep); }
.post-body ul, .post-body ol { padding-left: 1.3rem; }
.post-body li { margin-top: 0.5em; }
.post-body li::marker { color: var(--gold); }
.post-body blockquote {
  margin-block: 2.2em;
  padding: 0.4rem 0 0.4rem 1.6rem;
  border-left: 2px solid var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--pine);
}
.post-body hr {
  border: 0;
  height: 1px;
  width: 86px;
  margin: 2.6em auto;
  background: var(--gold);
}
.post-body img { box-shadow: var(--shadow-soft); }
.post-body figcaption { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 0.8rem; }

.post-footer { padding-top: clamp(2.5rem, 5vw, 3.5rem); padding-bottom: 1rem; }
.post-signoff {
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 1.4rem 0 2.4rem;
}
.post-signoff em { font-family: var(--font-display); font-size: 1.35rem; color: var(--pine); }
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}
.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--line);
  background: var(--ivory);
  text-decoration: none;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.post-nav-link:hover { border-color: rgba(179, 145, 90, 0.55); box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.post-nav-link.next { text-align: right; }
.post-nav-label { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bronze); }
.post-nav-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--pine); line-height: 1.3; }
.post-back { text-align: center; }

/* ----- About page ------------------------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.about-copy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 1.2rem; }
.about-copy p { color: #4a443b; }
.about-copy p + p { margin-top: 1.1rem; }
.about-copy .about-block + .about-block { margin-top: 2.6rem; }

.milestones { list-style: none; padding: 0; margin-top: 1.6rem; }
.milestones li {
  position: relative;
  padding: 1.1rem 0 1.1rem 2rem;
  border-bottom: 1px solid var(--line);
}
.milestones li::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 1.75rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.milestones .when {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.25rem;
}
.milestones .what { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--pine); }
.milestones p { font-size: 0.92rem; color: var(--muted); margin-top: 0.3rem; }

.true-things { list-style: none; padding: 0; display: grid; gap: 0.8rem; margin-top: 1.4rem; }
.true-things li { display: flex; gap: 0.9rem; color: #4a443b; }
.true-things li::before { content: "·"; color: var(--gold); font-weight: 700; }

/* ----- Tips page --------------------------------------------------------------------------------- */
.tip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.2rem);
}
.tip-card {
  padding: 2rem 1.9rem 2.2rem;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold-soft);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.tip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-top-color: var(--gold); }
.tip-card h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 0.7rem; }
.tip-card p { font-size: 0.93rem; line-height: 1.75; color: var(--muted); }

.shelf { display: grid; gap: 0; margin-top: 0.5rem; }
.shelf-item {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1rem 2.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.shelf-item:first-child { border-top: 1px solid var(--line); }
.shelf-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--pine); }
.shelf-title .kind {
  display: block;
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.35rem;
}
.shelf-item p { font-size: 0.94rem; color: var(--muted); align-self: center; }

.faq { margin-top: 0.5rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--pine);
  transition: color 0.25s var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--rose-deep); }
.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.5rem; max-width: 62ch; color: var(--muted); }

.fine-print { margin-top: 2.5rem; font-size: 0.8rem; color: var(--muted); text-align: center; }

/* ----- Gallery -------------------------------------------------------------------------------------- */
.gallery-columns {
  columns: 3;
  column-gap: 1.6rem;
}
.gallery-item {
  display: block;
  width: 100%;
  margin: 0 0 1.6rem;
  padding: 0;
  break-inside: avoid;
  text-align: left;
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  box-shadow: 0 12px 30px -18px rgba(29, 51, 42, 0.35);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.gallery-item:hover img { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.gallery-item .caption {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.gallery-item.ratio-tall img { aspect-ratio: 3 / 4; object-fit: cover; }
.gallery-item.ratio-wide img { aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-item.ratio-square img { aspect-ratio: 1; object-fit: cover; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  background: rgba(18, 28, 24, 0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s var(--ease-out);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-figure { max-width: min(1000px, 82vw); }
.lightbox-figure img { max-height: 76vh; width: auto; max-width: 100%; margin-inline: auto; }
.lightbox-figure figcaption {
  margin-top: 1.1rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.lightbox button { color: var(--cream); font-size: 1.5rem; padding: 0.6rem 1rem; transition: color 0.25s var(--ease-out); }
.lightbox button:hover { color: var(--gold-soft); }
.lightbox-close { position: absolute; top: 1.2rem; right: 1.4rem; font-size: 2.1rem; line-height: 1; }
body.lightbox-open { overflow: hidden; }

/* ----- Contact --------------------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-aside h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1.2rem; }
.contact-aside p { color: var(--muted); max-width: 44ch; }
.contact-aside p + p { margin-top: 1rem; }
.contact-list { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: 0.8rem; }
.contact-list a { font-weight: 600; }

.contact-form {
  display: grid;
  gap: 1.4rem;
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  background: var(--ivory);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.field { display: grid; gap: 0.5rem; }
.field label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 0;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 9.5rem; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(179, 145, 90, 0.15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.contact-form .btn { justify-self: start; }
.contact-form .form-note { margin-top: 0; text-align: left; }

/* ----- Simple centered pages (thanks / 404) ------------------------------------------------------------ */
.solo {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 3rem) 1.5rem 4rem;
}
.solo .eyebrow { margin-bottom: 1.2rem; }
.solo h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
.solo p { margin: 1.3rem auto 2.2rem; max-width: 44ch; color: var(--muted); }

/* ----- Responsive ----------------------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .card-grid, .tile-grid, .tip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-columns { columns: 2; }
  .featured { grid-template-columns: 1fr; }
  .featured-media img { min-height: 260px; }
}
@media (max-width: 720px) {
  .welcome-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .frame { max-width: 26rem; }
  .shelf-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-link.next { text-align: left; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .card-grid, .tile-grid, .tip-grid { grid-template-columns: 1fr; }
  .gallery-columns { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ----- Reduced motion --------------------------------------------------------------------------------------- */
@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;
  }
  .rise, .reveal { opacity: 1; transform: none; }
  .swash path { stroke-dashoffset: 0; animation: none; }
}
