/*
 * Magic Dining Alerts: the site stylesheet.
 * Loaded after main.css (compiled Bootstrap 5.2.3). Everything the site adds
 * to Bootstrap lives here: the palette, the type scale and every component.
 * Colours come from the logo: coral #ff5858, red #ed2647, wine #8d021f.
 * Headings are set in Bricolage Grotesque (SIL Open Font License 1.1, see
 * static/fonts/BricolageGrotesque-OFL.txt), served from this site.
 * Photographs are in static/images/food/ with their sources in CREDITS.txt.
 */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.ada540c0e24a.woff2") format("woff2-variations");
  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;
}

/* Shown until the face above arrives: a local bold sans scaled to the same
   width (Bricolage at 800 sets about 3% wider than Arial Bold) and given
   Bricolage's ascent and descent (930 and 270 in 1000, divided by the scale),
   so headlines wrap the same and do not jump when it swaps. */
@font-face {
  font-family: "Bricolage Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Arial");
  size-adjust: 103%;
  ascent-override: 90.3%;
  descent-override: 26.2%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */

:root {
  /* Palette */
  --mda-coral: #ff5858;          /* the logo wordmark; decoration only on white */
  --mda-red: #b5173a;            /* actions and links; 6.6:1 on white */
  --mda-red-dark: #8d021f;       /* hover and pressed; the logo's tower */
  --mda-wine: #4b0d1c;           /* dark bands */
  --mda-wine-deep: #2e0711;      /* the footer and the phone */
  --mda-gold: #f4b860;           /* the warm accent: candlelight on wine */
  --mda-gold-ink: #7a4a00;       /* gold as text on light */
  --mda-blush: #f6dfe3;          /* body text on wine */
  --mda-ink: #24161a;            /* body text */
  --mda-ink-soft: #66565a;       /* secondary text; 6.5:1 on white */
  --mda-line: #e9dedb;           /* hairlines and input borders */
  --mda-line-strong: #cdbdb9;
  --mda-paper: #ffffff;
  --mda-tint: #faf4f1;           /* quiet bands and table heads */
  --mda-cream: #fff8ec;          /* the warm band */
  --mda-rose: #fdecee;           /* selected and highlighted surfaces */
  --mda-green: #1d6f47;          /* an alert that is active */
  --mda-green-tint: #e6f3ec;
  --mda-amber-tint: #fdf3dc;
  --mda-amber-ink: #6b4a00;

  /* Type */
  --mda-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mda-font-display: "Bricolage Grotesque", "Bricolage Fallback", "Arial Narrow", Arial, sans-serif;
  --mda-fs-xs: 0.8125rem;
  --mda-fs-sm: 0.9375rem;
  --mda-fs-base: 1.0625rem;
  --mda-fs-lg: 1.25rem;
  --mda-fs-xl: 1.5rem;
  --mda-fs-2xl: clamp(1.875rem, 1.5rem + 1.7vw, 2.625rem);
  --mda-fs-3xl: clamp(2.125rem, 1.5rem + 2.9vw, 3.5rem);
  --mda-fs-display: clamp(2.75rem, 1.3rem + 6.4vw, 5.75rem);

  /* Space and shape */
  --mda-radius: 0.625rem;
  --mda-radius-lg: 1.125rem;
  --mda-radius-xl: 1.75rem;
  --mda-width: 72rem;
  --mda-gutter: 1.25rem;
  --mda-band: clamp(3.5rem, 2rem + 7vw, 6.5rem);
  --mda-shadow: 0 1px 2px rgba(36, 22, 26, 0.06), 0 12px 28px -14px rgba(75, 13, 28, 0.28);
  --mda-shadow-lift: 0 2px 4px rgba(36, 22, 26, 0.08), 0 28px 48px -22px rgba(75, 13, 28, 0.45);
  --mda-ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Bootstrap's own variables, pointed at the palette */
  --bs-primary: var(--mda-red);
  --bs-primary-rgb: 181, 23, 58;
  --bs-body-color: var(--mda-ink);
  --bs-body-color-rgb: 36, 22, 26;
  --bs-body-bg: var(--mda-paper);
  --bs-body-font-family: var(--mda-font-body);
  --bs-body-font-size: var(--mda-fs-base);
  --bs-body-line-height: 1.6;
  --bs-link-color: var(--mda-red);
  --bs-link-hover-color: var(--mda-red-dark);
  --bs-border-color: var(--mda-line);
  --bs-border-radius: var(--mda-radius);
}

/* ---------- Base ---------- */

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

.site-main {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

h1, h2, h3,
.h1, .h2, .h3 {
  font-family: var(--mda-font-display);
  font-optical-sizing: auto;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h1, .h1 { font-size: var(--mda-fs-2xl); }
h2, .h2 { font-size: var(--mda-fs-xl); line-height: 1.15; }
h3, .h3 { font-size: var(--mda-fs-lg); line-height: 1.2; }

h4, h5, h6 {
  font-size: var(--mda-fs-base);
  font-weight: 650;
  line-height: 1.35;
}

p, li, dd {
  text-wrap: pretty;
}

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

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

.band--wine :focus-visible,
.hero :focus-visible,
.closer :focus-visible,
.venue :focus-visible,
.split__side :focus-visible,
.nudge :focus-visible,
.site-footer :focus-visible,
.plan--paid :focus-visible {
  outline-color: var(--mda-gold);
}

.icon {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  background: var(--mda-ink);
  color: #fff;
  border-radius: var(--mda-radius);
}

.skip-link:focus {
  top: 0.75rem;
  color: #fff;
}

/* ---------- Page frame ---------- */

.site-width,
.page {
  width: 100%;
  max-width: var(--mda-width);
  margin-inline: auto;
  padding-inline: var(--mda-gutter);
}

.page {
  padding-block: 2.25rem 4rem;
}

.page--narrow { max-width: 36rem; }
.measure { max-width: 48rem; }
.page--prose { max-width: 48rem; }

.page-head {
  margin-bottom: 2rem;
}

.page-head h1 {
  margin-bottom: 0.625rem;
}

.page-head p {
  max-width: 62ch;
  margin-bottom: 0;
  color: var(--mda-ink-soft);
}

.page-head--rule {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--mda-line);
}

/* A coloured strip across the top of the inner pages. */
.masthead {
  background: var(--mda-tint);
  border-bottom: 1px solid var(--mda-line);
}

.masthead__inner {
  padding-block: 2.25rem 2rem;
}

.masthead h1 {
  max-width: 13.4em;
  margin: 0;
  font-size: var(--mda-fs-3xl);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.masthead p {
  max-width: 58ch;
  margin: 0.875rem 0 0;
  font-size: var(--mda-fs-lg);
  line-height: 1.45;
  color: var(--mda-ink-soft);
}

@media (min-width: 768px) {
  .page {
    padding-block: 3.25rem 5.5rem;
  }

  .masthead__inner {
    padding-block: 3.5rem 3rem;
  }
}

/* Heading widths are set in em, not ch: ch is the width of a zero in
   whichever face is showing, so it changes when the web font arrives. */
h1, h2, h3,
.h1, .h2, .h3 {
  letter-spacing: -0.035em;
}

/* Inner page mastheads are wine, with a photograph where the page has one. */
.masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 0;
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgba(244, 184, 96, 0.32), transparent 65%),
    radial-gradient(30rem 20rem at 0% 120%, rgba(237, 38, 71, 0.5), transparent 65%),
    var(--mda-wine);
  color: #fff;
}

