/*
Theme Name: Gardiner Luxe
Theme URI: https://example.com/gardiner-luxe
Author: Gardiner Consulting Services
Author URI: https://example.com
Description: A refined, letterpress-inspired theme for Gardiner Consulting Services. Deep evergreen and brass, inscriptional typography, and a stationer's frame — strategy presented with the dignity of a finely produced program.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gardiner-luxe
Tags: one-column, custom-menu, custom-logo, featured-images, block-styles, translation-ready
*/

/* =========================================================
   1. FONTS — self-hosted, SIL OFL (see assets/fonts/OFL-*.txt)
   ========================================================= */
@font-face {
  font-family: "Marcellus";
  src: url("assets/fonts/Marcellus-Regular.woff2") format("woff2");
  font-weight: 400;
  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: "Jost";
  src: url("assets/fonts/Jost.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("assets/fonts/Jost-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* =========================================================
   2. TOKENS
   ========================================================= */
:root {
  --green-950: #081511;
  --green-900: #0c1e18;
  --green-800: #122a21;
  --green-700: #1a382c;

  --brass: #c6a55c;
  --brass-2: #dcc48b;
  --bronze: #8c6f3e;

  --alab: #f5f1e6;
  --paper: #fbf8f0;
  --ivory: #efe9da;

  --ink: #1d2721;
  --ink-2: #55655b;
  --mist: #aec0b4;

  --line-d: rgba(198, 165, 92, 0.26);
  --line-l: rgba(29, 39, 33, 0.15);

  --display: "Marcellus", "Times New Roman", serif;
  --body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --accent-serif: "Cormorant Garamond", Georgia, serif;

  --frame: 14px;
  --header-h: 88px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* =========================================================
   3. BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 300;
  font-size: 1.03rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--green-900);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.015em;
  margin: 0 0 0.6em;
}

::selection { background: var(--brass); color: var(--green-950); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: var(--alab); color: var(--ink); clip: auto; clip-path: none;
  display: block; font-size: 0.85rem; height: auto; width: auto;
  left: 1rem; top: 1rem; padding: 0.8rem 1.2rem; z-index: 200;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
}

.skip-link { position: absolute; }

/* =========================================================
   4. UTILITIES
   ========================================================= */
.container { width: min(1140px, 100% - 3rem); margin-inline: auto; }
.container--wide { width: min(1280px, 100% - 3rem); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.9rem;
  font-family: var(--body); font-weight: 500; font-size: 0.68rem;
  letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--bronze); margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: ""; width: 2rem; height: 1px; background: currentColor; opacity: 0.6;
}
.section--dark .eyebrow { color: var(--brass-2); }

.section-title {
  font-size: clamp(2.1rem, 3.6vw, 3.05rem);
  margin: 0 0 1.4rem;
}
.section-lede {
  font-size: 1.08rem; max-width: 58ch; color: var(--ink-2); margin: 0;
}
.section--dark .section-lede { color: var(--mist); }

.accent-line {
  font-family: var(--accent-serif); font-style: italic; font-weight: 500;
  font-size: 1.28rem; letter-spacing: 0.01em; color: var(--bronze);
}
.section--dark .accent-line { color: var(--brass-2); }

