/* The Brenemans: "Gallery" direction (editorial, photo-led) */
:root {
  --ink: #1A1A1A;
  --ink-2: #4A4A4A;
  --muted: #5F5F5F;
  --rule: #E4E2DE;
  --field: #BDBAB4;
  --tile: #ECEAE6;
  --tile-2: #E2DFD9;
  --paper: #FFFFFF;
  --accent: #8A3B1F;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
img { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.page {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 64px 64px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.page--dinner { gap: 56px; }
.page > main { display: flex; flex-direction: column; gap: inherit; }

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 24px;
}
.wordmark { font-family: var(--serif); font-size: 28px; text-decoration: none; }
.site-nav { display: flex; gap: 28px; flex-wrap: wrap; font-size: 15px; }
.site-nav a { text-decoration: none; padding: 6px 0; }
.site-nav a[aria-current='page'] { font-weight: 600; }

/* Type */
.eyebrow { margin: 0; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.eyebrow--wide { letter-spacing: 0.14em; }
.label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.label--accent { color: var(--accent); }
.display { margin: 0; font-family: var(--serif); font-weight: 400; }
.display em { font-style: italic; }
.lede { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.serif-26 { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1.3; }
.body-15 { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* Shared blocks */
.ruled { border-top: 2px solid var(--ink); padding-top: 20px; }
.btn {
  display: inline-block;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 12px 22px;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
}
.btn:hover { background: var(--accent); color: var(--paper); }
.btn--ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); padding: 12px 20px; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--tile); color: var(--muted); font-size: 14px; text-align: center;
}
.status { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); min-height: 1.5em; }
.status--error { color: #9B1C1C; }

/* Home */
.home-hero { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: end; }
.home-hero__copy { display: flex; flex-direction: column; gap: 20px; }
.home-hero h1 { font-size: 96px; line-height: 0.95; }
.home-hero .lede { max-width: 420px; }
.home-hero__photo { height: 520px; }
.home-hero__photo { background: var(--tile); overflow: hidden; }
.home-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 8%; display: block; }
.home-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.home-card { display: flex; flex-direction: column; gap: 12px; }
.home-card h2 { font-size: 34px; }
.home-card .btn { align-self: flex-start; margin-top: 8px; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumbs > * { height: 96px; background: var(--tile); display: block; }
.thumbs > *:nth-child(2) { background: var(--tile-2); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quote { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1.3; font-style: italic; }

/* Dinner: intro */
.dinner-hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: end; }
.dinner-hero__copy { display: flex; flex-direction: column; gap: 20px; }
.dinner-hero h1 { font-size: 104px; line-height: 0.92; }
.dinner-hero .lede { max-width: 500px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.fact { display: flex; flex-direction: column; gap: 6px; }
.fact__value { font-family: var(--serif); font-size: 26px; line-height: 1.15; }
.fact a { font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* Dinner: cast */
.cast { display: flex; flex-direction: column; gap: 28px; }
.cast__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.cast__head h2 { font-size: 48px; }
.cast__body { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.cast__lists { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.cast__lists .eyebrow + .cast-grid { margin-top: 0; }
.cast__backups { margin-top: 8px; }
.cast-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cast-card {
  font: inherit; text-align: left; cursor: pointer;
  background: var(--paper); color: var(--ink);
  padding: 10px; display: flex; flex-direction: column; gap: 6px;
  border: 2px solid var(--rule);
}
.cast-card:hover { border-color: var(--field); }
.cast-card[aria-pressed='true'] { border-color: var(--accent); }
.cast-card img, .cast-panel img {
  display: block; width: 100%; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: center top; background: var(--tile);
}
.cast-card__name { font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.cast-card__tag { font-size: 12px; color: var(--muted); }
.cast-card__guest { font-size: 13px; font-weight: 600; color: var(--accent); }
.cast-panel {
  flex: 1 1 360px; min-width: 0;
  border: 1px solid var(--ink); padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.cast-panel h3 { font-size: 40px; line-height: 1; }
.cast-panel__who { display: flex; flex-direction: column; gap: 6px; }
.cast-panel__actor { margin: 0; font-size: 14px; color: var(--muted); }
.cast-panel__bio { margin: 0; font-size: 16px; line-height: 1.6; }
.cast-panel__row { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--rule); padding-top: 14px; }
.cast-panel__row p { margin: 0; font-size: 15px; line-height: 1.6; }
.cast-panel__row .serif-26 { font-family: var(--serif); font-size: 26px; line-height: 1.2; }

/* Dinner: table, bar, game */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.trio article { display: flex; flex-direction: column; gap: 10px; }
.trio .list { margin: 0; font-size: 16px; line-height: 1.7; }

/* Dinner: RSVP + photos */
.respond { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: start; }
.rsvp { border: 1px solid var(--ink); padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.rsvp h2 { font-size: 36px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }
.field input, .field textarea {
  font: inherit; font-size: 16px; font-weight: 400;
  padding: 12px 14px; border: 1px solid var(--field); background: var(--paper); color: var(--ink);
  border-radius: 0;
}
.field textarea { resize: vertical; }
.choices { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.choices legend { font-size: 14px; font-weight: 500; padding: 0; margin-bottom: 10px; }
.choice { display: flex; align-items: center; gap: 10px; font-size: 15px; min-height: 28px; cursor: pointer; }
.choice input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.rsvp .btn { font-size: 15px; padding: 14px 22px; }
.rsvp-done { display: flex; flex-direction: column; gap: 12px; }
.rsvp-done p { margin: 0; }

.album { display: flex; flex-direction: column; gap: 20px; }
.album__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 16px; }
.album__head h2 { font-size: 36px; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.photo-grid > * { height: 160px; background: var(--tile); display: block; overflow: hidden; }
.photo-grid > .is-alt { background: var(--tile-2); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-grid--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.photo-grid--wide > * { height: 220px; }
.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;
}

/* Simple pages */
.simple { display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.simple h1 { font-size: 80px; line-height: 0.95; }

/* Sign-in */
.login {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
}
.login__card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 24px; }
.login__card h1 { font-size: 64px; line-height: 0.95; }
.login form { display: flex; flex-direction: column; gap: 16px; }

/* Responsive */
@media (max-width: 1080px) {
  .page { padding: 32px 40px 56px; }
  .home-hero h1 { font-size: 76px; }
  .dinner-hero h1 { font-size: 84px; }
  .dinner-hero { grid-template-columns: 1fr; align-items: start; }
  .cast-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .photo-grid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .page { padding: 24px 20px 48px; gap: 40px; }
  .page--dinner { gap: 44px; }
  .site-nav { gap: 18px; font-size: 15px; }
  .home-hero, .home-cards, .trio, .respond { grid-template-columns: 1fr; }
  .home-hero { gap: 28px; }
  .home-hero h1 { font-size: 56px; }
  .home-hero__photo { height: 420px; }
  .dinner-hero h1 { font-size: 64px; }
  .facts { grid-template-columns: 1fr; gap: 18px; }
  .cast__head h2 { font-size: 40px; }
  .cast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cast-card__name { font-size: 20px; }
  .cast-panel { padding: 20px; }
  .cast-panel h3 { font-size: 34px; }
  .rsvp { padding: 24px; }
  .photo-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-grid--wide > * { height: 160px; }
  .simple h1 { font-size: 56px; }
  .login__card h1 { font-size: 52px; }
}

@media (prefers-reduced-motion: no-preference) {
  .cast-card, .btn { transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease; }
}
