/* Sweet Indul-Jence. Colours taken from the business card. */
:root {
  --blush: #f6e4e8;
  --blush-deep: #edd0d7;
  --white: #ffffff;
  --gold: #a39a5c;        /* frame colour, for borders only */
  --gold-ink: #6b6434;    /* darker gold, readable as text */
  --ink: #3f3a3d;         /* charcoal text */
  --ink-soft: #655e62;
  --kraft: #dcc19c;
  --kraft-deep: #b98f5e;

  --display: "Josefin Sans", "Figtree", sans-serif;
  --body: "Figtree", "Noto Sans", sans-serif;
  --stripe: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--white); padding: .5rem 1rem; z-index: 10;
}
.skip-link:focus { left: 0; }

h1, h2, h3, .wordmark, .card-name {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.45rem; font-weight: 400; }
p { margin: 0 0 1rem; }

/* Header */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 1.5rem;
  padding: .9rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--blush-deep);
}
.wordmark {
  font-size: 1.5rem; color: var(--ink); text-decoration: none; letter-spacing: .03em;
}
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; }
.site-header nav a { color: var(--ink); text-decoration: none; padding: .35rem 0; }
.site-header nav a:hover { text-decoration: underline; }
.site-header nav .nav-cta {
  border: 2px solid var(--gold); padding: .3rem .9rem;
}

.site-header .wordmark { display: inline-flex; align-items: center; gap: .6rem; }
.wordmark-mark { width: 46px; height: auto; flex: none; }

/* The striped card background from the business card */
.stripes {
  background: repeating-linear-gradient(
    180deg, var(--blush) 0 var(--stripe), var(--white) var(--stripe) calc(var(--stripe) * 2)
  );
  padding: clamp(2rem, 7vw, 5rem) 1rem;
}
.card {
  background: var(--white);
  border: 10px solid var(--gold);
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3.25rem);
}

/* Hero */
.hero-card { text-align: center; }
.holly { width: 84px; margin: 0 auto .75rem; }
.card-name { font-size: clamp(1.6rem, 4.5vw, 2.3rem); letter-spacing: .04em; color: var(--ink-soft); }
.card-tagline {
  font-family: var(--display); font-style: italic; font-weight: 300;
  color: var(--ink-soft); margin: .25rem 0 0;
}
.hero-card h1 {
  margin: 1.75rem auto 1rem; max-width: 18ch;
  padding-top: 1.75rem; border-top: 1px solid var(--gold);
}
.lede { max-width: 34rem; margin: 0 auto 1.75rem; text-wrap: balance; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

.button {
  display: inline-block;
  font: 600 1rem var(--body);
  color: var(--white); background: var(--ink);
  border: 2px solid var(--ink);
  padding: .8rem 1.5rem;
  text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--gold-ink); border-color: var(--gold-ink); color: var(--white); }
.button-quiet { background: transparent; color: var(--ink); }
.button-quiet:hover { background: var(--blush); border-color: var(--ink); color: var(--ink); }

/* Sections */
.section { padding: clamp(3rem, 8vw, 5.5rem) 1rem; }
.wrap { max-width: 68rem; margin: 0 auto; }
.wrap.narrow { max-width: 40rem; }
.section-intro { max-width: 36rem; margin-top: .75rem; color: var(--ink-soft); }
#about h2 { margin-bottom: 1.25rem; }

/* Menu */
.menu {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem;
  max-width: 54rem;
}
.menu-item { text-align: center; }
.plate {
  background: var(--blush); border-radius: 50%;
  aspect-ratio: 1; overflow: hidden; margin-bottom: 1.1rem;
  border: 6px solid var(--blush);
}
.plate img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.menu-size { margin: .2rem 0 0; color: var(--ink-soft); }
.menu-price + .menu-size { margin-top: .6rem; }
.menu-price {
  font-family: var(--display); font-size: 1.9rem; font-weight: 300;
  color: var(--gold-ink); margin: .1rem 0 0;
}

.menu-note { margin: .6rem auto 0; font-size: .95rem; color: var(--ink-soft); max-width: 17rem; }
.allergy {
  margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--blush-deep);
  font-size: .95rem; color: var(--ink-soft); max-width: 54rem;
}

/* Parties, on kraft like her boxes */
.kraft { background: var(--kraft); }
.points {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  margin-top: 2.25rem;
}
.points h3 { margin-bottom: .5rem; }
.points p { margin: 0; }
.aside {
  margin: 2.5rem 0 0; padding-top: 1.5rem;
  border-top: 1px solid var(--kraft-deep); max-width: 44rem;
}

/* Quote form */
.quote-card { max-width: 44rem; }
form { margin-top: 1.75rem; }
fieldset { border: 0; padding: 0; margin: 0 0 2rem; }
legend, label { font-weight: 600; }
legend { padding: 0; margin-bottom: .5rem; font-size: 1.05rem; }

