/* Common Steps — site styles
   Layout: left-aligned page; each section puts its title in a narrow left column and its
   content to the right. The floor plan in the hero is the one loud element; everything
   else stays quiet. Both typefaces are from Omnibus-Type in Buenos Aires. */

:root {
  --ground: #F1F3F7;
  --surface: #FFFFFF;
  --ink: #142138;
  --muted: #525D76;
  --line: #C9D0DC;
  --accent: #A3164C;
  --on-accent: #FFFFFF;
  --floor: #EBDDBD;
  --floor-line: #B0935A;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Faustina", Georgia, "Times New Roman", serif;

  --step--1: 1rem;
  --step-0: 1.1875rem;
  --step-1: 1.5rem;
  --step-2: 2rem;
  --radius: 4px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #101B2D;
    --surface: #18263D;
    --ink: #E9EDF5;
    --muted: #A5B0C6;
    --line: #2E3D58;
    --accent: #FF8FB3;
    --on-accent: #2A0716;
    --floor: #33291D;
    --floor-line: #8A7043;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ground: #101B2D;
  --surface: #18263D;
  --ink: #E9EDF5;
  --muted: #A5B0C6;
  --line: #2E3D58;
  --accent: #FF8FB3;
  --on-accent: #2A0716;
  --floor: #33291D;
  --floor-line: #8A7043;
  color-scheme: dark;
}

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

[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.6;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

cite { font-style: italic; }

.wrap {
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem;
}

.wordmark {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-family: var(--display);
  font-size: var(--step--1);
  font-weight: 500;
}

.site-nav a { color: var(--ink); text-decoration: none; padding-block: 0.25rem; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .nav-list { color: var(--accent); font-weight: 700; }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(1.5rem, 5vw, 4rem) clamp(3rem, 7vw, 5.5rem);
}

.hero-text { display: grid; gap: 1.5rem; min-width: 0; }

.hero h1 {
  font-family: var(--display);
  font-stretch: 68%;
  font-weight: 800;
  font-size: clamp(2.75rem, 7.2vw, 5.5rem);
  line-height: 0.94;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.lede { font-size: 1.3125rem; line-height: 1.5; max-width: 34em; }

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

.button {
  display: inline-block;
  font-family: var(--display);
  font-size: var(--step--1);
  font-weight: 700;
  line-height: 1.2;
  padding: 0.85rem 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
}

.button-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.button-quiet { background: transparent; border-color: var(--ink); color: var(--ink); }
.button-quiet:hover { background: var(--ink); color: var(--ground); }
.button-small { padding: 0.5rem 0.9rem; font-size: 0.9375rem; }

/* Floor plan */

.floorplan { display: grid; gap: 0.9rem; min-width: 0; }
.floorplan svg { display: block; width: 100%; height: auto; max-width: 100%; }
.floorplan figcaption { font-size: var(--step--1); font-style: italic; color: var(--muted); max-width: 34em; }

.plan-floor { fill: var(--floor); }
.plan-wall { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.plan-solid { fill: var(--ink); }
.plan-table { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; }
.plan-chairs circle { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; }
.plan-ronda { fill: none; stroke: var(--floor-line); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.plan-label { font-family: var(--display); font-size: 13px; font-weight: 500; fill: var(--ink); }
.plan-label-strong { font-size: 15px; font-weight: 700; }
.plan-label-quiet { fill: var(--muted); }
.couple-lead { fill: var(--ink); }
.couple-follow { fill: var(--accent); }

/* Sections */

.band {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 1.5rem clamp(2rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.band > h2 {
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.band-body { display: grid; gap: 2.5rem; min-width: 0; }
.band-body > .band-intro { max-width: 36em; }
.band-body > .band-intro + * { margin-top: -1rem; }

.band h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.25;
}

.band h3 cite { font-style: normal; }

/* What a night involves */

.exchange {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem clamp(2rem, 4vw, 3.5rem);
}

.exchange > div { display: grid; gap: 0.75rem; align-content: start; }

.exchange ul { list-style: none; display: grid; }
.exchange li { border-top: 1px solid var(--line); padding-block: 0.6rem; }

.evening-panel {
  display: grid;
  gap: 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.evening { list-style: none; display: grid; }
.evening li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-block: 0.6rem;
}
.evening time {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Dates */

.events { display: grid; }

.event {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: 0.5rem 2rem;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-block: 1.25rem;
}
.events > .event:first-child { border-top: 0; padding-top: 0; }

.event-date { display: grid; font-family: var(--display); }
.event-weekday { font-size: var(--step--1); font-weight: 500; color: var(--muted); }
.event-day {
  white-space: nowrap;
  font-stretch: 68%;
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.event-body { display: grid; gap: 0.25rem; min-width: 0; }
.event-body h3 { font-size: 1.3125rem; }
.event-meta { color: var(--muted); }
.event-link { margin-top: 0.5rem; }

.events-empty { max-width: 36em; }

/* Past work, team */

.work {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 3vw, 2.5rem);
}
.work > div, .team > div { display: grid; gap: 0.5rem; align-content: start; }

.team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem clamp(2rem, 4vw, 3.5rem);
}

/* On the floor */

.floor-rules {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 4vw, 3.5rem);
}
.floor-rules li { border-top: 1px solid var(--line); padding-block: 0.85rem; }

/* Email list */

.signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
  gap: 1rem;
  align-items: end;
  max-width: 46rem;
}

.field { display: grid; gap: 0.35rem; min-width: 0; }

.field label { font-family: var(--display); font-size: 0.9375rem; font-weight: 600; }
.field .optional { font-weight: 400; color: var(--muted); }

.field input {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
}

.form-status { font-family: var(--display); font-size: var(--step--1); font-weight: 600; min-height: 1.5em; }
.band-body > .form-status { margin-top: -1.5rem; }
.band-body > .form-status:empty { display: none; }

.preview-note {
  font-size: var(--step--1);
  color: var(--muted);
  border-left: 3px solid var(--line);
  padding-left: 0.85rem;
  max-width: 36em;
}
.band-body > .preview-note { margin-top: -1.25rem; }

/* Contact */

.contact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }

.contact-email {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 3.4vw, 1.75rem);
  overflow-wrap: anywhere;
  min-width: 0;
}

/* Footer */

.site-footer {
  display: grid;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  padding-block: 2rem 3rem;
  font-size: var(--step--1);
  color: var(--muted);
}

.site-footer .sponsor { max-width: 44em; }

.social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.25rem;
}
.social-link:hover span { text-decoration: underline; }
.social-icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* Narrow screens */

@media (max-width: 60rem) {
  .work { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 52rem) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .band { grid-template-columns: minmax(0, 1fr); }
  .signup { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .signup .button { justify-self: start; }
}

@media (max-width: 40rem) {
  .exchange, .team, .floor-rules { grid-template-columns: minmax(0, 1fr); }
  .event { grid-template-columns: minmax(0, 1fr); }
  .lede { font-size: 1.1875rem; }
}

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

/* Past events: only the most recent show until "Show more" is pressed. */
.past-more-line { margin-top: -1.25rem; }
.events > .event[hidden] + .event:not([hidden]) { border-top: 1px solid var(--line); }
