/* Use By — landing page. en-GB. Self-hosted Fraunces + Outfit. */

@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/fraunces-roman-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Fraunces;
  font-style: italic;
  font-weight: 500 650;
  font-display: swap;
  src: url("fonts/fraunces-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cream: #f3ecdf;
  --cream-deep: #e7dccb;
  --paper: #fffdf8;
  --ink: #211c16;
  --ink-soft: #4e463e;
  --line: #e0d3c2;
  --sage: #21543c;
  --sage-deep: #173d2c;
  --sage-mid: #2d6a4f;
  --tomato: #a33b24;
  --tomato-deep: #7c2d1c;
  --butter: #f0d48a;
  --larder: #f6e4c0;
  --fridge: #f4f7f8;
  --freezer: #e5f1f6;
  --shadow: 0 24px 50px rgba(33, 28, 22, 0.1);
  --header: 4.5rem;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.25rem;
}

body {
  margin: 0;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 420;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 0% -10%, rgba(163, 59, 36, 0.07), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(33, 84, 60, 0.08), transparent 46%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(240, 212, 138, 0.2), transparent 50%),
    var(--cream);
  -webkit-text-size-adjust: 100%;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.055;
  background-image: url("noise.svg");
  background-size: 180px 180px;
  mix-blend-mode: multiply;
}

::selection {
  background: #f0d48a;
  color: var(--ink);
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus {
  outline: none;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  z-index: 50;
  background: var(--paper);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.skip:focus {
  transform: none;
  top: 0.75rem;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  padding: clamp(4.25rem, 8vw, 7rem) 0;
}

.lede,
.section-intro,
.card p,
.step p,
.shelf header p,
.date-card p,
.soon p,
.missing p,
.fine {
  color: var(--ink-soft);
}

h1,
h2,
.fridge__title,
.logo__word,
.food__name,
.note__name,
.domain,
.date strong,
.stamp {
  font-family: Fraunces, "Iowan Old Style", Palatino, Georgia, serif;
  font-optical-sizing: auto;
}

h1,
h2,
h3,
.fridge__title {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.45rem, 4.8vw, 3.85rem);
  font-weight: 620;
  max-width: 11em;
}

h1 em {
  font-style: italic;
  font-weight: 560;
  color: var(--tomato-deep);
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3.05rem);
  max-width: 16ch;
}

h3 {
  font-size: 1.45rem;
  font-weight: 600;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.kicker::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--tomato);
  flex: none;
}

.kicker--sage::before {
  background: var(--sage-mid);
}

.section-intro {
  max-width: 38rem;
  margin-top: 1rem;
  font-size: 1.125rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--sage-deep);
  color: #f7f2e8;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.button:hover {
  background: #10291d;
  color: #f7f2e8;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 600;
  color: var(--tomato-deep);
  text-underline-offset: 0.22em;
}

.text-link:hover {
  color: var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243, 236, 223, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(33, 28, 22, 0.08);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  min-height: var(--header);
  padding: 0.65rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.logo__word {
  font-size: 1.45rem;
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stamp {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  border: 1.5px solid var(--tomato-deep);
  box-shadow: inset 0 0 0 1px rgba(124, 45, 28, 0.35);
  color: var(--tomato-deep);
  transform: rotate(-8deg);
  font-style: italic;
  font-weight: 560;
  font-size: 0.62rem;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-align: center;
}

.stamp--lg {
  width: 5.5rem;
  height: 5.5rem;
  font-size: 1.35rem;
  border-width: 2px;
  margin: 0 auto 1.25rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.15rem;
}

.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}

.nav a:hover {
  color: var(--tomato-deep);
}

.nav-soon {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--sage-deep);
  color: #f7f2e8 !important;
}

.nav-soon:hover {
  background: #10291d;
  color: #f7f2e8 !important;
}

