/* Mauldin Horticulture - journal plate-book system
   Tokens, then layout, then components. One radius (4px), one shadow (none), hairlines. */

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #FCFBF9;
  --surface: #F4F1EA;
  --ink: #1C436A;
  --ink-deep: #13304E;
  --body: #2A3542;
  --muted: #5C6675;
  --tan: #D8A472;
  --tan-ink: #8F6236;
  --hairline: #E4DED2;
  --hairline-light: rgba(252, 251, 249, 0.28);
  --radius: 4px;
  --container: 1080px;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--tan); color: var(--ink-deep); }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--tan-ink); text-decoration-color: rgba(143, 98, 54, 0.4); text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration-color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--tan-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

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

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 18px;
  text-wrap: balance;
}
h1 { font-size: clamp(38px, 5.4vw, 60px); letter-spacing: 0.01em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 22px; font-weight: 400; }
p { margin: 0 0 18px; max-width: 68ch; }
.lede { font-size: 19px; color: var(--body); }
.dateline {
  font-size: 15px;
  color: var(--muted);
  margin: -6px 0 0;
}
.page-head { padding: 72px 0 56px; border-bottom: 1px solid var(--hairline); margin-bottom: 64px; }
.page-head h1 { margin-bottom: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--ink-deep); border-color: var(--ink-deep); color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand svg { width: 44px; height: 44px; color: var(--tan); flex: none; }
.brand-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.main-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover { color: var(--ink); border-bottom-color: var(--tan); }
.main-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--tan); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Frontispiece hero ---------- */
.hero {
  position: relative;
  height: min(86vh, 780px);
  min-height: 480px;
  background: var(--ink-deep);
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(19, 48, 78, 0.18), rgba(19, 48, 78, 0.34));
  pointer-events: none;
}
.hero-mark {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
}
.hero-mark svg { width: clamp(150px, 23vw, 245px); height: auto; color: var(--tan); }
.hero-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.04em;
  color: var(--tan);
  margin: 0;
  text-shadow: 0 1px 14px rgba(19, 48, 78, 0.55);
}
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.6vw, 28px);
  color: #FDFCF9;
  margin: 14px 0 0;
  text-shadow: 0 1px 12px rgba(19, 48, 78, 0.45);
}
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-dots button {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 2px;
  background: rgba(252, 251, 249, 0.45);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease;
}
.hero-dots button.active { background: var(--tan); }

/* Statement under the hero */
.statement {
  padding: 88px 0 80px;
  text-align: center;
  border-bottom: 1px solid var(--hairline);
}
.statement h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.35;
  color: var(--ink);
  max-width: 26ch;
  margin: 0 auto;
}

/* ---------- The scale line (signature) ---------- */
.scale-line { padding: 96px 0 88px; }
.scale-line > .container > h2 { text-align: center; }
.scale-line > .container > .lede { text-align: center; margin: 0 auto 64px; max-width: 52ch; }
.scale-track {
  display: flex;
  align-items: flex-end;
  gap: clamp(20px, 3.4vw, 44px);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0;
}
.scale-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  min-width: 0;
}
.scale-item:nth-child(1) { flex: 0 0 19%; }
.scale-item:nth-child(2) { flex: 0 0 22%; }
.scale-item:nth-child(3) { flex: 0 0 26%; }
.scale-item:nth-child(4) { flex: 0 0 33%; }
.scale-item img {
  width: 100%;
  border-radius: var(--radius) var(--radius) 0 0;
  object-fit: cover;
}
.scale-item:nth-child(1) img { aspect-ratio: 4 / 4.6; }
.scale-item:nth-child(2) img { aspect-ratio: 4 / 5.1; }
.scale-item:nth-child(3) img { aspect-ratio: 4 / 5.6; }
.scale-item:nth-child(4) img { aspect-ratio: 4 / 6.1; }
.scale-caption { padding: 14px 2px 18px; }
.scale-caption .scale-name {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}
.scale-caption .scale-note { font-size: 14px; color: var(--muted); display: block; }
.scale-item:hover .scale-name { color: var(--tan-ink); }
.scale-tick {
  font-size: 13px;
  color: var(--muted);
  display: block;
  padding-bottom: 8px;
}

