/* Freedom Farm. A field guide to what adults get up to on the land.
   No em dashes, no dashes in titles, no pipe bars anywhere. */

:root {
  --bg:       #16171a;   /* charcoal ground */
  --panel:    #1e2023;   /* slightly raised */
  --panel-2:  #26282c;   /* graphite panel */
  --line:     #34363a;   /* hairline */
  --smoke:    #6b6e73;   /* lines / muted marks */
  --bone:     #ece9e2;   /* primary text */
  --bone-dim: #a7a49c;   /* muted text */
  --ember:    #b23a2b;   /* accent */
  --ember-2:  #922e22;

  --measure: 64ch;
  --maxw: 1120px;

  --head: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.075rem;
  line-height: 1.65;
  color: var(--bone);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; color: #f4f1ea; }
h1 { font-size: clamp(2.7rem, 6.2vw, 4.8rem); text-transform: uppercase; letter-spacing: .5px; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); text-transform: uppercase; letter-spacing: .5px; }
h3 { font-size: 1.5rem; letter-spacing: .2px; }
p { margin: 0 0 1rem; max-width: var(--measure); }
a { color: var(--ember); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.4rem); }

/* skip + focus */
.skip { position: absolute; left: -999px; top: 0; background: var(--ember); color: #fff; padding: .6rem 1rem; font-weight: 700; z-index: 200; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }

/* header / nav */
.site-head { position: sticky; top: 0; z-index: 100; background: rgba(18,19,21,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--bone); }
.brand img { width: 40px; height: 40px; }
.brand .brand-text { display: block; line-height: 1.02; }
.brand b { display: block; font-family: var(--head); font-size: 1.45rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #f4f1ea; }
.brand .brand-text span { display: block; font-family: var(--body); font-size: .64rem; letter-spacing: 3px; color: var(--bone-dim); text-transform: uppercase; margin-top: 6px; }

.nav-toggle { display: none; background: none; border: 1px solid var(--smoke); color: var(--bone); padding: .4rem .7rem; font-family: var(--head); text-transform: uppercase; letter-spacing: 1px; font-size: 1rem; cursor: pointer; }
.nav { display: flex; gap: .2rem; }
.nav a { color: var(--bone-dim); text-decoration: none; font-family: var(--head); text-transform: uppercase; letter-spacing: 1px; font-size: 1rem; padding: .5rem .95rem; transition: color .15s; }
.nav a:hover { color: var(--bone); }
.nav a[aria-current="page"] { color: var(--ember); }

/* ---------- image plates ---------- */
.media { position: relative; margin: 0; }
.plate {
  position: relative; width: 100%; display: grid; place-items: center; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 1px, transparent 1px 8px),
    radial-gradient(135% 135% at 26% 16%, #2c2f34, #17181b 74%);
  border: 1px solid var(--line);
  transition: transform .35s ease;
}
.plate img.plate-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plate .plate-mark { width: clamp(46px, 8vw, 78px); opacity: .4; }
.media figcaption { margin-top: .8rem; font-family: var(--head); text-transform: uppercase; letter-spacing: 2px; font-size: .82rem; color: var(--bone-dim); }
.media figcaption b { color: var(--ember); font-weight: 600; }

/* leaning rhombus, the signature shape (used sparingly) */
.media--rhombus .plate {
  aspect-ratio: 3 / 2; border: none;
  clip-path: polygon(13% 0, 100% 0, 87% 100%, 0 100%);
  box-shadow: inset 0 0 0 2px rgba(107,110,115,.5);
  filter: drop-shadow(0 22px 30px rgba(0,0,0,.55));
}
.media--rhombus .plate img.plate-photo { clip-path: polygon(13% 0, 100% 0, 87% 100%, 0 100%); }

/* clean rectangle with an ember folded corner */
.media--rect .plate { aspect-ratio: 16 / 10; }
.media--rect .plate::after { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 26px 26px 0; border-color: transparent var(--ember) transparent transparent; }
.media--tall .plate { aspect-ratio: 4 / 5; }
.media--wide .plate { aspect-ratio: 21 / 9; }

.media:hover .plate { transform: translateY(-4px); }

/* kicker */
.kicker { display: inline-block; font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: 3px; color: var(--ember); font-size: .9rem; margin-bottom: .7rem; }

/* ---------- hero ---------- */
.hero {
  background: radial-gradient(120% 80% at 85% -10%, rgba(178,58,43,.12), transparent 55%), var(--bg);
  padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(3.5rem, 8vw, 7rem);
  border-bottom: 1px solid var(--line);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.6rem, 5vw, 4.5rem); align-items: center; }
.hero .lede { font-size: 1.25rem; color: var(--bone-dim); max-width: 46ch; }
.hero-figure .plate { aspect-ratio: 3 / 2; max-width: 100%; margin-left: auto; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-lite { padding-bottom: clamp(2rem, 4vw, 3rem); }
.hero-lite .wrap { display: block; }
.hero-lite .lede { max-width: 60ch; }

/* buttons */
.btn { display: inline-block; font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; cursor: pointer; border: none; padding: .8rem 1.7rem; font-size: 1.02rem; transition: transform .16s ease, background .16s ease, color .16s; }
.btn-primary { background: var(--ember); color: #fff; }
.btn-primary:hover { background: var(--ember-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1px var(--smoke); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--bone); transform: translateY(-2px); }

/* ---------- sections ---------- */
.section { padding: clamp(3.2rem, 7vw, 5.8rem) 0; }
.section-panel { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 2.6rem; }
.lead-media { margin: 0 0 3rem; }
.lead-media .plate { max-width: 100%; }

/* split feature (image + text) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 5vw, 4.5rem); align-items: center; }
.feature.flip .feature-media { order: 2; }

/* ---------- activities (text driven) ---------- */
.entry { max-width: 68ch; padding: clamp(1.8rem, 4vw, 2.6rem) 0; border-top: 1px solid var(--line); }
.entry:first-of-type { border-top: none; }
.entry .season { display: inline-block; font-family: var(--head); font-weight: 600; text-transform: uppercase; font-size: .8rem; letter-spacing: 2px; color: var(--bone-dim); margin-bottom: .5rem; }
.entry h2 { margin-bottom: .5rem; }
.entry ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.entry li { position: relative; padding-left: 1.6rem; margin-bottom: .5rem; }
.entry li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 10px; background: var(--ember); clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%); }

/* safety note (informational, not a venue) */
.note { background: var(--panel-2); border: 1px solid var(--line); padding: 1.4rem 1.6rem; margin-top: 3rem; max-width: 72ch; }
.note h3 { color: var(--ember); font-size: 1.2rem; margin-bottom: .4rem; }
.note p { color: var(--bone-dim); margin: 0; }

/* ---------- gallery (few, large) ---------- */
.plates { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 5vw, 3.5rem); align-items: start; }
.plates .media--rhombus { grid-column: 1 / -1; max-width: 720px; margin: 0 auto; }
.plates .media--rhombus .plate { aspect-ratio: 21 / 10; }

/* ---------- footer ---------- */
.site-foot { background: #111214; color: var(--bone-dim); padding: 3rem 0 2rem; border-top: 1px solid var(--line); }
.site-foot .wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: start; }
.site-foot h4 { font-family: var(--head); text-transform: uppercase; letter-spacing: 1px; color: var(--bone); margin: 0 0 .7rem; font-size: 1rem; }
.site-foot a { color: var(--bone-dim); text-decoration: none; display: block; padding: .2rem 0; }
.site-foot a:hover { color: var(--ember); }
.site-foot .brand b { color: var(--bone); }
.foot-base { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; color: #74756e; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure .plate { margin: 0 auto; max-width: 380px; }
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .plates { grid-template-columns: 1fr; }
  .plates .media--rhombus { max-width: 100%; }
  .site-foot .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #111214; border-bottom: 1px solid var(--line); padding: .5rem; display: none; }
  .nav.open { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plate, .media:hover .plate, .btn { transition: none; transform: none; }
}
