/* Untied brand system: see marketing/Untied Balanced Brand Presentation.md
   and marketing/Untied Brand and Landing Page.md.

   Design idea: the place card. The app icon is a gold "u." inside a gold
   inset rule on Deep Emerald, like a place card set on a dinner table. The
   hero repeats it at page scale, and the signup form is the card itself.
   Everything else stays quiet. */
:root {
  --emerald: #213b38;
  --emerald-soft: #2c4a46;
  --gold: #c8aa73;
  --gold-deep: #8d6f3c;
  --ivory: #f5f1e9;
  --ivory-deep: #e8e0d2;
  --charcoal: #242b2b;
  --muted: #5d6564;
  --white: #fffdf8;
  --error: #a33a2f;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: Montserrat, "Helvetica Neue", Arial, sans-serif;

  --radius: 8px;
  --container: 72rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); color: var(--emerald); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; color: var(--emerald); }
p { margin: 0 0 1em; }
a { color: var(--emerald); }
img { display: block; max-width: 100%; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 44rem; }

/* Wordmark: "un" roman, "tied." italic gold */
.wordmark { font-family: var(--serif); font-size: 1.75rem; line-height: 1; color: var(--emerald); text-decoration: none; letter-spacing: -0.01em; }
.wordmark em { color: var(--gold-deep); }
.wordmark--light { color: var(--ivory); }
.wordmark--light em { color: var(--gold); }

/* Icon + wordmark lockup */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand__icon { width: 2.25rem; height: auto; border-radius: 22%; }

/* Small italic lead-in above a headline, in place of an all-caps label */
.eyebrow { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gold-deep); margin-bottom: 0.75rem; }
.script { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--gold); margin: 0; }
.fine { font-size: 0.8rem; color: var(--muted); }
.tagline { font-family: var(--serif); font-style: italic; color: var(--gold); margin: 0.35rem 0 0; }

/* Header: sits on the page ivory so the hero card reads as a card */
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 1.1rem; }
.site-header nav { display: flex; align-items: center; gap: 1.5rem; font-size: 0.9rem; font-weight: 500; }
.site-header nav a:not(.button) { text-decoration: none; color: var(--charcoal); }
.site-header nav a:not(.button):hover { color: var(--gold-deep); }

/* Buttons: sentence case, set like the rest of the type */
.button {
  display: inline-block; padding: 0.95rem 1.7rem; border: 1px solid transparent; border-radius: var(--radius);
  font: 600 0.95rem/1 var(--sans); letter-spacing: 0.01em; text-decoration: none;
  background: var(--emerald); color: var(--ivory); cursor: pointer;
}
.button:hover { background: var(--emerald-soft); }
.button--small { padding: 0.7rem 1.15rem; font-size: 0.85rem; }
.button--gold { background: var(--gold); color: var(--emerald); }
.button--gold:hover { background: #d6bc8a; }
.button--ghost { background: transparent; border-color: rgb(200 170 115 / 0.6); color: var(--ivory); }
.button--ghost:hover { background: rgb(255 255 255 / 0.06); border-color: var(--gold); }
.button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Hero: the place card at page scale. A rounded emerald panel with a gold
   rule inset from its edge, matching the icon's proportions. */
.hero {
  --card-radius: clamp(1.25rem, 3.5vw, 2.75rem);
  --rule-inset: clamp(0.55rem, 1.3vw, 1.1rem);
  position: relative;
  margin: 0 clamp(0.5rem, 1.5vw, 1.25rem);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  border-radius: var(--card-radius);
  background: var(--emerald);
  color: var(--ivory);
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: var(--rule-inset);
  border: 1.5px solid var(--gold);
  border-radius: calc(var(--card-radius) - var(--rule-inset));
  pointer-events: none;
}
.hero__inner {
  position: relative;
  width: min(100% - 3rem, 48rem);
  margin-inline: auto;
  display: flex; flex-direction: column; align-items: center;
}
.hero__mark { width: clamp(4rem, 8vw, 5.5rem); height: auto; margin-bottom: 1.75rem; border-radius: 22%; box-shadow: 0 0 0 1px rgb(200 170 115 / 0.35); }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: var(--ivory); max-width: 15ch; margin-bottom: 0.45em; }
.lede { font-size: 1.125rem; line-height: 1.7; max-width: 36rem; color: rgb(245 241 233 / 0.88); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; margin: 1.25rem 0 2rem; }
.hero--compact { padding-block: clamp(3rem, 6vw, 4.5rem); margin-bottom: clamp(1.5rem, 4vw, 3rem); }

/* Hero with the signup form beside the copy (stacks on narrow screens) */
.hero--signup { text-align: left; padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.hero--signup .hero__inner {
  width: min(100% - 3rem, 66rem);
  display: grid; gap: 1.75rem; align-items: start;
  /* Mobile order: headline, form, then supporting copy, so the form is near the top. */
  grid-template-areas: "head" "panel" "details";
}
.hero--signup .hero__head { grid-area: head; }
.hero--signup .hero__details { grid-area: details; }
.hero--signup .signup-panel { grid-area: panel; }
.hero--signup .hero__mark { margin-bottom: 1.5rem; }
.hero--signup h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); margin-bottom: 0; }
@media (min-width: 52rem) {
  .hero--signup .hero__inner {
    column-gap: clamp(2.5rem, 5vw, 4.5rem); row-gap: 1.5rem;
    grid-template-columns: 1fr minmax(0, 27rem);
    grid-template-areas: "head panel" "details panel";
  }
  .hero--signup .hero__head { align-self: end; }
}
.checks { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: 0.5rem; font-size: 0.95rem; }
.checks li { display: flex; gap: 0.65rem; }
.checks li::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; margin-top: 0.55rem; border-radius: 50%; background: var(--gold); }