/* ---------- Plates ---------- */
.plate { margin: 0; }
.plate img { border-radius: var(--radius); width: 100%; }
.plate figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
  margin-top: 12px;
}
.plate-row {
  display: grid;
  gap: 28px;
  align-items: start;
  margin: 48px 0;
}
.plate-row.cols-2 { grid-template-columns: 1fr 1fr; }
.plate-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.plate-row.cols-4 { grid-template-columns: repeat(4, 1fr); }
.plate-row.single { grid-template-columns: minmax(0, 760px); justify-content: center; }
.plate-link { display: block; text-decoration: none; }
.plate-link:hover img { opacity: 0.92; }

/* ---------- Project grid (index of plates) ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  align-items: start;
}
.project-grid.two-col { grid-template-columns: 1fr 1fr; }
.project-grid.two-col .project-tile img { aspect-ratio: 3 / 2; }
@media (max-width: 640px) { .project-grid.two-col { grid-template-columns: 1fr; } }
.project-tile { text-decoration: none; margin: 0; }
.project-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}
.project-tile .tile-name {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  display: block;
  padding-top: 12px;
}
.project-tile .tile-note { font-size: 14px; color: var(--muted); display: block; }
.project-tile:hover .tile-name { color: var(--tan-ink); }

/* ---------- Project folio pages ---------- */
.folio-head { padding: 72px 0 48px; border-bottom: 1px solid var(--hairline); margin-bottom: 56px; }
.folio-head h1 { margin-bottom: 8px; }
.folio-section { margin-bottom: 72px; }
.folio-section h2 { margin-bottom: 14px; }
.before-head {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 3vw, 34px);
  color: var(--ink);
  margin: 72px 0 28px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
}
.other-projects { padding: 64px 0 96px; border-top: 1px solid var(--hairline); }
.other-projects h2 { margin-bottom: 36px; }

/* ---------- Services ---------- */
.service-list { border-top: 1px solid var(--hairline); }
.service-item {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  padding: 44px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
}
.service-item h2 { font-size: 26px; margin-bottom: 6px; }
.service-price { font-size: 15px; color: var(--tan-ink); font-weight: 600; display: block; margin-top: 6px; }
.service-item p { margin-bottom: 0; }

/* ---------- Split (about / contact) ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 56px;
  align-items: start;
}
.split.reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
blockquote {
  margin: 40px 0;
  padding: 28px 0 28px 28px;
  border-left: 2px solid var(--tan);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
}
blockquote footer {
  font-family: var(--sans);
  font-style: normal;
  font-size: 14px;
  color: var(--muted);
  margin-top: 14px;
}

/* ---------- Contact ---------- */
.contact-block { list-style: none; margin: 0 0 36px; padding: 0; }
.contact-block li { padding: 10px 0; border-bottom: 1px solid var(--hairline); font-size: 17px; }
.contact-block .cb-label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 2px; }
.contact-block a { color: var(--ink); font-weight: 500; text-decoration: none; }
.contact-block a:hover { color: var(--tan-ink); }
.form-field { margin-bottom: 22px; }
.form-field label { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  font: inherit;
  color: var(--body);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--tan-ink); }
.honeypot { position: absolute; left: -9999px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #F4F1EA;
  padding: 88px 0;
  text-align: center;
}
.cta-band h2 { color: #FDFCF9; }
.cta-band p { color: rgba(244, 241, 234, 0.85); margin-left: auto; margin-right: auto; }
.cta-band .btn { border-color: var(--tan); color: var(--tan); }
.cta-band .btn:hover { background: var(--tan); color: var(--ink-deep); border-color: var(--tan); }
.cta-band .btn-solid { background: var(--tan); color: var(--ink-deep); border-color: var(--tan); }
.cta-band .btn-solid:hover { background: #E4B98E; color: var(--ink-deep); border-color: #E4B98E; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}
.video-plate video {
  width: 100%;
  border-radius: var(--radius);
  background: var(--ink-deep);
}
.video-plate figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
  margin-top: 12px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(19, 48, 78, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 32px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--radius); }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: 0;
  color: #FDFCF9;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-deep);
  color: rgba(244, 241, 234, 0.82);
  padding: 72px 0 40px;
  font-size: 15px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--hairline-light);
  margin-bottom: 28px;
  align-items: start;
}
.footer-brand svg { width: 52px; height: 52px; color: var(--tan); margin-bottom: 14px; }
.footer-brand .footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: #FDFCF9;
  margin: 0 0 10px;
}
.site-footer h2 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: #FDFCF9;
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(244, 241, 234, 0.82); text-decoration: none; }
.site-footer a:hover { color: var(--tan); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(244, 241, 234, 0.55);
  font-size: 14px;
}
.footer-bottom .credit { color: rgba(244, 241, 234, 0.55); }
.footer-bottom .credit:hover { color: var(--tan); }

