/* Shared visual language, anchored in The weekend. See ../DESIGN.md. */
:root {
  --paper: #f4e7cf;
  --muted: #74634d;
  --line: #cbb78e;
  --divider: #d7c6a4;
  --radius-panel: 19px;
  --radius-card: 12px;
  --photo-arch: 90px;
  --photo-inset: 9px;
  --space-small: 8px;
  --space-medium: 16px;
  --space-section: 24px;
  --feature-gap: 42px;
  --type-title: 45px;
  --type-feature: 38px;
  --type-body: 19px;
  --type-meta: 14px;
  --theme-duration: 1200ms;
  --theme-easing: ease-in-out;
}
/* Keep lettering and scenery on one reversible day/evening transition. */
.landscape { transition: filter var(--theme-duration) var(--theme-easing); }
.night-sky { transition: opacity var(--theme-duration) var(--theme-easing); }
.brand,.welcome h1,.welcome > p { transition: color var(--theme-duration) var(--theme-easing); text-shadow: none; }
.brand .magen { color: inherit; }
.night .brand { text-shadow: none; }
.welcome { padding-top: clamp(24px,4vh,56px); }
.welcome h1 { font-size: clamp(48px,6.4vw,90px); line-height: 1.02; margin: 0 0 26px; }
.welcome h1 em { display: inline-block; font-weight: 500; }
.welcome > p.wedding-names { font-size: clamp(25px,2.3vw,32px); line-height: 1.3; margin: 0 0 7px; color: var(--wine); }
.welcome > p.wedding-date { font-size: clamp(19px,1.6vw,23px); line-height: 1.4; margin: 0 0 28px; color: var(--wine); }
.date-divider { padding-inline: 6px; }
.night .welcome h1,.night .welcome > p { color: var(--cream); }
.paused .brand,.paused .welcome h1,.paused .welcome > p { transition: none; }
::selection { background: #e5c9b1; color: var(--wine); }
input, textarea { caret-color: var(--wine); }
a { text-underline-offset: 4px; }
.window { border-color: var(--line); border-radius: var(--radius-panel); }
.window-body { border-radius: var(--radius-panel); }
.window .content-heading { margin-bottom: 28px; }
.content-heading h2 { font-size: var(--type-title); line-height: 1.08; margin-bottom: var(--space-small); text-wrap: balance; }
.content-heading p { font-size: var(--type-body); line-height: 1.4; margin: 0; color: var(--muted); }
.window :is(.primary,.outline) { font-size: 18px; line-height: 1.2; min-height: 44px; padding: 11px 20px; border-radius: 999px; }
.window .submit { font-size: 24px; }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.meta { font: var(--type-meta)/1.6 var(--sans); color: var(--muted); }
.fine-print,.flight-note,.flight-sources { font: 12px/1.65 var(--sans); color: var(--muted); }

/* A single image-and-text composition for venues, accommodation and memories. */
.feature-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: var(--feature-gap); align-items: start; }
.feature-details { padding: var(--space-small) 0 0; min-width: 0; }
.feature-details .feature-title { font-size: var(--type-feature); font-weight: 500; line-height: 1.08; color: var(--wine); margin: 0 0 var(--space-section); text-wrap: balance; }
.feature-title em { font-weight: 500; }
.feature-details > p { font-size: var(--type-body); line-height: 1.45; margin: 0 0 var(--space-medium); }
.photo-frame { margin: 0; padding: var(--photo-inset) var(--photo-inset) 0; min-width: 0; border: 1px solid var(--line); border-radius: var(--photo-arch) var(--photo-arch) 8px 8px; overflow: hidden; background: var(--paper); }
.photo-frame > img,.photo-frame > .illustrated-memory { display: block; width: 100%; height: auto; aspect-ratio: 6 / 5; min-height: 0; max-height: none; object-fit: cover; border-radius: calc(var(--photo-arch) - var(--photo-inset)) calc(var(--photo-arch) - var(--photo-inset)) 0 0; }
.photo-frame figcaption { text-align: center; padding: 15px 7px; margin: 0; font: italic 21px/1.2 var(--serif); color: var(--wine); }
.photo-frame > .illustrated-memory { display: flex; }
.weekend-moment { border-bottom: 1px solid var(--divider); padding: 0 0 18px; margin-bottom: 20px; }
.weekend-moment .moment-time { font: var(--type-meta)/1.4 var(--sans); color: var(--olive); margin: 0 0 7px; }
.weekend-moment h4 { font-size: 28px; font-weight: 500; margin: 0 0 5px; }
.weekend-moment p { font-size: var(--type-body); line-height: 1.4; margin: 0; }
.weekend-location > strong { font-size: 22px; font-weight: 600; }
.weekend-location > p { font: var(--type-meta)/1.6 var(--sans); margin: 8px 0 18px; color: var(--muted); }
.weekend-location .outline { margin: 0 12px 10px 0; }
.weekend-location > a { white-space: nowrap; font-size: 18px; }

