/* ─────────────────────────────────────────────────────────────
   Nikitas & Angeliki — single-page wedding site
   ───────────────────────────────────────────────────────────── */

:root {
  /* default palette = CREAM */
  --paper-A:    #f3e9d0;
  --paper-B:    #ebdcb7;
  --ink:        #ac1f24;
  --ink-deep:   #7c1216;
  --text:       #2e231a;
  --text-soft:  #6f6150;
  --text-mute:  #a89479;
  --rule:       #cfbb89;

  /* default type = ITALIANA pairing */
  --serif:      'Cormorant Garamond', Georgia, serif;
  --display:    'Italiana', 'Cormorant Garamond', Georgia, serif;
  --mono:       'DM Mono', ui-monospace, Menlo, monospace;

  --maxw:       640px;
  --gutter:     clamp(20px, 5vw, 40px);
}

/* ─── PALETTES ────────────────────────────────────────────── */
html[data-palette="cream"]      { --paper-A:#f3e9d0; --paper-B:#ebdcb7; --rule:#cfbb89; }
html[data-palette="bone"]       { --paper-A:#f1ecdf; --paper-B:#e7e0cc; --rule:#cbc2ab; }
html[data-palette="linen"]      { --paper-A:#efe8d7; --paper-B:#e4d9c2; --rule:#c5b89a; }
html[data-palette="champagne"]  { --paper-A:#ede3c4; --paper-B:#e0d2a8; --rule:#bba98a; }
html[data-palette="oat"]        { --paper-A:#ebe6d3; --paper-B:#e0d8be; --rule:#c2b89a; }
html[data-palette="vellum"]     { --paper-A:#f6efdb; --paper-B:#ebe1c4; --rule:#c8b88f; }
html[data-palette="stone"]      { --paper-A:#e8e2d2; --paper-B:#dcd4c0; --rule:#b8af97; }
html[data-palette="mist"]       { --paper-A:#ecebe1; --paper-B:#e0dfd0; --rule:#bdbba9; }
html[data-palette="snow"]       { --paper-A:#f6f1e1; --paper-B:#ece4cf; --rule:#cebe97; }
html[data-palette="almond"]     { --paper-A:#ecdfc1; --paper-B:#decea4; --rule:#b9a37f; }

/* ─── TYPE PAIRINGS ──────────────────────────────────────── */
html[data-type="italiana"]   { --display:'Italiana', serif;           --serif:'Cormorant Garamond', Georgia, serif; }
html[data-type="marcellus"]  { --display:'Marcellus', serif;          --serif:'EB Garamond', Georgia, serif; }
html[data-type="cinzel"]     { --display:'Cinzel', serif;             --serif:'Cormorant Garamond', Georgia, serif; }
html[data-type="cormorant"]  { --display:'Cormorant Garamond', serif; --serif:'EB Garamond', Georgia, serif; }
html[data-type="dmserif"]    { --display:'DM Serif Display', serif;   --serif:'DM Serif Text', Georgia, serif; }
html[data-type="forum"]      { --display:'Forum', serif;              --serif:'Cormorant Garamond', Georgia, serif; }
html[data-type="tenor"]      { --display:'Tenor Sans', sans-serif;    --serif:'Cormorant Garamond', Georgia, serif; }
html[data-type="cardo"]      { --display:'Cardo', serif;              --serif:'Cardo', Georgia, serif; }
html[data-type="playfair"]   { --display:'Playfair Display', serif;   --serif:'EB Garamond', Georgia, serif; }
html[data-type="spectral"]   { --display:'Spectral SC', serif;        --serif:'Spectral', Georgia, serif; }

/* ─── BASE ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--paper-A); transition: background-color .35s ease; }
html.no-smooth { scroll-behavior: auto; }
body {
  background: var(--paper-A);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga", "kern";
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}
::selection { background: var(--ink); color: var(--paper-A); }
a { color: var(--ink); text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 35%, transparent);
    padding-bottom: 1px; transition: border-color .15s ease, color .15s ease; }
a:hover { color: var(--ink-deep); border-bottom-color: currentColor; }
p { margin: 0 0 1em; text-wrap: pretty; }
img { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.cap {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ─── SECTION FRAMING ─────────────────────────────────────── */
section { padding: clamp(76px, 10vw, 120px) var(--gutter); position: relative; }
.sec-A { background: var(--paper-A); }
.sec-B { background: var(--paper-B); }

/* hairline between adjacent sections — paper fold, not seam */
.sec-A + .sec-B,
.sec-B + .sec-A { border-top: 1px solid color-mix(in srgb, var(--rule) 60%, transparent); }

/* ─── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(20px, 5vh, 70px) var(--gutter) clamp(16px, 3vh, 40px);
  gap: clamp(8px, 1.8vh, 22px);
  overflow: hidden;
}
.hero__art {
  width: min(620px, 86vw);
  max-height: 46vh;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  flex-shrink: 1;
  min-height: 0;
}
.hero__meta {
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--text);
  margin: 0;
  letter-spacing: .03em;
  line-height: 1.25;
}
.hero__sub {
  font-style: italic;
  color: var(--text-soft);
  margin: 0;
  font-size: 16px;
}
.hero__sub--small { margin-top: 0; opacity: .85; }

/* clickable venue line */
.hero__place {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 0;
  font-style: italic;
  font-size: 16px;
  color: var(--text-soft);
  border-bottom: 1px solid color-mix(in srgb, var(--text-soft) 35%, transparent);
  padding-bottom: 1px;
  transition: color .15s ease, border-color .15s ease;
}
.hero__place:hover { color: var(--ink); border-bottom-color: var(--ink); }
.hero__place-pin { flex-shrink: 0; transform: translateY(-1px); opacity: .9; }

/* primary call-to-action */
.hero__cta {
  margin-top: clamp(6px, 1.2vh, 16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero__rsvp {
  font-size: 12px;
  padding: 16px 40px;
  letter-spacing: .28em;
}
.hero__cta-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.hero__scroll {
  margin-top: clamp(4px, 1vh, 14px);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.hero__scroll svg {
  width: 11px; height: 20px;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50%      { transform: translateY(4px); opacity: 1; }
}

/* ─── SECTION HEAD ────────────────────────────────────────── */
.head {
  max-width: var(--maxw);
  margin: 0 auto 52px;
  text-align: center;
}
.head__art {
  height: 150px;
  width: auto;
  margin: 0 auto 18px;
  display: block;
}
.head__eyebrow { margin: 0 0 12px; }
.head__title {
  font-family: var(--display);
  font-size: clamp(38px, 5.5vw, 56px);
  font-weight: 400;
  margin: 0 0 14px;
  line-height: 1;
  color: var(--text);
  letter-spacing: .005em;
}
.head__lede {
  font-style: italic;
  color: var(--text-soft);
  margin: 0 auto;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.55;
}

/* ─── FAQ ─────────────────────────────────────────────────── */
.faq { max-width: var(--maxw); margin: 0 auto; }
.faq__item { border-top: 1px solid var(--rule); }
.faq__item:last-child { border-bottom: 1px solid var(--rule); }
.faq__item > summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 20px;
  user-select: none;
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary:hover .faq__q { color: var(--ink); }
.faq__q {
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 24px);
  color: var(--text);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: .005em;
  transition: color .15s ease;
}
.faq__plus {
  width: 22px; height: 22px;
  position: relative;
  transform: translateY(-1px);
  flex-shrink: 0;
}
.faq__plus::before, .faq__plus::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: var(--ink);
  transition: transform .25s ease;
}
.faq__plus::before { width: 12px; height: 1px; transform: translate(-50%, -50%); }
.faq__plus::after  { width: 1px; height: 12px; transform: translate(-50%, -50%); }
.faq__item[open] .faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] > summary .faq__q { color: var(--ink); }
.faq__a {
  padding: 0 0 26px;
  margin: 0;
  color: var(--text-soft);
  font-size: 16.5px;
  line-height: 1.65;
}
.faq__a p:last-child { margin-bottom: 0; }
.faq__a a { font-style: italic; }
.faq__a s { color: var(--text-mute); text-decoration-thickness: 1px; }
.faq__a em { font-style: italic; color: var(--ink); }

/* bank / honeymoon details */
.bank {
  margin: 14px 0 0;
  border-top: 1px solid var(--rule);
}
.bank__row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.bank__row dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.bank__row dd {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
}
.bank__num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--text-soft);
}

/* ─── GUIDE ───────────────────────────────────────────────── */
.guide { max-width: var(--maxw); margin: 0 auto; }
.guide__cat { border-top: 1px solid var(--rule); }
.guide__cat:last-of-type { border-bottom: 1px solid var(--rule); }
.guide__cat > summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: baseline;
  user-select: none;
}
.guide__cat > summary::-webkit-details-marker { display: none; }
.guide__cat-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
}
.guide__cat-title {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--text);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .005em;
  transition: color .15s ease;
}
.guide__cat > summary:hover .guide__cat-title { color: var(--ink); }
.guide__cat-count {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--text-mute);
}
.place {
  padding: 16px 0 20px;
  border-top: 1px dotted var(--rule);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  align-items: baseline;
}
.place__name {
  font-family: var(--display);
  font-size: 20px;
  color: var(--text);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .005em;
}
.place__meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
  white-space: nowrap;
}
.place__desc {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.6;
}
.place__desc a { font-style: italic; }
.guide__cat-body { padding-bottom: 10px; }

/* prose entries (Where to stay) + walking-route notes (What to do) */
.guide__prose {
  margin: 0;
  padding: 18px 0 6px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.65;
}
.guide__prose em, .guide__note-desc em { font-style: italic; color: var(--text); }
.guide__note {
  padding: 18px 0 20px;
  border-top: 1px dotted var(--rule);
}
.guide__note:first-child { border-top: 0; }
.guide__note-title {
  font-family: var(--display);
  font-size: 20px;
  color: var(--text);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .005em;
  margin: 0 0 6px;
}
.guide__note-desc {
  margin: 0;
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.65;
}
.guide__note-desc i { font-style: italic; }

/* ─── RSVP ────────────────────────────────────────────────── */
.rsvp { text-align: center; }
.rsvp .head { margin-bottom: 38px; }
.rsvpform {
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
  display: flex; flex-direction: column; gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.field input, .field textarea, .field select {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 6px 0 8px;
  outline: none;
  border-radius: 0;
  transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); font-style: italic; }
.field textarea { resize: vertical; min-height: 34px; line-height: 1.4; }
.field__legend, .field label.field__legend {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* two-up row (plus ones / children) */
.rsvpform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* yes / no segmented toggle */
.yesno {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.yesno__opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 0;
  border: 1px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--display);
  font-size: 18px;
  color: var(--text-soft);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.yesno__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.yesno__opt:hover { border-color: var(--ink); color: var(--ink); }
.yesno__opt:has(input:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-A);
}

/* allergies — underlined for emphasis */
.lbl-alert {
  color: inherit;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.field__label--alert { color: var(--ink) !important; }
.field__input--alert {
  color: var(--ink) !important;
  border-bottom-color: var(--ink) !important;
}
.field__input--alert::placeholder { color: color-mix(in srgb, var(--ink) 55%, transparent) !important; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23ac1f24' d='M0 0h10L5 6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 22px;
}
.rsvpform__submit {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.deadline {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.btn {
  appearance: none;
  background: var(--ink);
  color: var(--paper-A);
  border: 0;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--ink-deep); color: var(--paper-A); transform: translateY(-1px); }
a.btn:hover { color: var(--paper-A); border-bottom-color: transparent; }
.deadline {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.thanks {
  padding: 24px 0;
  color: var(--text-soft);
  font-style: italic;
  font-size: 17px;
  text-align: center;
}

/* ─── SIGN-OFF ────────────────────────────────────────────── */
.signoff {
  text-align: center;
  padding: clamp(90px, 12vw, 130px) var(--gutter) clamp(90px, 12vw, 130px);
}
.signoff__cheers {
  height: 150px;
  width: auto;
  margin: 0 auto 28px;
  display: block;
}
.signoff__dancing {
  width: min(540px, 80vw);
  height: auto;
  margin: 0 auto 18px;
  display: block;
}
.signoff__xoxo {
  width: min(220px, 42vw);
  height: auto;
  margin: 0 auto 40px;
  display: block;
}
.signoff__small {
  margin: 0;
  opacity: .8;
}

/* ─── FLOATER + PICKER ────────────────────────────────────── */
.floater {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: flex; gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.floater.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.floater__btn {
  appearance: none;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--paper-A);
  border: 1px solid var(--rule);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
  text-decoration: none;
  line-height: 1;
}
.floater__btn:hover { border-color: var(--ink); color: var(--ink); }

/* ─── TOAST ──────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--text);
  color: var(--paper-A);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  padding: 11px 20px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 100;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* clone removed: page no longer loops */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 520px) {
  .hero__sub { font-size: 15px; }
  .hero__meta { font-size: 18px; }
  .head__title { font-size: 32px; }
  .head__art { height: 120px; }
  .signoff__cheers { height: 120px; }
  .place { grid-template-columns: 1fr; }
  .place__meta { font-size: 10px; }
  .floater { right: 10px; bottom: 10px; }
}
