@font-face {
  font-family: "Instrument Sans";
  src: url("assets/instrument-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf8f1;
  --ink: #20251b;
  --muted: #52594a;
  --green: #345640;
  --line: #deded0;
  --measure: 75rem;
  --gutter: clamp(1.25rem, 4.5vw, 4rem);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 "Instrument Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 5px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--measure)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 3; padding: .5rem 1rem; background: white; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.site-header { min-height: 5.25rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.15rem; font-weight: 700; letter-spacing: -.035em; text-decoration: none; }
.brand img { border-radius: 26%; }
.header-link { color: var(--muted); text-underline-offset: .25em; text-decoration-color: transparent; }
.header-link:hover { text-decoration-color: currentColor; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(2.75rem, 5.6vw, 5.75rem) clamp(4.5rem, 8vw, 8rem);
}

.hero h1, .steps h2 { font-weight: 600; line-height: .98; letter-spacing: -.068em; }
.hero h1 { font-size: clamp(2.65rem, 5.6vw, 5.3rem); }
.hero h1 em, .steps h2 em { color: var(--green); font: italic 400 1.16em/.77 "Instrument Serif", Georgia, serif; letter-spacing: -.045em; }
.hero h1 em { display: block; padding-top: .055em; }
.hero-copy > p:first-of-type { margin-top: 1.65rem; max-width: 28rem; color: var(--muted); font-size: clamp(1.13rem, 1.55vw, 1.35rem); }
.action { display: inline-flex; align-items: center; gap: .8rem; min-height: 3.4rem; margin-top: 1.75rem; padding: .65rem 1.25rem; border-radius: 100vmax; background: var(--green); color: white; font-weight: 600; text-decoration: none; }
.action:hover { background: #254633; }
.action span { font-size: 1.2rem; }
.availability { margin-top: .7rem; color: var(--muted); font-size: .9rem; }

.hero-art {
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  min-height: 29rem;
  aspect-ratio: 1.06;
  border-radius: clamp(1.4rem, 3vw, 2.5rem);
  background: radial-gradient(ellipse at 45% 45%, #eff0dc 4%, #dce4c7 65%, #cedbb9);
}

.phone {
  overflow: hidden;
  padding: .35rem;
  border-radius: 1.8rem;
  background: #242821;
  box-shadow: 0 1rem 2rem #26301e25, 0 .2rem .45rem #26301e30;
}

.phone img { width: 100%; height: auto; border-radius: 1.47rem; }
.hero-phone { width: clamp(11rem, 40%, 14.25rem); transform: rotate(-6deg); z-index: 1; }
.ingredient { position: absolute; height: auto; object-fit: contain; }
.ingredient-lime { width: 32%; bottom: 3%; left: 1%; transform: rotate(-13deg); z-index: 2; }
.ingredient-pepper { width: 36%; top: 10%; right: 1%; transform: rotate(12deg); }

.steps { padding-bottom: clamp(4.5rem, 8vw, 7rem); scroll-margin-top: 1.5rem; }
.steps h2 { font-size: clamp(2.9rem, 5.5vw, 5.1rem); margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.1rem, 3vw, 2rem); }
.step-art { display: grid; place-items: center; padding: 1.25rem; border-radius: 1.4rem; }
.step-art .phone { width: min(67%, 11.5rem); }
.step-pantry { background: #e5e9d8; }
.step-ideas { background: #f2e5d5; }
.step-cook { background: #efe9d6; }
.step h3 { margin-top: 1rem; font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.12; letter-spacing: -.042em; }
.step p { margin-top: .55rem; max-width: 24rem; color: var(--muted); }

.site-footer { flex-wrap: wrap; padding-block: 1.55rem; border-top: 1px solid var(--line); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .65rem 1.2rem; font-size: .95rem; }
.site-footer nav a { text-underline-offset: .2em; }
.site-footer small { color: var(--muted); }

.document { width: min(100% - 2 * var(--gutter), 45rem); margin-inline: auto; padding-block: clamp(2.5rem, 6vw, 5rem); font-size: 1.0625rem; overflow-wrap: anywhere; }
.document h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.06em; margin-bottom: 1.5rem; }
.document h2 { margin: 2.1rem 0 .6rem; font-size: 1.42rem; line-height: 1.15; letter-spacing: -.03em; }
.document p, .document li { margin-bottom: .7rem; }
.document ul { margin: .75rem 0 1rem; padding-left: 1.4rem; }
.document a { color: var(--green); text-underline-offset: .17em; }

@media (max-width: 56rem) {
  .hero { gap: 2rem; }
  .hero-art { min-height: 25rem; }
  .step-art .phone { width: min(80%, 11.5rem); }
}

@media (max-width: 43rem) {
  .site-header { min-height: 4.3rem; }
  .hero { grid-template-columns: 1fr; padding-top: 2.6rem; gap: 1.8rem; }
  .hero h1 { font-size: clamp(2.35rem, 11.8vw, 4.6rem); }
  .hero-art { min-height: 0; aspect-ratio: 1.05; }
  .hero-phone { width: min(40%, 14rem); }
  .steps-grid { grid-template-columns: 1fr; gap: 2rem; }
  .step-art .phone { width: min(57%, 11.5rem); }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