.masthead h1 {
  font-size: clamp(2.5rem, 1.5rem + 4.5vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.masthead p {
  color: var(--mda-blush);
}

.masthead a {
  color: var(--mda-gold);
}

.masthead :focus-visible {
  outline-color: var(--mda-gold);
}

.masthead--photo {
  background: var(--mda-wine-deep);
}

.masthead__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.masthead--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(46, 7, 17, 0.86);
}

@media (min-width: 768px) {
  .masthead--photo .masthead__inner {
    padding-block: 5rem 4.5rem;
  }

  .masthead--photo::before {
    background: linear-gradient(90deg, rgba(46, 7, 17, 0.96) 28%, rgba(46, 7, 17, 0.82) 52%, rgba(46, 7, 17, 0.25));
  }
}

.band--ink {
  background:
    radial-gradient(50rem 26rem at 100% 0%, rgba(237, 38, 71, 0.28), transparent 65%),
    var(--mda-wine-deep);
  color: #fff;
}

.band--ink .band__head p {
  color: var(--mda-blush);
}

.band--ink .link-arrow {
  color: var(--mda-gold);
}

.band--ink :focus-visible {
  outline-color: var(--mda-gold);
}

/* Bands: the full-width sections of the landing page. */
.band {
  overflow-x: clip;
}

.band {
  padding-block: var(--mda-band);
}

.band--tint { background: var(--mda-tint); }
.band--cream { background: var(--mda-cream); }

.band--wine {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(244, 184, 96, 0.22), transparent 60%),
    radial-gradient(40rem 26rem at 0% 110%, rgba(237, 38, 71, 0.35), transparent 65%),
    var(--mda-wine);
  color: #fff;
}

.band__head {
  display: grid;
  gap: 0.75rem 2rem;
  margin-bottom: 2.25rem;
}

.band__head h2 {
  max-width: 12.06em;
  margin: 0;
  font-size: var(--mda-fs-3xl);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.band__head p {
  max-width: 52ch;
  margin: 0;
  font-size: var(--mda-fs-lg);
  line-height: 1.45;
  color: var(--mda-ink-soft);
}

.band--wine .band__head p {
  color: var(--mda-blush);
}

@media (min-width: 768px) {
  .band__head {
    grid-template-columns: 1fr auto;
    align-items: end;
    margin-bottom: 3rem;
  }

  .band__head p {
    grid-column: 1;
  }

  .band__head .link-arrow,
  .band__head .btn {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 20;
  background: var(--mda-paper);
  border-bottom: 1px solid var(--mda-line);
}

.site-header .navbar {
  --bs-navbar-padding-y: 0.625rem;
  --bs-navbar-color: var(--mda-ink);
  --bs-navbar-hover-color: var(--mda-red);
  --bs-navbar-active-color: var(--mda-red-dark);
  --bs-navbar-nav-link-padding-x: 0.75rem;
  --bs-navbar-toggler-border-color: var(--mda-line-strong);
  --bs-navbar-toggler-focus-width: 0;
}

.site-header .navbar > .site-width {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.site-header .navbar-brand {
  margin-right: 1.5rem;
  padding-block: 0;
}

.site-header .navbar-brand img {
  display: block;
  width: auto;
  height: 2.75rem;
}

.site-header .navbar-toggler {
  min-width: 2.75rem;
  min-height: 2.75rem;
}

.site-header .nav-link {
  position: relative;
  font-size: var(--mda-fs-sm);
  font-weight: 600;
  padding-block: 0.75rem;
}

.site-header .nav-link[aria-current="page"] {
  color: var(--mda-red-dark);
}

.site-header__actions {
  display: flex;
  gap: 0.5rem;
  padding-block: 0.75rem 0.5rem;
}

.site-header__actions .btn {
  flex: 1 1 0;
}

@media (max-width: 767.98px) {
  .site-header .navbar-nav {
    margin-top: 0.5rem;
    border-top: 1px solid var(--mda-line);
  }

  .site-header .nav-link {
    padding-inline: 0;
    border-bottom: 1px solid var(--mda-line);
  }
}

@media (min-width: 768px) {
  .site-header .navbar-brand img {
    height: 3.25rem;
  }

  .site-header .nav-link::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.375rem;
    height: 2px;
    border-radius: 2px;
    background: var(--mda-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--mda-ease);
  }

  .site-header .nav-link:hover::after,
  .site-header .nav-link[aria-current="page"]::after {
    transform: scaleX(1);
  }

  .site-header__actions {
    padding-block: 0;
  }

  .site-header__actions .btn {
    flex: 0 0 auto;
  }
}

/* ---------- Buttons ---------- */

.btn {
  --bs-btn-font-weight: 650;
  --bs-btn-font-size: var(--mda-fs-sm);
  --bs-btn-padding-x: 1.25rem;
  --bs-btn-padding-y: 0.5625rem;
  --bs-btn-border-radius: 999px;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out, box-shadow 0.2s ease-out, transform 0.12s ease-out;
}

.btn:active {
  transform: scale(0.98);
}

.btn .icon {
  width: 1.125rem;
  height: 1.125rem;
  stroke-width: 2;
  transition: transform 0.25s var(--mda-ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn-lg {
  --bs-btn-font-size: var(--mda-fs-base);
  --bs-btn-padding-x: 1.75rem;
  --bs-btn-padding-y: 0.75rem;
  --bs-btn-border-radius: 999px;
  min-height: 3.375rem;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--mda-red);
  --bs-btn-border-color: var(--mda-red);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--mda-red-dark);
  --bs-btn-hover-border-color: var(--mda-red-dark);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--mda-red-dark);
  --bs-btn-active-border-color: var(--mda-red-dark);
  --bs-btn-disabled-bg: var(--mda-red);
  --bs-btn-disabled-border-color: var(--mda-red);
  --bs-btn-focus-shadow-rgb: 181, 23, 58;
  box-shadow: 0 8px 18px -10px rgba(181, 23, 58, 0.7);
}

.btn-primary:hover {
  box-shadow: 0 12px 22px -10px rgba(141, 2, 31, 0.75);
}

.btn-outline-primary {
  --bs-btn-color: var(--mda-red);
  --bs-btn-border-color: var(--mda-red);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--mda-red);
  --bs-btn-hover-border-color: var(--mda-red);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--mda-red-dark);
  --bs-btn-active-border-color: var(--mda-red-dark);
  --bs-btn-focus-shadow-rgb: 181, 23, 58;
}

.btn-quiet {
  --bs-btn-color: var(--mda-ink);
  --bs-btn-bg: var(--mda-paper);
  --bs-btn-border-color: var(--mda-line-strong);
  --bs-btn-hover-color: var(--mda-ink);
  --bs-btn-hover-bg: var(--mda-tint);
  --bs-btn-hover-border-color: var(--mda-ink-soft);
  --bs-btn-active-color: var(--mda-ink);
  --bs-btn-active-bg: var(--mda-tint);
  --bs-btn-active-border-color: var(--mda-ink-soft);
  --bs-btn-focus-shadow-rgb: 36, 22, 26;
}

.btn-danger {
  --bs-btn-bg: var(--mda-red-dark);
  --bs-btn-border-color: var(--mda-red-dark);
  --bs-btn-hover-bg: #6d0118;
  --bs-btn-hover-border-color: #6d0118;
  --bs-btn-active-bg: #6d0118;
  --bs-btn-active-border-color: #6d0118;
}

.btn-gold {
  --bs-btn-color: var(--mda-wine-deep);
  --bs-btn-bg: var(--mda-gold);
  --bs-btn-border-color: var(--mda-gold);
  --bs-btn-hover-color: var(--mda-wine-deep);
  --bs-btn-hover-bg: #ffd08a;
  --bs-btn-hover-border-color: #ffd08a;
  --bs-btn-active-color: var(--mda-wine-deep);
  --bs-btn-active-bg: #ffd08a;
  --bs-btn-active-border-color: #ffd08a;
  --bs-btn-focus-shadow-rgb: 244, 184, 96;
  box-shadow: 0 10px 24px -12px rgba(244, 184, 96, 0.9);
}

.btn-on-dark {
  --bs-btn-color: var(--mda-wine);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-color: var(--mda-wine);
  --bs-btn-hover-bg: #fbe3e6;
  --bs-btn-hover-border-color: #fbe3e6;
  --bs-btn-active-color: var(--mda-wine);
  --bs-btn-active-bg: #fbe3e6;
  --bs-btn-active-border-color: #fbe3e6;
  --bs-btn-focus-shadow-rgb: 255, 255, 255;
}