/* Hotel uses the same photo frame; the offer is a section of the text column. */
.hotel-gallery { min-width: 0; }
.gallery-choices { display: flex; justify-content: center; gap: var(--space-section); margin-top: var(--space-small); }
.gallery-choices button { min-height: 44px; padding: 8px 0; font: italic 20px var(--serif); color: var(--muted); border-bottom: 2px solid transparent; }
.gallery-choices button[aria-pressed=true] { color: var(--wine); border-color: var(--wine); }
.gallery-choices button:hover { color: var(--wine); }
.hotel-description .feature-title { margin-bottom: var(--space-medium); }
.hotel-description .hotel-badge { display: inline-block; padding: 6px 10px; border-radius: 999px; background: #e9eadb; color: #52572d; font: 13px/1.4 var(--sans); margin: 0 0 var(--space-medium); }
.hotel-description .hotel-address { font: var(--type-meta)/1.6 var(--sans); color: var(--muted); }
.hotel-offer { border-top: 1px solid var(--divider); margin-top: var(--space-section); padding-top: 20px; }
.hotel-offer-heading { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-medium); }
.hotel-offer h4 { font: 500 28px/1.2 var(--serif); color: var(--wine); margin: 0; }
.hotel-offer .hotel-discount { font: 500 38px/1 var(--serif); color: var(--wine); margin: 0; white-space: nowrap; }
.hotel-discount span { font-size: 23px; font-style: italic; }
.hotel-offer > p { font-size: var(--type-body); line-height: 1.4; margin: 7px 0 16px; }
.hotel-code { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; padding: 14px 0; border-block: 1px solid var(--divider); }
.hotel-code span { font: var(--type-meta)/1.4 var(--sans); color: var(--muted); }
.hotel-code strong { font: 500 22px/1.2 var(--serif); color: var(--wine); }
.hotel-offer .hotel-terms { font: 12px/1.65 var(--sans); color: var(--muted); margin: 12px 0 0; }

/* The same surface, rules and controls on utility chapters. */
.story-gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: var(--space-section); align-items: start; }
.story-gallery .photo-frame > img { aspect-ratio: var(--photo-ratio, 3 / 4); height: auto; max-height: none; object-fit: contain; }
.story-gallery figcaption { min-height: 80px; display: flex; align-items: center; justify-content: center; text-wrap: balance; }
@media(min-width:761px) and (max-width:1000px) {
  .story-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px) {
  .story-gallery { grid-template-columns: minmax(0,1fr); max-width: 440px; margin-inline: auto; }
  .story-gallery figcaption { min-height: 60px; }
}
.flight-card { background: transparent; border-color: var(--line); border-radius: var(--radius-card); }
.flight-card.featured { border-color: var(--line); box-shadow: none; }
.flight-card header,.flight-card.featured header { background: var(--paper); border-color: var(--divider); padding: 20px 24px; }
.flight-card h3 { font-size: 30px; font-weight: 500; }
.flight-card :is(header p,.leg-date,.flight-number,.flight-track span),.flight-card footer > span { color: var(--muted); }
.flight-card footer { border-color: var(--divider); padding: 16px 24px; }
.flight-leg + .flight-leg { border-color: var(--divider); }
.leg-route strong { font-variant-numeric: tabular-nums; }
.travel-dates small { font-size: 12px; color: var(--muted); }
.preview-note { font-size: 11px; max-width: calc(100% - 16px); }
.arrival-note { border-color: var(--divider); margin-top: var(--space-section); padding-top: var(--space-section); }
.arrival-note h3,.city-place-detail h3 { font-size: 28px; font-weight: 500; }
.city-map { border-color: var(--line); border-radius: var(--radius-card); }
.city-map-toolbar { margin-top: 0; }
.city-place-detail { border-color: var(--divider); padding-top: var(--space-section); }
.city-place-detail p { font-size: var(--type-body); line-height: 1.4; }
.city-place-detail > div:last-child > p { font: var(--type-meta)/1.6 var(--sans); color: var(--muted); }
.city-address-buttons button { border-color: var(--line); min-height: 44px; }
.invitation-grid { gap: var(--feature-gap); }
.invitation-card { border: 1px solid var(--line); outline: none; background: var(--paper); border-radius: var(--photo-arch) var(--photo-arch) 8px 8px; padding-top: 32px; margin: 0; }
input:not([type=checkbox]),textarea,.stepper { border-color: var(--line); }

