/* Theme "Taman": a faded palace garden behind glass cards, burgundy script, roses with hanging fuchsia.
   Art, all public domain: the garden is Piranesi's etching of the Villa d'Este (Vedute di Roma, c. 1773,
   Rijksmuseum, CC0), toned to sepia; roses by Pierre-Joseph Redouté (Les Roses, 1817-1824); the fuchsia from
   Curtis's Botanical Magazine (1789). The butterfly is our own (assets/ornaments/kupu.svg).
   invite.ts gives this theme the opening page (gate), cards, hanging side sprays and the capsule cover. */
:root {
  --bg: #f4ede2;
  --ink: #3a2426;
  --muted: #6f5552;
  --accent: #b9917a;
  --accent-ink: #84262f; /* burgundy: names, headings, buttons */
  --on-accent: #fff;
  --line: #e2cfbf;
  --card: #fffaf4;
  --panel: #efe4d6;
  --glass: rgb(255 250 244 / .68);
  --glass-line: rgb(255 255 255 / .75);
  --serif: 'Lusitana', Georgia, serif;
  --sans: 'Lora', Georgia, serif;
  --display: 'Pinyon Script', 'Lusitana', cursive;
  --photo-radius: 50%;
  --scene: url(/assets/themes/taman/scene.webp);
  --spray: url(/assets/themes/taman/spray.webp);
  --side-w: 31%;
  --side-ratio: .653;
  --gate-bg: url(/assets/themes/taman/garland.webp) center bottom -2px / 125% auto no-repeat, linear-gradient(rgb(244 237 226 / .2), rgb(244 237 226 / .55)), var(--scene) center / cover no-repeat, var(--bg);
}
body { font-weight: 400; font-size: 1.02rem; }
/* The garden stays put while the page scrolls (a fixed layer: iPhone Safari ignores background-attachment). */
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: linear-gradient(rgb(244 237 226 / .3), rgb(244 237 226 / .5)), var(--scene) center top / cover no-repeat; }
@media (min-width: 900px) { body::before { left: auto; width: 480px; } }