.btn-outline-on-dark {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, 0.55);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.12);
  --bs-btn-hover-border-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: rgba(255, 255, 255, 0.18);
  --bs-btn-active-border-color: #fff;
  --bs-btn-focus-shadow-rgb: 255, 255, 255;
}

.button-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 576px) {
  .button-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  font-weight: 650;
  text-decoration: none;
}

.link-arrow .icon {
  width: 1.125rem;
  height: 1.125rem;
  stroke-width: 2;
  transition: transform 0.25s var(--mda-ease);
}

.link-arrow:hover {
  text-decoration: underline;
}

.link-arrow:hover .icon {
  transform: translateX(4px);
}

.band--wine .link-arrow {
  color: var(--mda-gold);
}

/* ---------- Forms ---------- */

.form-stack {
  display: grid;
  gap: 1.125rem;
}

.form-stack p {
  margin: 0;
}

.form-stack label,
.form-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: var(--mda-fs-sm);
  font-weight: 600;
}

.form-control,
.form-select,
.form-stack input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]),
.form-stack select,
.form-stack textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.625rem 0.875rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--mda-ink);
  background-color: var(--mda-paper);
  border: 1px solid var(--mda-line-strong);
  border-radius: var(--mda-radius);
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}

.form-control:hover,
.form-select:hover,
.form-stack input:hover,
.form-stack select:hover,
.form-stack textarea:hover {
  border-color: var(--mda-ink-soft);
}

.form-stack select,
.form-select {
  padding-right: 2.25rem;
}

.form-stack select:not(.form-select) {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2324161a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

.form-stack textarea {
  min-height: 8rem;
}

.form-control:focus,
.form-select:focus,
.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus {
  border-color: var(--mda-red);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(181, 23, 58, 0.16);
}

.form-check-input {
  width: 1.375rem;
  height: 1.375rem;
  margin-top: 0;
  border-color: var(--mda-line-strong);
}

.form-check-input:checked {
  background-color: var(--mda-red);
  border-color: var(--mda-red);
}

.form-check-input:focus {
  border-color: var(--mda-red);
  box-shadow: 0 0 0 0.25rem rgba(181, 23, 58, 0.16);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0;
}

/* The box is 28px; its margin and the label bring the tap area to 44px. */
.check-row .form-check-input {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0.5rem 0;
}

.form-stack .check-row label {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  margin: 0;
  padding-left: 0.625rem;
}

.field-fixed {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  padding: 0.625rem 0.875rem;
  background: var(--mda-tint);
  border: 1px solid var(--mda-line);
  border-radius: var(--mda-radius);
  font-weight: 600;
}

.field-fixed .icon {
  color: var(--mda-red);
}

.field-help,
.form-stack .helptext {
  display: block;
  margin-top: 0.375rem;
  font-size: var(--mda-fs-xs);
  color: var(--mda-ink-soft);
}

.form-stack .helptext ul {
  margin: 0;
  padding-left: 1.125rem;
}

.field-error,
.checkout-error,
.form-stack .errorlist {
  margin: 0.375rem 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--mda-fs-sm);
  font-weight: 600;
  color: var(--mda-red-dark);
}

.plan--paid .checkout-error {
  color: var(--mda-gold);
}

.form-errors {
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--mda-rose);
  border: 1px solid #f3c4cb;
  border-radius: var(--mda-radius);
  color: var(--mda-red-dark);
  font-weight: 600;
}

.form-errors ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.form-foot {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--mda-line);
  font-size: var(--mda-fs-sm);
  color: var(--mda-ink-soft);
}

.form-foot p {
  margin-bottom: 0.375rem;
}

/* A form sitting on a raised sheet. */
.sheet {
  padding: 1.5rem 1.25rem;
  background: var(--mda-paper);
  border: 1px solid var(--mda-line);
  border-radius: var(--mda-radius-lg);
  box-shadow: var(--mda-shadow);
}

@media (min-width: 576px) {
  .sheet {
    padding: 2rem;
  }
}

/* ---------- Flash messages and notices ---------- */

.flash {
  padding-top: 1rem;
}

.flash__item {
  margin: 0 0 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid #bfdccc;
  border-radius: var(--mda-radius);
  background: var(--mda-green-tint);
  color: #12452c;
  font-weight: 600;
}

.flash__item--error {
  border-color: #f3c4cb;
  background: var(--mda-rose);
  color: var(--mda-red-dark);
}

.flash__item--warning,
.flash__item--info {
  border-color: #ecd9a4;
  background: var(--mda-amber-tint);
  color: var(--mda-amber-ink);
}

.notice {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--mda-tint);
  border: 1px solid var(--mda-line);
  border-radius: var(--mda-radius);
  font-size: var(--mda-fs-sm);
  color: var(--mda-ink-soft);
  text-wrap: wrap;
}

.confirm {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--mda-line);
  border-radius: var(--mda-radius-lg);
  box-shadow: var(--mda-shadow);
}

.confirm p,
.moment__card.confirm h1 {
  font-family: var(--mda-font-display);
  font-size: var(--mda-fs-xl);
  line-height: 1.25;
}

.moment__card.confirm h1 {
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.moment__card.confirm h1 + p {
  font-family: var(--mda-font-body);
  font-size: var(--mda-fs-base);
  line-height: 1.5;
}

/* A short page: one message, a drawing and the next step, centred. */
.moment {
  flex: 1 0 auto;
  display: grid;
  place-items: center;
  padding: 2.5rem var(--mda-gutter) 3.5rem;
  background:
    linear-gradient(180deg, rgba(46, 7, 17, 0.78), rgba(46, 7, 17, 0.93)),
    url("../images/food/long-table-1200.378dd7e2bf07.webp") center / cover,
    var(--mda-wine-deep);
}

.moment__card {
  width: 100%;
  max-width: 34rem;
  margin: 0;
  padding: 2.25rem 1.5rem 2rem;
  border: 1px solid var(--mda-line);
  border-radius: var(--mda-radius-xl);
  background: var(--mda-paper);
  box-shadow: var(--mda-shadow-lift);
  text-align: center;
}

.moment__art {
  width: 7rem;
  height: 7rem;
  margin: 0 auto 1.25rem;
}

.moment__card h1 {
  margin-bottom: 0.75rem;
  font-size: var(--mda-fs-2xl);
  overflow-wrap: anywhere;
}

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

.moment__card .moment__lead {
  color: var(--mda-ink);
}

.moment__card.confirm p {
  color: var(--mda-ink);
}

.moment__card .button-row {
  justify-content: center;
  margin-top: 1.5rem;
}

@media (min-width: 576px) {
  .moment__card {
    padding: 3rem 2.75rem 2.5rem;
  }
}

/* ---------- Landing page: hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--mda-wine-deep);
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

/* The scrim that keeps the copy readable over the photograph. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(36rem 26rem at 0% 100%, rgba(237, 38, 71, 0.5), transparent 65%),
    linear-gradient(180deg, rgba(46, 7, 17, 0.92) 30%, rgba(46, 7, 17, 0.55));
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  padding-block: 2.75rem 0;
}

.hero h1 {
  max-width: 8.04em;
  margin-bottom: 1.5rem;
  font-size: var(--mda-fs-display);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.hero h1 em {
  font-style: normal;
  color: var(--mda-gold);
}

.hero__lead {
  max-width: 44ch;
  margin-bottom: 2rem;
  font-size: var(--mda-fs-lg);
  line-height: 1.5;
  color: #fff;
}

.hero__channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--mda-fs-sm);
  font-weight: 650;
}

.hero__channels li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__channels .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--mda-gold);
}

.hero__stage {
  position: relative;
  justify-self: center;
  width: min(100%, 20rem);
  padding-top: 1rem;
}

/* A warm disc of light behind the phone. */
.hero__stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  z-index: -1;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 184, 96, 0.6), rgba(244, 184, 96, 0) 66%);
  transform: translate(-50%, -50%);
}

