/* ============================================================
   JOHNSONFARMS.US — the front door
   Bookish-warm personal page: Fraunces + Alegreya Sans,
   cream / field-green / marigold. Deliberately NOT the
   johnsonfarms.dev industrial kit — different site, different job.
   ============================================================ */

:root {
  --cream:     #f8f4e9;
  --cream-dim: #f0e9d8;
  --loam:      #2a2721;
  --loam-soft: #5d564a;
  --green:     #3f6134;
  --green-deep:#2e4a26;
  --marigold:  #e0a531;
  --rust:      #99310f;   /* reserved for the one .dev pointer */
  --hairline:  #ddd3bd;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Alegreya Sans", "Gill Sans", sans-serif;

  --colw: 46rem;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--loam);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  padding: 0 20px;
}

h1, h2 { font-family: var(--font-display); }

a { color: var(--green-deep); }
a:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; }

/* ---------------- topbar ---------------- */
.topbar {
  max-width: var(--colw);
  margin: 0 auto;
  padding: 18px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.site-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.site-name .tld { color: var(--green); }
.topbar-dev {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--rust);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.topbar-dev:hover { border-bottom-color: var(--rust); }

/* ---------------- hero ---------------- */
.hero {
  max-width: var(--colw);
  margin: 0 auto;
  padding: 88px 0 30px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(3rem, 9vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1;
}
.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  color: var(--green-deep);
  margin-top: 14px;
}
/* the 8-bit portrait — the consistent cross-site "me" */
.portrait { margin: 36px auto 34px; max-width: 300px; }
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border: 4px solid var(--loam);
  border-radius: 6px;
  box-shadow: 8px 8px 0 var(--marigold);
  transform: rotate(-1deg);
}
.intro {
  max-width: 36em;
  margin: 0 auto 14px;
  text-align: left;
  color: var(--loam-soft);
  font-size: 1.15rem;
}
.intro:last-of-type { text-align: center; font-weight: 500; color: var(--loam); }

/* ---------------- sections ---------------- */
main { max-width: var(--colw); margin: 0 auto; }
section { padding: 44px 0; }
section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 3px double var(--hairline);
}

/* ---------------- the doors: dark arcade wall ----------------
   The tiles are dark synthwave art — they get a dark room to glow in.
   Full-bleed band; inner column matches the page. */
.doors {
  background: #17141f;
  margin: 24px -20px 0;
  padding: 56px 20px 64px;
}
.doors-inner { max-width: var(--colw); margin: 0 auto; }
.doors h2 {
  color: var(--cream);
  border-bottom-color: #3a3348;
}
.tile {
  display: block;
  text-decoration: none;
  background: #201c2b;
  border: 1px solid #3a3348;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.tile:hover {
  transform: translateY(-4px);
  border-color: #e357a3;
  box-shadow: 0 14px 30px -12px rgba(227, 87, 163, 0.35);
}
.tile img { display: block; width: 100%; height: auto; }
.tile-text { display: block; padding: 14px 16px 16px; }
.tile-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 4px;
}
.tile-desc { display: block; color: #b3abc4; font-size: 0.98rem; line-height: 1.5; }
.tile-feature { margin-bottom: 22px; }
.tile-feature .tile-name { font-size: 1.4rem; }
.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.tile-grid .tile img { aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------------- the .dev pointer — deliberately different ------- */
.grown { padding: 30px 0 44px; }
.grown-inner {
  background: var(--rust);
  color: #f9efdf;
  border-radius: 14px;
  padding: 30px 32px;
  text-align: center;
  box-shadow: 0 10px 24px -14px rgba(42, 39, 33, 0.5);
}
.grown-inner p { max-width: 34em; margin: 0 auto 18px; font-size: 1.08rem; }
.grown-inner strong { color: #fff; }
.grown-link {
  display: inline-block;
  font-weight: 700;
  color: var(--rust);
  background: #f9efdf;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 999px;
  transition: transform 0.12s ease;
}
.grown-link:hover { transform: translateY(-2px); }

/* ---------------- about & speaking ---------------- */
.bio {
  border-left: 4px solid var(--marigold);
  padding: 6px 0 6px 22px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.75;
}
.bio-note {
  margin-top: 14px;
  font-style: italic;
  color: var(--loam-soft);
  font-size: 1rem;
}
.contact-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.pill {
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: var(--green-deep);
  border: 2px solid var(--green-deep);
  padding: 10px 24px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.pill:hover { background: var(--green-deep); color: var(--cream); transform: translateY(-2px); }
.pill-solid { background: var(--green-deep); color: var(--cream); }
.pill-solid:hover { background: var(--green); border-color: var(--green); }

/* ---------------- footer ---------------- */
.footer {
  max-width: var(--colw);
  margin: 0 auto;
  padding: 30px 0 44px;
  border-top: 3px double var(--hairline);
  text-align: center;
  color: var(--loam-soft);
  font-size: 0.95rem;
}
.footer em { font-family: var(--font-display); }
.footer-poem {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--green-deep);
  margin-bottom: 16px;
  line-height: 1.7;
}

/* ---------------- reveal (safe: visible without JS) ---------------- */
html.js-anim .rev { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
html.js-anim .rev.in { opacity: 1; transform: none; }
html.js-anim .rev:nth-child(2) { transition-delay: 0.05s; }
html.js-anim .rev:nth-child(3) { transition-delay: 0.1s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js-anim .rev { opacity: 1; transform: none; transition: none; }
  .pill, .grown-link, .door, .door-arrow { transition: none; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 640px) {
  body { font-size: 1.05rem; }
  .hero { padding: 56px 0 22px; }
  .portrait { max-width: 240px; }
  .tile-grid { grid-template-columns: 1fr; }
  .doors { padding: 44px 16px 48px; margin: 20px -20px 0; }
  .grown-inner { padding: 24px 20px; }
  section { padding: 34px 0; }
}
