/* ================================================================
   ELEANOR & THEODORE — APPETIZING WEDDING
   White-paper storefront: color comes from the text, not the blocks.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Big+Shoulders+Display:wght@500;700;800;900&family=Yellowtail&family=Sacramento&family=Antic+Didone&family=DM+Serif+Display:ital@0;1&family=Oswald:wght@400;500;600;700&family=Special+Elite&display=swap');

:root {
  --sky-blue: #4ba6c7;
  --sky-blue-deep: #3585a3;
  --mustard: #e8b736;
  --mustard-deep: #c89821;
  --orange: #d96a2e;
  --orange-deep: #b14e1c;
  --pickle-green: #1e6b3e;
  --pickle-deep: #134628;
  --tomato: #d23e2c;
  --tomato-deep: #a02d1f;
  --cream: #f8efd8;
  --ink: #1a1411;
  --paper: #fefcf6;        /* near-white, just barely warm */

  --display-script: 'Yellowtail', cursive;
  --display-serif: 'DM Serif Display', Georgia, serif;
  --display-bold: 'Big Shoulders Display', sans-serif;
  --condensed: 'Bebas Neue', sans-serif;
  --typewriter: 'Special Elite', 'Courier New', monospace;
  --didone: 'Antic Didone', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--didone);
  font-size: 18px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Painted-grain helper for color blocks (used on sub-pages, not home) */
.painted {
  position: relative;
  isolation: isolate;
}

.painted::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.16;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.painted > * { position: relative; z-index: 2; }

/* ============= TOP NAV — sole header on every page ============= */

nav.signage {
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  padding: 0;
  display: flex;
  justify-content: stretch;
  position: relative;
}

nav.signage a {
  flex: 1;
  font-family: var(--condensed);
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 1.1rem 0.5rem;
  text-align: center;
  border-right: 2px solid var(--ink);
  transition: all 0.15s ease;
}

nav.signage a:last-child { border-right: none; }

nav.signage a:hover { background: var(--mustard); }

nav.signage a.current {
  background: var(--tomato);
  color: var(--paper);
}

/* ============= MAIN ============= */

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 4rem 1.5rem 4rem;
}

/* ============= HOMEPAGE — MINIMAL, COLORED TEXT ============= */

.home-hero {
  text-align: center;
  padding: 1rem 0 0;
}

.home-eyebrow {
  font-family: var(--condensed);
  font-size: 0.95rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--tomato);
  margin-bottom: 2rem;
}

.home-names { display: block; line-height: 1; margin: 0; }

.home-names .first-name {
  display: block;
  font-family: var(--display-script);
  font-size: clamp(4rem, 14vw, 8.5rem);
  color: var(--pickle-green);
  line-height: 0.9;
  padding: 0.1em 0;
  letter-spacing: 0.005em;
}

.home-names .first-name.alt { color: var(--sky-blue-deep); }

.home-names .ampersand {
  display: block;
  font-family: var(--display-serif);
  font-style: italic;
  font-size: clamp(2.8rem, 8vw, 5rem);
  color: var(--tomato);
  line-height: 0.8;
  padding: 0.05em 0;
  transform: translateX(-0.05em);
}

.home-rule {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--ink);
  margin: 2.5rem auto;
}

.home-date {
  font-family: var(--display-bold);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  color: var(--ink);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}

.home-date .accent { color: var(--ink); }

.home-locale {
  font-family: var(--display-script);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--ink);
  margin-top: 0.6rem;
  line-height: 1;
}

.home-invitation {
  max-width: 480px;
  margin: 4rem auto 0;
  font-family: var(--didone);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--ink);
}

.home-invitation em {
  font-family: var(--display-script);
  font-style: normal;
  color: var(--tomato);
  font-size: 1.4em;
  line-height: 0.9;
  vertical-align: -0.05em;
}

.home-tag-row {
  text-align: center;
  margin: 4rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
}

.home-tag {
  font-family: var(--condensed);
  font-size: 1rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
}

.home-tag .a { color: var(--ink); }
.home-tag .b { color: var(--ink); }

.home-tag-rule {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--ink);
}

/* ============= SUB-PAGE TITLE ============= */

.sub-title {
  text-align: center;
  margin-bottom: 4rem;
}

.sub-title h1 {
  font-family: var(--display-script);
  font-size: clamp(3rem, 8vw, 4.5rem);
  color: var(--ink);
  line-height: 1;
  font-weight: normal;
}

.sub-title .sub-deadline {
  font-family: var(--condensed);
  font-size: 0.95rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 1.5rem;
}

/* ============= SCHEDULE ============= */

.schedule {
  max-width: 560px;
  margin: 0 auto;
}

.schedule-day {
  margin-bottom: 3.5rem;
}

.schedule-day h2 {
  font-family: var(--display-script);
  font-size: 2rem;
  color: var(--ink);
  margin-bottom: 1.5rem;
  font-weight: normal;
  line-height: 1;
}

.schedule-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(26, 20, 17, 0.15);
  align-items: baseline;
}

.schedule-item:last-child {
  border-bottom: 1px solid rgba(26, 20, 17, 0.15);
}

