/* Regular: the marketing site. One sheet, no build step.
   Palette: banquette green, linen, brass, paper chits, a pepper red for "needs you". */

:root {
  --linen: #eceee7;
  --surface: #f6f7f2;
  --ink: #18231f;
  --ink-soft: #46544e;
  --banquette: #1f3d33;
  --banquette-ink: #eef1ea;
  --brass: #a8741a;
  --brass-text: #7a5210;
  --pepper: #a8261d;
  --chit: #fffcf3;
  --chit-ink: #1d2320;
  --chit-soft: #59615c;
  --rule: #c9cfc5;
  --focus: #0b5cad;
  --field: #ffffff;
  --shadow: 0 1px 0 rgba(31, 61, 51, 0.08), 0 8px 18px -10px rgba(31, 61, 51, 0.35);

  --serif: Charter, "Bitstream Charter", "Sitka Text", "Iowan Old Style", Cambria, "Noto Serif", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem);
  --step-4: clamp(2.5rem, 1.6rem + 4.4vw, 4.75rem);
  --gutter: 16px;
  --measure: 38rem;
  --page: 72rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --linen: #0e1a16;
    --surface: #14241e;
    --ink: #e6eae2;
    --ink-soft: #a9b5ae;
    --banquette: #1b3a30;
    --banquette-ink: #eef1ea;
    --brass: #d6a54a;
    --brass-text: #e0b25c;
    --pepper: #f08378;
    --chit: #f6f1e3;
    --chit-ink: #1d2320;
    --chit-soft: #59615c;
    --rule: #2c3f37;
    --focus: #7cb8ff;
    --field: #0f1d18;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 10px 22px -10px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --linen: #0e1a16;
  --surface: #14241e;
  --ink: #e6eae2;
  --ink-soft: #a9b5ae;
  --banquette: #1b3a30;
  --banquette-ink: #eef1ea;
  --brass: #d6a54a;
  --brass-text: #e0b25c;
  --pepper: #f08378;
  --chit: #f6f1e3;
  --chit-ink: #1d2320;
  --chit-soft: #59615c;
  --rule: #2c3f37;
  --focus: #7cb8ff;
  --field: #0f1d18;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 10px 22px -10px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-1);
  letter-spacing: 0;
}

p {
  margin: 0 0 1em;
  max-width: var(--measure);
  text-wrap: pretty;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--banquette);
  color: var(--banquette-ink);
  padding: 0.6rem 1rem;
  z-index: 10;
}

.skip:focus {
  top: 0.5rem;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 40rem) {
  :root {
    --gutter: 28px;
  }
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
  margin-right: auto;
}

.wordmark svg {
  width: 1.6rem;
  height: 1.6rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: var(--step--1);
  order: 3;
  width: 100%;
}

.nav a {
  text-decoration: none;
  padding: 0.35rem 0;
  color: var(--ink-soft);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
}

@media (min-width: 48rem) {
  .nav {
    order: 0;
    width: auto;
    font-size: var(--step-0);
  }
}

.theme-toggle {
  font: inherit;
  font-size: var(--step--1);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink-soft);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  min-height: 2.25rem;
}

.theme-toggle[hidden] {
  display: none;
}

.button {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  background: var(--banquette);
  color: var(--banquette-ink);
  border: 2px solid var(--banquette);
  border-radius: 6px;
  padding: 0.7rem 1.2rem;
  text-decoration: none;
  cursor: pointer;
  min-height: 2.75rem;
}

.button:hover {
  background: transparent;
  color: var(--ink);
}

.button.quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-soft);
}

.button.quiet:hover {
  border-color: var(--ink);
}

