/* ============================================================
   H&H Ranch -- Editorial Stylesheet v14.2
   Piece 1 (revised): palette + typography matched to v12 deployed
   ------------------------------------------------------------
   Type:  Cormorant Garamond (display, h1-h3, lede, pull, dropcap)
          DM Sans            (body, nav, eyebrows, meta, links)
   Color: green-tinted system from project.h-hranch.com
          dark green-black ink, muted gold, gold-light italic accents
   Layout: asymmetric two-column on Home (marginalia + body)
           single-column reading flow on inner pages
           dark-green colophon footer (v12 signature)
   ============================================================ */

:root {
  /* ----- background scale ----- */
  --bg:        #f7f4ef;
  --bg-warm:   #f0ebe2;
  --bg-mid:    #e8e1d6;
  --bg-deep:   #2a3d2e;
  --bg-deepest:#1e2e21;

  /* ----- ink (text) scale -- dark green-black, not warm brown ----- */
  --ink:       #1c2b1e;
  --ink-mid:   #3d5040;
  --ink-soft:  #6b7d6e;
  --ink-ghost: #9aab9d;

  /* ----- gold (muted, not bright) ----- */
  --gold:       #9e7c3a;
  --gold-light: #c2a46b;
  --gold-pale:  #e8d8b8;
  --gold-wash:  #f5eedf;

  /* ----- green accents ----- */
  --green:       #2e5e4e;
  --green-light: #3d7a62;
  --green-pale:  #d4e6dc;

  /* ----- borders (green-tinted rgba) ----- */
  --border:      rgba(28,43,30,0.10);
  --border-mid:  rgba(28,43,30,0.18);
  --border-gold: rgba(158,124,58,0.25);

  /* ----- font families ----- */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* ----- type sizes ----- */
  --t-eyebrow: 11px;
  --t-meta:    13px;
  --t-link:    13px;
  --t-body:    16px;
  --t-h3:      19px;
  --t-lede:    clamp(20px, 2.4vw, 26px);
  --t-pull:    clamp(20px, 2.5vw, 26px);
  --t-h2:      clamp(28px, 4vw, 44px);
  --t-h1:      clamp(42px, 7vw, 72px);

  /* ----- spacing ----- */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2.25rem;
  --s-5: 3.5rem;
  --s-6: 6rem;
  --s-7: 8rem;

  /* ----- layout ----- */
  --max:         1100px;
  --gutter:      2rem;
  --rail:        220px;
  --rail-gap:    var(--s-5);
  --reading-col: 680px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html, body { background: var(--bg); }

body {
  font-family: var(--sans);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 3px;
  transition: color 150ms ease, border-color 150ms ease, text-decoration-thickness 120ms ease;
}
a:hover { text-decoration-thickness: 1.25px; }

::selection { background: var(--gold-wash); color: var(--ink); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

/* ============================================================
   MASTHEAD -- sticky, low, backdrop-blurred (v12 pattern)
   ============================================================ */

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,244,239,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--s-4);
}

.masthead__brand {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.05;
}

.masthead__brand-mark {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink);
}

.masthead__brand-mark .amp {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

.masthead__brand-sub {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-ghost);
}

.masthead__nav {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.masthead__nav a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0 var(--s-2);
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.masthead__nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

.masthead__nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ============================================================
   COMMON TYPOGRAPHIC ELEMENTS
   ============================================================ */

.eyebrow {
  font-family: var(--sans);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.meta-line {
  font-family: var(--sans);
  font-size: var(--t-meta);
  font-weight: 400;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.7;
}

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--t-h1);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-3);
  color: var(--ink);
  text-wrap: balance;
}

.display em {
  color: var(--gold-light);
  font-style: italic;
  font-weight: 300;
}

.lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-lede);
  line-height: 1.42;
  color: var(--ink-mid);
  margin: 0;
  max-width: 38em;
}

.rule {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0 0 var(--s-4);
}

.dinkus {
  border: 0;
  text-align: center;
  margin: var(--s-4) 0;
  height: 1em;
  overflow: visible;
}
.dinkus::after {
  content: "* * *";
  color: var(--gold-light);
  letter-spacing: 0.65em;
  font-size: 0.95rem;
  font-family: var(--serif);
}

.pull {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: var(--t-pull);
  line-height: 1.42;
  color: var(--ink-mid);
  margin: var(--s-4) 0;
  padding: 0 0 0 var(--s-3);
  border-left: 2px solid var(--gold);
  max-width: 32em;
}

