:root {
  --green: #356b4b;
  --green-dark: #174d32;
  --terracotta: #c4513d;
  --gold: #d99a3d;
  --cream: #f0e5d4;
  --paper: #faf6ee;
  --charcoal: #2d2926;
  --white: #ffffff;
  --line: #dfd4c4;
  --muted: #6f6963;
  --shadow: 0 18px 45px rgba(74, 58, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--charcoal);
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.7), transparent 34rem),
    var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: var(--green-dark);
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: 3px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-200%);
  padding: 0.65rem 0.9rem;
  border-radius: 0.45rem;
  background: var(--green-dark);
  color: var(--white);
}

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

.site-header,
main,
.site-footer {
  width: min(100% - 2.5rem, 1380px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 112px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--green-dark);
  text-decoration: none;
}

.brand img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-name,
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

.brand-name {
  font-size: clamp(2rem, 3vw, 3.15rem);
  line-height: 1.05;
}

.brand-tagline {
  margin-top: 0.18rem;
  color: var(--charcoal);
  font-size: 0.95rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(620px, 1.12fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
  padding: clamp(2.25rem, 5vw, 5.25rem) 0 2.75rem;
}

.status-label {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.8rem;
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--terracotta);
  border-radius: 0.65rem;
  color: var(--terracotta);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status-label span {
  font-size: 1.35rem;
  line-height: 1;
}

h1 {
  max-width: 700px;
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(3rem, 5.2vw, 5.7rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.hero-summary {
  max-width: 620px;
  margin: 1.75rem 0 0;
  font-size: clamp(1.1rem, 1.5vw, 1.45rem);
  line-height: 1.65;
}

.product-preview {
  display: grid;
  grid-template-columns: 112px minmax(260px, 1fr) minmax(220px, 0.82fr);
  min-height: 510px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.7rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.preview-rail {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0.65rem;
  color: var(--white);
  background: linear-gradient(160deg, var(--green-dark), var(--green));
}

.preview-rail img {
  align-self: center;
  margin: 0.25rem 0 0.75rem;
  border-radius: 12px;
}

.preview-rail span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.72rem 0.6rem;
  border-radius: 0.6rem;
  font-size: 0.78rem;
}

.preview-rail .active {
  background: rgba(255, 255, 255, 0.16);
}

.week-panel {
  padding: 1.25rem 0.9rem;
  border-right: 1px solid var(--line);
}

.preview-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.meal-list,
.poll-list,
.shopping-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.meal-list li {
  display: grid;
  grid-template-columns: 3.3rem 1fr;
  gap: 0.7rem;
  align-items: center;
  min-height: 64px;
  padding: 0.55rem 0.7rem;
  border: 1px solid #e8dfd2;
  border-bottom: 0;
}

.meal-list li:first-child {
  border-radius: 0.7rem 0.7rem 0 0;
}

.meal-list li:last-child {
  border-bottom: 1px solid #e8dfd2;
  border-radius: 0 0 0.7rem 0.7rem;
}

.meal-list time {
  color: var(--green-dark);
  font-size: 0.68rem;
  font-weight: 700;
}

.meal-list span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.meal-list b {
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meal-list small {
  color: var(--muted);
  font-size: 0.68rem;
}

.meal-list .family-choice {
  background: #fff1cd;
}

.preview-stack {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.25rem 0.9rem;
}

.mini-panel {
  padding: 1rem;
  border: 1px solid #e8dfd2;
  border-radius: 0.9rem;
  background: var(--white);
}

.mini-panel h2 {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

.mini-panel p {
  margin: 0.25rem 0 0.7rem;
  font-size: 0.7rem;
}

.poll-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-top: 1px solid #eee7dc;
  font-size: 0.72rem;
}

.poll-list b {
  min-width: 1.5rem;
  border-radius: 0.3rem;
  background: #e3eee6;
  text-align: center;
}

.shopping-panel ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.8rem;
  font-size: 0.72rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}

.features article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.1rem;
  padding: 2rem clamp(1rem, 2.5vw, 2.5rem);
}

.features article + article {
  border-left: 1px solid var(--line);
}

.feature-icon {
  color: var(--green-dark);
  font-size: 2.8rem;
  line-height: 1;
}

.features h2,
.project-info h2,
.site-details h2 {
  margin: 0;
  color: var(--green-dark);
  font-size: 1.25rem;
}

.features p,
.project-info p,
.site-details p {
  margin: 0.45rem 0 0;
}

.project-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 2.15rem 0;
  border-bottom: 1px solid var(--line);
}

.project-info article {
  padding: 0 clamp(1rem, 3vw, 5rem);
}

.project-info article + article {
  border-left: 1px solid var(--line);
}

.testing-status h2 {
  color: var(--terracotta);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 2.5rem 0;
}

.site-details article {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.48);
}