.order-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem 0; border-bottom: 1px solid var(--blush-deep);
}
.order-name small { display: block; font-size: .9rem; color: var(--ink-soft); font-weight: 400; }
.order-name { font-weight: 600; }
.stepper { display: inline-flex; align-items: stretch; flex: none; }
.step {
  width: 2.75rem; height: 2.75rem; font-size: 1.3rem; line-height: 1;
  background: var(--blush); color: var(--ink); border: 1px solid var(--ink-soft); cursor: pointer;
}
.step:hover { background: var(--blush-deep); }
.stepper input {
  width: 3.25rem; text-align: center; font: inherit; color: var(--ink);
  border: 1px solid var(--ink-soft); border-left: 0; border-right: 0; border-radius: 0;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 1rem 0 0; font-weight: 600;
}
.total strong { font-family: var(--display); font-weight: 300; font-size: 2rem; color: var(--gold-ink); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; margin-bottom: 1.25rem; }
.fields .wide { grid-column: 1 / -1; }
.fields input, .fields textarea {
  display: block; width: 100%; margin-top: .35rem;
  font: 400 1rem var(--body); color: var(--ink);
  padding: .7rem .75rem; border: 1px solid var(--ink-soft); border-radius: 0; background: var(--white);
}
.fields input[aria-invalid="true"] { border-color: #a3283d; border-width: 2px; }

.form-message { min-height: 1.5rem; margin: 0 0 1rem; font-weight: 600; }
.form-message.error { color: #a3283d; }
.form-message.sent { color: #2f6b3a; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.button:disabled { opacity: .6; cursor: progress; }
.form-alt { margin: 1.25rem 0 0; color: var(--ink-soft); }

/* Cookie flavour picker */
.flavours { padding: 1rem 0 1.1rem; border-bottom: 1px solid var(--blush-deep); }
.flavours-label { font-weight: 600; margin: 0; }
.hint { font-size: .95rem; color: var(--ink-soft); margin: .2rem 0 .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font-weight: 400; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; padding: .5rem .9rem;
  border: 1px solid var(--ink-soft); background: var(--white);
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip input:disabled + span { opacity: .4; cursor: not-allowed; }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Google reviews */
.reviews { background: var(--blush); }
.reviews-summary { margin: .75rem 0 0; font-weight: 600; }
.stars { color: var(--gold-ink); letter-spacing: .1em; }
.reviews-list {
  list-style: none; padding: 0; margin: 2rem 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.review { background: var(--white); padding: 1.5rem; border-top: 4px solid var(--gold); }
.review-text { margin: .5rem 0 1rem; }
.review-author { margin: 0; font-weight: 600; }
.review-when { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.reviews-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; }
.sample-flag {
  display: inline-block; margin: .75rem 0 0; padding: .3rem .7rem;
  background: var(--ink); color: var(--white); font-size: .9rem;
}

/* Instagram */
.instagram { padding: clamp(2.5rem, 7vw, 4.5rem) 1rem; text-align: center; border-top: 1px solid var(--blush-deep); }
.instagram .ig { color: var(--gold-ink); margin: 0 auto .75rem; display: block; }
.instagram p { margin: .75rem auto 1.5rem; max-width: 30rem; }
.nav-ig { display: inline-flex; align-items: center; }
.footer-ig { display: inline-flex; align-items: center; gap: .4rem; margin-top: .5rem; }

/* Delivery apps */
.apps { padding: clamp(2.5rem, 7vw, 4rem) 1rem; text-align: center; }
.apps h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); }
.app-list {
  list-style: none; padding: 0; margin: 1.5rem 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem;
}
.app-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.2rem; font-weight: 600;
  color: var(--ink); background: var(--white);
  border: 2px solid var(--gold); text-decoration: none;
}
a.app-badge:hover { background: var(--blush); color: var(--ink); }
.apps p { margin: 0; color: var(--ink-soft); }

/* Footer */
.site-footer {
  text-align: center; padding: 3rem 1rem;
  border-top: 10px solid var(--gold);
}
.site-footer .card-tagline { margin-bottom: 1.25rem; }
.site-footer .small { font-size: .9rem; color: var(--ink-soft); margin: 0; }

/* Smaller screens */
@media (max-width: 860px) {
  .menu { grid-template-columns: repeat(2, 1fr); }
  .reviews-list { grid-template-columns: 1fr; }
  .points { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 560px) {
  :root { --stripe: 48px; }
  .site-header { justify-content: center; text-align: center; }
  .site-header nav { justify-content: center; }
  .card { border-width: 7px; }
  .fields { grid-template-columns: 1fr; }
  .menu { gap: 1.75rem 1rem; }
  .menu-price { font-size: 1.6rem; }
  h3 { font-size: 1.25rem; }
}

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