:root {
  --green: #162b17;
  --green-2: #2f6f27;
  --cream: #f0e3c7;
  --cream-light: #fbf5e8;
  --yellow: #fcd93d;
  --pink: #cc698a;
  --salmon: #f27069;
  --peach: #ffcc99;
  --teal: #669999;
  --soft-pink: #d9b8c2;
  --white: #fffdf8;
  --ink-muted: #465548;
  --result-fail: #f5c9bf;
  --result-fail-card: #fff3ef;
  --result-pending: #f6e6a5;
  --result-pending-card: #fffbed;
  --result-pass: #c9dfc0;
  --result-pass-card: #f2f9ee;
  --border: 2px solid var(--green);
  --radius-small: 14px;
  --radius: 24px;
  --shadow: 8px 8px 0 var(--green);
  --page-pad: clamp(20px, 5vw, 80px);
  --header-pad: clamp(20px, 5vw, 80px);
  --header-height: 108px;
  --section-y: clamp(72px, 9vw, 144px);
  --content: 1440px;
}

@font-face {
  font-family: "Di Grotesk";
  src: url("../assets/di-grotesk-regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Di Grotesk";
  src: url("../assets/di-grotesk-extrabold.otf") format("opentype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 22px);
}

body {
  margin: 0;
  color: var(--green);
  background: var(--cream);
  font-family: "Di Grotesk", Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.48;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.results-open {
  background: var(--cream);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button {
  border: 0;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
h4 {
  font-family: "Di Grotesk", Arial Black, Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.96;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  margin-bottom: 32px;
  font-size: clamp(58px, 7.2vw, 118px);
}

h2 {
  max-width: 15ch;
  margin-bottom: 28px;
  font-size: clamp(50px, 5.3vw, 100px);
}

h3 {
  font-size: clamp(28px, 2.8vw, 42px);
}

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

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

.skip-link {
  position: fixed;
  z-index: 200;
  top: 16px;
  left: 16px;
  padding: 12px 18px;
  color: var(--cream);
  background: var(--green);
  font-weight: 900;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: var(--header-height);
  padding: 14px var(--header-pad);
  border-bottom: 2px solid rgba(22, 43, 23, 0.18);
  gap: clamp(28px, 4vw, 64px);
  background: rgba(240, 227, 199, 0.95);
  backdrop-filter: blur(12px);
}

.brand-link {
  width: clamp(158px, 18vw, 210px);
}

.brand-logo {
  width: 100%;
}

.site-nav {
  display: grid;
  width: min(100%, 650px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  justify-self: center;
  gap: clamp(12px, 2.4vw, 38px);
  text-align: center;
}

.site-nav a,
.site-footer a,
.source-links a {
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.site-nav a {
  font-size: clamp(13px, 1.05vw, 17px);
  line-height: 1.22;
}

.site-nav a:hover,
.site-footer a:hover,
.source-links a:hover {
  text-decoration-style: wavy;
}

.eyebrow {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - var(--header-height));
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.5fr);
  align-items: center;
  gap: clamp(50px, 8vw, 140px);
  overflow: hidden;
  padding: clamp(70px, 8vw, 130px) var(--page-pad);
}

.hero-copy,
.hero-art {
  position: relative;
  z-index: 2;
}

.hero-copy {
  width: min(100%, 900px);
}

.hero-lead {
  max-width: 720px;
  margin-bottom: 36px;
  font-size: clamp(20px, 2vw, 28px);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 14px 24px;
  border: var(--border);
  border-radius: 999px;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  transform: translate(-3px, -3px);
}

.button-primary {
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--green);
}

.button-primary:hover {
  box-shadow: 8px 8px 0 var(--green);
}

.hero-date {
  max-width: 240px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
}

.hero-art {
  display: grid;
  place-items: center;
  min-height: 380px;
}

.hero-art img {
  position: relative;
  z-index: 2;
  width: min(100%, 440px);
  transform: rotate(4deg);
}

.checker-intro,
.checker-form,
.results,
.faq-intro,
.faq-list,
.source-section,
.site-footer {
  width: min(100%, var(--content));
  margin-right: auto;
  margin-left: auto;
}

.checker-section {
  padding: var(--section-y) var(--page-pad);
  color: var(--cream);
  background: var(--green);
}

.checker-intro {
  margin-bottom: 36px;
}

.checker-intro h2 {
  max-width: 16ch;
}

.eyebrow-light {
  color: var(--yellow);
}

.checker-form {
  color: var(--green);
  border: 3px solid var(--cream);
  border-radius: 32px;
  background: var(--cream-light);
  box-shadow: 12px 12px 0 var(--pink);
}

.form-section {
  padding: clamp(28px, 4vw, 58px);
  border-bottom: 2px solid var(--green);
}

.form-section-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 18px;
  margin-bottom: 34px;
}

.form-section-heading h3 {
  margin-bottom: 8px;
}

.form-section-heading p {
  margin-bottom: 0;
}

.form-section-heading-actions {
  grid-template-columns: auto 1fr auto;
}

.form-step {
  display: grid;
  width: 48px;
  aspect-ratio: 1;
  place-items: center;
  border: var(--border);
  border-radius: 50%;
  background: var(--yellow);
  font-size: 20px;
  font-weight: 900;
}

.form-utilities {
  display: flex;
  align-items: center;
  gap: 18px;
}

.text-button {
  padding: 4px 0;
  border-bottom: 2px solid currentColor;
  background: transparent;
  font-size: 15px;
  font-weight: 900;
}

.text-button:hover {
  border-bottom-style: wavy;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.day-card {
  min-width: 0;
  padding: 18px;
  border: var(--border);
  border-radius: 18px;
  background: var(--white);
}

.day-card:nth-child(2) {
  background: #faedc8;
}

.day-card:nth-child(3) {
  background: #f8e1e8;
}

.day-card:nth-child(4) {
  background: #e0eeee;
}

.day-card:nth-child(5) {
  background: #ffe0c2;
}

.day-name {
  margin-bottom: 16px;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.day-meals {
  display: grid;
  gap: 12px;
}

.meal-row {
  position: relative;
  display: grid;
  gap: 8px;
}

.meal-row + .meal-row {
  padding-top: 16px;
  border-top: 1px dashed var(--green);
}

.meal-type,
.meal-text,
.question-field select {
  width: 100%;
  border: 2px solid var(--green);
  border-radius: 10px;
  background: var(--white);
}

.meal-type,
.question-field select {
  min-height: 46px;
  padding: 9px 34px 9px 11px;
  font-size: 15px;
  font-weight: 400;
}

.meal-text {
  min-height: 122px;
  padding: 12px;
  resize: vertical;
  font-size: 15px;
  line-height: 1.35;
}

.meal-text::placeholder {
  color: #718071;
  opacity: 1;
}

.remove-meal {
  position: absolute;
  top: -8px;
  right: -8px;
  display: none;
  width: 30px;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: var(--salmon);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.meal-row + .meal-row .remove-meal,
.day-meals:has(.meal-row + .meal-row) .meal-row:first-child .remove-meal {
  display: grid;
}

.add-meal {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border: 2px dashed var(--green);
  border-radius: 10px;
  background: transparent;
  font-size: 14px;
  font-weight: 900;
}

.add-meal:hover {
  background: var(--yellow);
}

.questions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 24px;
}

.question-field {
  display: grid;
  align-content: start;
  gap: 7px;
}

.question-field > span {
  min-height: auto;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
}

.question-hint {
  display: block;
  margin-top: -2px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
}

.question-hint a,
.result-item p a {
  color: inherit;
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.question-hint a:hover,
.question-hint a:focus-visible,
.result-item p a:hover,
.result-item p a:focus-visible {
  text-decoration-style: wavy;
}

.question-field select {
  min-height: 54px;
  padding-left: 14px;
  background: var(--white);
}

.form-submit {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: clamp(28px, 4vw, 50px);
}

.button-submit {
  min-width: min(100%, 320px);
  color: var(--cream);
  background: var(--green);
  box-shadow: 6px 6px 0 var(--pink);
}

.button-submit span {
  margin-left: 30px;
  font-size: 26px;
}

.button-submit:hover {
  box-shadow: 9px 9px 0 var(--pink);
}

.form-submit p {
  max-width: 450px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.results {
  margin-top: 70px;
  color: var(--green);
  border: 3px solid var(--green);
  border-radius: 32px;
  background: var(--yellow);
  box-shadow: 12px 12px 0 var(--pink);
}

.results[hidden] {
  display: none;
}

.results-summary {
  padding: clamp(30px, 5vw, 68px);
  border-bottom: 3px solid var(--green);
}

.results-summary h3 {
  max-width: 18ch;
  margin: 16px 0 20px;
  font-size: clamp(42px, 5vw, 74px);
}

.results-summary > p:not(.eyebrow) {
  max-width: 760px;
  font-size: 21px;
}

.result-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.count-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: var(--border);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
}

.count-pill strong {
  font-size: 20px;
}

.count-symbol {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 17px;
  line-height: 1;
}

.count-fail {
  background: var(--result-fail);
}

.count-pending {
  background: var(--result-pending);
}

.count-pass {
  background: var(--result-pass);
}

.results-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  background: var(--green);
}

.result-group {
  padding: clamp(26px, 3vw, 44px);
}

.result-group-fail {
  background: var(--result-fail);
}

.result-group-pending {
  background: var(--result-pending);
}

.result-group-pass {
  background: var(--result-pass);
}

.result-group h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 29px;
}

.result-group-symbol {
  display: inline-grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}

.result-list {
  display: grid;
  gap: 14px;
}

.result-item {
  padding: 18px;
  border: 2px solid var(--green);
  border-radius: 14px;
}

.result-item-fail {
  background: var(--result-fail-card);
}

.result-item-pending {
  background: var(--result-pending-card);
}

.result-item-pass {
  background: var(--result-pass-card);
}

.result-item h5 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.15;
}

.result-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

.result-source {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.result-group[hidden] {
  display: none;
}

.results-disclaimer {
  margin: 0;
  padding: 20px clamp(26px, 3vw, 44px);
  border-top: 3px solid var(--green);
  font-size: 14px;
  font-weight: 400;
}

.faq-section {
  padding: var(--section-y) var(--page-pad);
  background: var(--cream);
}

.faq-intro {
  max-width: 880px;
  margin-bottom: 40px;
}

.faq-intro h2 {
  max-width: 16ch;
  margin-bottom: 18px;
  font-size: clamp(42px, 4.7vw, 76px);
}

.faq-list {
  max-width: 1040px;
  overflow: hidden;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.faq-item {
  border-bottom: 2px solid var(--green);
  background: var(--white);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 82px;
  padding: 20px clamp(20px, 3vw, 34px);
  gap: 24px;
  cursor: pointer;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.08;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: var(--cream-light);
}

.faq-item[open] summary {
  background: var(--cream-light);
}

.faq-toggle {
  position: relative;
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.faq-toggle::before,
.faq-toggle::after {
  position: absolute;
  width: 14px;
  height: 2px;
  background: currentColor;
  content: "";
}

.faq-toggle::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-toggle {
  background: var(--yellow);
}

.faq-item[open] .faq-toggle::after {
  transform: rotate(0deg);
}

.faq-answer {
  max-width: 810px;
  padding: 0 clamp(20px, 3vw, 34px) clamp(26px, 3vw, 34px);
}

.faq-answer p {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-feedback-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.faq-feedback-form textarea {
  width: 100%;
  min-height: 142px;
  padding: 16px;
  border: var(--border);
  border-radius: var(--radius-small);
  background: var(--white);
  resize: vertical;
}

.faq-feedback-button {
  justify-self: start;
  color: var(--cream);
  background: var(--green);
  box-shadow: 5px 5px 0 var(--pink);
}

.faq-feedback-button span {
  margin-left: 20px;
  font-size: 24px;
}

.faq-feedback-button:hover {
  box-shadow: 8px 8px 0 var(--pink);
}

.faq-feedback-note {
  margin-top: 16px !important;
  color: var(--ink-muted);
  font-size: 14px !important;
}

.source-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
  width: 100%;
  max-width: none;
  padding: var(--section-y) var(--page-pad);
  background: var(--teal);
}

.source-section > div {
  max-width: 850px;
}

.source-section h2 {
  max-width: 13ch;
}

.source-section p:not(.eyebrow) {
  max-width: 760px;
  font-size: 20px;
}

.source-art {
  justify-self: center;
  width: min(100%, 320px);
  transform: rotate(3deg);
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 30px;
  margin-top: 30px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 34px;
  width: 100%;
  max-width: none;
  padding: 38px var(--page-pad);
  color: var(--cream);
  background: var(--green);
}

.footer-logo {
  width: 180px;
  filter: brightness(0) invert(1);
}

@media (max-width: 1180px) {
  .days-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .day-card:last-child {
    grid-column: 1 / -1;
  }

  .results-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 150px;
  }

  .site-header {
    grid-template-columns: 1fr;
    min-height: var(--header-height);
    padding: 12px 16px 0;
    gap: 12px;
  }

  .site-nav {
    display: grid;
    width: calc(100% + 32px);
    min-height: 66px;
    padding: 12px 10px;
    margin: 0 -16px;
    border-top: 1px solid rgba(22, 43, 23, 0.14);
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 10px;
  }

  .brand-link {
    grid-column: 1;
    grid-row: 1;
    width: 148px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 300px;
  }

  .questions-grid {
    grid-template-columns: 1fr;
  }

  .question-field > span {
    min-height: auto;
  }

  .source-section {
    grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  :root {
    --page-pad: 18px;
  }

  body {
    font-size: 17px;
  }

  .site-header {
    min-height: var(--header-height);
  }

  .brand-link {
    width: 148px;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  h1 {
    font-size: clamp(50px, 16vw, 72px);
  }

  h2 {
    font-size: clamp(50px, 12vw, 58px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .checker-form,
  .results {
    border-radius: 22px;
    box-shadow: 7px 7px 0 var(--pink);
  }

  .form-section-heading,
  .form-section-heading-actions {
    grid-template-columns: auto 1fr;
  }

  .form-utilities {
    grid-column: 2;
    flex-wrap: wrap;
  }

  .days-grid {
    grid-template-columns: 1fr;
  }

  .day-card:last-child {
    grid-column: auto;
  }

  .form-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .button-submit {
    width: 100%;
  }

  .result-counts {
    align-items: stretch;
    flex-direction: column;
  }

  .count-pill {
    text-align: center;
  }

  .faq-section {
    padding-top: clamp(58px, 14vw, 84px);
    padding-bottom: clamp(58px, 14vw, 84px);
  }

  .faq-intro {
    margin-bottom: 30px;
  }

  .faq-list {
    border-radius: 18px;
  }

  .faq-item summary {
    min-height: 74px;
    padding: 18px;
    gap: 16px;
  }

  .faq-answer {
    padding-right: 18px;
    padding-bottom: 24px;
    padding-left: 18px;
  }

  .faq-feedback-button {
    width: 100%;
  }

  .source-section {
    grid-template-columns: 1fr;
  }

  .source-art {
    width: 180px;
    justify-self: start;
  }

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

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
