:root {
  --bg: #e9e2d6;
  --paper: #fbf7f0;
  --ink: #1f1913;
  --soft: #7d7266;
  --faint: #b8ad9f;
  --line: rgba(31, 25, 19, 0.09);
  --accent: #c8462b;
  --light: #f3c36b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background:
    radial-gradient(110% 70% at 50% 0%, #f1ebe1 0%, rgba(241, 235, 225, 0) 62%),
    var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 12px;
}

/* the page window: everything inside is in em, and the em follows both the width and the height of the window */
.site {
  position: relative;
  font-size: clamp(8px, min(2.72vw, 2.3vh), 16px);
  width: min(36em, 100%);
  padding: 1.1em 1.6em 1.7em;
  border-radius: 1.7em;
  background: linear-gradient(180deg, #fdfaf4 0%, var(--paper) 55%, #f8f2e8 100%);
  box-shadow:
    0 0 0 1px rgba(31, 25, 19, 0.07),
    0 1px 0 0 rgba(255, 255, 255, 0.95) inset,
    0 1px 2px rgba(31, 25, 19, 0.06),
    0 8px 18px -8px rgba(31, 25, 19, 0.14),
    0 34px 70px -30px rgba(120, 52, 22, 0.32);
  overflow: hidden;
  isolation: isolate;
}
.site__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .27  0 0 0 0 .2  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.site__glow {
  position: absolute;
  z-index: -1;
  width: 28em;
  height: 20em;
  right: -9em;
  top: 1.5em;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(243, 195, 107, 0.34), rgba(243, 195, 107, 0.12) 55%, rgba(243, 195, 107, 0));
  filter: blur(0.6em);
}

/* the top bar of the page */
.bar {
  display: flex;
  align-items: center;
  gap: 1em;
  padding-bottom: 1em;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 0.45em; margin-right: auto; }
.brand__mark {
  width: 1.55em;
  height: 1.55em;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.3;
}
.brand__mark circle:nth-child(n+3) { fill: var(--ink); stroke: none; }
.brand__mark circle:nth-child(2) { stroke: var(--accent); }
.brand__name {
  font-family: "Fraunces Variable", Georgia, serif;
  font-size: 1.32em;
  font-weight: 560;
  font-variation-settings: "opsz" 36, "SOFT" 60;
  letter-spacing: -0.02em;
}
.links { display: flex; gap: 1.3em; font-size: 0.92em; color: var(--soft); font-variation-settings: "wdth" 96; }
.links a { transition: color 0.25s ease; }
@media (hover: hover) { .links a:hover { color: var(--ink); } }

.book { position: relative; border-radius: 999px; }
.book__face {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.62em 0.95em 0.62em 1.1em;
  border-radius: inherit;
  overflow: hidden;
  isolation: isolate;
  color: #fbf4e8;
  font-size: 0.9em;
  font-weight: 560;
  font-variation-settings: "wdth" 100;
  white-space: nowrap;
  background: linear-gradient(180deg, #2c241c 0%, #16110c 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 1px 0 0 rgba(255, 236, 205, 0.22) inset,
    0 -1px 0 0 rgba(0, 0, 0, 0.4) inset,
    0 2px 4px rgba(31, 25, 19, 0.18),
    0 8px 16px -8px rgba(120, 52, 22, 0.5);
}
.book__light {
  position: absolute;
  z-index: -1;
  top: -60%;
  left: 0;
  width: 5.5em;
  height: 220%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(closest-side, rgba(243, 195, 107, 0.6), rgba(243, 195, 107, 0.18) 55%, rgba(243, 195, 107, 0));
  mix-blend-mode: screen;
}
.book__face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 45%);
}
.book__txt { position: relative; display: inline-block; }
.book__icon { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; opacity: 0.85; }

/* the opening */
.hero { padding-top: 2.3em; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-size: 0.86em;
  color: var(--soft);
  font-variation-settings: "wdth" 104;
  letter-spacing: 0.02em;
}
.eyebrow__sep { width: 1.6em; height: 1px; background: var(--faint); }

