/* Eventela — marketing site
   Palette: linen ground, parchment surfaces, forest ink, moss + sage greens,
   marigold as the single accent (reserved for "checked in" and focus). */

:root {
  --linen: #efe6d2;
  --parchment: #f8f3e6;
  --forest: #1f3b2d;
  --forest-deep: #16291f;
  --moss: #4e6b45;
  --sage: #9db596;
  --sage-soft: #d9e0cc;
  --marigold: #e0ae45;
  --ink-muted: #4a5a4e;
  --rule: #d6caae;

  --font-display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Type scale: 1.25 (major third) from 17px body */
  --step--1: 0.85rem;
  --step-0: 1.0625rem;
  --step-1: 1.33rem;
  --step-2: 1.66rem;
  --step-3: 2.07rem;
  --step-4: clamp(2.2rem, 1.4rem + 3.4vw, 3.6rem);

  --gutter: 16px;
  --measure: 66ch;
  --wrap: 1120px;
  --radius-lg: 22px;
  --radius-sm: 8px;
}

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

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

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

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.005em;
}

p {
  margin: 0;
}

a {
  color: var(--forest);
  text-decoration-color: var(--moss);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--moss);
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--forest);
  color: var(--parchment);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 10;
}

.skip-link:focus {
  top: var(--gutter);
  color: var(--parchment);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

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

.site-header {
  padding-block: 1.1rem;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--forest);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.brand svg {
  width: 34px;
  height: 34px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.site-nav a:hover {
  color: var(--forest);
}

.site-nav .nav-link {
  display: none;
}

@media (min-width: 820px) {
  .site-nav .nav-link {
    display: inline;
  }
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav .button,
.button-primary {
  background: var(--forest);
  color: var(--parchment);
}

.site-nav .button:hover,
.button-primary:hover {
  background: var(--moss);
  color: var(--parchment);
}

.button-quiet {
  color: var(--forest);
  box-shadow: inset 0 0 0 1.5px var(--forest);
}

.button-quiet:hover {
  background: var(--forest);
  color: var(--parchment);
}

.button-light {
  background: var(--linen);
  color: var(--forest);
}

.button-light:hover {
  background: var(--parchment);
  color: var(--forest);
}

/* ---------- Hero ---------- */

.hero {
  padding-block: 2.5rem 4rem;
}

.hero .wrap {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    padding-block: 4rem 6rem;
  }

  .hero .wrap {
    grid-template-columns: 1.05fr 1fr;
    gap: 3.5rem;
  }
}

.hero h1 {
  font-size: var(--step-4);
  max-width: 17ch;
}

.hero-lede {
  margin-top: 1.4rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 34ch;
}

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

.hero-note {
  margin-top: 1.1rem;
  font-size: var(--step--1);
  color: var(--ink-muted);
}

/* Seating plan illustration: the one memorable element */

.floorplan {
  margin: 0;
  background: var(--parchment);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 1px 0 var(--rule), 0 24px 48px -32px rgba(31, 59, 45, 0.45);
}

.floorplan-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.25rem 0.35rem 0.9rem;
  border-bottom: 1px solid var(--rule);
}

.floorplan-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.floorplan-date {
  font-size: var(--step--1);
  color: var(--ink-muted);
  white-space: nowrap;
}

.floorplan svg {
  width: 100%;
  height: auto;
  margin-block: 0.75rem;
}

.table-top {
  fill: var(--linen);
  stroke: var(--rule);
  stroke-width: 1.5;
}

.table-label {
  font-family: var(--font-display);
  font-size: 15px;
  fill: var(--forest);
  text-anchor: middle;
  dominant-baseline: central;
}

.seat {
  stroke-width: 2;
}

.seat-attending {
  fill: var(--sage);
  stroke: var(--sage);
}

.seat-checked {
  fill: var(--marigold);
  stroke: var(--marigold);
}

.seat-waiting {
  fill: var(--parchment);
  stroke: var(--sage);
  stroke-dasharray: 3 3;
}

.legend {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0.35rem 0.25rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot-attending {
  background: var(--sage);
}

.dot-checked {
  background: var(--marigold);
}

.dot-waiting {
  border: 2px dashed var(--sage);
}

/* One orchestrated moment: guests "arrive" at their seats on load. */
@media (prefers-reduced-motion: no-preference) {
  .seat-checked,
  .seat-attending {
    animation: arrive 0.5s ease-out both;
  }

  .seat:nth-of-type(1) { animation-delay: 0.15s; }
  .seat:nth-of-type(2) { animation-delay: 0.3s; }
  .seat:nth-of-type(3) { animation-delay: 0.45s; }
  .seat:nth-of-type(4) { animation-delay: 0.6s; }
  .seat:nth-of-type(5) { animation-delay: 0.75s; }
  .seat:nth-of-type(6) { animation-delay: 0.9s; }
  .seat:nth-of-type(7) { animation-delay: 1.05s; }
  .seat:nth-of-type(8) { animation-delay: 1.2s; }

  @keyframes arrive {
    from {
      fill: var(--parchment);
      stroke: var(--rule);
    }
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: 4rem;
}

@media (min-width: 900px) {
  .section {
    padding-block: 6rem;
  }
}

.section-intro {
  max-width: 40rem;
}

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

.section-intro p {
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: var(--step-1);
  line-height: 1.5;
}

/* Features laid out like an event run sheet: three phases of an event. */

.features {
  background: var(--parchment);
  border-block: 1px solid var(--rule);
}

.phase {
  margin-top: 3.25rem;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .phase {
    grid-template-columns: 15rem 1fr;
    gap: 3rem;
  }
}

.phase h3 {
  font-size: var(--step-2);
  color: var(--moss);
}

.phase-caption {
  margin-top: 0.4rem;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.run-sheet {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1.5px solid var(--forest);
}

.run-sheet li {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 640px) {
  .run-sheet li {
    grid-template-columns: 14rem 1fr;
    gap: 1.5rem;
  }
}

.run-sheet strong {
  font-weight: 700;
  font-size: 1.05rem;
}

.run-sheet p {
  color: var(--ink-muted);
  max-width: var(--measure);
}

/* How it works: a real sequence, so it is numbered. */

.steps {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  gap: 2rem;
  counter-reset: step;
}

@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.steps li {
  counter-increment: step;
  padding-top: 1.25rem;
  border-top: 1.5px solid var(--forest);
}

.steps li::before {
  content: counter(step);
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--parchment);
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.steps h3 {
  font-size: var(--step-1);
}

.steps p {
  margin-top: 0.5rem;
  color: var(--ink-muted);
}

/* Security */

.security {
  background: var(--sage-soft);
}

.security .wrap {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .security .wrap {
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: start;
  }
}

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

.security-list h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
}

.security-list p {
  margin-top: 0.3rem;
  color: var(--ink-muted);
  max-width: var(--measure);
}

/* Closing call to action */

.cta {
  background: var(--forest);
  color: var(--parchment);
}

.cta .wrap {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .cta .wrap {
    grid-template-columns: 1.4fr auto;
    align-items: end;
  }
}

.cta h2 {
  font-size: var(--step-3);
  max-width: 22ch;
}

.cta p {
  margin-top: 0.9rem;
  color: var(--sage-soft);
  max-width: 44ch;
}

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

.site-footer {
  background: var(--forest-deep);
  color: var(--sage-soft);
  padding-block: 2.25rem;
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.site-footer a {
  color: var(--parchment);
}

.site-footer a:hover {
  color: var(--marigold);
}

/* ---------- Legal pages ---------- */

.legal {
  padding-block: 2.5rem 5rem;
}

.legal article {
  max-width: 44rem;
}

.legal h1 {
  font-size: var(--step-3);
}

.legal .effective {
  margin-top: 0.6rem;
  color: var(--ink-muted);
}

.legal h2 {
  font-size: var(--step-1);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.legal p,
.legal ul {
  margin-top: 0.9rem;
  max-width: var(--measure);
}

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

.legal li + li {
  margin-top: 0.4rem;
}

.legal .callout {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--parchment);
  border-left: 4px solid var(--moss);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.legal .placeholder {
  background: #f6e2b0;
  padding: 0 0.25em;
  border-radius: 3px;
}

/* ---------- 404 ---------- */

.not-found {
  padding-block: 5rem 7rem;
}

.not-found h1 {
  font-size: var(--step-4);
  max-width: 16ch;
}

.not-found p {
  margin-top: 1rem;
  font-size: var(--step-1);
  color: var(--ink-muted);
  max-width: 36ch;
}

.not-found .button {
  margin-top: 2rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
