/* ==========================================================================
   Canobolas Highland Co. — site stylesheet
   Editorial rural aesthetic: oat paper, ink green, Highland rust.
   One stylesheet, no build step.
   ========================================================================== */

:root {
  /* Palette */
  --paper:      #F5EFE3;
  --paper-2:    #EFE7D6;
  --paper-3:    #E5DAC4;
  --ink:        #1F241D;
  --ink-soft:   #414A3C;
  --ink-mute:   #6B7364;
  --moss:       #33402F;
  --rust:       #A2411C;
  --rust-deep:  #7C2F12;
  --ochre:      #C2882C;
  --line:       #CFC3A9;
  --white:      #FCFAF5;

  /* Type */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Instrument Sans", "Helvetica Neue", Helvetica, sans-serif;

  /* Rhythm */
  --gut: clamp(1.25rem, 3vw, 2.5rem);
  --shell: 1240px;
  --measure: 68ch;

  --radius: 2px;
  --shadow: 0 1px 2px rgba(31,36,29,.06), 0 12px 30px -18px rgba(31,36,29,.35);
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--rust); }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

/* Paper grain */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.22'/></svg>");
}
body > * { position: relative; z-index: 1; }

/* ---------------------------------------------------------- typography -- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "SOFT" 20, "WONK" 1;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1.15em; }

.eyebrow {
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 1.1rem;
  display: flex; align-items: center; gap: .8rem;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.eyebrow--plain::after { display: none; }

.lede { font-size: clamp(1.1rem, 1.7vw, 1.32rem); line-height: 1.6; color: var(--ink-soft); max-width: 44ch; }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.4em; }
.prose h3 { margin-top: 1.9em; }
.prose ul, .prose ol { padding-left: 1.15rem; margin: 0 0 1.3em; }
.prose li { margin-bottom: .5em; }
.prose blockquote {
  margin: 2rem 0; padding: .2rem 0 .2rem 1.5rem;
  border-left: 3px solid var(--rust);
  font-family: var(--display); font-size: 1.28rem; line-height: 1.4; color: var(--moss);
}
.small { font-size: .84rem; line-height: 1.55; color: var(--ink-mute); }

/* -------------------------------------------------------------- layout -- */
.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }
.shell--narrow { width: min(100% - 2.5rem, 780px); margin-inline: auto; }
section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.band { background: var(--paper-2); border-block: 1px solid var(--line); }
.band--dark { background: var(--moss); border-color: #26301F; color: #E9E3D3; }
.band--dark h2, .band--dark h3 { color: var(--white); }
.band--dark .eyebrow { color: var(--ochre); }
.band--dark .eyebrow::after { background: #4E5C48; }
.band--dark a { color: var(--ochre); }
.band--dark .lede, .band--dark p { color: #D3CDBC; }

.grid { display: grid; gap: var(--gut); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 0.85fr 1.15fr; } .split--even { grid-template-columns: 1fr 1fr; } }
.stack > * + * { margin-top: 1.1rem; }

/* --------------------------------------------------------- preview bar -- */
/* Remove this block (and the markup) when the site goes live. */
.preview-bar {
  background: var(--ink); color: #E7E1D2;
  font-size: .76rem; letter-spacing: .04em;
  text-align: center; padding: .55rem 1rem;
}
.preview-bar strong { color: var(--ochre); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

/* -------------------------------------------------------------- header -- */
.masthead { border-bottom: 1px solid var(--line); background: rgba(245,239,227,.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 50; }
.masthead__inner { display: flex; align-items: center; gap: 1.5rem; justify-content: space-between; padding-block: .9rem; }
.wordmark { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.wordmark__mark { width: 34px; height: 34px; flex: none; }
.wordmark__text { font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em; line-height: 1.05; }
.wordmark__text span { display: block; font-family: var(--body); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); font-weight: 500; margin-top: .18rem; }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { font-size: .89rem; color: var(--ink-soft); text-decoration: none; font-weight: 500; padding-block: .3rem; border-bottom: 1.5px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-color: var(--rust); }
/* .nav a would otherwise win on specificity and grey out the button label. */
.nav a.btn { color: var(--paper); border-color: var(--ink); }
.nav a.btn:hover { color: var(--white); border-color: var(--rust-deep); }
.nav__cta { margin-left: .4rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .7rem; font: inherit; font-size: .8rem; cursor: pointer; color: var(--ink); }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: .75rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: .9rem; text-align: center; }
}

/* ------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font: inherit; font-size: .92rem; font-weight: 600; letter-spacing: .01em;
  padding: .78rem 1.35rem; border-radius: var(--radius);
  border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--rust-deep); border-color: var(--rust-deep); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--light { background: var(--ochre); border-color: var(--ochre); color: #241A05; }
.btn--light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--wide { width: 100%; justify-content: center; }
.btn__arrow { transition: transform .18s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.textlink { font-weight: 600; font-size: .92rem; text-decoration: none; border-bottom: 1.5px solid var(--rust); padding-bottom: 2px; }
.textlink:hover { border-color: var(--ink); }

/* ---------------------------------------------------------------- hero -- */
.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(24,29,22,.90) 0%, rgba(24,29,22,.72) 42%, rgba(24,29,22,.18) 78%, rgba(24,29,22,.05) 100%);
}
.hero__inner { position: relative; padding-block: clamp(4rem, 12vw, 9rem); color: #F2ECDD; max-width: 46rem; }
.hero__inner h1 { color: var(--white); font-size: clamp(2.7rem, 7vw, 5.2rem); }
.hero__inner h1 em { font-style: italic; color: var(--ochre); font-variation-settings: "SOFT" 60, "WONK" 1; }
.hero__inner .eyebrow { color: var(--ochre); }
.hero__inner .eyebrow::after { background: rgba(255,255,255,.28); }
.hero__inner .lede { color: #DCD5C4; max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.2); }
.hero__facts div { min-width: 8rem; }
.hero__facts dt { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(233,227,211,.65); margin-bottom: .3rem; }
.hero__facts dd { margin: 0; font-family: var(--display); font-size: 1.28rem; color: var(--white); }

/* page hero (interior pages) */
.pagehead { border-bottom: 1px solid var(--line); background: var(--paper-2); }
.pagehead__inner { padding-block: clamp(2.8rem, 7vw, 5rem); max-width: 52rem; }
.pagehead h1 { margin-bottom: .35em; }

/* ---------------------------------------------------------------- misc -- */
.rule-top { border-top: 1px solid var(--line); padding-top: 1.25rem; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 2.6vw, 2rem); display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .45em; }
.card__num {
  font-family: var(--display); font-size: 2.4rem; line-height: 1;
  color: var(--paper-3); margin-bottom: .6rem;
}
.card--flush { padding: 0; overflow: hidden; }
.card--flush img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card--flush .card__body { padding: clamp(1.2rem, 2.4vw, 1.7rem); }

/* Price tiers */
.tiers { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tier { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.tier--feature { border-color: var(--rust); box-shadow: var(--shadow); }
.tier__flag { background: var(--rust); color: var(--white); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; text-align: center; padding: .4rem; font-weight: 600; }
.tier__img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.tier__body { padding: clamp(1.3rem, 2.4vw, 1.8rem); display: flex; flex-direction: column; flex: 1; }
.tier__price { font-family: var(--display); font-size: 2.3rem; line-height: 1; margin: .3rem 0 .15rem; }
.tier__price small { font-family: var(--body); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); display: block; margin-top: .5rem; font-weight: 500; }
.tier__list { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; font-size: .92rem; }
.tier__list li { padding-left: 1.5rem; position: relative; margin-bottom: .55rem; color: var(--ink-soft); }
.tier__list li::before { content: ""; position: absolute; left: 0; top: .58em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--ochre); }
.tier__body .btn { margin-top: auto; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .93rem; }
th, td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--paper-2); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
td strong { font-family: var(--display); font-size: 1.05rem; }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 1.6rem; }
.steps li { counter-increment: step; padding-left: 3.5rem; position: relative; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -.15rem;
  font-family: var(--display); font-size: 1.5rem; color: var(--rust);
}
.steps h3 { font-size: 1.12rem; margin-bottom: .25em; }
.steps p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