/* Buttons — letterpress card style */
.btn {
  display: inline-block;
  font-family: var(--body); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none;
  padding: 1rem 2rem; border: 1px solid var(--brass);
  color: var(--brass-2); background: transparent; cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:hover { background: var(--brass); color: var(--green-950); transform: translateY(-2px); }
.btn--solid { background: var(--brass); color: var(--green-950); }
.btn--solid:hover { background: var(--brass-2); border-color: var(--brass-2); }
.section--light .btn, .section--paper .btn {
  border-color: var(--ink); color: var(--ink);
}
.section--light .btn:hover, .section--paper .btn:hover {
  background: var(--ink); color: var(--alab);
}
.section--light .btn--solid, .section--paper .btn--solid {
  background: var(--green-900); border-color: var(--green-900); color: var(--ivory);
}
.section--light .btn--solid:hover, .section--paper .btn--solid:hover {
  background: var(--green-700); border-color: var(--green-700); color: var(--ivory);
}

/* Sprig + dividers */
.sprig { display: inline-block; color: var(--brass); }
.divider {
  display: flex; align-items: center; gap: 1.1rem;
  margin: 1.8rem 0; color: var(--brass);
}
.divider span { flex: 0 0 3.4rem; height: 1px; background: var(--brass); opacity: 0.55; }
.divider--center { justify-content: center; }

.diamond {
  display: inline-block; width: 5px; height: 5px;
  background: currentColor; transform: rotate(45deg); flex: none;
}

/* Reveal on scroll */
.js .reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   5. THE STATIONER'S FRAME (signature element)
   ========================================================= */
.page-frame {
  position: fixed; inset: var(--frame);
  border: 1px solid rgba(198, 165, 92, 0.5);
  pointer-events: none; z-index: 90;
}
.page-frame i {
  position: absolute; width: 7px; height: 7px;
  background: var(--brass); transform: rotate(45deg);
}
.page-frame i:nth-child(1) { top: -4px; left: -4px; }
.page-frame i:nth-child(2) { top: -4px; right: -4px; }
.page-frame i:nth-child(3) { bottom: -4px; left: -4px; }
.page-frame i:nth-child(4) { bottom: -4px; right: -4px; }

.admin-bar .page-frame { top: calc(var(--frame) + 32px); }
@media (max-width: 782px) {
  .admin-bar .page-frame { top: calc(var(--frame) + 46px); }
}

/* =========================================================
   6. HEADER
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; height: var(--header-h);
  padding-inline: calc(var(--frame) + 1.8rem);
  color: var(--ivory);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
              height 0.4s var(--ease);
}
.site-header.is-scrolled {
  height: 72px;
  background: rgba(8, 21, 17, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(198, 165, 92, 0.25);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.brand {
  display: inline-flex; align-items: center; gap: 0.85rem;
  text-decoration: none; color: inherit;
}
.brand .sprig { color: var(--brass); }
.brand-name {
  display: block; font-family: var(--display); font-size: 1.18rem;
  letter-spacing: 0.22em; text-transform: uppercase; line-height: 1;
}
.brand-sub {
  display: block; font-family: var(--body); font-weight: 400;
  font-size: 0.56rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--mist); margin-top: 0.35rem;
}
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 52px; width: auto; }

.site-nav { display: flex; align-items: center; }
.nav-list {
  display: flex; align-items: center; gap: 2.1rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-list a {
  font-family: var(--body); font-weight: 500; font-size: 0.7rem;
  letter-spacing: 0.26em; text-transform: uppercase; text-decoration: none;
  color: rgba(239, 233, 218, 0.82); padding: 0.4rem 0;
  background: linear-gradient(var(--brass), var(--brass)) left 100% / 0 1px no-repeat;
  transition: color 0.3s var(--ease), background-size 0.45s var(--ease);
}
.nav-list a:hover, .nav-list .is-current > a, .nav-list a.is-current {
  color: var(--brass-2); background-size: 100% 1px;
}

.nav-toggle {
  display: none; position: relative; z-index: 110;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--line-d); cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1px;
  background: var(--ivory); transition: transform 0.35s var(--ease), opacity 0.3s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile overlay menu */
.nav-overlay {
  position: fixed; inset: 0; z-index: 105;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2.5rem; background:
    radial-gradient(700px 500px at 50% 0%, rgba(198, 165, 92, 0.08), transparent 60%),
    var(--green-950);
  opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.nav-open .nav-overlay { opacity: 1; visibility: visible; }
.nav-overlay .nav-list { flex-direction: column; gap: 1.6rem; text-align: center; }
.nav-overlay .nav-list a {
  font-family: var(--display); font-size: 1.7rem; letter-spacing: 0.14em;
  text-transform: none; color: var(--ivory);
}
.nav-overlay .sprig { opacity: 0.7; }
body.nav-open { overflow: hidden; }

/* =========================================================
   7. HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 5rem;
  background:
    radial-gradient(1100px 640px at 72% 12%, rgba(198, 165, 92, 0.1), transparent 62%),
    radial-gradient(900px 620px at 12% 92%, rgba(26, 56, 44, 0.85), transparent 65%),
    var(--green-900);
  color: var(--ivory); overflow: hidden;
}
.hero-watermark {
  position: absolute; right: -4%; bottom: -8%;
  width: clamp(320px, 40vw, 620px); color: var(--brass);
  opacity: 0.055; pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 880px; }
.hero .eyebrow { color: var(--brass-2); }
.hero .eyebrow::before { display: none; }
.hero .eyebrow::after {
  content: ""; width: 2rem; height: 1px; background: currentColor; opacity: 0.6;
}
.hero .eyebrow { gap: 0.9rem; }
.hero .eyebrow .pre { width: 2rem; height: 1px; background: currentColor; opacity: 0.6; }
.hero-title {
  font-size: clamp(2.9rem, 7.4vw, 5.7rem);
  line-height: 1.04; letter-spacing: 0.01em; margin: 0 0 1.2rem;
  color: #f2ecdd;
}
.hero-sub {
  font-family: var(--accent-serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.42rem); line-height: 1.6;
  color: var(--mist); max-width: 42rem; margin: 0 auto 2.6rem;
}
.hero-actions { display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; left: 50%; bottom: calc(var(--frame) + 1.6rem);
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  font-size: 0.6rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--mist); text-decoration: none;
}
.hero-scroll::after {
  content: ""; width: 1px; height: 3rem;
  background: linear-gradient(var(--brass), transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-scroll::after { animation: drip 2.6s var(--ease) infinite; }
  @keyframes drip {
    0% { transform: scaleY(0); transform-origin: top; }
    45% { transform: scaleY(1); transform-origin: top; }
    55% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
  }
}

/* =========================================================
   8. SECTION RHYTHM
   ========================================================= */
.section { padding-block: clamp(5.5rem, 11vw, 9.5rem); }
.section[id] { scroll-margin-top: 84px; }
.section--dark { background: var(--green-900); color: var(--ivory); }
.section--deep { background: var(--green-950); color: var(--ivory); }
.section--light {
  background:
    repeating-linear-gradient(0deg, rgba(29, 39, 33, 0.016) 0 1px, transparent 1px 4px),
    var(--alab);
  color: var(--ink);
}
.section--paper {
  background:
    repeating-linear-gradient(0deg, rgba(29, 39, 33, 0.014) 0 1px, transparent 1px 4px),
    var(--paper);
  color: var(--ink);
}
.section-head { max-width: 720px; margin-bottom: clamp(2.6rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .section-lede { margin-inline: auto; }

/* =========================================================
   9. SERVICES — order-of-service ledger
   ========================================================= */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-l); }
.service-row {
  display: grid; grid-template-columns: minmax(240px, 340px) 1fr 44px;
  gap: 1.2rem 2.4rem; align-items: baseline;
  padding: 1.7rem 0.2rem; border-bottom: 1px solid var(--line-l);
  transition: background 0.35s var(--ease);
}
.service-row:hover { background: rgba(255, 255, 255, 0.45); }
.service-row h3 { font-size: 1.55rem; margin: 0; }
.service-row p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
.row-sprig {
  justify-self: end; align-self: center; color: var(--bronze);
  opacity: 0.25; transform: translateX(-6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.service-row:hover .row-sprig { opacity: 1; transform: none; }
.services-note { margin-top: 2.4rem; }

/* =========================================================
   10. PROGRAMS — design & production
   ========================================================= */
.programs-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem;
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
}
.program-card {
  position: relative; padding: 2.8rem 2.6rem 2.6rem;
  background: var(--green-800); border: 1px solid var(--line-d);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.program-card::before {
  content: ""; position: absolute; top: 0; left: 2.6rem; right: 2.6rem;
  height: 1px; background: var(--brass); transform: scaleX(0.32);
  transform-origin: left; transition: transform 0.5s var(--ease);
}
.program-card:hover { border-color: rgba(198, 165, 92, 0.55); transform: translateY(-4px); }
.program-card:hover::before { transform: scaleX(1); }
.program-card .sprig { margin-bottom: 1.4rem; }
.program-card h3 { font-size: 1.72rem; color: #f2ecdd; margin-bottom: 0.7rem; }
.program-card p { margin: 0; color: var(--mist); font-size: 0.99rem; }
.programs-foot { margin-top: 2.6rem; text-align: center; }

/* =========================================================
   11. ABOUT — the principal
   ========================================================= */
.about-grid {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 6vw, 5rem); align-items: start;
}
.about-figure {
  position: sticky; top: 110px;
  background: var(--paper); border: 1px solid var(--line-l); padding: 12px;
}
.about-figure img {
  display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
}
.about-placeholder {
  aspect-ratio: 4 / 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.6rem; background:
    radial-gradient(420px 320px at 50% 30%, rgba(198, 165, 92, 0.12), transparent 70%),
    var(--green-900);
  color: var(--brass);
}
.about-placeholder .tag {
  font-size: 0.6rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--mist);
}
.about-body p { margin: 0 0 1.3rem; }
.about-body > p:first-of-type::first-letter {
  float: left; font-family: var(--display); font-size: 3.55em;
  line-height: 0.82; padding: 0.06em 0.14em 0 0; color: var(--bronze);
}
.about-quote {
  margin: 2.2rem 0; padding-left: 1.6rem; border-left: 1px solid var(--brass);
  font-family: var(--accent-serif); font-style: italic; font-weight: 500;
  font-size: 1.5rem; line-height: 1.45; color: var(--ink);
}
.values-ribbon {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem;
  margin-top: 2.4rem; padding-top: 1.8rem; border-top: 1px solid var(--line-l);
  font-size: 0.66rem; font-weight: 500; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--bronze);
}

/* =========================================================
   12. PROJECTS — selected engagements
   ========================================================= */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.project-card {
  display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line-l); text-decoration: none; color: inherit;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}
.project-card:hover {
  transform: translateY(-5px); border-color: rgba(140, 111, 62, 0.55);
  box-shadow: 0 22px 46px rgba(8, 21, 17, 0.1);
}
.project-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.project-media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.project-card:hover .project-media img { transform: scale(1.045); }
.project-media--empty {
  display: flex; align-items: center; justify-content: center;
  background: var(--green-900); color: var(--brass);
}
.project-body { padding: 1.7rem 1.7rem 1.9rem; display: flex; flex-direction: column; gap: 0.55rem; }
.project-meta {
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--bronze);
}
.project-body h3 { font-size: 1.34rem; margin: 0; }
.project-body h3 a { text-decoration: none; }
.project-excerpt { color: var(--ink-2); font-size: 0.95rem; margin: 0; }
.project-link {
  margin-top: auto; padding-top: 0.9rem; font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink);
  text-decoration: none;
}
.project-link::after { content: "\2192"; margin-left: 0.6rem; color: var(--bronze); }
.projects-empty {
  border: 1px solid var(--line-l); background: var(--paper);
  padding: 3.4rem 2rem; text-align: center;
}
.projects-empty .accent-line { display: block; margin-top: 1rem; }