/* ============================================================
   HOME -- HERO
   Asymmetric: marginalia rail on left, title + mission on right.
   ============================================================ */

.hero {
  padding: var(--s-6) 0 var(--s-5);
}

.hero__grid {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  gap: var(--rail-gap);
  align-items: start;
}

.hero__meta {
  padding-top: var(--s-1);
  border-top: 1px solid var(--border);
}

.hero__meta .eyebrow {
  margin-top: var(--s-1);
  margin-bottom: var(--s-2);
}

.hero__mission {
  margin-top: var(--s-3);
}

.hero__mission .eyebrow {
  margin-bottom: var(--s-1);
}

/* ============================================================
   HOME -- ESSAY
   Single reading column, aligned to hero body column.
   ============================================================ */

.essay {
  padding: var(--s-3) 0 var(--s-5);
}

.essay__inner,
.origin__inner {
  max-width: var(--reading-col);
  margin-left: calc(var(--rail) + var(--rail-gap));
  margin-right: auto;
}

.essay p,
.origin p {
  margin: 0 0 var(--s-3);
  color: var(--ink-mid);
}

.essay p:last-child,
.origin p:last-child { margin-bottom: 0; }

.dropcap::first-letter {
  font-family: var(--serif);
  font-weight: 400;
  float: left;
  font-size: 4.4rem;
  line-height: 0.86;
  padding: 0.4rem 0.5rem 0 0;
  color: var(--ink);
}

/* ============================================================
   HOME -- ORIGIN (Everitt Farms -> H&H Ranch)
   ============================================================ */

.origin {
  padding: var(--s-3) 0 var(--s-6);
}

.origin__head,
.essay__head {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--t-h2);
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: var(--s-4) 0 var(--s-3);
  color: var(--ink);
}

.origin__head .arrow {
  color: var(--gold-light);
  font-style: italic;
  padding: 0 0.18em;
}

/* ============================================================
   HOME -- WHERE TO GO NEXT
   Left-rail label + 3 editorial blurbs.
   ============================================================ */

.next {
  padding: 0 0 var(--s-6);
}

.next__grid {
  display: grid;
  grid-template-columns: var(--rail) 1fr 1fr 1fr;
  gap: var(--rail-gap) var(--s-4);
  align-items: start;
}

.next__label .eyebrow { margin: 0; }

.next__item h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-h3);
  line-height: 1.2;
  margin: 0 0 var(--s-1);
  color: var(--ink);
  letter-spacing: -0.005em;
}

.next__item p {
  margin: 0 0 var(--s-2);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.link {
  font-family: var(--sans);
  font-size: var(--t-link);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--gold);
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 2px;
}
.link:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

/* ============================================================
   COLOPHON (footer) -- dark green (v12 signature treatment)
   ============================================================ */

.colophon {
  background: var(--bg-deepest);
  padding: var(--s-5) 0 var(--s-4);
  margin-top: var(--s-6);
  color: rgba(255,255,255,0.5);
}

.colophon__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--s-4);
  align-items: start;
}

.colophon__brand {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  color: #fff;
  margin: 0 0 0.5rem;
  letter-spacing: -0.005em;
}

.colophon__about p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,0.45);
  max-width: 32em;
}

.colophon__contact p:first-child,
.colophon__internal p:first-child {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 0.75rem;
}

.colophon__contact a {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(194,164,107,0.30);
  padding-bottom: 2px;
}
.colophon__contact a:hover {
  color: #fff;
  border-bottom-color: var(--gold-light);
}

.quiet-link {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(194,164,107,0.20);
  padding-bottom: 2px;
}
.quiet-link:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

/* ============================================================
   PROJECT PAGE
   Layer grid (4 asymmetric blocks: eyebrow rail label + body)
   Reading-aligned subheads (DDA + Current state) reuse the
   .origin__head selector extension above and the .essay/.essay__inner
   patterns from the home page.
   ============================================================ */

.layers {
  padding: var(--s-3) 0 var(--s-5);
}

.layer {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  gap: var(--rail-gap);
  align-items: start;
  padding-bottom: var(--s-4);
}

.layer:last-child { padding-bottom: 0; }

.layer__label .eyebrow {
  margin: 0;
  padding-top: 0.35rem;
}

.layer__body {
  max-width: var(--reading-col);
}

.layer__body p {
  margin: 0 0 var(--s-3);
  color: var(--ink-mid);
}

