/* HEARTH & FURROW — soil, linen, olive, tomato, straw */
:root {
  --soil: #2e2318;
  --soil-deep: #211a12;
  --linen: #efe7d8;
  --linen-deep: #e5dac5;
  --olive: #6b7a3f;
  --tomato: #c2482b;
  --straw: #d9a441;
  --bark: #8a6f4d;
  --display: "Fraunces", Georgia, serif;
  --body: "Karla", "Segoe UI", sans-serif;
  --hand: "Caveat", cursive;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--linen);
  color: var(--soil);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

::selection { background: var(--olive); color: var(--linen); }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--tomato);
  outline-offset: 3px;
  border-radius: 2px;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.18 0 0 0 0 0.14 0 0 0 0 0.09 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.amp { font-family: var(--display); font-style: italic; font-weight: 400; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 2.6rem;
  background: linear-gradient(to bottom, rgba(239,231,216,0.96), rgba(239,231,216,0.82));
  border-bottom: 1px solid rgba(46,35,24,0.12);
}
.nav__brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--soil);
}
.nav__links {
  display: flex;
  gap: 1.9rem;
  align-items: center;
  font-size: 0.85rem;
}
.nav__links a { position: relative; color: rgba(46,35,24,0.8); }
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -3px;
  height: 2px;
  background: var(--olive);
  border-radius: 2px;
  transition: right .35s cubic-bezier(.3,.7,.3,1);
}
.nav__links a:not(.nav__cta):hover::after { right: 0; }
.nav__cta {
  background: var(--olive);
  color: var(--linen) !important;
  padding: 0.55em 1.2em;
  border-radius: 999px;
  transition: background .25s, transform .25s;
}
.nav__cta:hover { background: var(--soil); transform: rotate(-1.2deg); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
  padding: 9rem 2.4rem 5rem;
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bark);
  margin-bottom: 1.6rem;
}
.eyebrow--light { color: rgba(239,231,216,0.65); }
.hero__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3.4rem, 8.5vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin-bottom: 1.8rem;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--olive);
}
.hero__sub {
  max-width: 30rem;
  font-size: 1.02rem;
  color: rgba(46,35,24,0.82);
  margin-bottom: 2.2rem;
}
.hero__actions { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.92rem;
  background: var(--tomato);
  color: var(--linen);
  padding: 0.85em 1.7em;
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(46,35,24,0.35);
  transition: transform .18s, box-shadow .18s, background .25s;
}
.btn:hover { transform: translateY(-2px) rotate(-0.8deg); box-shadow: 0 5px 0 rgba(46,35,24,0.35); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(46,35,24,0.35); }
.hand-note {
  font-family: var(--hand);
  font-size: 1.35rem;
  color: var(--olive);
  transform: rotate(-3deg);
  display: inline-block;
}

.hero__figure { position: relative; }
.hero__arch {
  border-radius: 999px 999px 18px 18px;
  overflow: hidden;
  border: 5px solid var(--soil);
  box-shadow: 10px 10px 0 rgba(107,122,63,0.35);
  transform: rotate(1.2deg);
}
.hero__arch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  transition: transform .8s cubic-bezier(.3,.7,.3,1);
}
.hero__arch:hover img { transform: scale(1.045); }
.hero__caption {
  margin-top: 1rem;
  font-family: var(--hand);
  font-size: 1.15rem;
  color: var(--bark);
  text-align: center;
  transform: rotate(-1deg);
}

/* ---------- seasons ---------- */
.seasons { padding: clamp(4rem, 9vw, 8rem) 2.4rem; max-width: 1220px; margin: 0 auto; }
.seasons__head { text-align: center; max-width: 640px; margin: 0 auto clamp(3rem, 6vw, 5rem); }
.section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
}
.section-title--light { color: var(--linen); }
.seasons__lede { margin-top: 1.2rem; color: rgba(46,35,24,0.78); }