/* =========================================================
   13. GALLERY
   ========================================================= */
.gallery-flow { columns: 3 280px; column-gap: 16px; }
.gallery-flow figure, .g-tile {
  break-inside: avoid; margin: 0 0 16px;
  background: var(--green-800); border: 1px solid var(--line-d); padding: 9px;
}
.gallery-flow img { display: block; width: 100%; }
.gallery-flow figcaption {
  padding: 0.7rem 0.3rem 0.2rem; font-size: 0.78rem;
  letter-spacing: 0.06em; color: var(--mist);
}
.g-tile { display: flex; align-items: center; justify-content: center; color: var(--brass); }
.g-tile .sprig { opacity: 0.6; }
.g-tile--a { height: 300px; } .g-tile--b { height: 220px; } .g-tile--c { height: 260px; }
.g-tile--d { height: 240px; } .g-tile--e { height: 310px; } .g-tile--f { height: 210px; }
.gallery-hint { margin-top: 1.8rem; text-align: center; color: var(--mist); font-size: 0.85rem; }

/* WP gallery block, re-flowed into the framed masonry */
.gallery-embed .wp-block-gallery {
  display: block !important; columns: 3 280px; column-gap: 16px;
}
.gallery-embed .wp-block-gallery .wp-block-image,
.gallery-embed .wp-block-gallery figure {
  break-inside: avoid; width: auto !important; margin: 0 0 16px !important;
  background: var(--green-800); border: 1px solid var(--line-d); padding: 9px;
}
.gallery-embed .wp-block-gallery img { width: 100%; height: auto; }
.gallery-embed .gallery { display: block; columns: 3 280px; column-gap: 16px; }
.gallery-embed .gallery-item {
  break-inside: avoid; width: auto !important; margin: 0 0 16px;
  background: var(--green-800); border: 1px solid var(--line-d); padding: 9px;
}