/* The phone that shows an alert. It is drawn filled in; motion only adds. */
.phone {
  position: relative;
  width: min(18.5rem, 88%);
  margin: 0 auto;
  padding: 0.625rem 0.625rem 0;
  border-radius: 2.5rem 2.5rem 0 0;
  background: #14040a;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18), -20px 30px 60px -20px rgba(0, 0, 0, 0.8);
  transform: rotate(2.5deg);
  transform-origin: bottom center;
}

.phone__screen {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  min-height: 25rem;
  padding: 0.625rem 0.625rem 1.5rem;
  border-radius: 2rem 2rem 0 0;
  background: linear-gradient(180deg, #fff3e2, #fbdcd9 75%);
  color: var(--mda-ink);
}

.phone__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.125rem 0.625rem 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.phone__island {
  width: 4.5rem;
  height: 1.25rem;
  border-radius: 999px;
  background: #14040a;
}

.phone__note {
  padding: 0.75rem 0.8125rem;
  border-radius: 1.125rem;
  background: #fff;
  box-shadow: 0 10px 24px -14px rgba(75, 13, 28, 0.55);
}

.phone__note-head {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  margin-bottom: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--mda-ink-soft);
}

.phone__note-head img {
  width: 1.125rem;
  height: 1.125rem;
}

.phone__note-head span:last-child {
  margin-left: auto;
  font-weight: 500;
}

.phone__note-title {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
}

.phone__note-body,
.phone__bubble {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
}

.phone__thread {
  margin: 0.25rem 0 0;
  font-size: 0.6875rem;
  font-weight: 600;
  text-align: center;
  color: var(--mda-ink-soft);
}

.phone__bubble {
  position: relative;
  max-width: 92%;
  padding: 0.625rem 0.8125rem;
  border-radius: 1.125rem 1.125rem 1.125rem 0.375rem;
  background: var(--mda-red);
  color: #fff;
  box-shadow: 0 12px 22px -12px rgba(141, 2, 31, 0.8);
  transform-origin: left bottom;
}

/* Stops and starts everything that moves in the hero. */
.motion-toggle {
  position: absolute;
  right: 0.5rem;
  bottom: 0.4375rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 2px solid var(--mda-gold);
  border-radius: 50%;
  background: var(--mda-wine-deep);
  color: var(--mda-gold);
  cursor: pointer;
}

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

/* Two bars while it is running, a triangle once paused. */
.motion-toggle::before {
  content: "";
  width: 0.875rem;
  height: 0.875rem;
  background: linear-gradient(90deg, currentColor 0 36%, transparent 36% 64%, currentColor 64%);
}

.motion-toggle[aria-pressed="true"]::before {
  background: currentColor;
  clip-path: polygon(12% 0, 100% 50%, 12% 100%);
}

.motion-toggle:hover {
  background: var(--mda-wine);
}

/* Restaurant names running under the hero. */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 0.875rem;
  background: var(--mda-gold);
  color: var(--mda-wine-deep);
}

.marquee__track {
  display: flex;
  width: max-content;
}

.marquee__track span {
  display: inline-flex;
  align-items: center;
  padding-left: 2rem;
  font-family: var(--mda-font-display);
  font-size: var(--mda-fs-lg);
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.marquee__track span::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-left: 2rem;
  border-radius: 50%;
  background: var(--mda-red);
}

@media (min-width: 992px) {
  .hero::before {
    background:
      radial-gradient(40rem 30rem at 0% 100%, rgba(237, 38, 71, 0.5), transparent 65%),
      linear-gradient(95deg, rgba(46, 7, 17, 0.96) 0%, rgba(46, 7, 17, 0.8) 42%, rgba(46, 7, 17, 0.12) 100%);
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: end;
    gap: 2rem;
    padding-block: 5rem 0;
  }

  .hero__copy {
    align-self: center;
    padding-bottom: 5rem;
  }

  .hero__stage {
    justify-self: end;
    width: 24rem;
    margin-right: 1rem;
  }

  .phone {
    width: 20rem;
  }

  .marquee__track span {
    font-size: var(--mda-fs-xl);
  }
}

/* ---------- Landing page: restaurants ---------- */

.tiles {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 1rem;
  margin-inline: calc(var(--mda-gutter) * -1);
  padding: 0.25rem var(--mda-gutter) 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.tiles > * {
  min-height: 17rem;
  scroll-snap-align: center;
}

@media (min-width: 576px) {
  .tiles {
    grid-auto-columns: 44%;
  }
}

@media (min-width: 992px) {
  .tiles {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 16rem;
    gap: 1.5rem;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }

  .tiles > * {
    min-height: 0;
  }

  /* One large picture, two beside it and a row of three beneath. */
  .tiles > :nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .tiles > :nth-child(1) .tile__text {
    padding: 4.5rem 2rem 2rem;
    background: linear-gradient(180deg, rgba(46, 7, 17, 0) 0, rgba(46, 7, 17, 0.82) 4.25rem, rgba(46, 7, 17, 0.95) 100%);
  }

  .tiles > :nth-child(1) .tile__name--long {
    font-size: var(--mda-fs-3xl);
    line-height: 0.98;
    letter-spacing: -0.04em;
  }

  .tiles > :nth-child(1) .tile__name {
    max-width: 8.04em;
    font-size: var(--mda-fs-display);
    line-height: 0.9;
    letter-spacing: -0.05em;
  }
}

/* A restaurant: its name set large over a photograph. The gradient behind
   the picture is what shows if the picture does not load. */
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  min-height: 13rem;
  overflow: hidden;
  border-radius: var(--mda-radius-lg);
  background:
    radial-gradient(16rem 11rem at 100% 0%, rgba(244, 184, 96, 0.4), transparent 70%),
    linear-gradient(160deg, var(--mda-red), var(--mda-wine));
  color: #fff;
  text-decoration: none;
  box-shadow: var(--mda-shadow);
  isolation: isolate;
}

.tile__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--mda-ease);
}

/* The dark behind the name is part of the text block, so it is as tall as
   the name however many lines that runs to. It fades in over the padding
   above the first line and is never lighter than 0.82 behind a letter. */
.tile__text {
  display: grid;
  gap: 0.5rem;
  padding: 3.25rem 1.125rem 1.125rem;
  background: linear-gradient(180deg, rgba(46, 7, 17, 0) 0, rgba(46, 7, 17, 0.82) 3rem, rgba(46, 7, 17, 0.95) 100%);
}

.tile__name {
  display: block;
  font-family: var(--mda-font-display);
  font-size: var(--mda-fs-xl);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-shadow: 0 1px 12px rgba(46, 7, 17, 0.6);
  /* Three lines at most; the whole name is still read out and is on the
     restaurant's own page. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.tile__name--long {
  font-size: var(--mda-fs-lg);
  line-height: 1.08;
}

/* An arrow that arrives on hover, only where the tile is a link. */
a.tile::before {
  content: "\2192";
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--mda-gold);
  color: var(--mda-wine-deep);
  font-weight: 800;
  opacity: 0;
  transform: translate(-0.5rem, 0.5rem) rotate(-45deg);
  transition: opacity 0.25s ease-out, transform 0.35s var(--mda-ease);
}

a.tile:hover,
a.tile:focus-visible {
  color: #fff;
}

a.tile:hover .tile__photo,
a.tile:focus-visible .tile__photo {
  transform: scale(1.08);
}

a.tile:hover::before,
a.tile:focus-visible::before {
  opacity: 1;
  transform: rotate(-45deg);
}

a.tile:focus-visible {
  outline-color: var(--mda-gold);
  outline-offset: -4px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  padding: 0.1875rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.4;
  background: var(--mda-rose);
  color: var(--mda-red-dark);
}

.tag--gold {
  background: var(--mda-amber-tint);
  color: var(--mda-gold-ink);
}

.tile .tag {
  background: var(--mda-wine-deep);
  color: #fff;
}

.tile .tag--gold {
  background: var(--mda-gold);
  color: var(--mda-wine-deep);
}