.seasons__body {
  display: grid;
  grid-template-columns: minmax(300px, 460px) 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  justify-content: center;
}
.wheel-wrap { position: relative; max-width: 460px; margin: 0 auto; width: 100%; }
.wheel { width: 100%; height: auto; display: block; }
.wheel path.seg {
  cursor: pointer;
  transition: opacity .25s, transform .25s;
  transform-origin: 0 0;
}
.wheel path.seg:hover { opacity: 0.85; }
.wheel path.seg.active { transform: scale(1.06); }
.wheel path.seg:focus,
.wheel path.seg:focus-visible { outline: none; }
.wheel-pointer {
  transform-origin: 0 0;
  transition: transform .7s cubic-bezier(.4,.8,.3,1.1);
  pointer-events: none;
}
.wheel text {
  font-family: var(--body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  fill: var(--linen);
  pointer-events: none;
  text-transform: uppercase;
}
.wheel__hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 34%;
  aspect-ratio: 1;
  background: var(--linen);
  border: 3px solid var(--soil);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  pointer-events: none;
  box-shadow: 0 0 0 6px rgba(239,231,216,0.6);
}
.wheel__hub-month {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  line-height: 1;
}
.wheel__hub-word {
  font-family: var(--hand);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--olive);
}

.seasons__panel { max-width: 30rem; }
.seasons__month {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.1rem;
  margin-bottom: 0.5rem;
}
.seasons__mood {
  color: rgba(46,35,24,0.75);
  margin-bottom: 1.6rem;
  min-height: 3.2em;
}
.seasons__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.seasons__list li {
  font-size: 0.86rem;
  font-weight: 500;
  background: rgba(107,122,63,0.14);
  color: #4a5529;
  border: 1px solid rgba(107,122,63,0.35);
  padding: 0.38em 0.95em;
  border-radius: 999px;
  animation: chip-in .4s cubic-bezier(.3,.7,.3,1.4) backwards;
}
.seasons__list li:nth-child(2) { animation-delay: .05s; }
.seasons__list li:nth-child(3) { animation-delay: .1s; }
.seasons__list li:nth-child(4) { animation-delay: .15s; }
.seasons__list li:nth-child(5) { animation-delay: .2s; }
.seasons__list li:nth-child(6) { animation-delay: .25s; }
@keyframes chip-in {
  from { opacity: 0; transform: translateY(8px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.seasons__hint { margin-top: 1.8rem; }

/* ---------- rows ---------- */
.rows { background: var(--soil); color: var(--linen); }
.rows__inner { max-width: 1220px; margin: 0 auto; padding: clamp(4rem, 9vw, 8rem) 2.4rem; }
.rows__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.6rem;
  margin-top: 3rem;
}
.crop {
  background: rgba(239,231,216,0.05);
  border: 1px solid rgba(239,231,216,0.14);
  border-radius: 14px;
  padding: 1.6rem 1.5rem;
  transition: transform .25s, background .25s, border-color .25s;
}
.crop:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  background: rgba(239,231,216,0.09);
  border-color: rgba(217,164,65,0.5);
}
.crop__tag {
  display: inline-block;
  font-family: var(--hand);
  font-size: 1.1rem;
  color: var(--straw);
  margin-bottom: 0.7rem;
  transform: rotate(-2deg);
}
.crop h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.crop p { font-size: 0.9rem; color: rgba(239,231,216,0.72); }

/* ---------- long table ---------- */
.table { padding: clamp(4rem, 9vw, 8rem) 2.4rem; }
.table__inner { max-width: 900px; margin: 0 auto; text-align: center; }
.table__lede { max-width: 38rem; margin: 1.4rem auto 3rem; color: rgba(46,35,24,0.8); }
.table__dates {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 3rem;
}
.date-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--linen-deep);
  border: 2px solid var(--soil);
  border-radius: 14px;
  padding: 1.1rem 1.5rem 0.9rem;
  min-width: 118px;
  transition: transform .2s, box-shadow .2s;
}
.date-card:not(.date-card--full):hover {
  transform: translateY(-4px) rotate(1deg);
  box-shadow: 6px 6px 0 rgba(107,122,63,0.4);
}
.date-card__day { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bark); }
.date-card__num {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 1.1;
}
.date-card__month { font-size: 0.85rem; margin-bottom: 0.5rem; }
.date-card__status {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--olive);
  border-top: 1px dashed rgba(46,35,24,0.3);
  padding-top: 0.5rem;
  width: 100%;
  text-align: center;
}
.date-card--full { opacity: 0.55; border-style: dashed; }
.date-card--full .date-card__status { color: var(--tomato); }