.title {
  margin-top: 0.55em;
  font-family: "Fraunces Variable", Georgia, serif;
  font-size: 5.35em;
  font-weight: 380;
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.title__line {
  display: block;
  overflow: hidden;
  padding: 0.04em 0.1em 0.16em 0.04em;
  margin: -0.04em -0.1em -0.16em -0.04em;
  white-space: nowrap;
}
.title__line--pasta { margin-top: -0.12em; }
.w { display: inline-block; --w: 380; font-weight: var(--w); }

.pasta {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  font-style: italic;
  font-weight: 420;
}
.pasta__size { visibility: hidden; display: inline-block; white-space: nowrap; }
.word {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
}
.ch {
  display: inline-block;
  --w: 420;
  --s: 40;
  font-weight: var(--w);
  font-variation-settings: "opsz" 144, "SOFT" var(--s);
  will-change: transform;
}
.stop { display: inline-block; color: var(--accent); }
.stop__in { display: inline-block; font-weight: 520; }

.sauce {
  margin-top: 0.85em;
  height: 1.5em;
  overflow: hidden;
  font-size: 1.08em;
  color: var(--soft);
  font-variation-settings: "wdth" 98;
}
.sauce__in { display: block; white-space: nowrap; line-height: 1.5; }
.sauce__in i { font-style: normal; color: var(--ink); font-weight: 560; }

.foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1em;
  margin-top: 1.7em;
}

/* the day strip: a segmented control with a thumb that springs from day to day */
.days {
  position: relative;
  display: inline-flex;
  padding: 0.28em;
  border-radius: 999px;
  background: rgba(31, 25, 19, 0.05);
  box-shadow: 0 1px 2px rgba(31, 25, 19, 0.06) inset, 0 0 0 1px rgba(31, 25, 19, 0.04) inset;
}
.days__thumb {
  position: absolute;
  top: 0.28em;
  left: 0;
  bottom: 0.28em;
  width: 3em;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #fdfaf5);
  box-shadow:
    0 0 0 1px rgba(31, 25, 19, 0.07),
    0 1px 2px rgba(31, 25, 19, 0.1),
    0 4px 10px -4px rgba(31, 25, 19, 0.18);
}
.day {
  position: relative;
  z-index: 1;
  padding: 0.52em 0.78em;
  border-radius: 999px;
  font-size: 0.9em;
  color: var(--soft);
  font-weight: 500;
  font-variation-settings: "wdth" 96;
  transition: color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.day.is-on { color: var(--ink); }
.day.is-today .day__n { color: var(--accent); }
@media (hover: hover) { .day:hover { color: var(--ink); } }
.day__n { display: inline-block; }

.meta { display: flex; align-items: flex-end; gap: 1.2em; }
.price {
  display: flex;
  align-items: flex-start;
  font-family: "Fraunces Variable", Georgia, serif;
  font-weight: 440;
  font-variation-settings: "opsz" 72, "SOFT" 60;
  line-height: 1;
}
.price__cur { font-size: 1.05em; margin-top: 0.18em; margin-right: 0.08em; color: var(--soft); }
.price__n { display: inline-block; height: 1em; overflow: hidden; font-size: 2.05em; letter-spacing: -0.02em; }
.price__roll { display: flex; flex-direction: column; }
.price__roll span { display: block; height: 1em; line-height: 1; }

.left { display: flex; flex-direction: column; gap: 0.5em; min-width: 7.2em; padding-bottom: 0.25em; }
.left__txt { font-size: 0.82em; color: var(--soft); white-space: nowrap; font-variation-settings: "wdth" 96; }
.left__txt span { color: var(--ink); font-weight: 560; }
.left__bar { position: relative; height: 3px; border-radius: 3px; background: rgba(31, 25, 19, 0.08); overflow: hidden; }
.left__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #e27650, var(--accent));
}

/* narrow windows: the links go, the rest stays */
@media (max-width: 420px) {
  .links { display: none; }
  .site { padding: 1em 1.3em 1.5em; }
  .foot { flex-wrap: wrap; row-gap: 1.1em; }
  .meta { gap: 1em; }
}

.ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  fill: #ffffff;
  stroke: #1f1913;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(31, 25, 19, 0.35));
  opacity: 0;
  z-index: 10;
}