/* The full restaurant list: two pictures across on a phone, more on wider screens. */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
}

.tile-grid [hidden] {
  display: none;
}

.tile-grid .tile {
  min-height: min-content;
  aspect-ratio: 1 / 1;
  border-radius: var(--mda-radius);
}

.tile-grid .tile__text {
  padding: 2.5rem 0.75rem 0.75rem;
  background: linear-gradient(180deg, rgba(46, 7, 17, 0) 0, rgba(46, 7, 17, 0.82) 2.25rem, rgba(46, 7, 17, 0.95) 100%);
}

.tile-grid .tile__name {
  font-size: var(--mda-fs-base);
  line-height: 1.08;
  text-wrap: wrap;
}

.tile-grid .tile__name--long {
  font-size: var(--mda-fs-sm);
}

/* A short row of restaurants under a restaurant's own page. */
.tile-grid--row > :nth-child(n + 3) {
  display: none;
}

.tile-grid .tag:not(.tag--gold) {
  display: none;
}

.tile-grid__none {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2rem 0;
  font-family: var(--mda-font-display);
  font-size: var(--mda-fs-xl);
  font-weight: 800;
  color: var(--mda-ink-soft);
}

.filter {
  position: sticky;
  top: 0;
  z-index: 5;
  margin-inline: calc(var(--mda-gutter) * -1);
  margin-bottom: 1rem;
  padding: 0.75rem var(--mda-gutter);
  background: var(--mda-paper);
  border-bottom: 1px solid var(--mda-line);
}

.filter .icon {
  position: absolute;
  left: calc(var(--mda-gutter) + 0.875rem);
  bottom: 1.5rem;
  color: var(--mda-red);
  pointer-events: none;
}

.filter .form-control {
  padding-left: 2.875rem;
  border-width: 2px;
  border-color: var(--mda-ink);
  border-radius: 999px;
}

@media (min-width: 576px) {
  .tile-grid {
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1rem;
  }

  .tile-grid .tile {
    aspect-ratio: 4 / 3;
    border-radius: var(--mda-radius-lg);
  }

  .tile-grid .tile__text {
    padding: 3.25rem 1.125rem 1.125rem;
    background: linear-gradient(180deg, rgba(46, 7, 17, 0) 0, rgba(46, 7, 17, 0.82) 3rem, rgba(46, 7, 17, 0.95) 100%);
  }

  .tile-grid .tile__name {
    font-size: var(--mda-fs-xl);
    text-wrap: balance;
  }

  .tile-grid .tile__name--long {
    font-size: var(--mda-fs-lg);
  }

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

  .tile-grid--row > :nth-child(n + 3) {
    display: flex;
  }

  .tile-grid .tag:not(.tag--gold) {
    display: inline-flex;
  }

  .filter {
    position: relative;
    max-width: 34rem;
    margin-inline: 0;
    margin-bottom: 1.75rem;
    padding: 0;
    border-bottom: 0;
    background: none;
  }

  .filter .icon {
    left: 0.875rem;
    bottom: 0.75rem;
  }
}

/* ---------- Steps ---------- */

.how {
  display: grid;
  gap: 2.5rem;
}

.how__photo {
  position: relative;
  margin: 0 1rem 1rem 0;
}

/* A red block set off behind the photograph. */
.how__photo::before {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  border-radius: var(--mda-radius-xl);
  background: var(--mda-red);
}

.how__photo img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--mda-radius-xl);
  background: var(--mda-wine);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 3px solid var(--mda-ink);
}

.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.5rem 1.125rem;
  padding: 1.5rem 0;
  border-bottom: 3px solid var(--mda-ink);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  grid-column: 1;
  grid-row: 1;
  min-width: 0.74em;
  font-family: var(--mda-font-display);
  font-size: clamp(3.75rem, 2.25rem + 6vw, 6.5rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--mda-red);
}

.step__text {
  grid-column: 2;
  grid-row: 1;
}

.step__art {
  grid-column: 3;
  grid-row: 1;
  width: 3.5rem;
}

.step__art svg {
  display: block;
  width: 100%;
  height: auto;
}

.step h3 {
  margin-bottom: 0.375rem;
  font-size: var(--mda-fs-xl);
  line-height: 1.02;
}

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

.step p + p {
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .step {
    gap: 0.5rem 2rem;
    padding: 2rem 0;
  }

  .step h3 {
    font-size: var(--mda-fs-2xl);
  }

  .step__art {
    width: 5.5rem;
  }
}

@media (min-width: 992px) {
  .how {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 5rem;
  }

  .how__photo {
    transform: rotate(-2deg);
  }

  .how__photo img {
    aspect-ratio: 4 / 5;
  }
}

/* Shared strokes for the drawn illustrations. */
.art {
  fill: none;
  stroke: var(--mda-wine);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.art .art-fill { fill: var(--mda-rose); }
.art .art-gold { fill: var(--mda-gold); stroke: var(--mda-wine); }
.art .art-red { fill: var(--mda-coral); stroke: var(--mda-wine); }
.art .art-paper { fill: #fff; }
.art .art-thin { stroke-width: 1.5; }

/* ---------- Plans ---------- */

.plans {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--mda-line-strong);
  border-radius: var(--mda-radius-xl);
  background: var(--mda-paper);
}

.plan--paid {
  border-color: transparent;
  background:
    radial-gradient(26rem 16rem at 100% 0%, rgba(244, 184, 96, 0.3), transparent 65%),
    radial-gradient(22rem 16rem at 0% 100%, rgba(237, 38, 71, 0.4), transparent 65%),
    var(--mda-wine);
  color: #fff;
  box-shadow: var(--mda-shadow-lift);
}

.plan__name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-family: var(--mda-font-body);
  font-size: var(--mda-fs-sm);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--mda-ink-soft);
}

.plan--paid .plan__name {
  color: var(--mda-gold);
}

.plan__price {
  margin: 0 0 1.25rem;
  font-family: var(--mda-font-display);
  font-size: clamp(3rem, 2.4rem + 3vw, 4.25rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums;
}

.plan__price small {
  margin-left: 0.25rem;
  font-family: var(--mda-font-body);
  font-size: var(--mda-fs-base);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--mda-ink-soft);
}

.plan--paid .plan__price small {
  color: var(--mda-blush);
}

.plan__list {
  flex: 1 0 auto;
  display: grid;
  align-content: start;
  gap: 0.875rem;
  margin: 0 0 1.75rem;
  padding: 1.25rem 0 0;
  list-style: none;
  border-top: 1px solid var(--mda-line);
}

.plan--paid .plan__list {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--mda-fs-base);
  line-height: 1.4;
}

.plan__list .icon {
  margin-top: 0.0625rem;
  color: var(--mda-red);
}

.plan--paid .plan__list .icon {
  color: var(--mda-gold);
}

@media (min-width: 768px) {
  .plans {
    grid-template-columns: 1fr 1.15fr;
    align-items: stretch;
    gap: 1.5rem;
  }

  .plan {
    padding: 2.25rem 2rem;
  }

  .plan--paid {
    margin-block: -0.75rem;
    padding-block: 3rem;
  }
}

.compare {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: var(--mda-fs-sm);
}

.compare th,
.compare td {
  padding: 0.875rem 0.5rem;
  border-bottom: 1px solid var(--mda-line);
  vertical-align: middle;
}

.compare thead th {
  border-bottom: 2px solid var(--mda-ink);
  font-family: var(--mda-font-display);
  font-size: var(--mda-fs-lg);
  font-weight: 800;
  text-align: center;
}

.compare tbody th {
  padding-left: 0;
  font-weight: 500;
  text-align: left;
}