.layer__body p:last-child { margin-bottom: 0; }

.layer__body em {
  color: var(--ink);
  font-style: italic;
}

/* ============================================================
   VISIT PAGE
   Mailing-list inquiry form. Editorial restraint -- thin borders,
   no rounded corners, gold focus, gold-bordered submit.
   ============================================================ */

.inquiry-form {
  margin: var(--s-3) 0 0;
  max-width: var(--reading-col);
}

.inquiry-form__noscript {
  background: var(--gold-wash);
  border-left: 2px solid var(--gold);
  padding: var(--s-2) var(--s-3);
  margin: var(--s-3) 0;
  font-size: 15px;
  color: var(--ink-mid);
  font-style: italic;
}

.inquiry-form__row {
  margin-bottom: var(--s-3);
}

.inquiry-form__row > label,
.inquiry-form__checkboxes > legend {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink);
  display: block;
  margin-bottom: 0.45rem;
}

.inquiry-form__optional {
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 13px;
}

.inquiry-form input[type="text"],
.inquiry-form input[type="email"],
.inquiry-form textarea {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border-mid);
  border-radius: 0;
  padding: 0.65rem 0.8rem;
  width: 100%;
  display: block;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 150ms ease;
}

.inquiry-form input[type="text"]:focus,
.inquiry-form input[type="email"]:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.inquiry-form textarea {
  resize: vertical;
  min-height: 4em;
  line-height: 1.6;
  font-family: var(--sans);
}

.inquiry-form__checkboxes {
  margin: 0 0 var(--s-3);
  padding: 0;
  border: 0;
}

.inquiry-form__checkboxes > legend {
  padding: 0;
}

.inquiry-form__checkboxes label {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
  margin: 0.4rem 0 0 0;
  cursor: pointer;
}

.inquiry-form__checkboxes input[type="checkbox"] {
  margin: 0;
  width: 14px;
  height: 14px;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.inquiry-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.inquiry-form__actions {
  margin-top: var(--s-3);
}

.inquiry-form__submit {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 0;
  padding: 0.85rem 1.8rem;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.inquiry-form__submit:hover {
  background: var(--gold-wash);
}

.inquiry-form__submit:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.inquiry-form__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.inquiry-form__message {
  margin-top: var(--s-2);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  min-height: 1.5em;
}

.inquiry-form__message--pending { color: var(--ink-soft); }
.inquiry-form__message--success { color: var(--green); font-style: italic; }
.inquiry-form__message--error   { color: #a04040; font-style: italic; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 820px) {
  :root {
    --s-6: 4rem;
    --s-7: 5rem;
    --rail-gap: var(--s-3);
    --gutter: 1.25rem;
  }

  .masthead__inner {
    height: 56px;
    gap: var(--s-2);
  }

  .masthead__nav { gap: 0; }
  .masthead__nav a { padding: 0 0.65rem; font-size: 12px; }

  .masthead__brand-sub { display: none; }

  .hero { padding: var(--s-5) 0 var(--s-3); }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }

  .hero__meta {
    border-top: 1px solid var(--border);
    padding-top: var(--s-2);
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--s-3);
  }

  .hero__meta .eyebrow { width: 100%; margin-bottom: 0.2rem; }

  .essay { padding: var(--s-3) 0 var(--s-3); }
  .origin { padding: var(--s-2) 0 var(--s-5); }

  .essay__inner,
  .origin__inner {
    margin-left: 0;
    max-width: 100%;
  }

  .origin__head,
  .essay__head {
    font-size: 1.5rem;
    margin-top: var(--s-3);
  }

  .layers { padding: var(--s-2) 0 var(--s-4); }

  .layer {
    grid-template-columns: 1fr;
    gap: var(--s-1);
    padding-bottom: var(--s-3);
  }

  .layer__label .eyebrow { padding-top: 0; }

  .layer__body { max-width: 100%; }

  .dropcap::first-letter {
    font-size: 3.4rem;
    padding-right: 0.4rem;
  }

  .next__grid {
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }

  .next__label .eyebrow { margin-bottom: 0; }

  .colophon__inner {
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }
}

/* ============================================================
   PRINT
   ============================================================ */

@media print {
  .masthead, .colophon, .next { display: none; }
  body { background: white; color: black; }
  .display, .lede, h1, h2, h3 { color: black; }
  .display em { color: #555; font-style: italic; }
  .pull { border-left-color: #999; color: #333; }
  a { text-decoration: none; color: black; }
}
