/* Tillmark Sourcing — shared stylesheet
   Palette (documented in README.md):
   forest      #1F3D2B  primary brand green, headings, header band
   forest-900  #142A1D  footer, deepest ground
   forest-700  #2E5540  hover state for green buttons and links
   cream       #F4EFE4  page ground
   paper       #FBF8F1  cards and form panels
   wheat       #E4D8BF  rules, borders, table stripes
   gold        #C9A24B  hemp-gold accent: rules, marks, text on dark green only
   gold-ink    #75581A  gold for text on light grounds (passes WCAG AA)
   charcoal    #23272A  body text
   slate       #50565A  secondary text
   No web fonts are loaded: headings use the system serif stack, body the system sans stack. */

:root {
  --forest: #1F3D2B;
  --forest-900: #142A1D;
  --forest-700: #2E5540;
  --cream: #F4EFE4;
  --paper: #FBF8F1;
  --wheat: #E4D8BF;
  --gold: #C9A24B;
  --gold-ink: #75581A;
  --charcoal: #23272A;
  --slate: #50565A;
  --error: #9B2C1F;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 72rem;
  --radius: 4px;
}

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

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font: 1.0625rem/1.65 var(--sans);
}
img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--forest);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p, ul, ol, table { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }
strong { font-weight: 650; }

a { color: var(--forest); text-decoration-color: var(--gold); text-underline-offset: .18em; text-decoration-thickness: 2px; }
a:hover { color: var(--forest-700); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--forest); color: var(--cream); padding: .6rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { background: var(--cream); border-bottom: 1px solid var(--wheat); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; flex-wrap: wrap; }
.brand { display: inline-flex; text-decoration: none; padding: .5rem 0; }
.brand img { width: 220px; height: auto; }
.hero-photo { background-size: cover; background-position: center right; }
.hero-photo .lead { color: #F1ECDF; }
.site-footer .brand img { width: 180px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; align-items: center; }
.site-nav li { margin: 0; }
.site-nav a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--charcoal); padding: .35rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--forest); border-bottom-color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--forest); border-bottom-color: var(--gold); }
.site-nav a.nav-cta { background: var(--forest); color: var(--cream); padding: .5rem 1rem; border-radius: var(--radius); border: 0; }
.site-nav a.nav-cta:hover { background: var(--forest-700); color: var(--cream); }

