@font-face {
  font-family: Cormorant;
  src: url("assets/fonts/cormorant-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Cormorant;
  src: url("assets/fonts/cormorant-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url("assets/fonts/dm-sans.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f6eedc;
  --cream: #fff2d8;
  --ink: #302c20;
  --edge: clamp(1.25rem, 5.6vw, 7rem);
  --serif: Cormorant, "Palatino Linotype", Palatino, Georgia, serif;
  --sans: DM, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 1rem/1.5 var(--sans);
}
a {
  text-decoration: none;
  color: inherit;
}
button,
input {
  font: inherit;
}
a,
button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid #de8f46;
  outline-offset: 5px;
}
.symbols,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(100%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.5rem;
  left: 0.5rem;
  transform: translateY(-180%);
  background: var(--ink);
  color: white;
  padding: 0.65rem 1rem;
}
.skip-link:focus {
  transform: none;
}
.scene {
  position: relative;
  isolation: isolate;
  container-type: size;
  overflow: hidden;
  width: 100%;
  margin: 0;
  aspect-ratio: 1.83;
  max-height: 90svh;
  background: #35271c;
}
.painting-plane {
  /* Keep the lettering on the same part of the wall as the camera crops. */
  --art-ratio: 1.776833;
  --art-width: max(100cqw, calc(100cqh * var(--art-ratio)));
  --art-height: calc(var(--art-width) / var(--art-ratio));
  --vertical-focus: 0.69;
  position: absolute;
  width: var(--art-width);
  height: var(--art-height);
  left: calc((100cqw - var(--art-width)) / 2);
  top: calc((100cqh - var(--art-height)) * var(--vertical-focus));
}
.painting,
.painting img,
#ambience {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.painting img {
  object-fit: cover;
}
.wall-lettering {
  position: absolute;
  z-index: 1;
  left: 18.8%;
  top: 49%;
  width: 28.5%;
  margin: 0;
  pointer-events: none;
  color: #f3cc90;
  transform: translate(-50%, -50%) rotate(-2deg) skewX(-2deg);
  mix-blend-mode: screen;
}
.wall-lettering svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  fill: currentColor;
  font-family: var(--serif);
  font-weight: 500;
}
.sign-strokes {
  stroke-width: 1.7;
}
.sign-the,
.sign-line {
  font-style: italic;
  font-size: 42px;
}
.sign-name {
  font-size: 116px;
  letter-spacing: -0.045em;
}
.recipe {
  padding: clamp(3.5rem, 6.6vw, 7.5rem) var(--edge) clamp(2.5rem, 4.3vw, 5.5rem);
  background-image:
    url("assets/paper-grain.png"),
    radial-gradient(ellipse at 52% 0, #fff9ea, transparent 75%);
  background-color: var(--paper);
}
.recipe-inner {
  max-width: 101rem;
  margin: 0 auto;
}
.recipe-heading {
  margin-bottom: clamp(1.65rem, 2.8vw, 3.2rem);
}
.recipe-heading h2 {
  color: #2b4034;
  font: 500 clamp(2rem, 3.65vw, 3.75rem) / 1.08 var(--serif);
  margin: 0;
  letter-spacing: -0.035em;
}
.ingredients {
  margin: 0.43rem 0 0;
  font: 500 clamp(1rem, 1.2vw, 1.12rem) / 1.45 var(--sans);
  color: #5d4e36;
}
.recipe-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.35rem, 4.3vw, 4.6rem) clamp(1.55rem, 3vw, 3.5rem);
}
.step-art {
  position: relative;
  margin: 0;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: #473d2b;
  box-shadow:
    0 0 0 1px #7e6c4852,
    0 3px 9px #4e3a241b;
}
.step-art img,
.step-art canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.step-art canvas {
  pointer-events: none;
}
.instruction {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0.8rem;
  padding-top: clamp(0.95rem, 1.6vw, 1.6rem);
}
.step-number {
  display: inline-grid;
  place-items: center;
  align-self: start;
  margin-top: 0.21rem;
  min-width: 1.77rem;
  height: 1.77rem;
  border: 1px solid #999276;
  border-radius: 50%;
  font: italic 500 1.1rem/1 var(--serif);
  color: #4b5642;
}
.instruction h3 {
  font: 500 clamp(2rem, 2.8vw, 3.5rem) / 1 var(--serif);
  letter-spacing: -0.043em;
  margin: 0 0 0.42rem;
}
.instruction p,
.bar-notes p {
  color: #554b38;
  line-height: 1.57;
  font-size: 1rem;
  margin: 0;
  max-width: 43ch;
}
.bar-notes {
  display: flex;
  align-items: baseline;
  gap: 1.65rem;
  max-width: 54rem;
  margin: clamp(2.6rem, 4.5vw, 4.5rem) auto 0;
  padding: 1.15rem 0.1rem 0;
  border-top: 1px solid #8d785452;
}
.bar-notes h3 {
  font: italic 500 1.8rem/1 var(--serif);
  margin: 0;
  color: #45523d;
}
.bar-notes p {
  max-width: none;
}
footer {
  display: flex;
  align-items: center;
  padding: 1.05rem var(--edge) max(1.25rem, env(safe-area-inset-bottom));
  border-top: 1px solid #907a5845;
  background-image: url("assets/paper-grain.png");
  background-color: #eee4cd;
  color: #4c4a37;
}
.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-height: 44px;
  font: italic 500 1.25rem/1 var(--serif);
  letter-spacing: -0.035em;
}
.footer-mark svg {
  color: #777148;
  width: 1.65rem;
  height: 1.65rem;
}
@media (min-width: 1420px) {
  .recipe-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: clamp(1.4rem, 1.9vw, 2.4rem);
  }
  .instruction {
    gap: 0.55rem;
  }
  .instruction h3 {
    font-size: clamp(2rem, 2.2vw, 3.15rem);
  }
}
@media (min-aspect-ratio: 2/1) {
  /* Keep the flight path and coaster in frame on panoramic displays. */
  .scene {
    aspect-ratio: 2.34;
    max-height: none;
  }
}
@media (max-width: 700px) and (max-aspect-ratio: 4/5), (max-width: 900px) and (max-aspect-ratio: 2/3) {
  :root {
    --edge: clamp(1.18rem, 5.8vw, 3rem);
  }
  .scene {
    aspect-ratio: 5/8;
    max-height: none;
  }
  .painting-plane {
    --art-ratio: 0.562914;
    --vertical-focus: 0.42;
  }
  .wall-lettering {
    left: 36.8%;
    top: 15.1%;
    width: 54%;
    color: #f5dba7;
    transform: translate(-50%, -50%) rotate(-12deg) skewX(-7deg);
  }
}
@media (max-width: 680px) {
  .recipe-steps {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2.45rem;
  }
  .recipe-inner {
    max-width: 32rem;
  }
  .instruction {
    gap: 0.65rem;
  }
  .instruction p {
    max-width: none;
  }
  .bar-notes {
    display: block;
  }
  .bar-notes h3 {
    margin-bottom: 0.55rem;
  }
}
@media (max-width: 355px) {
  .footer-mark {
    font-size: 1.06rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