/* ---------- long table form ---------- */
.tform {
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  border: 2px solid var(--soil);
  border-radius: 22px;
  padding: 2.2rem 2.2rem 2rem;
  box-shadow: 8px 8px 0 rgba(107,122,63,0.35);
  text-align: left;
}
.tform__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.6rem;
  margin-bottom: 1.6rem;
}
.tform__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 1.8rem;
}
.tform__field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.tform__field label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bark);
  font-weight: 500;
}
.tform__field input,
.tform__field select {
  width: 100%;
  min-width: 0;
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--soil);
  background: var(--linen);
  border: 2px solid rgba(46,35,24,0.2);
  border-radius: 10px;
  padding: 0.6em 0.8em;
  transition: border-color .25s;
}
.tform__field select { cursor: pointer; }
.tform__field input:focus-visible,
.tform__field select:focus-visible {
  outline: none;
  border-color: var(--olive);
}
.tform__error {
  min-height: 1.2em;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--tomato);
}
.tform__submit { border: none; cursor: pointer; font-size: 0.95rem; }
.tform__hint { margin-top: 1.2rem; }
.tform__done {
  max-width: 620px;
  margin: 0 auto;
  background: var(--linen-deep);
  border: 2px dashed var(--olive);
  border-radius: 22px;
  padding: 2.4rem 2.2rem;
}
.tform__done-line {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}
.tform__done-sub { color: rgba(46,35,24,0.8); margin-bottom: 1rem; }

/* ---------- visit ---------- */
.visit { background: var(--soil-deep); color: var(--linen); padding: clamp(3.5rem, 7vw, 6rem) 2.4rem 2.4rem; }
.visit__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.visit__brand { font-family: var(--display); font-weight: 600; font-size: 1.4rem; margin-bottom: 0.8rem; }
.visit__col h3:not(.visit__brand) {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--straw);
  margin-bottom: 0.8rem;
  font-weight: 500;
}
.visit__col p { font-size: 0.92rem; color: rgba(239,231,216,0.75); }
.visit__fine {
  max-width: 1000px;
  margin: 3rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(239,231,216,0.14);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(239,231,216,0.45);
}

/* ---------- portal return ---------- */
.portal-return {
  position: fixed;
  bottom: 1.3rem;
  left: 1.5rem;
  z-index: 95;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bark);
  border: 1px solid rgba(138,111,77,0.4);
  border-radius: 999px;
  padding: 0.5em 1em;
  background: rgba(239,231,216,0.85);
  transition: color .2s, border-color .2s;
}
.portal-return:hover { color: var(--tomato); border-color: var(--tomato); }

/* ---------- reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.3,.7,.3,1), transform .9s cubic-bezier(.3,.7,.3,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 7.5rem; }
  .hero__figure { max-width: 480px; margin: 0 auto; }
  .seasons__body { grid-template-columns: 1fr; }
  .seasons__panel { max-width: 460px; margin: 0 auto; text-align: center; }
  .seasons__list { justify-content: center; }
  .visit__inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .nav__links a:not(.nav__cta) { display: none; }
}
@media (max-width: 560px) {
  .nav { padding: 0.9rem 1.2rem; }
  .hero { padding: 6.5rem 1.2rem 3rem; }
  .seasons, .table { padding-left: 1.2rem; padding-right: 1.2rem; }
  .rows__inner { padding-left: 1.2rem; padding-right: 1.2rem; }
  .tform { padding: 1.6rem 1.3rem; }
  .tform__grid { grid-template-columns: 1fr; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