/* ---------- Sticky call bar (phones) ---------- */
.call-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 250;
  background: var(--ink-deep);
  border-top: 1px solid var(--hairline-light);
}
.call-bar a {
  flex: 1;
  text-align: center;
  padding: 15px 8px;
  color: #FDFCF9;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.call-bar a + a { border-left: 1px solid var(--hairline-light); }
.call-bar a:hover { color: var(--tan); }

/* ---------- Thanks / 404 ---------- */
.simple-page { padding: 120px 0; text-align: center; }
.simple-page p { margin-left: auto; margin-right: auto; }
.simple-page .btn-row { justify-content: center; }

/* ---------- Reveals (JS-added hiding only) ---------- */
.js-anim [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-anim [data-reveal].in { opacity: 1; transform: none; }
.js-anim [data-reveal-group] > * { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.js-anim [data-reveal-group].in > * { opacity: 1; transform: none; }
.js-anim [data-reveal-group].in > *:nth-child(2) { transition-delay: 0.08s; }
.js-anim [data-reveal-group].in > *:nth-child(3) { transition-delay: 0.16s; }
.js-anim [data-reveal-group].in > *:nth-child(4) { transition-delay: 0.24s; }
.js-anim [data-reveal-group].in > *:nth-child(5) { transition-delay: 0.32s; }
.js-anim [data-reveal-group].in > *:nth-child(6) { transition-delay: 0.40s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .plate-row.cols-4 { grid-template-columns: 1fr 1fr; }
  .plate-row.cols-3 { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .service-item { grid-template-columns: 1fr; gap: 12px; padding: 34px 0; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 36px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  body { padding-bottom: 54px; }
  .call-bar { display: flex; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    display: none;
  }
  .main-nav.open { display: block; }
  /* Without JS the nav stays visible and the toggle hides. */
  .no-js .main-nav { display: block; position: static; border-bottom: 0; }
  .no-js .nav-toggle { display: none; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
  .main-nav a { display: block; padding: 13px 0; font-size: 17px; border-bottom: 1px solid var(--hairline); }
  .site-header { position: relative; }
  .hero { height: 74vh; min-height: 420px; }
  .statement { padding: 64px 0 56px; }
  .scale-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .scale-item { scroll-snap-align: end; }
  .scale-item:nth-child(1) { flex: 0 0 52%; }
  .scale-item:nth-child(2) { flex: 0 0 58%; }
  .scale-item:nth-child(3) { flex: 0 0 66%; }
  .scale-item:nth-child(4) { flex: 0 0 76%; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 520px) {
  .plate-row.cols-4, .plate-row.cols-3, .plate-row.cols-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .btn-row .btn { width: 100%; text-align: center; }
}

/* ---------- Reduced motion ---------- */
/* The hero stops auto-advancing in site.js; tap, swipe, and dots keep working.
   Here we drop the crossfade and smooth scrolling. Scroll reveals still run,
   per the standing "always animate" decision. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide { transition: none; }
}

/* ---------- Gallery masonry collage ---------- */
.gallery-masonry { columns: 3 300px; column-gap: 28px; }
.gallery-masonry .plate { break-inside: avoid; margin: 0 0 28px; }
.gallery-masonry img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
@media (max-width: 760px) { .gallery-masonry { columns: 2 200px; column-gap: 18px; } .gallery-masonry .plate { margin-bottom: 18px; } }

/* ---------- Lightbox prev/next ---------- */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(19, 48, 78, 0.55);
  border: 1px solid rgba(252, 251, 249, 0.35);
  border-radius: var(--radius);
  color: #FDFCF9;
  font-size: 34px;
  line-height: 1;
  padding: 10px 16px 14px;
  cursor: pointer;
}
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-nav:hover { background: rgba(19, 48, 78, 0.85); }