/* =========================================================
   14. CONTACT — correspondence
   ========================================================= */
.contact-grid {
  display: grid; grid-template-columns: 6fr 5fr;
  gap: clamp(2.5rem, 6vw, 5rem); align-items: start;
}
.contact-list { margin: 0; display: grid; gap: 1.5rem; }
.contact-list > div { border-top: 1px solid var(--line-d); padding-top: 1.3rem; }
.contact-list dt {
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--brass-2); margin-bottom: 0.35rem;
}
.contact-list dd { margin: 0; font-size: 1.06rem; color: var(--ivory); }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line-d); transition: border-color 0.3s, color 0.3s; }
.contact-list a:hover { color: var(--brass-2); border-color: var(--brass-2); }
.contact-cta { margin-top: 2.2rem; }

/* =========================================================
   15. FOOTER
   ========================================================= */
.site-footer {
  background: var(--green-950); color: var(--mist);
  padding: clamp(3.4rem, 7vw, 5.5rem) 0 calc(var(--frame) + 2.4rem);
  text-align: center;
}
.footer-brand { display: inline-flex; flex-direction: column; align-items: center; gap: 1rem; color: var(--ivory); text-decoration: none; }
.footer-nav { margin: 2.2rem 0 1.8rem; }
.footer-nav .nav-list { justify-content: center; flex-wrap: wrap; gap: 1.4rem 2.2rem; }
.footer-nav .nav-list a { color: var(--mist); }
.footer-nav .nav-list a:hover { color: var(--brass-2); }
.footer-tag {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  font-size: 0.64rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--brass-2);
}
.footer-line { width: min(320px, 60%); height: 1px; background: var(--line-d); margin: 2rem auto; }
.footer-legal { font-size: 0.8rem; letter-spacing: 0.04em; }
.footer-legal a { text-decoration: none; border-bottom: 1px solid var(--line-d); }