.schedule-item .time {
  font-family: var(--condensed);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

.schedule-item .event-name {
  font-family: var(--didone);
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.schedule-item .event-place {
  font-family: var(--didone);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink);
  opacity: 0.6;
}

@media (max-width: 600px) {
  .schedule-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 1.2rem 0;
  }
}

/* ============= INFO ROWS ============= */

.info-rows {
  max-width: 560px;
  margin: 5rem auto 0;
}

.info-row {
  padding: 1.8rem 0;
  border-top: 1px solid rgba(26, 20, 17, 0.15);
  text-align: center;
}

.info-row:last-child {
  border-bottom: 1px solid rgba(26, 20, 17, 0.15);
}

.info-row h3 {
  font-family: var(--condensed);
  font-size: 0.9rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.6rem;
  font-weight: normal;
}

.info-row p {
  font-family: var(--didone);
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.6;
}

.info-row a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

/* ============= MINIMAL FORM ============= */

.minimal-form {
  max-width: 440px;
  margin: 0 auto;
}

.field {
  margin-bottom: 2rem;
}

.field label {
  display: block;
  font-family: var(--condensed);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.7rem;
}

.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  padding: 0.6rem 0.1rem;
  font-family: var(--didone);
  font-size: 1.15rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
}

.field input[type="text"]:focus,
.field input[type="email"]:focus {
  border-bottom-width: 2px;
}

.radio-row {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.radio-option {
  flex: 1;
  position: relative;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-option label {
  display: block;
  text-align: center;
  padding: 0.95rem 0.7rem;
  border: 1px solid var(--ink);
  background: transparent;
  font-family: var(--condensed);
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: var(--ink);
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
  margin: 0;
}

.radio-option label:hover {
  background: rgba(26, 20, 17, 0.05);
}

.radio-option input[type="radio"]:checked + label {
  background: var(--ink);
  color: var(--paper);
}

.submit-row {
  text-align: center;
  margin-top: 3rem;
}

button.submit-btn {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--condensed);
  font-size: 0.95rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  padding: 0.95rem 2.6rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

button.submit-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 600px) {
  .radio-row { flex-direction: column; }
}

.text-link {
  font-family: var(--condensed);
  font-size: 0.9rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.3rem;
}

/* ============= FOOTER ============= */

footer {
  text-align: center;
  padding: 3rem 1.5rem 4rem;
  margin-top: 5rem;
  border-top: 1px solid rgba(26, 20, 17, 0.2);
}

.footer-script {
  font-family: var(--display-script);
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 0.6rem;
  color: var(--ink);
}

.footer-script .footer-and {
  font-family: var(--display-serif);
  font-style: italic;
  color: var(--tomato);
  font-size: 0.7em;
  display: inline-block;
  vertical-align: 0.05em;
  margin: 0 0.05em;
}

.footer-tag {
  font-family: var(--condensed);
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.6;
}

/* ============= RESPONSIVE ============= */

@media (max-width: 700px) {
  body { font-size: 16px; }
  main { padding: 2.5rem 1rem 3rem; }

  nav.signage a {
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    padding: 0.85rem 0.3rem;
  }
}

/* ============= SCRAPBOOK / POLAROID GRID ============= */

.scrapbook {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 3rem 2rem;
  padding: 2rem 1rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.polaroid {
  background: #fdfbf4;
  padding: 0.9rem 0.9rem 1.4rem;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.08),
    0 8px 24px rgba(0,0,0,0.12);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  position: relative;
  break-inside: avoid;
}

.polaroid:hover {
  transform: rotate(0deg) scale(1.04);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.1),
    0 16px 36px rgba(0,0,0,0.16);
  z-index: 5;
}

/* Tape strip detail at top of each polaroid */
.polaroid::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 60px;
  height: 18px;
  background: rgba(232, 183, 54, 0.45);
  border-left: 1px dashed rgba(0,0,0,0.06);
  border-right: 1px dashed rgba(0,0,0,0.06);
}

.polaroid:nth-child(3n)::before { transform: translateX(-50%) rotate(3deg); background: rgba(255, 255, 255, 0.5); }
.polaroid:nth-child(5n)::before { transform: translateX(-50%) rotate(-5deg); background: rgba(75, 166, 199, 0.35); }

.polaroid-photo {
  background: #1a1411;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 0.9rem;
}

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

.polaroid-caption {
  font-family: var(--display-script);
  font-size: 1.2rem;
  color: var(--ink);
  line-height: 1.1;
}

/* Neighborhood variant — name + kind + note */
.polaroid-name {
  font-family: var(--display-script);
  font-size: 1.4rem;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.polaroid-kind {
  font-family: var(--condensed);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--tomato);
  margin-bottom: 0.5rem;
}

.polaroid-note {
  font-family: var(--didone);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.4;
  opacity: 0.85;
}

@media (max-width: 600px) {
  .scrapbook {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 2.2rem 1.2rem;
    padding: 1.5rem 0.5rem 3rem;
  }
  .polaroid { padding: 0.6rem 0.6rem 1.1rem; }
  .polaroid-caption { font-size: 1.05rem; }
}