.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.lede {
  max-width: 38rem;
  margin-top: 1.15rem;
  font-size: 1.15rem;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.2rem;
  margin-top: 1.35rem;
}

.facts li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.facts li::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--sage-mid);
  flex: none;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.15rem;
  margin-top: 1.6rem;
}

.fridge {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.35), transparent 18%),
    linear-gradient(180deg, #fbfaf8 0%, #f3f6f7 70%, #e7eef2 100%);
  border: 1px solid rgba(33, 28, 22, 0.08);
  border-radius: 30px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  padding: 1.15rem 1.35rem 1.05rem 1.1rem;
  position: relative;
}

.fridge::after {
  content: "";
  position: absolute;
  right: 0.65rem;
  top: 50%;
  width: 0.48rem;
  height: 26%;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(#c5d0d6, #8e9ea6);
  box-shadow: -1px 0 0 rgba(255, 255, 255, 0.65), 1px 2px 4px rgba(33, 28, 22, 0.2);
}

.fridge__head {
  padding-right: 1.4rem;
  margin-bottom: 0.85rem;
}

.fridge__kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.fridge__title {
  margin-top: 0.15rem;
  font-size: 1.85rem;
  font-weight: 620;
  letter-spacing: -0.03em;
}

.fridge__hint {
  margin-top: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.notes {
  display: grid;
  gap: 0.7rem;
  padding-right: 1.35rem;
}

.note {
  position: relative;
  background: var(--paper);
  border-radius: 14px;
  padding: 0.75rem 0.85rem 0.7rem;
  box-shadow:
    0 10px 18px rgba(33, 28, 22, 0.05),
    0 0 0 1px rgba(33, 28, 22, 0.05);
}

.note::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 46px;
  height: 13px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(240, 212, 138, 0.92);
  border-radius: 2px;
}

.note--a { transform: rotate(-0.6deg); }
.note--b { transform: rotate(0.5deg); }
.note--c { transform: rotate(-0.3deg); }
.note--d { transform: rotate(0.4deg); }

.note__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.place,
.count {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.place {
  color: var(--ink-soft);
}

.count {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.78rem;
  background: var(--larder);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
}

.note__name,
.food__name {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.note__name {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.2rem;
}

.date {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.28rem;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.date strong {
  font-weight: 560;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  text-transform: none;
}

.date--use { color: var(--tomato-deep); }
.date--best { color: var(--sage-deep); }

.shareline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.95rem 0.15rem 0.15rem;
  padding-right: 1.45rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.faces {
  display: flex;
  flex: none;
}

.faces span {
  width: 1.7rem;
  height: 1.7rem;
  margin-left: -0.35rem;
  border-radius: 50%;
  border: 2px solid #f4f7f8;
  background: var(--sage);
  box-shadow: inset 0 0 0 5px #f3ecdf;
}

.faces span:first-child {
  margin-left: 0;
  background: var(--tomato);
}

.faces span:last-child {
  background: #c4a15a;
}

.band {
  background: rgba(255, 252, 248, 0.55);
  border-block: 1px solid rgba(33, 28, 22, 0.06);
}

.steps {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.25rem;
  position: relative;
}

.step h3 {
  margin-top: 0.85rem;
}

.step p {
  margin-top: 0.45rem;
  max-width: 36rem;
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--tomato-deep);
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 560;
  font-size: 1.15rem;
}

.shelves {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.shelf {
  background: var(--paper);
  border-radius: 22px;
  border: 1px solid rgba(33, 28, 22, 0.08);
  box-shadow: 0 12px 28px rgba(33, 28, 22, 0.04);
  overflow: hidden;
}

.shelf header {
  padding: 1.15rem 1.15rem 0.9rem;
}

.shelf--fridge header { background: linear-gradient(#f7fbfc, #fffdf8); }
.shelf--freezer header { background: linear-gradient(#e5f2f7, #fffdf8); }
.shelf--larder header { background: linear-gradient(#f8e7c4, #fffdf8); }

.shelf header p {
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.shelf ul {
  padding: 0.2rem 1.15rem 0.6rem;
}

.food {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35rem 0.8rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(33, 28, 22, 0.08);
}

.food__id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  min-width: 0;
}

.food__name {
  font-size: 1.12rem;
}

.food .date {
  margin-top: 0;
}

.cards {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.card {
  background: var(--paper);
  border: 1px solid rgba(33, 28, 22, 0.08);
  border-radius: 20px;
  padding: 1.3rem 1.25rem 1.25rem;
  box-shadow: 0 10px 24px rgba(33, 28, 22, 0.035);
}

.card .kicker {
  margin-bottom: 0.55rem;
}

.card h3 {
  font-size: 1.4rem;
}

.card p {
  margin-top: 0.5rem;
}

.subhead {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 18ch;
}

.date-panel {
  display: grid;
  margin-top: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(33, 28, 22, 0.05);
}

.date-card {
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.date-card + .date-card {
  border-top: 1px solid var(--line);
  background: #fbf7f1;
}

.date-card--use h3 { color: var(--tomato-deep); }
.date-card--best h3 { color: var(--sage-deep); }

.date-card h3 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  font-weight: 560;
  font-style: italic;
  letter-spacing: -0.03em;
}

.date-card p {
  margin-top: 0.75rem;
  max-width: 38rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.15rem;
}

.chips li {
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.7);
  font-size: 0.92rem;
}

.dates-foot {
  max-width: 40rem;
  margin-top: 1.15rem;
}

.soon {
  text-align: center;
}

.soon .kicker {
  justify-content: center;
}

.soon h2,
.soon p {
  margin-inline: auto;
}

.soon p {
  max-width: 36rem;
  margin-top: 1rem;
  font-size: 1.125rem;
}

.domain {
  margin-top: 1.35rem;
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--sage-deep);
}

.soon .place-line {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
}

.site-footer {
  padding: 1.6rem 0 2.2rem;
  border-top: 1px solid rgba(33, 28, 22, 0.1);
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-brand .logo__word {
  font-size: 1.7rem;
}

.footer-brand .stamp {
  width: 2.15rem;
  height: 2.15rem;
  font-size: 0.55rem;
}

.footer-brand p,
.fine,
.legal {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.legal {
  margin-top: 1.1rem;
  max-width: 40rem;
}

.copyright {
  margin-top: 0.85rem;
}

.missing {
  padding: clamp(4rem, 12vw, 8rem) 0 clamp(5rem, 14vw, 9rem);
}

.missing__inner {
  max-width: 36rem;
}

.missing h1 {
  max-width: 12em;
}

.missing p {
  margin-top: 0.9rem;
  font-size: 1.125rem;
}

.missing .button {
  margin-top: 1.5rem;
}

@media (min-width: 720px) {
  .wrap {
    width: min(1120px, calc(100% - 4rem));
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .steps::before {
    content: "";
    position: absolute;
    top: 1.55rem;
    left: 1.5rem;
    right: 1.5rem;
    height: 1px;
    background: var(--line);
  }

  .step__num {
    position: relative;
    z-index: 1;
  }

  .shelves {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

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

@media (min-width: 800px) {
  .date-panel {
    grid-template-columns: 1fr 1fr;
  }

  .date-card + .date-card {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 3.5rem;
  }

  .header-bar {
    flex-wrap: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .note--a,
  .note--b,
  .note--c,
  .note--d,
  .stamp,
  .stamp--lg {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  body::after {
    display: none;
  }

  .site-header {
    backdrop-filter: none;
    background: var(--cream);
  }
}

@media print {
  body::after,
  .site-header,
  .hero__actions,
  .nav {
    display: none;
  }

  body {
    background: white;
  }

  .section,
  .hero {
    padding: 1.25rem 0;
  }

  a {
    text-decoration: underline;
  }
}