:root[data-theme="dark"] .button:not(.quiet) {
  border-color: var(--brass);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .button:not(.quiet) {
    border-color: var(--brass);
  }
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* Hero */

.hero {
  padding: 2.5rem 0 3rem;
}

.hero .wrap {
  display: grid;
  gap: 2.5rem;
}

.hero-copy .lede {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 34rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 60rem) {
  .hero {
    padding: 4.5rem 0 5rem;
  }

  .hero .wrap {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: start;
    gap: 3rem;
  }
}

/* The ticket rail: the one memorable thing. */

.rail {
  position: relative;
  padding-top: 1.1rem;
  margin: 0;
}

.rail::before {
  content: "";
  position: absolute;
  top: 0;
  left: -0.5rem;
  right: -0.5rem;
  height: 0.7rem;
  border-radius: 0.35rem;
  background: linear-gradient(180deg, #e3bd6c 0%, var(--brass) 55%, #7d5410 100%);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.25);
}

.chits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.chit {
  position: relative;
  background: var(--chit);
  color: var(--chit-ink);
  padding: 1rem 1rem 0.9rem;
  box-shadow: var(--shadow);
  transform-origin: 50% -1.1rem;
  /* The torn bottom edge of a kitchen ticket. */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), 95% 100%, 90% calc(100% - 6px), 85% 100%, 80% calc(100% - 6px), 75% 100%, 70% calc(100% - 6px), 65% 100%, 60% calc(100% - 6px), 55% 100%, 50% calc(100% - 6px), 45% 100%, 40% calc(100% - 6px), 35% 100%, 30% calc(100% - 6px), 25% 100%, 20% calc(100% - 6px), 15% 100%, 10% calc(100% - 6px), 5% 100%, 0 calc(100% - 6px));
  padding-bottom: 1.4rem;
}

.chit-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: var(--step--1);
  color: var(--chit-soft);
  border-bottom: 1px dashed #c7c2b2;
  padding-bottom: 0.45rem;
  margin-bottom: 0.6rem;
}

.chit-guest {
  font-weight: 650;
  color: var(--chit-ink);
}

.chit-msg {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.35;
  margin: 0 0 0.75rem;
}

.chit-outcome {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: var(--step--1);
  margin: 0;
}

.mark {
  display: inline-block;
  flex: none;
  font-weight: 700;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  padding: 0.05rem 0.45rem;
}

.mark.done {
  color: #2d6a4f;
}

.mark.wait {
  color: #7a5210;
}

.mark.you {
  color: #a8261d;
}

@media (min-width: 34rem) and (max-width: 59.99rem) {
  .chits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 60rem) {
  .chits {
    gap: 1.1rem;
  }

  .chit:nth-child(1) {
    transform: rotate(-1.2deg);
  }

  .chit:nth-child(2) {
    transform: rotate(0.8deg);
    margin-left: 1.5rem;
  }

  .chit:nth-child(3) {
    transform: rotate(-0.5deg);
    margin-left: 0.5rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .rail.animate .chit {
    animation: hang 700ms cubic-bezier(0.2, 0.9, 0.25, 1.2) both;
  }

  .rail.animate .chit:nth-child(2) {
    animation-delay: 140ms;
  }

  .rail.animate .chit:nth-child(3) {
    animation-delay: 280ms;
  }
}

@keyframes hang {
  from {
    opacity: 0;
    translate: 0 -1.25rem;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

.caption {
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin-top: 1rem;
}

/* Sections */

.section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--rule);
}

.section.dark {
  background: var(--banquette);
  color: var(--banquette-ink);
  border-top: 0;
}

.section.dark .soft {
  color: #c4d0c9;
}

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

.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 52rem) {
  .section {
    padding: 5rem 0;
  }

  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
  }
}

.big {
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.35;
  max-width: 40rem;
}

/* The house rules: a menu card with dotted leaders. */

.menu {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  max-width: 50rem;
}

.menu li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}

.menu li:first-child {
  border-top: 1px solid var(--rule);
}

.menu-line {
  display: flex;
  align-items: last baseline;
  gap: 0.5rem;
  font-family: var(--serif);
  font-size: var(--step-1);
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.menu-line .leader {
  flex: 1;
  min-width: 1.5rem;
  border-bottom: 2px dotted var(--ink-soft);
  transform: translateY(-0.3em);
}

.menu-line .price {
  font-style: italic;
  font-weight: 400;
  white-space: nowrap;
}

.menu p {
  margin: 0;
  color: var(--ink-soft);
}

/* The call card */

.phone {
  width: min(100%, 20rem);
  margin: 0 auto;
  border-radius: 2.2rem;
  padding: 0.7rem;
  background: #0b1310;
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.6);
}