h1, h2, .sign, .side-names, .gate-names, .event h3 { font-family: var(--display); font-weight: 400; color: var(--accent-ink); }
h1 { font-size: 3.4rem; line-height: 1.15; margin: .5rem 0 .25rem; }
h2 { font-size: 2.6rem; }
.person h2, .wish strong { font-family: var(--serif); font-weight: 700; color: var(--ink); }
.and { font-family: var(--sans); font-style: italic; font-size: .62em; padding: 0 .1em; } /* Pinyon draws & as an old "Et" */
.eyebrow { font: 400 .8rem var(--serif); letter-spacing: .28em; color: var(--accent-ink); }
.btn { padding: .6rem 1.5rem; border-color: var(--accent-ink); background: var(--accent-ink); color: #fff; font: italic 400 .95rem var(--serif); box-shadow: 0 8px 18px -12px rgb(90 20 30 / .8); }
.ig { padding: .45rem 1.1rem; border-radius: 999px; background: var(--accent-ink); color: #fff; font-style: italic; }
.date-block strong { color: var(--accent-ink); border-color: var(--accent); }

/* Opening page: the garden, roses along the bottom, a spray hanging on each side. */
.gate { padding-bottom: 10rem; }
.gate .eyebrow { font-size: 1.05rem; letter-spacing: .12em; text-transform: none; }
.gate-names { font-size: 3.2rem; }
.gate .to { margin: 1.75rem 0 1.5rem; padding: 1.25rem 2.25rem; border: 1px solid var(--glass-line); border-radius: 22px; background: rgb(255 246 243 / .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); color: var(--accent-ink); }
.gate .guest { font: 700 1.3rem var(--serif); color: var(--accent-ink); }
.gate::before, .gate::after { content: ''; position: absolute; top: 34%; width: 36%; aspect-ratio: var(--side-ratio); background: var(--spray) center / contain no-repeat; transform-origin: 50% 0; }
.gate::before { left: -12%; }
.gate::after { right: -12%; scale: -1 1; }

/* Capsule cover: a spray at each top corner, outside the glass. */
.cover.cover-capsule::before, .cover.cover-capsule::after { content: ''; position: absolute; z-index: 2; top: -1rem; width: 40%; aspect-ratio: var(--side-ratio); background: var(--spray) center / contain no-repeat; transform-origin: 50% 0; pointer-events: none; }
.cover.cover-capsule::before { left: -14%; }
.cover.cover-capsule::after { right: -14%; scale: -1 1; }
.cover-capsule h1 { margin-top: 0; }
.cover-capsule .eyebrow { margin: 0; }

/* Section sprays (.sides in classic.css) and the photos' own ornaments: a spray on the right edge, a butterfly
   floating by on the left. */
.corner::before, .corner::after { background: var(--spray) center / contain no-repeat; }
.photo { width: 250px; height: 330px; border: 5px solid #fffaf4; box-shadow: 0 20px 40px -26px rgb(60 25 30 / .6); }
.photo-wrap::after { content: ''; position: absolute; z-index: 2; right: -14%; bottom: -6%; width: 42%; aspect-ratio: var(--side-ratio); background: var(--spray) center / contain no-repeat; scale: -1 1; pointer-events: none; }
.photo-wrap::before { content: ''; position: absolute; z-index: 2; left: -8%; top: 46%; width: 46px; aspect-ratio: 1.2; background: #c25d74; -webkit-mask: url(/assets/ornaments/kupu.svg) center / contain no-repeat; mask: url(/assets/ornaments/kupu.svg) center / contain no-repeat; rotate: -14deg; pointer-events: none; }

blockquote { font-style: italic; color: var(--accent-ink); }
/* Save the Date: the rose garland closes the section. */
.save-date h2 { font-size: 3rem; }
.save-date::after { content: ''; display: block; width: calc(100% + 2.5rem); aspect-ratio: 900 / 317; margin: 1.75rem -1.25rem 0; background: url(/assets/themes/taman/garland.webp) center / contain no-repeat;
  -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); } /* the art is cut flat at the bottom */
.ticket-head { background: #5d1820; }
.amp { font: italic 400 2.4rem var(--sans); color: var(--accent-ink); }
.event .when { font: 700 .9rem var(--serif); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.event h3 { font-size: 2.6rem; margin: .25rem 0; }
.event .time { font: 700 1.1rem var(--serif); }
.event strong { font-family: var(--serif); text-transform: uppercase; letter-spacing: .04em; }
.countdown div { border: 0; background: none; }
.countdown strong { font: 400 2.6rem/1 var(--serif); color: var(--accent-ink); }
.countdown span { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: .95rem; }
.wish { border-color: var(--glass-line); background: var(--glass); }
.sign { font-size: 3.4rem; line-height: 1.1; }
.sign .and { display: block; font-size: .5em; }
footer { max-width: none; background: #5d1820; color: #f3e4d8; }
footer a { color: inherit; }

@media (prefers-reduced-motion: no-preference) {
  .gate::before, .cover.cover-capsule::before { animation: wave 3s ease-in-out infinite alternate; }
  .gate::after, .cover.cover-capsule::after { animation: wave 2.8s ease-in-out infinite alternate-reverse; }
  .photo-wrap::before { animation: flutter 4s ease-in-out infinite alternate-reverse; }
}
@keyframes flutter { to { translate: 6px -40px; } }

@media (min-width: 900px) {
  .side.has-photo :is(.side-names, .date-block strong) { color: #fff; }
  .side { background: linear-gradient(rgb(244 237 226 / .55), rgb(244 237 226 / .75)), var(--scene) center / cover; }
  .side:not(.has-photo)::before { border: 0; opacity: 1; top: auto; bottom: -4%; right: -6%; width: 44%; aspect-ratio: var(--side-ratio); border-radius: 0; background: var(--spray) center / contain no-repeat; }
}