/* =========================================================
   16. INNER PAGES / POSTS
   ========================================================= */
.page-hero {
  background:
    radial-gradient(900px 480px at 75% 0%, rgba(198, 165, 92, 0.1), transparent 60%),
    var(--green-900);
  color: var(--ivory);
  padding: calc(var(--header-h) + clamp(3rem, 8vw, 5.5rem)) 0 clamp(2.8rem, 6vw, 4.2rem);
}
.page-hero .eyebrow { color: var(--brass-2); }
.page-title { font-size: clamp(2.3rem, 5vw, 3.7rem); margin: 0; }
.entry-meta {
  margin-top: 1rem; font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--mist);
}
.entry-meta a { text-decoration: none; color: var(--brass-2); }

.prose { max-width: 70ch; }
.prose > p:first-of-type::first-letter {
  float: left; font-family: var(--display); font-size: 3.55em;
  line-height: 0.82; padding: 0.06em 0.14em 0 0; color: var(--bronze);
}
.prose p, .prose ul, .prose ol { margin: 0 0 1.35rem; }
.prose h2 { font-size: 1.9rem; margin-top: 2.6rem; }
.prose h3 { font-size: 1.45rem; margin-top: 2.2rem; }
.prose a { color: var(--bronze); text-decoration: none; border-bottom: 1px solid rgba(140, 111, 62, 0.4); transition: border-color 0.3s; }
.prose a:hover { border-color: var(--bronze); }
.prose blockquote {
  margin: 2.2rem 0; padding-left: 1.6rem; border-left: 1px solid var(--brass);
  font-family: var(--accent-serif); font-style: italic; font-weight: 500;
  font-size: 1.42rem; line-height: 1.5; color: var(--ink);
}
.prose blockquote p { margin-bottom: 0.6rem; }
.prose hr { border: 0; height: 1px; background: var(--line-l); margin: 2.6rem 0; }
.prose img { border: 1px solid var(--line-l); background: var(--paper); padding: 8px; }
.prose figcaption, .wp-caption-text {
  font-size: 0.82rem; color: var(--ink-2); padding-top: 0.6rem;
  font-family: var(--accent-serif); font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.6rem; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--line-l); padding: 0.7rem 0.9rem; text-align: left; }
.prose th { font-family: var(--body); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; background: rgba(29, 39, 33, 0.035); }

.entry-featured { margin: 0 0 2.4rem; border: 1px solid var(--line-l); background: var(--paper); padding: 10px; }
.entry-featured img { display: block; width: 100%; }