.phone-screen {
  border-radius: 1.7rem;
  background: linear-gradient(180deg, #23463a 0%, #132a22 100%);
  color: #eef1ea;
  padding: 2.2rem 1.25rem 1.5rem;
  text-align: center;
}

.phone-screen .incoming {
  font-size: var(--step--1);
  color: #c4d0c9;
  margin: 0 auto 0.35rem;
}

.phone-screen .caller {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 auto 0.25rem;
}

.phone-screen .booking {
  margin: 0 auto 1.25rem;
  color: #dfe6e1;
}

.phone-screen .reason {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.9rem;
  padding: 0.75rem 0.9rem;
  text-align: left;
  font-size: 0.95rem;
  margin: 0 auto 1.4rem;
}

.phone-screen .reason strong {
  display: block;
  color: #e3bd6c;
  font-weight: 600;
  font-size: var(--step--1);
}

.phone-buttons {
  display: flex;
  justify-content: space-around;
}

.phone-buttons span {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  display: block;
}

.phone-buttons .decline {
  background: #c8463b;
}

.phone-buttons .accept {
  background: #3f9a63;
}

/* Lists */

.ticks {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  max-width: var(--measure);
}

.ticks li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.7rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.45em;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass);
  transform: rotate(-45deg);
}

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

@media (min-width: 40rem) {
  .columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .columns.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .columns.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.columns h3 {
  padding-top: 0.75rem;
  border-top: 3px solid var(--brass);
}

.columns p,
.columns ul {
  font-size: 0.98rem;
}

.plain {
  padding-left: 1.1rem;
  margin: 0;
}

.plain li {
  margin-bottom: 0.35rem;
}

.text-link {
  font-weight: 600;
}

/* Steps (How it works): a real sequence, so numbered. */

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 2rem 0 0;
  max-width: 46rem;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 2rem 3.5rem;
  border-left: 2px solid var(--rule);
  margin-left: 1.2rem;
}

.steps > li:last-child {
  border-left-color: transparent;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: -1.25rem;
  top: -0.2rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--banquette);
  color: var(--banquette-ink);
  font-family: var(--serif);
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--brass);
}

.steps h2 {
  font-size: var(--step-2);
  margin-bottom: 0.35em;
}

.page-head {
  padding: 2.5rem 0 1rem;
}

@media (min-width: 52rem) {
  .page-head {
    padding: 4rem 0 1.5rem;
  }
}

.page-head h1 {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);
}

.prose h2 {
  margin-top: 2.25rem;
  font-size: var(--step-2);
}

.prose > h2:first-child {
  margin-top: 0;
}

.page-head + .section {
  padding-top: 2rem;
}

.prose ul {
  max-width: var(--measure);
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.draft {
  border: 2px dashed var(--pepper);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  max-width: 46rem;
  margin: 0 0 2rem;
  background: var(--surface);
}

.draft strong {
  color: var(--pepper);
}

.draft p:last-child {
  margin-bottom: 0;
}

.review {
  border-left: 4px solid var(--brass);
  background: var(--surface);
  padding: 1rem 1.2rem;
  max-width: 46rem;
  margin: 2rem 0;
}

/* Waitlist */

.waitlist {
  display: grid;
  gap: 2rem;
}

@media (min-width: 60rem) {
  .waitlist {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 4rem;
  }
}

.form {
  display: grid;
  gap: 1.1rem;
  max-width: 40rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.25rem;
}

@media (min-width: 40rem) {
  .form {
    grid-template-columns: 1fr 1fr;
    padding: 1.75rem;
  }

  .form .full {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.field .hint {
  font-weight: 400;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--field);
  border: 1.5px solid var(--ink-soft);
  border-radius: 6px;
  padding: 0.6rem 0.7rem;
  min-height: 2.75rem;
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field [aria-invalid="true"] {
  border-color: var(--pepper);
  border-width: 2px;
}

.field .error {
  color: var(--pepper);
  font-size: var(--step--1);
  font-weight: 600;
  margin: 0.3rem 0 0;
}

.field .error:empty {
  display: none;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0;
  font-weight: 600;
}

.form-status:empty {
  display: none;
}

.form-status.bad {
  color: var(--pepper);
}

.form-done {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--brass);
  border-radius: 10px;
  padding: 1.5rem;
  max-width: 40rem;
}

.form-done[hidden] {
  display: none;
}

.small {
  font-size: var(--step--1);
  color: var(--ink-soft);
}

/* Notice pages (thanks, 404, the Worker's error page) */

.notice {
  max-width: 36rem;
  margin: 0 auto;
  padding: 4rem var(--gutter);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 2.5rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