.compare td {
  width: 22%;
  min-width: 4.5rem;
  text-align: center;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.compare td:last-child,
.compare thead th:last-child {
  background: var(--mda-rose);
}

.compare .tick {
  width: 1.375rem;
  height: 1.375rem;
  fill: var(--mda-green);
}

.section-title {
  margin: 0 0 1.25rem;
  font-size: var(--mda-fs-2xl);
}

/* The two-plan teaser on the landing page. */
.plan-pair {
  display: grid;
  gap: 1.75rem;
  padding-right: 0.625rem;
}

.plan-line {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding: 1.5rem;
  border: 2px solid var(--mda-ink);
  border-radius: var(--mda-radius-xl);
  background: var(--mda-paper);
  color: var(--mda-ink);
}

/* Monthly is the one to look at: wine, tilted, on a gold block. */
.plan-line--paid {
  border-color: transparent;
  background:
    radial-gradient(22rem 12rem at 100% 0%, rgba(244, 184, 96, 0.35), transparent 65%),
    radial-gradient(18rem 12rem at 0% 100%, rgba(237, 38, 71, 0.45), transparent 65%),
    var(--mda-wine);
  color: #fff;
  box-shadow: 0.625rem 0.625rem 0 var(--mda-gold);
}

.plan-line h3 {
  margin: 0;
  font-size: var(--mda-fs-2xl);
}

.plan-line__price {
  font-family: var(--mda-font-display);
  font-size: var(--mda-fs-3xl);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.plan-line--paid .plan-line__price {
  color: var(--mda-gold);
}

.plan-line__price small {
  font-family: var(--mda-font-body);
  font-size: var(--mda-fs-sm);
  font-weight: 400;
  letter-spacing: 0;
}

.plan-line ul {
  grid-column: 1 / -1;
  margin: 1rem 0 0;
  padding: 1rem 0 0;
  list-style: none;
  border-top: 1px solid var(--mda-line-strong);
  line-height: 1.8;
  color: var(--mda-ink-soft);
}

.plan-line--paid ul {
  border-top-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

@media (min-width: 768px) {
  .plan-pair {
    grid-template-columns: 1fr 1.25fr;
    align-items: center;
    gap: 2.5rem;
  }

  .plan-line {
    padding: 2rem 2.25rem 2.25rem;
  }

  .plan-line--paid {
    padding: 2.75rem 2.5rem 3rem;
    box-shadow: 0.875rem 0.875rem 0 var(--mda-gold);
    transform: rotate(-1.25deg);
  }

  .plan-line--paid .plan-line__price {
    font-size: var(--mda-fs-display);
  }
}

/* ---------- FAQ ---------- */

.faq {
  margin: 0;
  border-top: 1px solid var(--mda-line-strong);
}

.faq details {
  border-bottom: 1px solid var(--mda-line-strong);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 0;
  font-family: var(--mda-font-display);
  font-size: var(--mda-fs-lg);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  transition: color 0.15s ease-out;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background:
    linear-gradient(var(--mda-red), var(--mda-red)) center / 0.75rem 2px no-repeat,
    linear-gradient(var(--mda-red), var(--mda-red)) center / 2px 0.75rem no-repeat,
    var(--mda-rose);
  transition: transform 0.3s var(--mda-ease), background-color 0.2s ease-out;
}

.faq summary:hover {
  color: var(--mda-red);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

@media (min-width: 992px) {
  .faq--pair,
  .faq--columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    column-gap: 3.5rem;
    border-top: 0;
  }

  .faq--pair details:nth-child(-n + 2),
  .faq--columns details:nth-child(-n + 2) {
    border-top: 1px solid var(--mda-line-strong);
  }
}

.faq__answer {
  max-width: 66ch;
  padding: 0 3rem 1.5rem 0;
  color: var(--mda-ink-soft);
}

.faq__answer > :last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .faq summary {
    font-size: var(--mda-fs-xl);
  }
}

/* ---------- Closing call to action ---------- */

.closer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: calc(var(--mda-band) * 1.2);
  background: var(--mda-wine-deep);
  color: #fff;
}

.closer__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(34rem 22rem at 0% 100%, rgba(237, 38, 71, 0.45), transparent 65%),
    rgba(46, 7, 17, 0.84);
}

.closer h2 {
  max-width: 8.04em;
  margin-bottom: 1rem;
  font-size: var(--mda-fs-display);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.closer p {
  max-width: 44ch;
  margin-bottom: 2rem;
  font-size: var(--mda-fs-lg);
  color: #fff;
}

@media (min-width: 992px) {
  .closer::before {
    background:
      radial-gradient(40rem 26rem at 0% 100%, rgba(237, 38, 71, 0.45), transparent 65%),
      linear-gradient(90deg, rgba(46, 7, 17, 0.96) 25%, rgba(46, 7, 17, 0.82) 50%, rgba(46, 7, 17, 0.3));
  }
}

/* ---------- Signed in: the alert dashboard ---------- */

.dash-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.dash-head h1 {
  max-width: 14.74em;
  margin: 0;
  font-size: var(--mda-fs-3xl);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .dash-head {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-bottom: 2rem;
  overflow: hidden;
  border: 1px solid var(--mda-line);
  border-radius: var(--mda-radius-lg);
  background: var(--mda-line);
  box-shadow: var(--mda-shadow);
}

.summary__cell {
  padding: 1.125rem 1.25rem 1.25rem;
  background: var(--mda-paper);
}

.summary__cell:first-child {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .summary__cell:first-child {
    grid-column: auto;
  }
}

.summary__label {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  margin: 0 0 0.375rem;
  font-size: var(--mda-fs-xs);
  font-weight: 650;
  color: var(--mda-ink-soft);
}

.summary__label .icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--mda-red);
}

.summary__value {
  margin: 0;
  font-family: var(--mda-font-display);
  font-size: var(--mda-fs-2xl);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}

.summary__value small {
  font-family: var(--mda-font-body);
  font-size: var(--mda-fs-sm);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--mda-ink-soft);
}

.summary__note {
  margin: 0.625rem 0 0;
  font-size: var(--mda-fs-xs);
  color: var(--mda-ink-soft);
}

.meter {
  display: block;
  width: 100%;
  height: 0.5rem;
  margin-top: 0.75rem;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--mda-rose);
  appearance: none;
}

.meter::-webkit-progress-bar {
  background: var(--mda-rose);
}

.meter::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mda-coral), var(--mda-red));
}

.meter::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mda-coral), var(--mda-red));
}

@media (min-width: 768px) {
  .summary {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
}

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

.alert-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.875rem 1rem;
  padding: 0.875rem;
  border: 1px solid var(--mda-line);
  border-radius: var(--mda-radius-lg);
  background: var(--mda-paper);
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

.alert-row:hover {
  border-color: var(--mda-line-strong);
  box-shadow: var(--mda-shadow);
}

.alert-row--off {
  background: var(--mda-tint);
}

.alert-row__thumb {
  width: 4.5rem;
  height: 4.5rem;
  overflow: hidden;
  border-radius: var(--mda-radius);
  background: linear-gradient(160deg, var(--mda-red), var(--mda-wine));
}

.alert-row__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.alert-row--off .alert-row__thumb img {
  filter: grayscale(1);
  opacity: 0.75;
}

.alert-row > * {
  min-width: 0;
}

.alert-row__name,
.alert-row__facts,
.dash-head h1,
.tile__name,
.venue h1,
.masthead h1,
.confirm p,
.records td {
  overflow-wrap: anywhere;
}

.alert-row__name {
  margin: 0 0 0.375rem;
  font-size: var(--mda-fs-lg);
  line-height: 1.2;
}

.alert-row__name a {
  color: inherit;
  text-decoration: none;
}

.alert-row__name a:hover {
  color: var(--mda-red);
}

.alert-row__resort {
  display: inline-block;
  font-family: var(--mda-font-body);
  font-size: var(--mda-fs-xs);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--mda-ink-soft);
}

.alert-row__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem 1.125rem;
  margin: 0;
  font-size: var(--mda-fs-sm);
  font-variant-numeric: tabular-nums;
}

.alert-row__facts div {
  display: flex;
  gap: 0.375rem;
  min-width: 0;
}

.alert-row__facts dt {
  flex: none;
  font-weight: 400;
  white-space: nowrap;
  color: var(--mda-ink-soft);
}

