@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

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

@font-face {
  font-family: "Nanum Pen Script";
  src: url("assets/fonts/nanum-pen-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #20231f;
  --muted: #6d7169;
  --cream: #f5f1e7;
  --paper: #fffdf7;
  --paper-shade: #eee9dc;
  --blue: #1f5fa8;
  --blue-dark: #194d88;
  --line: #dedbd1;
  --art-grey: #dedfd7;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* Announcement and navigation */
.announcement {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100% - 1200px) / 2));
  background: var(--blue);
  color: #fff;
  font-family: var(--serif);
  font-size: 11px;
}

.announcement span:last-child {
  font-family: var(--sans);
  font-size: 9px;
}

.site-header {
  width: min(1200px, calc(100% - 72px));
  height: 112px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-family: "Nanum Pen Script", cursive;
  font-size: 39px;
  font-weight: 400;
  letter-spacing: -.5px;
  transform: rotate(-2deg);
}

.site-header .wordmark {
  gap: 13px;
}

.wordmark > span:not(.wordmark-icon) {
  color: var(--blue);
}

.wordmark-icon {
  display: none;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  transition: color .2s;
}

.main-nav a:hover,
.site-footer > a:last-child:hover {
  color: var(--blue);
}

.header-social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-social-links a {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: color .2s;
}

.header-social-links a:hover {
  color: var(--blue);
}

.header-social-links svg {
  width: 18px;
  height: 18px;
  display: block;
}

.header-cta {
  border: 1px solid var(--blue);
  border-radius: 999px;
  padding: 11px 17px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  transition: background .2s, color .2s;
}

.header-cta span {
  display: none;
}

.header-cta:hover {
  background: var(--blue);
  color: #fff;
}

/* Hero and featured recipe */
.hero {
  width: min(1200px, calc(100% - 72px));
  min-height: 510px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  align-items: center;
  gap: 55px;
  padding: 50px 0 58px;
}

.hero-copy {
  padding-right: 10px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.hero-copy .eyebrow {
  margin-bottom: 20px;
  font-size: 8px;
  letter-spacing: 1.7px;
}

.hero-copy .eyebrow span {
  display: none;
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
}

.hero h1 {
  max-width: 610px;
  margin-bottom: 20px;
  color: var(--blue);
  font-size: clamp(52px, 5.4vw, 72px);
  letter-spacing: -3px;
  line-height: 1.02;
}

.hero h1 em {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-style: italic;
}

.hero-description {
  max-width: 360px;
  margin-bottom: 26px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.65;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  padding: 15px 19px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .7px;
  transition: transform .2s, background .2s, color .2s;
}

.button:hover {
  transform: translateY(-2px);
  background: transparent;
  color: var(--blue);
}

.button span {
  font-size: 16px;
}

.hero-promise {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 20px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 10px;
}

.hero-promise span {
  color: var(--blue);
  font-size: 14px;
}

.hero-feature {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  transition: transform .25s, box-shadow .25s;
}

.hero-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px #20231f14;
}

.feature-art {
  position: relative;
  height: 330px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--art-grey);
}

.feature-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-art-top {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 17px;
  left: 17px;
  display: flex;
  justify-content: space-between;
  color: #444a44;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1.1px;
}

.feature-stamp {
  position: absolute;
  z-index: 3;
  top: 54px;
  left: 24px;
  width: 84px;
  height: 84px;
  display: grid;
  align-content: center;
  transform: rotate(-7deg);
  border: 1px solid #9db4bb;
  border-radius: 50%;
  background: #edf3f1;
  color: var(--blue);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.05;
  text-align: center;
}

.feature-stamp em {
  margin-top: 4px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 7px;
  font-style: normal;
  letter-spacing: 1px;
}

.feature-art-caption {
  position: absolute;
  right: 17px;
  bottom: 15px;
  color: #555c53;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.feature-info {
  padding: 23px 21px 17px;
}

.feature-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feature-kicker {
  color: var(--blue);
  font-family: var(--serif);
  font-size: 12px;
}

.feature-tag {
  padding: 5px 8px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .8px;
  white-space: nowrap;
}

.feature-tag i {
  padding: 0 3px;
  color: var(--blue);
  font-style: normal;
}

.feature-info h2 {
  margin: 10px 0 5px;
  color: var(--blue);
  font-family: var(--serif);
  font-size: 37px;
  font-weight: 500;
  letter-spacing: -1px;
}

.feature-info > p {
  max-width: 390px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.feature-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
}

.feature-link-arrow {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  font-size: 12px;
  transition: transform .2s, background .2s, color .2s;
}