/* FAQ */
details.faq { border-bottom: 1px solid var(--line); padding: 1.15rem 0; }
details.faq summary {
  cursor: pointer; list-style: none; font-family: var(--display); font-size: 1.16rem;
  display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--rust); font-size: 1.4rem; line-height: 1; flex: none; }
details.faq[open] summary::after { content: "–"; }
details.faq .faq__body { padding-top: .9rem; max-width: var(--measure); }
details.faq .faq__body p:last-child { margin-bottom: 0; }

/* Gallery */
.gallery { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: var(--radius); }
.gallery figcaption { font-size: .78rem; color: var(--ink-mute); margin-top: .5rem; }
.gallery--tall img { aspect-ratio: 3/4; }

/* Forms */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: flex; flex-direction: column; gap: .38rem; }
.field label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; padding: .72rem .85rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--rust); outline-offset: 1px; border-color: var(--rust); }
.field textarea { min-height: 7rem; resize: vertical; }
.field--check { flex-direction: row; align-items: flex-start; gap: .65rem; }
.field--check label { text-transform: none; letter-spacing: 0; font-size: .88rem; font-weight: 400; color: var(--ink-soft); line-height: 1.5; }
.field--check input { margin-top: .25rem; accent-color: var(--rust); }
.form__note { font-size: .82rem; color: var(--ink-mute); }
.form__status { padding: .9rem 1.1rem; border-radius: var(--radius); font-size: .9rem; display: none; }
.form__status[data-state="ok"] { display: block; background: #E4EBDD; border: 1px solid #A9BC9B; color: #2F4126; }
.form__status[data-state="error"] { display: block; background: #F6E3DA; border: 1px solid #D6A088; color: #7C2F12; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pull quote / callout */
.callout {
  border: 1px solid var(--line); border-left: 4px solid var(--ochre);
  background: var(--white); padding: 1.3rem 1.5rem; border-radius: var(--radius);
  margin: 2rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout h4 { margin-bottom: .4em; }

/* Article list */
.article-list { display: grid; gap: 0; }
.article-list a {
  display: grid; gap: .35rem 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink); grid-template-columns: 1fr;
}
@media (min-width: 780px) { .article-list a { grid-template-columns: 9rem 1fr auto; align-items: baseline; } }
.article-list a:hover h3 { color: var(--rust-deep); }
.article-list h3 { font-size: 1.3rem; margin: 0; }
.article-list .meta { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.article-list p { margin: .3rem 0 0; font-size: .93rem; color: var(--ink-soft); grid-column: 1 / -1; max-width: var(--measure); }
@media (min-width: 780px) { .article-list p { grid-column: 2 / 3; } }
.article-list .soon { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }

/* Trust strip */
.trust { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.trust div { border-top: 2px solid var(--rust); padding-top: 1rem; }
.trust dt { font-family: var(--display); font-size: 1.15rem; margin-bottom: .3rem; }
.trust dd { margin: 0; font-size: .9rem; color: var(--ink-soft); }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .lede { margin-inline: auto; max-width: 46ch; }
.cta-band .hero__actions { justify-content: center; }

/* -------------------------------------------------------------- footer -- */
.foot { background: var(--ink); color: #C9C4B5; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: .9rem; }
.foot a { color: #E4DECD; text-decoration: none; }
.foot a:hover { color: var(--ochre); }
.foot__grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.foot h4 { color: var(--white); font-family: var(--body); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: .5rem; }
.foot__brand .wordmark__text { color: var(--white); }
.foot__brand p { max-width: 30ch; margin-top: 1rem; color: #A8A395; font-size: .87rem; }
.foot__legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #343A2F; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; color: #8A8577; font-size: .8rem; }

/* ------------------------------------------------------------ reveals -- */
/* Gated on .js so the page is fully legible if the script never runs. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper);
  padding: .7rem 1.1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }
