/* Snaffle website: a warm, editorial look. Colours match the app's "Marmalade" look.
   Fonts are kept on this site (nothing loads from outside), so visitors' details go nowhere else. */
@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/fraunces-normal-400-800.woff2) format('woff2');
}
@font-face {
  font-family: Fraunces;
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/fraunces-italic-400-800.woff2) format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url(/fonts/nunito-sans.woff2) format('woff2');
}
:root {
  --paper: #fbf3e6;
  --card: #fffdf8;
  --ink: #2a1f17;
  --ink2: #4a3a2e;
  --muted: #6b5a4d;
  --accent: #b94a17;
  --leaf: #477a2e;
  --rule: #d9c6aa;
  --shadow: #e9d6bc;
  --dark: #1d1612;
  --wrap: 1240px;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  overflow-x: hidden;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    1.0625rem/1.6 'Nunito Sans',
    system-ui,
    sans-serif;
}
h1,
h2,
h3,
.logo,
.num,
.clock,
.serif {
  font-family: Fraunces, Georgia, serif;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--card);
  padding: 0.5rem 1rem;
  z-index: 9;
}
.eyebrow,
.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin: 0;
}
.kicker {
  color: var(--leaf);
  font-size: 0.8125rem;
  margin-bottom: 1.5rem;
}
.kicker.green {
  color: #8dbf6a;
}

/* masthead */
.mast {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 0;
}
.mast-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--ink);
  position: relative;
}
.mast-row::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  border-bottom: 1px solid var(--ink);
}
.logo {
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  line-height: 1;
}
.logo span {
  color: var(--accent);
}
.tag {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.mast nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.4rem;
  font-weight: 700;
  font-size: 0.9375rem;
}
.mast nav a {
  text-decoration: none;
  padding: 0.6rem 0;
}
.mast nav a:hover,
.mast nav a[aria-current] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 5px;
}
main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (max-width: 700px) {
  .tag {
    display: none;
  }
}

/* buttons */
.button {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  padding: 1.1rem 2rem;
  border-radius: 4px;
}
.button:hover {
  background: var(--accent);
}
.button.light {
  background: var(--paper);
  color: var(--ink);
}
.button.light:hover {
  background: #fff;
}

/* home: hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 3.5rem;
  align-items: center;
  padding: 4rem 0 5rem;
}
.hero-copy {
  flex: 1 1 34rem;
  min-width: 0;
}
.hero h1 {
  font-weight: 600;
  font-size: clamp(3.4rem, 10vw, 7.25rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 2rem;
}
.hero h1 em,
.cook h2 em,
.offline em {
  color: var(--accent);
  font-weight: 400;
}
.lede {
  font-size: 1.375rem;
  line-height: 1.5;
  max-width: 32rem;
  color: var(--ink2);
  margin: 0 0 2.25rem;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  align-items: center;
  margin: 0;
}
.cta span {
  color: var(--muted);
}
.card-wrap {
  flex: 0 1 27.5rem;
  min-width: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}
.recipe-card {
  width: 100%;
  max-width: 26.25rem;
  background: var(--card);
  border: 1px solid var(--ink);
  padding: 2rem 1.9rem 1.75rem;
  transform: rotate(1.6deg);
  box-shadow: 10px 12px 0 var(--shadow);
}
.recipe-card h2 {
  font-weight: 600;
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0.4rem 0 1.1rem;
}
.serves {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 0.6rem 0;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.stepper button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
}
.stepper button.dark {
  background: var(--ink);
  color: var(--paper);
}
.stepper button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.stepper button.dark:hover {
  background: var(--accent);
  color: var(--paper);
}
#servings {
  min-width: 2.75rem;
  text-align: center;
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 1;
}
.amounts {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
}
.amounts li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 1.125rem;
}
.amounts li i {
  flex: 1;
  border-bottom: 1px dotted #b8a58e;
  transform: translateY(-4px);
}
.amounts strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  color: var(--accent);
}
.method {
  margin: 0.9rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.sources {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: 0 -1.25rem;
}
.sources p {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.3rem 1.25rem;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2rem;
  justify-content: space-between;
}
.sources b {
  color: var(--accent);
  font-weight: 400;
}

/* numbered sections */
.steps {
  padding: 4rem 0 1rem;
}
.step {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.step:last-child {
  border-bottom: 0;
}
.num {
  flex: 0 0 8.5rem;
  font-style: italic;
  font-size: 6.5rem;
  line-height: 0.85;
  color: var(--accent);
}
.step > div:last-child {
  flex: 1 1 22rem;
  min-width: 0;
  max-width: 40rem;
}
.step h2 {
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 0.9rem;
}
.step p {
  margin: 0;
  font-size: 1.25rem;
  color: var(--ink2);
}
.pairs {
  margin: 1.25rem 0 0;
  font-size: 1.0625rem;
}
.pairs div {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  padding: 0.55rem 0;
}
.pairs div:first-child {
  border-top: 1px solid var(--ink);
}
.pairs dt,
.pairs dd {
  margin: 0;
}
.pairs dd {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  color: var(--accent);
}

/* cook mode */
.cook {
  background: var(--dark);
  color: #f7ece2;
  margin: 3.5rem calc(50% - 50vw) 0;
}
.cook-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 6rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem 4.5rem;
  align-items: center;
}
.cook-inner > div {
  flex: 1 1 26rem;
  min-width: 0;
}
.cook h2 {
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
}
.cook h2 em {
  color: #f08a54;
}
.cook p {
  color: #c0ab9b;
  font-size: 1.25rem;
  margin: 0;
}
.cook .eyebrow {
  color: #c0ab9b;
  margin-bottom: 0.75rem;
}
.cook .big {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.2;
  color: #f7ece2;
  margin: 0 0 2.25rem;
}
.cook u {
  text-decoration-color: #f08a54;
  text-underline-offset: 6px;
}
.timer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-top: 1px solid #43332a;
  padding-top: 1.75rem;
}
.clock {
  font-weight: 600;
  font-size: 4rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #f7ece2;
}
.cook .small {
  font-size: 1rem;
  margin-top: 0.4rem;
  color: #c0ab9b;
}

.offline {
  padding: 7rem 0;
  text-align: center;
}
.offline p {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 60rem;
  margin: 0 auto;
}

.soon {
  background: var(--ink);
  color: var(--paper);
  margin: 0 calc(50% - 50vw);
}
.soon-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 6rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 4rem;
  align-items: flex-end;
  justify-content: space-between;
}
.soon h2 {
  flex: 1 1 30rem;
  margin: 0;
  font-weight: 600;
  font-size: clamp(3.4rem, 9vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.soon h2 span {
  color: #f08a54;
}
.soon-inner > div {
  flex: 1 1 20rem;
  max-width: 26rem;
}
.soon p {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  color: #e9d6bc;
}

/* plain pages: privacy, terms, support, delete */
body.text main {
  max-width: 46rem;
  padding-bottom: 3rem;
}
body.text h1 {
  font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 3.5rem 0 1.25rem;
}
body.text h2 {
  font-weight: 600;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.5rem;
}
body.text h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.25rem;
}
body.text .lead {
  font-size: 1.3rem;
  color: var(--ink2);
}
.small {
  font-size: 0.9375rem;
  color: var(--muted);
}
body.text main a {
  color: var(--accent);
}
body.text main a.button,
body.text main a.button:hover {
  color: var(--paper);
}
li {
  margin: 0.4rem 0;
}
.draft {
  background: #fbe6d6;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.6rem 1rem;
  font-weight: 700;
  margin-top: 2rem;
}

.foot {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  color: var(--muted);
  font-size: 0.9375rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  align-items: baseline;
}
.foot p {
  margin: 0;
}
.foot .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.small-logo {
  font-size: 1.4rem;
  color: var(--ink);
}
@media (max-width: 700px) {
  .sources b {
    display: none;
  }
  .sources p {
    flex-direction: column;
    gap: 0.25rem;
  }
  .num {
    flex-basis: 100%;
    font-size: 4rem;
  }
  .hero {
    padding: 2.5rem 0 3.5rem;
  }
  .step {
    padding: 1.75rem 0;
  }
  .cook-inner,
  .soon-inner {
    padding: 3.5rem 1.25rem;
  }
  .offline {
    padding: 4rem 0;
  }
  .recipe-card {
    transform: rotate(1deg);
    box-shadow: 7px 9px 0 var(--shadow);
  }
}
