:root {
  --plaster: #f4efe4;
  --paper: #fbf8f1;
  --clay: #b55f42;
  --clay-dark: #82432f;
  --olive: #687257;
  --sage: #a8ad92;
  --forest: #263f32;
  --timber: #6e4d38;
  --stone: #c9c0ae;
  --charcoal: #272923;
  --muted: #66685e;
  --line: rgba(38, 63, 50, 0.2);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --measure: 68rem;
  --radius: 0.2rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--plaster);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(110, 77, 56, 0.06) 0.7px, transparent 0.7px);
  background-size: 7px 7px;
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
blockquote,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--forest);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  text-wrap: balance;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.25rem;
  font-size: clamp(3.35rem, 13vw, 8.25rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.3rem, 7vw, 4.8rem);
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

p {
  max-width: 66ch;
  margin-bottom: 1.2rem;
}

blockquote {
  max-width: 20ch;
  margin-bottom: 0;
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.14;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--forest);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 2rem), var(--measure));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 2rem), 46rem);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 239, 228, 0.96);
}

.header-inner {
  display: flex;
  min-height: 5.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  color: var(--forest);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1;
  text-decoration: none;
}

.logo-wordmark {
  display: grid;
  width: clamp(11.5rem, 22vw, 16rem);
  gap: 0;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 2.85rem;
  background: url("../assets/terra-sem-pressa-logo-transparent.png") center / 117% auto no-repeat;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.wordmark small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.logo-wordmark small {
  margin-top: -0.15rem;
  padding-left: 1rem;
}

@media (max-width: 23rem) {
  .logo-wordmark {
    width: 10.5rem;
  }

  .brand-logo {
    height: 2.45rem;
  }

  .logo-wordmark small {
    font-size: 0.54rem;
    letter-spacing: 0.12em;
  }
}

.site-nav summary {
  min-width: 3rem;
  min-height: 3rem;
  padding: 0.68rem 0.85rem;
  border: 1px solid var(--forest);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  list-style: none;
  text-transform: uppercase;
}

.site-nav summary::-webkit-details-marker {
  display: none;
}

.desktop-nav {
  display: none;
}

.nav-list {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: grid;
  margin: 0;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  list-style: none;
}

.nav-list a {
  display: block;
  min-height: 2.8rem;
  padding: 0.6rem;
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-list a[aria-current="page"] {
  color: var(--clay-dark);
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.35em;
}

.eyebrow,
.label {
  margin-bottom: 1rem;
  color: var(--clay-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero {
  min-height: calc(100svh - 5.25rem);
  padding: clamp(3rem, 10vw, 8rem) 0 2rem;
}

.hero-grid,
.split,
.story-pair {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.hero-copy .lede {
  max-width: 32rem;
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  line-height: 1.35;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: #fff;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.button.secondary {
  background: transparent;
  color: var(--forest);
}

.button[disabled] {
  border-color: var(--stone);
  background: var(--stone);
  color: var(--charcoal);
  cursor: not-allowed;
}

.landscape {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  border: 1px solid rgba(38, 63, 50, 0.2);
  background:
    linear-gradient(163deg, transparent 50%, #6c765b 50.3% 66%, #354d3c 66.2%),
    linear-gradient(#e8cfa5 0 53%, #8e9878 53%);
  isolation: isolate;
}

.landscape::before {
  position: absolute;
  top: 12%;
  right: 13%;
  width: 6rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #e8b76e;
  box-shadow: 0 0 5rem rgba(232, 183, 110, 0.72);
  content: "";
}

.landscape::after {
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 1.2rem;
  height: 52%;
  background: var(--timber);
  box-shadow: 0.55rem 0 0 rgba(110, 77, 56, 0.45);
  content: "";
  transform: skew(-5deg);
}

.landscape .canopy {
  position: absolute;
  bottom: 36%;
  left: -2%;
  z-index: 2;
  width: 52%;
  height: 37%;
  border-radius: 52% 48% 35% 65%;
  background: radial-gradient(ellipse at center, #4f644f 0 18%, transparent 19%) 0 0 / 2.4rem 2.1rem,
    #5e7158;
  filter: saturate(0.75);
}

.landscape figcaption,
.visual-note {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 4;
  padding: 0.7rem 0.85rem;
  background: rgba(244, 239, 228, 0.9);
  color: var(--forest);
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  border-top: 1px solid var(--line);
}

.section-dark {
  background: var(--forest);
  color: var(--plaster);
}

.section-dark h2,
.section-dark h3,
.section-dark blockquote {
  color: var(--plaster);
}

.section-dark .button.secondary {
  border-color: var(--plaster);
  color: var(--plaster);
}

.section-clay {
  background: var(--clay);
  color: #fff8ed;
}

.section-clay h2,
.section-clay h3,
.section-clay .eyebrow {
  color: #fff8ed;
}

.manifesto-band {
  padding-block: clamp(4.5rem, 7vw, 6rem);
}

.manifesto-inner {
  width: min(calc(100% - 2rem), 64rem);
  margin-inline: auto;
}

.manifesto-band .eyebrow {
  display: flex;
  max-width: none;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.75rem);
}

.manifesto-band .eyebrow::after {
  height: 1px;
  background: currentColor;
  content: "";
  flex: 1;
  opacity: 0.45;
}

.manifesto-band blockquote {
  max-width: none;
  margin-inline: 0;
  color: var(--forest);
  font-size: clamp(2.45rem, 4.4vw, 4.35rem);
  letter-spacing: -0.035em;
  line-height: 1.06;
  text-wrap: balance;
}

.manifesto-band blockquote span,
.manifesto-band blockquote strong {
  display: block;
}

.manifesto-band blockquote strong {
  margin-top: 0.28em;
  color: #fff8ed;
  font-weight: 400;
}

.intro-line {
  max-width: 28ch;
  margin-bottom: 0;
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3.25rem);
  line-height: 1.25;
}

.pillars,
.feature-grid,
.journal-grid,
.facts-grid,
.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.pillar {
  padding-top: 1.2rem;
  border-top: 2px solid var(--clay);
}

.pillar-number {
  display: block;
  margin-bottom: 2.75rem;
  color: var(--clay-dark);
  font-family: var(--serif);
  font-size: 1.3rem;
}

.kitchen-plan {
  display: grid;
  min-height: 24rem;
  border: 1px solid rgba(244, 239, 228, 0.45);
  grid-template-rows: 1fr 1fr;
}

.kitchen-plan > div {
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.kitchen-plan .inside {
  background: #d2b489;
  color: var(--charcoal);
}

.kitchen-plan .outside {
  border-top: 0.5rem solid #d5c69f;
  background: var(--olive);
}

.kitchen-plan strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
}

.kitchen-plan span {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.77rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.number-lockup {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.number-lockup div {
  padding: 1.5rem 0;
  border-block: 1px solid rgba(244, 239, 228, 0.4);
}

.number-lockup strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 400;
  line-height: 0.9;
}

.number-lockup span {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.text-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--clay-dark);
  font-weight: 800;
  text-underline-offset: 0.35em;
}

.journal-card {
  padding-top: 1rem;
  border-top: 1px solid var(--forest);
}

.journal-tools {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0 2.5rem;
  padding-block: 1rem;
  border-block: 1px solid var(--line);
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-button {
  min-height: 2.6rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--forest);
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-button:hover,
.filter-button[aria-pressed="true"] {
  background: var(--forest);
  color: var(--paper);
}

.filter-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.journal-card[hidden] {
  display: none;
}

.journal-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journal-card .thumb {
  position: relative;
  display: grid;
  min-height: 12rem;
  margin-bottom: 1.4rem;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, var(--sage), var(--olive));
  color: white;
  font-family: var(--serif);
  font-size: 2rem;
}

.journal-card .thumb::before {
  position: absolute;
  width: 4rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  content: "";
}

.journal-card .thumb span {
  position: relative;
}

.newsletter {
  display: grid;
  gap: 2.5rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem;
  border: 1px solid var(--forest);
  border-radius: 0;
  background: var(--paper);
  color: var(--charcoal);
  font: inherit;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.field-error {
  min-height: 1.55rem;
  margin: 0.25rem 0 0;
  color: #772d1f;
  font-size: 0.78rem;
  font-weight: 700;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #772d1f;
  box-shadow: inset 0 0 0 1px #772d1f;
}

.form-status {
  margin: 1rem 0 0;
  font-weight: 750;
}

.section-clay .field-error,
.section-clay .form-status {
  color: #fff8ed;
}

.section-dark label,
.section-clay label {
  color: inherit;
}

.section-dark .form-note,
.section-clay .form-note {
  color: inherit;
  opacity: 0.8;
}

.page-hero {
  padding: clamp(4rem, 11vw, 8rem) 0;
}

.page-hero h1 {
  font-size: clamp(3.2rem, 11vw, 7rem);
}

.page-hero .lede {
  max-width: 40rem;
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.manifesto {
  padding-left: clamp(1.2rem, 4vw, 3rem);
  border-left: 0.25rem solid var(--clay);
}

.feature-item {
  padding: 1.4rem;
  border: 1px solid var(--line);
  background: rgba(251, 248, 241, 0.42);
}

.feature-item .status {
  display: inline-block;
  margin-bottom: 2rem;
  padding: 0.25rem 0.45rem;
  border: 1px solid var(--olive);
  color: var(--forest);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.season-list,
.plain-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.season-list li,
.plain-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.season-list li::before {
  margin-right: 0.7rem;
  color: var(--clay);
  content: "—";
}

.site-footer {
  padding: 4rem 0 2rem;
  background: #1f3329;
  color: var(--plaster);
}

.site-footer h2,
.site-footer h3,
.site-footer .wordmark {
  color: var(--plaster);
}

.site-footer .wordmark small {
  color: var(--stone);
}

.site-footer h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  min-height: 2.25rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244, 239, 228, 0.22);
  font-size: 0.75rem;
}

.footer-bottom p {
  margin: 0;
}

@media (min-width: 44rem) {
  .container,
  .narrow {
    width: min(calc(100% - 4rem), var(--measure));
  }

  .narrow {
    width: min(calc(100% - 4rem), 46rem);
  }

  .hero-grid,
  .split,
  .story-pair,
  .newsletter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  }

  .pillars,
  .journal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .form-grid.two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journal-tools {
    align-items: center;
    grid-template-columns: 1fr auto;
  }

  .kitchen-plan {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }

  .kitchen-plan .outside {
    border-top: 0;
    border-left: 0.5rem solid #d5c69f;
  }
}

@media (min-width: 64rem) {
  .site-nav {
    display: none;
  }

  .desktop-nav {
    display: block;
  }

  .desktop-nav .nav-list {
    position: static;
    display: flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .desktop-nav .nav-list a {
    padding-inline: 0.55rem;
    font-size: 0.75rem;
  }

  .desktop-nav .nav-list .journey-link {
    margin-left: 0.4rem;
    padding-inline: 0.85rem;
    border: 1px solid var(--forest);
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-nav,
  .actions,
  form {
    display: none;
  }
}