.alert-row__facts dd {
  min-width: 0;
  margin: 0;
  font-weight: 650;
}

.alert-row__side {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--mda-line-strong);
}

.alert-row__side form {
  margin: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  margin-right: auto;
  padding: 0.3125rem 0.75rem;
  border-radius: 999px;
  font-size: var(--mda-fs-xs);
  font-weight: 700;
  background: #ece3e0;
  color: var(--mda-ink-soft);
}

.status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}

.status--active {
  background: var(--mda-green-tint);
  color: var(--mda-green);
}

.status--active::before {
  box-shadow: 0 0 0 0 rgba(29, 111, 71, 0.5);
}

@media (min-width: 768px) {
  .alert-row {
    grid-template-columns: 5.5rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.25rem 1rem 1rem;
  }

  .alert-row__thumb {
    width: 5.5rem;
    height: 5.5rem;
  }

  .alert-row__side {
    grid-column: auto;
    justify-content: flex-end;
    padding-top: 0;
    border-top: 0;
  }

  .status {
    margin-right: 0.5rem;
  }
}

.empty {
  display: grid;
  overflow: hidden;
  border-radius: var(--mda-radius-xl);
  background:
    radial-gradient(28rem 16rem at 100% 0%, rgba(244, 184, 96, 0.35), transparent 65%),
    var(--mda-wine);
  color: #fff;
  box-shadow: var(--mda-shadow-lift);
}

.empty__photo {
  display: block;
  width: 100%;
  height: 12rem;
  object-fit: cover;
  background: var(--mda-wine-deep);
}

.empty h2 {
  max-width: 13.4em;
  margin: 1.75rem 1.5rem 1.25rem;
  font-size: var(--mda-fs-2xl);
  line-height: 0.98;
}

.empty .btn {
  justify-self: start;
  margin: 0 1.5rem 2rem;
}

.empty :focus-visible {
  outline-color: var(--mda-gold);
}

.moment__art svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  .empty {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .empty__photo {
    grid-row: 1 / span 2;
    height: 100%;
    min-height: 20rem;
  }

  .empty h2 {
    align-self: end;
    margin: 3rem 3rem 1.5rem;
    font-size: var(--mda-fs-3xl);
  }

  .empty .btn {
    align-self: start;
    margin: 0 3rem 3rem;
  }
}

/* A thicker meter and a status that reads at a glance. */
.meter {
  height: 0.875rem;
}

.meter::-webkit-progress-value {
  background: linear-gradient(90deg, var(--mda-red), var(--mda-coral) 60%, var(--mda-gold));
}

.meter::-moz-progress-bar {
  background: linear-gradient(90deg, var(--mda-red), var(--mda-coral) 60%, var(--mda-gold));
}

.status--active {
  background: var(--mda-green);
  color: #fff;
}

/* The Monthly plan, offered to a Free account. */
.nudge {
  display: grid;
  gap: 1rem 2rem;
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--mda-radius-lg);
  background:
    radial-gradient(24rem 12rem at 100% 0%, rgba(244, 184, 96, 0.3), transparent 65%),
    var(--mda-wine);
  color: #fff;
}

.nudge h2 {
  margin: 0 0 0.75rem;
  font-size: var(--mda-fs-xl);
}

.nudge h2 small {
  font-family: var(--mda-font-body);
  font-size: var(--mda-fs-sm);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--mda-blush);
}

.nudge ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--mda-fs-sm);
  color: var(--mda-blush);
}

.nudge li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.nudge .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--mda-gold);
}

@media (min-width: 768px) {
  .nudge {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 1.75rem 2rem;
  }
}

/* ---------- Tables of records and facts ---------- */

.records {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: var(--mda-fs-sm);
}

.records th,
.records td {
  padding: 0.875rem 0.75rem 0.875rem 0;
  border-bottom: 1px solid var(--mda-line);
  text-align: left;
  vertical-align: top;
}

.records thead th {
  border-bottom: 2px solid var(--mda-ink);
  font-weight: 700;
  white-space: nowrap;
}

.records td:last-child,
.records th:last-child {
  padding-right: 0;
}

.records .records__num {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.facts {
  display: grid;
  gap: 0;
  margin: 0 0 2.5rem;
  border-top: 1px solid var(--mda-line);
}

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--mda-line);
}

.facts dt {
  font-weight: 400;
  color: var(--mda-ink-soft);
}

.facts dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.stat-pair {
  display: grid;
  gap: 1rem;
  margin: 0 0 2.5rem;
}

.stat {
  padding: 1.375rem 1.5rem;
  border-radius: var(--mda-radius-lg);
  background: var(--mda-tint);
}

.stat--wine {
  background:
    radial-gradient(18rem 10rem at 100% 0%, rgba(244, 184, 96, 0.3), transparent 65%),
    var(--mda-wine);
  color: #fff;
}

.stat dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: var(--mda-fs-sm);
  font-weight: 600;
  color: var(--mda-ink-soft);
}

.stat--wine dt {
  color: var(--mda-gold);
}

.stat dd {
  margin: 0;
  font-family: var(--mda-font-display);
  font-size: var(--mda-fs-2xl);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.stat--wine a {
  color: var(--mda-gold);
}

@media (min-width: 576px) {
  .stat-pair {
    grid-template-columns: 1fr 1.4fr;
  }
}

@media (min-width: 992px) {
  .profile--history {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    align-items: start;
    gap: 3.5rem;
  }

  .profile--history .stat-pair {
    grid-template-columns: 1fr;
  }
}

/* ---------- Restaurant page ---------- */

.venue {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 20rem;
  overflow: hidden;
  background:
    radial-gradient(52rem 30rem at 85% 0%, rgba(244, 184, 96, 0.3), transparent 62%),
    var(--mda-wine);
  color: #fff;
}

.venue__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.venue__inner {
  position: relative;
  padding-block: 5rem 2rem;
}

/* The dark behind the name: as wide as the screen, as tall as the heading
   block, never lighter than 0.72 behind a letter. */
.venue--photo .venue__inner::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  background: linear-gradient(180deg, rgba(46, 7, 17, 0) 0, rgba(46, 7, 17, 0.72) 4.5rem, rgba(46, 7, 17, 0.93) 100%);
  transform: translateX(-50%);
}

.venue .breadcrumb {
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.7);
  --bs-breadcrumb-item-active-color: #fff;
  display: inline-flex;
  margin-bottom: 0.875rem;
  padding: 0.25rem 0.875rem;
  border-radius: var(--mda-radius-lg);
  background: var(--mda-wine-deep);
  font-size: var(--mda-fs-sm);
}

.venue .breadcrumb a:focus-visible {
  outline-offset: 1px;
}

.venue .breadcrumb a {
  color: #fff;
}

.venue h1 {
  max-width: 12.06em;
  margin-bottom: 1rem;
  font-size: var(--mda-fs-display);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 24px rgba(46, 7, 17, 0.5);
}

.venue-body {
  display: grid;
  gap: 2rem;
}

.venue__kind {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.42em;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--mda-gold);
}

.venue-body__text p,
.venue-body__text li {
  max-width: 62ch;
  line-height: 1.55;
}

.venue-body__text .venue-body__about {
  font-size: var(--mda-fs-lg);
}

.venue-body__text h2 {
  max-width: 22em;
  margin: 2.25rem 0 0.75rem;
  font-size: var(--mda-fs-xl);
}

.venue-body__text > :first-child {
  margin-top: 0;
}

.venue-steps {
  margin: 0;
  padding-left: 1.5rem;
}

.venue-steps li {
  padding-left: 0.25rem;
}

.venue-steps li + li {
  margin-top: 0.625rem;
}

.venue-steps li::marker {
  font-family: var(--mda-font-display);
  font-weight: 800;
  color: var(--mda-red);
}

.venue-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.venue-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 650;
}

/* ---------- Resort and park pages ---------- */