@media(max-width:700px) {
  :root { --photo-arch: 65px; --feature-gap: 24px; --type-title: 36px; --type-feature: 32px; --type-body: 18px; --radius-panel: 16px; }
  .feature-layout { grid-template-columns: minmax(0,1fr); }
  .window .content-heading { margin-bottom: var(--space-section); }
  .feature-details { padding: 0; }
  .photo-frame > img,.photo-frame > .illustrated-memory { aspect-ratio: 6 / 5; max-height: 360px; }
  .photo-frame figcaption { font-size: 20px; padding-block: 13px; }
  .weekend-tabs { gap: 0; margin: 10px 0 22px; }
  .weekend-tabs button { min-width: 0; flex: 1; font-size: 24px; padding: 12px 5px; }
  .weekend-tabs small { font-size: 13px; }
  .window :is(.primary,.outline) { font-size: 17px; padding-inline: 16px; }
  .flight-card header,.flight-card footer { padding: 16px; }
  .flight-card footer a { flex-basis: 100%; }
  .hotel-links { gap: 8px; }
  .hotel-links > * { flex: 1; }
  .hotel-offer h4 { font-size: 26px; }
  .city-place-detail { gap: var(--space-medium); }
}

/* Leave the same inset below memories that have no caption yet. */
.story-gallery .story-uncaptioned { padding-bottom: var(--photo-inset); }

/* Address thumbnails keep their numbered map references. */
.city-address-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0 22px}
.city-address-buttons button{gap:10px;padding:6px 12px 6px 6px;border-radius:var(--radius,12px);font-size:18px;line-height:1.15}
.city-address-buttons button img{width:64px;height:52px;object-fit:cover;border-radius:7px;flex:none}
.city-address-buttons .place-number{flex:none;width:23px;height:23px}
.city-address-buttons button:hover{background:#efe3ce}
.city-photo-preview{padding:5px;white-space:normal;width:190px;border-radius:9px;box-shadow:0 5px 16px #39271524;pointer-events:none}
.city-photo-preview img{display:block;width:180px;height:110px;object-fit:cover;border-radius:5px}
.city-photo-preview strong{display:block;padding:7px 5px 4px;font:500 19px/1.1 var(--serif);text-align:center}
.address-recommendations{margin-top:42px}
.address-category{display:grid;grid-template-columns:160px minmax(0,1fr);gap:30px;padding:28px 0;border-top:1px solid var(--line,#d9c7a9)}
.address-category>h3{font:italic 500 30px/1.15 var(--serif);color:var(--wine);margin:4px 0}
.address-category ul{display:grid;gap:28px;margin:0;padding:0;list-style:none}
.address-category li{display:flex;align-items:center;gap:24px}
.address-category li>img{width:160px;height:120px;object-fit:cover;border-radius:40px 40px 8px 8px;flex:none;background:#ecdfc8}
.address-category h4{font:500 28px/1.1 var(--serif);color:var(--wine);margin:0 0 8px}
.address-category p{font:13px/1.6 var(--sans);color:var(--ink);margin:4px 0 10px}
.address-category .personal-note{font:italic 20px/1.3 var(--serif);margin:0 0 8px}
.address-category a{font:15px/1.5 var(--serif);text-underline-offset:4px;display:inline-block;padding:7px 0}
.address-location-links{display:flex;flex-wrap:wrap;gap:0 20px}
@media(max-width:800px){.city-address-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}.address-category{grid-template-columns:120px minmax(0,1fr);gap:20px}.address-category li{gap:18px}.address-category li>img{width:120px;height:105px}}
@media(max-width:600px){.city-address-buttons button{font-size:16px;gap:7px;padding:5px}.city-address-buttons button img{width:44px;height:48px}.city-address-buttons .place-number{width:20px;height:20px;font-size:11px}.city-photo-preview{width:130px}.city-photo-preview img{width:120px;height:80px}.city-photo-preview strong{font-size:16px}.address-category{grid-template-columns:1fr;gap:18px;padding:24px 0}.address-category>h3{font-size:28px}.address-category h4{font-size:25px}.address-category li{align-items:flex-start;gap:16px}.address-category li>img{width:94px;height:110px;border-radius:30px 30px 6px 6px}.address-category p{font-size:12px}.address-category .personal-note{font-size:18px}.address-location-links{display:block}.address-location-links a{display:block}}

.address-map-link{display:block;font:15px/1.5 var(--serif);color:var(--wine);border:0;background:none;padding:7px 0;text-decoration:underline;text-underline-offset:4px;min-height:40px;text-align:left;cursor:pointer}.address-map-link[aria-pressed=true]{font-weight:700}

/* One shared line-icon family for map pins and address badges. */
.city-category-icon{display:block;flex:none;width:22px;height:22px}
.city-pin.category-pin>span:after{content:none}
.city-pin.category-pin .city-category-icon{transform:rotate(45deg);color:var(--cream,#fff8e9)}
.city-address-buttons .place-number{width:28px;height:28px;background:var(--wine);color:#fff8e9}
.city-address-buttons .place-number.landmark{background:var(--olive)}
.city-address-buttons .city-category-icon{width:19px;height:19px}