/* Hero */
.hero { background: var(--forest); color: var(--cream); padding: 4.5rem 0 4rem; border-bottom: 4px solid var(--gold); }
.hero h1, .hero-photo h1 { color: var(--cream) !important; max-width: 22ch; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.hero .lead { font-size: 1.2rem; max-width: 40rem; color: #E9E2D2; }
.hero a:not(.btn) { color: var(--cream); }
.eyebrow {
  display: block; font: 600 .78rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: .9rem;
}
.hero .eyebrow, .band-dark .eyebrow { color: var(--gold); }
.page-head { padding: 3.5rem 0 2.5rem; border-bottom: 1px solid var(--wheat); background: var(--paper); }
.page-head .lead { font-size: 1.15rem; max-width: 44rem; color: var(--slate); margin: 0; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: .8rem 1.35rem; border-radius: var(--radius); border: 2px solid var(--forest);
  background: var(--forest); color: var(--cream); cursor: pointer; line-height: 1.2;
}
.btn:hover { background: var(--forest-700); border-color: var(--forest-700); color: var(--cream); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--forest-900); }
.btn-gold:hover { background: #D8B563; border-color: #D8B563; color: var(--forest-900); }
.btn-ghost { background: transparent; color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: var(--cream); }
.hero .btn-ghost { color: var(--cream); border-color: var(--cream); }
.btn-door { background: transparent; color: var(--cream); border: 2px solid var(--gold); }
.btn-door:hover, .btn-door:focus { background: var(--gold); border-color: var(--gold); color: var(--forest-900); }
.hero .btn-ghost:hover { background: var(--cream); color: var(--forest); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Sections */
.section { padding: 4rem 0; }
.section + .section { border-top: 1px solid var(--wheat); }
.band-paper { background: var(--paper); }
.band-dark { background: var(--forest-900); color: var(--cream); }
.band-dark h2, .band-dark h3 { color: var(--cream); }
.band-dark a { color: var(--cream); }
.section-intro { max-width: 44rem; color: var(--slate); font-size: 1.08rem; }
.band-dark .section-intro { color: #DCD5C5; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }

.card { background: var(--paper); border: 1px solid var(--wheat); border-top: 3px solid var(--forest); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .more { font-weight: 600; }
.band-paper .card { background: var(--cream); }

.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.steps li { counter-increment: step; border-top: 2px solid var(--gold); padding-top: 1rem; margin: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 600 .85rem var(--mono); color: var(--gold-ink); margin-bottom: .4rem; }
.band-dark .steps li::before { color: var(--gold); }
.steps strong { display: block; font-family: var(--serif); font-size: 1.12rem; color: var(--forest); margin-bottom: .25rem; }
.band-dark .steps strong { color: var(--cream); }

.callout { background: var(--paper); border: 1px solid var(--wheat); border-left: 5px solid var(--gold); padding: 1.4rem 1.6rem; border-radius: var(--radius); margin: 0 0 1.5rem; }
.callout p:last-child { margin-bottom: 0; }
.callout h3 { margin-top: 0; }
.note { font-size: .92rem; color: var(--slate); }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.8rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .5em; width: .8rem; height: .45rem; border-left: 2px solid var(--forest); border-bottom: 2px solid var(--forest); transform: rotate(-45deg); }

.standard { list-style: none; padding: 0; counter-reset: std; }
.standard li { counter-increment: std; display: grid; grid-template-columns: 3rem 1fr; gap: .5rem 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--wheat); margin: 0; }
.standard li::before { content: counter(std, upper-roman); font: 600 1.15rem var(--serif); color: var(--gold-ink); }
.standard h3 { margin: 0 0 .25rem; }
.standard p { margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin-bottom: 1.25rem; }
table { border-collapse: collapse; width: 100%; font-size: .97rem; background: var(--paper); }
caption { text-align: left; font-weight: 600; padding: 0 0 .5rem; color: var(--slate); }
th, td { text-align: left; vertical-align: top; padding: .7rem .85rem; border-bottom: 1px solid var(--wheat); }
thead th { background: var(--forest); color: var(--cream); font-weight: 600; }
tbody tr:nth-child(even) { background: #F6F1E6; }
.formula { font-family: var(--mono); background: var(--paper); border: 1px solid var(--wheat); padding: 1rem 1.2rem; border-radius: var(--radius); overflow-x: auto; }

/* Insights */
.post { border-bottom: 1px solid var(--wheat); padding: 2rem 0; }
.post:first-of-type { padding-top: 0; }
.post .meta { font-size: .85rem; color: var(--slate); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .4rem; }
.post h2 { font-size: 1.5rem; }

/* Forms */
.form-nav { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.form-nav li { margin: 0; }
form.enquiry { background: var(--paper); border: 1px solid var(--wheat); border-top: 4px solid var(--forest); border-radius: var(--radius); padding: 2rem; margin-bottom: 3rem; scroll-margin-top: 1rem; }
form.enquiry h2 { margin-bottom: .25rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
legend { font: 600 1.1rem var(--serif); color: var(--forest); padding: 0; margin-bottom: .75rem; border-bottom: 1px solid var(--wheat); width: 100%; padding-bottom: .35rem; }
.fields { display: grid; gap: 1rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field.full { grid-column: 1 / -1; }
label, .group-label { font-weight: 600; font-size: .95rem; }
.req { color: var(--error); }
.hint { font-size: .85rem; color: var(--slate); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="month"], input[type="url"], select, textarea {
  font: inherit; font-size: 1rem; color: var(--charcoal); background: #fff;
  border: 1px solid #A9A08C; border-radius: var(--radius); padding: .6rem .7rem; width: 100%;
}
input[type="file"] { font: inherit; font-size: .95rem; }
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--forest); outline: 3px solid rgba(201,162,75,.6); outline-offset: 0; }
.options { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.options label { font-weight: 400; display: inline-flex; gap: .45rem; align-items: center; }
.consent label { font-weight: 400; display: flex; gap: .6rem; align-items: flex-start; }
.consent input { margin-top: .35rem; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--forest-900); color: #DCD5C5; padding: 3rem 0 2rem; font-size: .95rem; border-top: 4px solid var(--gold); }
.site-footer a { color: var(--cream); }
.site-footer .cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin-bottom: 2rem; }
.site-footer h2 { font-size: .8rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer .fine { border-top: 1px solid #2C4434; padding-top: 1.25rem; font-size: .85rem; color: #BDB6A6; }
.footer-mark { color: var(--cream); font: 600 1.35rem var(--serif); letter-spacing: .04em; margin-bottom: .5rem; }

@media (max-width: 720px) {
  .site-header .bar { padding-top: .5rem; padding-bottom: .75rem; }
  .site-nav { width: 100%; }
  .site-nav ul { gap: .4rem 1rem; }
  .hero { padding: 3rem 0 2.75rem; }
  .section { padding: 2.75rem 0; }
  form.enquiry { padding: 1.25rem; }
  .standard li { grid-template-columns: 2.25rem 1fr; }
}

@media print {
  .site-header nav, .actions, .site-footer, form.enquiry { display: none; }
  body { background: #fff; }
  .hero { background: #fff; color: #000; border: 0; }
  .hero h1 { color: #000; }
}

.photo-band { height: 260px; background-size: cover; background-position: center; border-bottom: 4px solid var(--gold); }
@media (max-width: 700px) { .photo-band { height: 160px; } }