/* Place card: the signup form, set on ivory with its own inset gold rule */
.place-card {
  --card-radius: 1.25rem;
  --rule-inset: 0.5rem;
  position: relative;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  border-radius: var(--card-radius);
  background: var(--ivory);
  color: var(--charcoal);
  text-align: left;
  box-shadow: 0 1.5rem 3rem -1.5rem rgb(0 0 0 / 0.45);
}
.place-card::before {
  content: "";
  position: absolute;
  inset: var(--rule-inset);
  border: 1px solid var(--gold);
  border-radius: calc(var(--card-radius) - var(--rule-inset));
  pointer-events: none;
}
.place-card > * { position: relative; }
.place-card__title { font-size: clamp(1.5rem, 2.6vw, 1.9rem); color: var(--emerald); margin-bottom: 0.3rem; }
.place-card__title + .signup { margin-top: 1.25rem; }
.place-card__note { font-family: var(--serif); font-style: italic; color: var(--gold-deep); margin-bottom: 1.25rem; }
.place-card .field-error { color: var(--error); }
.place-card .signup .button { width: 100%; margin-top: 0.25rem; }

/* Strip between the hero and the menu */
.strip {
  margin: clamp(1.75rem, 4vw, 2.75rem) 0 0; padding: 0 1.25rem; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--emerald);
}

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5rem); }

/* Occasions, set like a printed dinner menu */
.menu__card {
  max-width: 40rem;
  padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 3.5rem);
  background: var(--white);
  border: 1px solid var(--ivory-deep);
  border-radius: 1.25rem;
  text-align: center;
}
.menu__list { list-style: none; margin: 2rem 0 0; padding: 0; }
.menu__list li + li::before {
  content: ""; display: block; width: 0.35rem; height: 0.35rem; margin: 1.5rem auto; border-radius: 50%; background: var(--gold);
}
.menu__list h3 { font-style: italic; font-size: 1.5rem; margin-bottom: 0.3rem; }
.menu__list p { margin: 0 auto; max-width: 30rem; color: var(--muted); font-size: 0.95rem; }

/* How it works */
.steps-section { padding-top: 0; }
.steps-section h2 { text-align: center; margin-bottom: 2.25rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; padding-top: 1.25rem; border-top: 1px solid var(--gold); }
.steps li::before { content: counter(step) "."; display: block; margin-bottom: 0.5rem; font-family: var(--serif); font-style: italic; font-size: 2.25rem; line-height: 1; color: var(--gold-deep); }
.steps p { color: var(--muted); margin: 0; }

/* Closing band with signup */
.band { background: var(--emerald); color: var(--ivory); padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.band h2 { color: var(--ivory); }
.band__copy p { color: rgb(245 241 233 / 0.88); max-width: 32rem; }
.band__inner { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); align-items: center; }
.band__action { justify-self: start; }
.band--short .band__copy p { margin: 0; }
@media (min-width: 52rem) {
  .band--short .band__action { justify-self: end; }
}

/* Signup form */
.signup { display: grid; gap: 0.9rem; }
.field { display: grid; gap: 0.35rem; font-size: 0.85rem; font-weight: 500; }
.field small { font-weight: 400; color: var(--muted); }
.field input {
  width: 100%; padding: 0.85rem 1rem; border: 1px solid #d9cfbd; border-radius: var(--radius);
  font: 400 1rem var(--sans); color: var(--charcoal); background: var(--white);
}
.field input:focus { border-color: var(--gold-deep); }
.field input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field-row { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.field-error { margin: -0.4rem 0 0; font-size: 0.85rem; color: var(--error); }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; }
.consent input { margin-top: 0.25rem; accent-color: var(--emerald); }
.signup .fine { margin: 0; }
.signup .fine a { color: inherit; }
/* Honeypot: off-screen rather than display:none so naive bots still fill it */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Legal / prose */
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.notice { padding: 1rem 1.25rem; background: #fbf3e2; border-left: 3px solid var(--gold); }

/* Footer */
.site-footer { background: var(--charcoal); color: var(--ivory-deep); padding-block: 2.75rem; }
.site-footer__inner { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); align-items: center; }
.site-footer nav { display: flex; gap: 1.25rem; font-size: 0.85rem; }
.site-footer a { color: var(--ivory-deep); }
.site-footer .fine { color: rgb(232 224 210 / 0.7); margin: 0; }
.brand--light .brand__icon { width: 2.75rem; box-shadow: 0 0 0 1px rgb(200 170 115 / 0.35); }

/* Very small screens: keep the header to the lockup and the primary action. */
@media (max-width: 30rem) {
  .site-header nav a:not(.button) { display: none; }
  .wordmark { font-size: 1.5rem; }
  .hero h1 { font-size: 2.3rem; }
  .hero--signup h1 { font-size: 2.1rem; }
  .hero__mark { width: 3.5rem; margin-bottom: 1.25rem; }
  .lede { font-size: 1rem; }
}

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