.hero-feature:hover .feature-link-arrow {
  transform: translate(2px, -2px);
  background: var(--blue);
  color: #fff;
}

/* Recipe index */
.collection {
  width: 100%;
  padding: 68px max(36px, calc((100% - 1200px) / 2)) 90px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 23px;
}

.section-heading .eyebrow {
  margin-bottom: 7px;
}

.section-heading h2 {
  margin-bottom: 0;
  color: var(--blue);
  font-size: 48px;
  letter-spacing: -1.8px;
}

.heading-period {
  color: var(--blue);
}

.collection-description {
  margin: 11px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
}

.search-box {
  width: 236px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: transparent;
  color: var(--blue);
}

.search-box > span {
  font-size: 20px;
  line-height: 12px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 12px;
}

.search-box input::placeholder {
  color: var(--muted);
}

.filter-row {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
  overflow-x: auto;
  margin-bottom: 27px;
  padding: 0;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  position: relative;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  padding: 14px 0 13px;
  background: transparent;
  color: #555a54;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 14px;
  white-space: nowrap;
  transition: color .2s;
}

.filter-chip:hover {
  color: var(--blue);
}

.filter-chip.active {
  color: var(--blue);
}

.filter-chip.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
}

.filter-chip span {
  margin-left: 5px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.category-section {
  position: relative;
  margin-bottom: 58px;
  padding-top: 1px;
}

.category-section:last-child {
  margin-bottom: 0;
}

.category-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.category-heading h3 {
  margin: 0;
  color: var(--blue);
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 500;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.category-see-all {
  flex: 0 0 auto;
  border: 1px solid var(--blue);
  border-radius: 999px;
  padding: 9px 16px;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 12px;
  transition: background .2s, color .2s;
}

.category-see-all:hover {
  background: var(--blue);
  color: #fff;
}

.recipe-card {
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 3px;
  background: transparent;
  transition: transform .2s;
}

.recipe-card:hover {
  transform: translateY(-4px);
}

.recipe-card-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.card-art {
  position: relative;
  height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 3px;
  background: var(--art-grey);
}

.card-emoji {
  z-index: 1;
  font-size: 83px;
  filter: drop-shadow(0 9px 8px #2c302b24);
  transition: transform .25s;
}

.card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-card:hover .card-emoji {
  transform: scale(1.08) rotate(-5deg);
}

.card-label {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 13px;
  border-radius: 2px;
  padding: 6px 9px;
  background: #fffef6e8;
  color: var(--blue);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.card-content {
  padding: 16px 2px 8px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
  color: #777b74;
  font-size: 8px;
  letter-spacing: .4px;
}

.card-title {
  margin: 0 0 7px;
  color: var(--blue);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.5px;
}

.card-description {
  min-height: 36px;
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.7;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #777b74;
  font-size: 8px;
  letter-spacing: .3px;
}

.card-footer span:last-child {
  color: var(--blue);
  font-weight: 700;
  white-space: nowrap;
}

.empty-state {
  padding: 35px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Footer */
.site-footer {
  width: min(1200px, calc(100% - 72px));
  min-height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer .wordmark {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.3px;
  transform: none;
}

.site-footer .wordmark > span:not(.wordmark-icon) {
  color: var(--blue);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 9px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-links a {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .4px;
  transition: color .2s;
}

.social-links a:hover {
  color: var(--blue);
}

.site-footer > a:last-child {
  color: var(--blue);
  font-size: 8px;
  letter-spacing: .6px;
  transition: color .2s;
}

/* Dedicated recipe pages */
.recipe-site-header {
  margin-bottom: 0;
}

.recipe-page {
  width: 100%;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.cookbook-recipe {
  width: min(1000px, calc(100% - 72px));
  margin: auto;
  padding: 64px 0 78px;
}

.cookbook-header {
  max-width: 820px;
  margin: 0 auto 38px;
  text-align: center;
}

.cookbook-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.cookbook-meta a {
  border-bottom: 1px solid currentColor;
}

.cookbook-meta span {
  color: var(--muted);
}

.cookbook-header h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(48px, 6vw, 78px);
  letter-spacing: -3px;
  line-height: 1.02;
}

.cookbook-lead {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 48px;
}

.cookbook-intro {
  padding: 0 0 24px;
  text-align: center;
}

.cookbook-intro p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
}

.cookbook-yield {
  display: inline-block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cookbook-art {
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 0;
  background: var(--art-grey);
}

.cookbook-art .cookbook-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cookbook-art .card-emoji {
  font-size: 118px;
}

.cookbook-grid {
  display: grid;
  grid-template-columns: 34% 66%;
  gap: 56px;
  padding-top: 8px;
}

.cookbook-ingredients {
  padding-right: 0;
}

.cookbook-method {
  padding-left: 0;
}

.cookbook-grid h2,
.cookbook-components h2 {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.cookbook-ingredients ul,
.cookbook-method ol {
  margin: 0;
  color: #555b54;
  line-height: 1.75;
}

.cookbook-ingredients ul {
  padding-left: 18px;
}

.cookbook-ingredients li {
  padding: 5px 0;
  font-size: 13px;
}

.cookbook-method ol {
  padding-left: 20px;
}

.cookbook-method li {
  margin-bottom: 18px;
  padding-left: 7px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.65;
}

.cookbook-method li::marker {
  color: var(--blue);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
}

.cookbook-components {
  margin-top: 48px;
  padding-top: 24px;
}

.cookbook-component-link {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px;
  background: #fffdf780;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
}

.cookbook-component-link + .cookbook-component-link {
  margin-top: 8px;
}

.cookbook-component-link span:last-child {
  color: var(--blue);
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.recipe-page-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.recipe-page-actions button,
.copy-recipe-link {
  border: 1px solid var(--blue);
  border-radius: 999px;
  padding: 10px 15px;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .7px;
}

.recipe-page-actions span {
  color: var(--muted);
  font-size: 10px;
}

.next-recipe {
  width: min(1000px, calc(100% - 72px));
  min-height: 220px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 220px;
  align-items: center;
  gap: 36px;
  padding: 28px 0;
  color: var(--ink);
}

.next-recipe > div:first-child span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.next-recipe h2 {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--blue);
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -1.5px;
}

.next-recipe-art {
  height: 160px;
  border-radius: 0;
}

.next-recipe-art .card-emoji {
  font-size: 72px;
}

.next-recipe-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.recipe-not-found {
  width: min(1000px, calc(100% - 72px));
  min-height: 520px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.recipe-not-found h1 {
  max-width: 700px;
  color: var(--blue);
  font-size: 58px;
  letter-spacing: -2px;
}

/* Recipe dialog */
.recipe-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(590px, calc(100% - 32px));
  max-height: min(85vh, 850px);
  max-height: min(85dvh, 850px);
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 70px #14271d42;
  scroll-behavior: smooth;
}

.recipe-dialog::backdrop {
  background: #20231f99;
  backdrop-filter: blur(3px);
}

.dialog-close {
  position: sticky;
  z-index: 2;
  top: 12px;
  float: right;
  width: 34px;
  height: 34px;
  margin: 12px 12px -46px 0;
  border: 0;
  border-radius: 50%;
  background: #fffef6e8;
  color: var(--blue);
  cursor: pointer;
  font-size: 23px;
}

.detail-art {
  height: 215px;
}

.detail-art .card-emoji {
  font-size: 94px;
}

.detail-body {
  padding: 28px 34px 34px;
}

.recipe-back-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  border: 0;
  padding: 8px 10px 8px 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-size: 15px;
}

.recipe-back-button span {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .8px;
}

.detail-body .eyebrow {
  margin-bottom: 10px;
}

.detail-body h2 {
  margin-bottom: 9px;
  color: var(--blue);
  font-size: 42px;
  letter-spacing: -1px;
}

.detail-description {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.detail-columns {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 25px;
  margin-top: 24px;
}

.detail-columns h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
}

.detail-columns ul,
.detail-columns ol {
  margin: 0;
  padding-left: 18px;
  color: #555b54;
  font-size: 11px;
  line-height: 1.9;
}

.detail-columns li {
  margin-bottom: 5px;
  padding-left: 2px;
}

.component-inline-link {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: #1f5fa866;
  text-underline-offset: 3px;
}

.component-inline-link > span:first-child {
  margin-left: 2px;
  font-size: 9px;
  text-decoration: none;
}

.component-section {
  margin-top: 28px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
}

.component-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.component-section-heading .eyebrow {
  margin-bottom: 5px;
  font-size: 8px;
}

.component-section-heading h3 {
  margin: 0;
  color: var(--blue);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
}

.component-section-heading > p {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 9px;
  text-align: right;
}

.component-list {
  border-top: 1px solid var(--line);
}

.component-accordion {
  border-bottom: 1px solid var(--line);
}

.component-accordion summary {
  min-height: 59px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.component-accordion summary::-webkit-details-marker {
  display: none;
}

.component-number {
  color: var(--blue);
  font-size: 14px;
}

.component-summary-copy {
  flex: 1;
  display: grid;
  gap: 4px;
}

.component-summary-copy strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}

.component-summary-copy small {
  color: var(--muted);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .8px;
}

.component-toggle {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid #9b9c91;
  border-radius: 50%;
  color: var(--blue);
  font-size: 16px;
  transition: transform .2s, background .2s;
}

.component-accordion[open] .component-toggle {
  transform: rotate(45deg);
  background: var(--paper-shade);
}

.component-content {
  padding: 1px 0 17px 26px;
}

.component-content > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.component-detail-columns {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 17px;
}

.component-detail-columns h4 {
  margin: 0 0 6px;
  color: var(--blue);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
}

.component-detail-columns ul,
.component-detail-columns ol {
  margin: 0;
  padding-left: 16px;
  color: #555b54;
  font-size: 9px;
  line-height: 1.7;
}

.component-detail-columns li {
  margin-bottom: 4px;
  padding-left: 2px;
}

.component-full-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--blue);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .7px;
}

.recipe-detail-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 25px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.copy-recipe-link {
  border: 0;
  padding: 11px 14px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .7px;
  transition: background .2s;
}

.copy-recipe-link:hover {
  background: var(--blue-dark);
}

#copy-message {
  color: var(--muted);
  font-size: 9px;
}

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

@media (max-width: 760px) {
  .cookbook-recipe,
  .next-recipe,
  .recipe-not-found {
    width: calc(100% - 40px);
  }

  .cookbook-recipe {
    padding: 44px 0 58px;
  }

  .cookbook-header h1 {
    font-size: clamp(42px, 11vw, 64px);
  }

  .cookbook-intro {
    padding-bottom: 20px;
  }

  .cookbook-art {
    aspect-ratio: 4 / 3;
  }

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

  .cookbook-ingredients {
    margin-bottom: 34px;
    padding-right: 0;
  }

  .cookbook-method {
    padding-left: 0;
  }

  .next-recipe {
    grid-template-columns: 1fr 150px;
  }

  .next-recipe-art {
    height: 130px;
  }
}

@media (max-width: 760px) {
  .announcement {
    min-height: 38px;
    padding: 0 20px;
  }

  .announcement span:last-child {
    display: none;
  }

  .site-header,
  .hero,
  .site-footer {
    width: min(100% - 40px, 600px);
  }

  .site-header {
    height: 82px;
  }

  .site-header .wordmark {
    font-size: 34px;
  }

  .main-nav {
    gap: 14px;
  }

  .main-nav a {
    font-size: 11px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 42px 0 58px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(52px, 10vw, 72px);
  }

  .hero-feature {
    width: min(100%, 520px);
    justify-self: center;
  }

  .feature-art {
    height: 300px;
  }

  .collection {
    padding: 55px 20px 65px;
  }

  .section-heading h2 {
    font-size: 42px;
  }

  .recipe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }

  .card-art {
    height: 180px;
  }

  .card-emoji {
    font-size: 68px;
  }

}

@media (max-width: 480px) {
  .site-header,
  .hero,
  .site-footer {
    width: calc(100% - 32px);
  }

  .site-header .wordmark {
    font-size: 30px;
  }

  .header-social-links {
    gap: 10px;
  }

  .header-social-links a,
  .header-social-links svg {
    width: 16px;
    height: 16px;
  }

  .main-nav a:nth-child(2) {
    display: none;
  }

  .hero {
    gap: 30px;
    padding-top: 40px;
  }

  .hero h1 {
    font-size: clamp(48px, 13vw, 62px);
    letter-spacing: -2px;
  }

  .hero-description {
    font-size: 13px;
  }

  .hero .button {
    min-width: 0;
  }

  .feature-art {
    height: 260px;
  }

  .feature-stamp {
    top: 53px;
    left: 15px;
    width: 72px;
    height: 72px;
    font-size: 12px;
  }

  .feature-info {
    padding: 15px 16px;
  }

  .feature-info h2 {
    font-size: 31px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 19px;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .search-box {
    width: 100%;
  }

  .recipe-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card-art {
    height: 220px;
  }

  .card-content {
    padding: 15px 2px 8px;
  }

  .card-description {
    min-height: 0;
  }

  .site-footer {
    min-height: 106px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    padding: 20px 0;
  }

  .site-footer p {
    order: 2;
    width: 100%;
    text-align: center;
  }

  .site-footer .social-links {
    order: 1;
    width: 100%;
    justify-content: center;
  }

  .detail-body {
    padding: 23px 21px 28px;
  }

  .detail-body h2 {
    font-size: 34px;
  }

  .detail-columns {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .component-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .component-section-heading > p {
    text-align: left;
  }

  .component-detail-columns {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .component-content {
    padding-left: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