/* The trail above a heading on a wine masthead. */
.masthead .breadcrumb {
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.7);
  --bs-breadcrumb-item-active-color: #fff;
  margin-bottom: 1rem;
  font-size: var(--mda-fs-sm);
}

.masthead .breadcrumb a,
.venue .breadcrumb a {
  display: inline-block;
  padding-block: 0.375rem;
}

.place__group + .place__group {
  margin-top: 3rem;
}

.place__head {
  margin-bottom: 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid var(--mda-ink);
}

.place__head h2 {
  margin: 0;
  font-size: var(--mda-fs-2xl);
}

.place__head a {
  color: inherit;
  text-decoration: none;
}

.place__head a:hover {
  color: var(--mda-red);
  text-decoration: underline;
}

/* A plain run of links to resort and park pages. */
.place-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.place-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 650;
}

.place-links--on-dark {
  margin-top: 1.25rem;
}

.place-links--on-dark a {
  color: var(--mda-gold);
}

.place-groups {
  display: grid;
  gap: 2rem;
}

.place-groups h3 {
  margin: 0 0 0.375rem;
  font-size: var(--mda-fs-xl);
}

.place-groups h3 a {
  color: inherit;
}

@media (min-width: 768px) {
  .place-groups {
    grid-template-columns: 1.6fr 1fr;
    gap: 3rem;
  }
}

.venue-card {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--mda-radius-lg);
  background: var(--mda-cream);
  border: 1px solid #f1e2c6;
}

.venue-card h2 {
  margin: 0;
  font-size: var(--mda-fs-xl);
}

.venue-card .btn {
  width: 100%;
}

@media (min-width: 768px) {
  .venue {
    min-height: 28rem;
  }

  .venue__inner {
    padding-block: 8rem 3rem;
  }
}

@media (min-width: 992px) {
  .venue-body {
    grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 1fr);
    align-items: start;
    gap: 4rem;
  }

  .venue-card {
    position: sticky;
    top: 1.5rem;
    margin-top: -6rem;
    box-shadow: var(--mda-shadow-lift);
  }
}

/* ---------- Sign in and register ---------- */

.split {
  flex: 1 0 auto;
  display: grid;
}

.split__form {
  width: 100%;
  max-width: 32rem;
  margin-inline: auto;
  padding: 2.5rem var(--mda-gutter) 4rem;
}

.split__form h1 {
  margin-bottom: 1.5rem;
  font-size: var(--mda-fs-3xl);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.split__side {
  display: none;
}

/* On a phone the photograph is a strip above the form. */
@media (max-width: 991.98px) {
  .split::before {
    content: "";
    display: block;
    height: 9rem;
    background:
      linear-gradient(180deg, rgba(46, 7, 17, 0.15), rgba(46, 7, 17, 0.7)),
      url("../images/food/dining-room-600.1f4bdf040593.webp") center / cover,
      var(--mda-wine);
  }
}

@media (min-width: 992px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .split__form {
    align-self: center;
    padding-block: 4rem;
  }

  .split__side {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 3.5rem;
    background: var(--mda-wine);
    color: #fff;
  }

  .split__side::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      radial-gradient(30rem 20rem at 0% 100%, rgba(237, 38, 71, 0.4), transparent 65%),
      linear-gradient(185deg, rgba(46, 7, 17, 0.3), rgba(46, 7, 17, 0.72) 45%, rgba(46, 7, 17, 0.96) 78%),
      url("../images/food/dining-room-1200.efb1f617824e.webp") center / cover;
  }

  .split__side p {
    max-width: 9.38em;
    margin: 0 0 1.5rem;
    font-family: var(--mda-font-display);
    font-size: var(--mda-fs-2xl);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
  }

  .split__side ul {
    display: grid;
    gap: 0.625rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--mda-blush);
  }

  .split__side li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
  }

  .split__side .icon {
    color: var(--mda-gold);
  }
}

/* ---------- Terms and Privacy (generated legal text) ---------- */

.legal {
  font-size: var(--mda-fs-sm);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.legal [data-custom-class="title"],
.legal [data-custom-class="title"] * {
  font-family: var(--mda-font-display);
  font-size: var(--mda-fs-2xl);
  font-weight: 800;
  line-height: 1.1;
}

.legal [data-custom-class="subtitle"],
.legal [data-custom-class="subtitle"] * {
  color: var(--mda-ink-soft);
}

.legal [data-custom-class="heading_1"],
.legal [data-custom-class="heading_1"] * {
  font-family: var(--mda-font-display);
  font-size: var(--mda-fs-xl);
  font-weight: 800;
  line-height: 1.25;
}

.legal [data-custom-class="heading_2"],
.legal [data-custom-class="heading_2"] * {
  font-size: var(--mda-fs-base);
  font-weight: 700;
}

.legal [data-custom-class="link"],
.legal [data-custom-class="link"] *,
.legal a {
  color: var(--mda-red);
  word-break: break-word;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
}

.legal td,
.legal th {
  padding: 0.5rem;
  border: 1px solid var(--mda-line);
  vertical-align: top;
}

.legal__credit {
  margin-top: 2rem;
  font-size: var(--mda-fs-xs);
  color: var(--mda-ink-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  flex-shrink: 0;
  background: var(--mda-wine-deep);
  color: var(--mda-blush);
  font-size: var(--mda-fs-sm);
}

.site-footer__inner {
  display: grid;
  gap: 2.25rem;
  padding-block: 3rem 1.5rem;
}

.site-footer__brand img {
  display: block;
  width: 13.5rem;
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.site-footer__brand p {
  max-width: 34ch;
  margin: 0;
}

.site-footer__groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}

.site-footer h2 {
  margin: 0 0 0.5rem;
  font-family: var(--mda-font-body);
  font-size: var(--mda-fs-xs);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--mda-gold);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-block: 0.375rem;
  line-height: 1.3;
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--mda-gold);
  text-decoration: underline;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: var(--mda-fs-xs);
}

.site-footer__base p {
  margin: 0;
}

.site-footer__base a {
  color: var(--mda-blush);
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1.3fr 2fr;
    gap: 3rem 4rem;
    padding-block: 4rem 1.75rem;
  }

  .site-footer__groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__base {
    grid-column: 1 / -1;
  }
}

/* ---------- Motion ---------- */

@keyframes mda-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* The text arriving again: shown for most of the loop, so a still frame is
   never an empty screen. */
@keyframes mda-arrive {
  0%, 78% { opacity: 1; transform: none; }
  84%, 90% { opacity: 0; transform: translateY(1.25rem) scale(0.9); }
  96% { opacity: 1; transform: scale(1.03); }
  100% { opacity: 1; transform: none; }
}

@keyframes mda-float {
  from { transform: rotate(2.5deg) translateY(0); }
  to { transform: rotate(1.5deg) translateY(-0.625rem); }
}

@keyframes mda-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  100% { box-shadow: 0 0 0 0.5rem rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: no-preference) {
  .marquee__track {
    animation: mda-marquee 48s linear infinite;
  }

  .phone {
    animation: mda-float 5s ease-in-out infinite alternate;
  }

  .phone__bubble {
    animation: mda-arrive 7s var(--mda-ease) infinite;
  }

  .marquee:hover .marquee__track,
  .phone:hover,
  .phone:hover .phone__bubble,
  .hero.is-paused .marquee__track,
  .hero.is-paused .phone,
  .hero.is-paused .phone__bubble,
  .hero__inner:focus-within ~ .marquee .marquee__track,
  .hero__inner:focus-within .phone,
  .hero__inner:focus-within .phone__bubble {
    animation-play-state: paused;
  }

  .status--active::before {
    animation: mda-pulse 1.8s ease-out 0.4s 3;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Four groups of footer links sit in one row once there is room for the
   longest of them on a line. */
@media (min-width: 992px) {
  .site-footer__inner {
    grid-template-columns: 1fr 2.6fr;
  }

  .site-footer__groups {
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
  }
}

/* On a phone the restaurant page leads with its one action, then the text. */
@media (max-width: 991.98px) {
  .venue-card {
    order: -1;
  }
}
