@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --paper: #f1eee6;
  --card: #faf7ef;
  --ink: #17201a;
  --muted: #6d716c;
  --line: #c9c6bc;
  --acid: #d8ff55;
  --red: #d84a36;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
}

.page {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

/* Mini navigation */

.mini-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 238, 230, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.mini-nav__inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mini-nav__brand,
.mini-nav__links a {
  text-decoration: none;
}

.mini-nav__brand {
  font-size: 13px;
  font-weight: 600;
}

.mini-nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
}

.mini-nav__links a {
  color: var(--muted);
  transition: color 0.15s ease;
}

.mini-nav__links a:hover {
  color: var(--ink);
}

/* Hero */

.hero {
  min-height: calc(88vh - 52px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 0 56px;
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
  font-size: 13px;
}

.topbar__name {
  font-weight: 600;
}

.topbar__note {
  color: var(--muted);
}

.hero__content {
  max-width: 950px;
  padding: 80px 0;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 26px;
  padding: 7px 11px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 34px;
  font-family: "Instrument Serif", serif;
  font-size: clamp(64px, 10vw, 142px);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: -0.045em;
}

.hero__intro {
  max-width: 710px;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.4;
}

.hero__intro + .hero__intro {
  margin-top: 14px;
}

.hero__small {
  max-width: 620px;
  color: var(--muted);
  font-size: 14px;
}

/* Hero table of contents */

.contents {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 30px;
  max-width: 710px;
  margin-top: 52px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.contents__label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contents__links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contents__links a {
  text-decoration: none;
  font-size: 14px;
}

.contents__links a:hover {
  text-decoration: underline;
}

/* Sections */

.section {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 70px;
}

.section-number {
  padding-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.section-title {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.03em;
}

/* Recipes */

.recipe {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 70px;
  padding: 55px 0;
  border-top: 1px solid var(--line);
}

.recipe:first-of-type {
  border-top: 0;
}

.recipe__name {
  margin-bottom: 18px;
  font-family: "Instrument Serif", serif;
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 400;
  line-height: 0.98;
}

.recipe__description {
  max-width: 620px;
  font-size: 18px;
}

.tag {
  display: inline-flex;
  margin-top: 18px;
  padding: 5px 9px;
  background: var(--acid);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spec {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
}

.spec--spaced {
  margin-top: 28px;
}

.spec__title {
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ingredients {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
}

.ingredients li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.ingredients li:first-child {
  padding-top: 0;
}

.ingredients strong {
  font-weight: 600;
  white-space: nowrap;
}

.method {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.subrecipe {
  margin-top: 42px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.subrecipe h3 {
  margin-bottom: 10px;
  font-family: "Instrument Serif", serif;
  font-size: 34px;
  font-weight: 400;
}

.subrecipe__intro {
  max-width: 590px;
  margin-bottom: 28px;
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.recommendation {
  margin-top: 24px;
  padding: 22px;
  border-left: 3px solid var(--red);
  background: rgba(255, 255, 255, 0.25);
}

.recommendation strong {
  display: block;
  margin-bottom: 6px;
}

.recommendation p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Oatly collaboration section */

.collab {
  background: var(--ink);
  color: var(--paper);
}

.collab .section {
  border-color: rgba(241, 238, 230, 0.25);
}

.collab .section-number,
.collab .recipe__description,
.collab .method,
.collab .subrecipe__intro {
  color: rgba(241, 238, 230, 0.65);
}

.collab .recipe {
  border-color: rgba(241, 238, 230, 0.25);
}

.collab .spec {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(241, 238, 230, 0.25);
}

.collab .ingredients li {
  border-color: rgba(241, 238, 230, 0.2);
}

.collab .tag {
  color: var(--ink);
}

/* Footer */

footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 35px 0 50px;
  font-size: 13px;
  color: var(--muted);
}

/* Responsive */

@media (max-width: 800px) {
  .page {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .hero {
    min-height: auto;
  }

  .hero__content {
    padding: 100px 0 70px;
  }

  .section {
    padding: 70px 0;
  }

  .section-heading,
  .recipe,
  .two-column {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .recipe {
    gap: 30px;
  }

  .section-heading {
    margin-bottom: 45px;
  }

  .recipe {
    padding: 45px 0;
  }

  .topbar,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .mini-nav__brand {
    display: none;
  }

  .mini-nav__inner {
    overflow-x: auto;
  }

  .mini-nav__links {
    min-width: max-content;
    gap: 18px;
  }

  .contents {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