.post-nav { display: flex; justify-content: space-between; gap: 1.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line-l); }
.post-nav a { max-width: 46%; text-decoration: none; font-family: var(--display); font-size: 1.05rem; color: var(--ink); }
.post-nav .label { display: block; font-family: var(--body); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--bronze); margin-bottom: 0.4rem; }

/* Archive list reuses project cards */
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }

.pagination { display: flex; gap: 0.6rem; justify-content: center; margin-top: 3.2rem; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 0.8rem;
  border: 1px solid var(--line-l); text-decoration: none;
  font-size: 0.78rem; letter-spacing: 0.12em; color: var(--ink);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover {
  background: var(--green-900); border-color: var(--green-900); color: var(--ivory);
}

/* =========================================================
   17. FORMS, SEARCH, COMMENTS
   ========================================================= */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"],
input[type="search"], input[type="password"], input[type="number"], textarea, select {
  width: 100%; padding: 0.95rem 1.1rem;
  font-family: var(--body); font-weight: 300; font-size: 0.98rem;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-l); border-radius: 0;
  transition: border-color 0.3s var(--ease);
}
textarea { min-height: 160px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--bronze); outline: none; }
.section--dark input, .section--dark textarea, .section--deep input, .section--deep textarea {
  background: rgba(255, 255, 255, 0.04); color: var(--ivory); border-color: var(--line-d);
}
label { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--bronze); }
input[type="submit"], button[type="submit"], .wp-block-button__link {
  display: inline-block; width: auto;
  font-family: var(--body); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.24em; text-transform: uppercase;
  padding: 1rem 2rem; border: 1px solid var(--green-900); border-radius: 0;
  background: var(--green-900); color: var(--ivory); cursor: pointer;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}
input[type="submit"]:hover, button[type="submit"]:hover, .wp-block-button__link:hover {
  background: var(--green-700); border-color: var(--green-700);
}
.wpcf7 p { margin-bottom: 1.2rem; }

.search-form { display: flex; gap: 0.7rem; max-width: 480px; }
.search-form .search-field { flex: 1; }

.comments-area { margin-top: 3.6rem; padding-top: 2.6rem; border-top: 1px solid var(--line-l); max-width: 70ch; }
.comments-title, .comment-reply-title { font-size: 1.5rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .comment { padding: 1.5rem 0; border-bottom: 1px solid var(--line-l); }
.comment-list .children { list-style: none; margin: 1rem 0 0; padding-left: 1.6rem; border-left: 1px solid var(--line-l); }
.comment-author { font-family: var(--display); font-size: 1.05rem; }
.comment-author .avatar { display: none; }
.comment-metadata { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-2); }
.comment-metadata a { text-decoration: none; color: inherit; }
.comment-content { margin-top: 0.6rem; }
.comment-form { display: grid; gap: 1.1rem; }
.comment-form label { display: block; margin-bottom: 0.4rem; }
.comment-notes, .logged-in-as { font-size: 0.85rem; color: var(--ink-2); }
.reply .comment-reply-link {
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--bronze); text-decoration: none;
}

/* =========================================================
   18. 404
   ========================================================= */
.page-404 {
  min-height: 100svh; display: flex; align-items: center; text-align: center;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
}
.page-404 .container { max-width: 640px; }
.page-404 .search-form { margin: 2.2rem auto 0; }

/* =========================================================
   19. WP CORE REQUIREMENTS
   ========================================================= */
.alignleft { float: left; margin: 0.4rem 1.6rem 1rem 0; }
.alignright { float: right; margin: 0.4rem 0 1rem 1.6rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { width: min(1280px, 100% - 3rem); margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; }
.wp-caption { max-width: 100%; }
.sticky { position: relative; }
.bypostauthor { position: relative; }
.gallery-caption { font-size: 0.82rem; }

/* =========================================================
   20. RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .projects-grid, .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { position: static; max-width: 460px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  :root { --header-h: 72px; --frame: 10px; }
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .service-row { grid-template-columns: 1fr 32px; }
  .service-row p { grid-column: 1 / -1; }
  .programs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .projects-grid, .archive-grid { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .post-nav { flex-direction: column; }
  .post-nav a { max-width: 100%; }
}

/* =========================================================
   21. REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   22. PRINT — the site is, after all, a program
   ========================================================= */
@media print {
  .page-frame, .site-header, .nav-overlay, .hero-scroll, .site-footer { display: none; }
  body { background: #fff; color: #000; }
}