.site-details p {
  color: var(--muted);
  font-size: 0.92rem;
}

.updates-form {
  margin-top: 1rem;
}

.updates-form label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--charcoal);
  font-size: 0.82rem;
  font-weight: 700;
}

.updates-fields {
  display: flex;
  gap: 0.55rem;
}

.updates-fields input {
  min-width: 0;
  flex: 1;
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--line-dark);
  border-radius: 0.55rem;
  background: var(--white);
  color: var(--charcoal);
  font: inherit;
}

.updates-fields input:focus-visible {
  outline: 3px solid rgba(217, 154, 61, 0.35);
  outline-offset: 2px;
}

.updates-fields button {
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--green-dark);
  border-radius: 0.55rem;
  background: var(--green-dark);
  color: var(--white);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.updates-fields button:hover {
  background: var(--green);
}

.updates-fields button:focus-visible {
  outline: 3px solid rgba(217, 154, 61, 0.35);
  outline-offset: 2px;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.updates-form .updates-status {
  margin-top: 0.55rem;
  font-size: 0.76rem;
  line-height: 1.4;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.site-footer nav {
  display: flex;
  gap: 2rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 780px;
  }

  .product-preview {
    width: min(100%, 820px);
  }
}

@media (max-width: 760px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 1.5rem, 560px);
  }

  .site-header {
    min-height: 78px;
  }

  .brand {
    gap: 0.55rem;
  }

  .brand img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .brand-name {
    font-size: 1.5rem;
  }

  .brand-tagline {
    font-size: 0.63rem;
  }

  .hero {
    gap: 1.5rem;
    padding: 1.5rem 0 1.75rem;
  }

  .status-label {
    margin-bottom: 1rem;
    padding: 0.52rem 0.7rem;
    font-size: 0.64rem;
    letter-spacing: 0.11em;
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 3.65rem);
    letter-spacing: -0.05em;
  }

  .hero-summary {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.55;
  }

  .product-preview {
    grid-template-columns: 62px minmax(230px, 1fr);
    min-height: 390px;
    border-radius: 1rem;
  }

  .preview-rail {
    padding: 0.65rem 0.35rem;
  }

  .preview-rail img {
    width: 40px;
    height: 40px;
  }

  .preview-rail span {
    justify-content: center;
    padding: 0.6rem 0.25rem;
    font-size: 0.85rem;
  }

  .preview-rail b,
  .preview-stack {
    display: none;
  }

  .week-panel {
    border-right: 0;
    padding: 0.9rem 0.65rem;
  }

  .meal-list li {
    grid-template-columns: 2.7rem 1fr;
    min-height: 50px;
    padding: 0.4rem 0.5rem;
  }

  .features,
  .project-info,
  .site-details {
    grid-template-columns: 1fr;
  }

  .features article {
    grid-template-columns: 42px 1fr;
    gap: 0.8rem;
    padding: 1.25rem 0.2rem;
  }

  .features article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .feature-icon {
    font-size: 2.1rem;
  }

  .features h2,
  .project-info h2,
  .site-details h2 {
    font-size: 1.05rem;
  }

  .features p,
  .project-info p {
    font-size: 0.9rem;
  }

  .project-info {
    padding: 0;
  }

  .project-info article {
    padding: 1.4rem 0.2rem;
  }

  .project-info article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .site-details {
    padding: 1.75rem 0;
  }

  .site-details article {
    padding: 1rem;
  }

  .updates-fields {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer {
    align-items: flex-start;
    gap: 1.25rem;
    padding-bottom: 1.75rem;
  }

  .site-footer nav {
    flex-wrap: wrap;
    gap: 0.8rem 1.3rem;
  }

  .site-footer p {
    text-align: right;
  }
}

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