/* The Wedding Times */
:root {
  --news: #f4efe4; --news-2: #ebe4d3; --print: #1a1a1a; --red-ink: #8c1c13;
  --bg: #d8d0bd; --ink: var(--print); --muted: #4d4a43; --accent: var(--red-ink); --accent-ink: #fff;
  --card: var(--news); --line: rgba(26, 26, 26, .55);
  --font-display: "Playfair Display", Georgia, serif; --font-body: "Old Standard TT", Georgia, serif; --font-script: "Playfair Display", serif;
  --font-label: "Old Standard TT", Georgia, serif; --font-ta: "Noto Serif Tamil", serif; --radius: 0;
}
body { font-size: 17px; }
.sec { max-width: 900px; margin: 0 auto; padding-top: 48px; padding-bottom: 48px; border-top: 3px double var(--print); }
.sec h2 { font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; font-size: clamp(30px, 6vw, 48px); }
.sec h2 [lang="ta"] { font-family: var(--font-ta); font-weight: 700; text-transform: none; font-size: .7em; }
.eyebrow { color: var(--red-ink); font-family: var(--font-label); font-style: italic; text-transform: none; letter-spacing: .02em; font-size: 16px; }

.wt-mast { font-family: "UnifrakturMaguntia", serif; font-size: clamp(44px, 11vw, 92px); line-height: 1; text-align: center; color: var(--print); }
.wt-edbar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--print); border-bottom: 3px double var(--print); padding: 6px 0; margin: 10px 0 18px;
  font-family: var(--font-label); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.wt-edbar [lang="ta"] { text-transform: none; letter-spacing: 0; }
.wt-head { font-family: var(--font-display); font-weight: 900; font-size: clamp(40px, 10vw, 86px); line-height: .95; text-align: center; letter-spacing: -.02em; }
.wt-head [lang="ta"] { font-family: var(--font-ta); font-weight: 700; font-size: .6em; line-height: 1.3; }

/* ---------- intro: folded paper ---------- */
.wt-intro { background: radial-gradient(ellipse at 50% 30%, #6b6152, #2b261e); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 18px; perspective: 1500px;
  transition: opacity .7s ease 1.5s, visibility 0s linear 2.2s; }
.wt-fold { position: relative; width: min(94vw, 560px); transform-style: preserve-3d; transform: rotate(-3deg); transition: transform 1.3s cubic-bezier(.6, 0, .2, 1) .5s; }
.wt-fold-top { background: var(--news); padding: 20px 18px 26px; box-shadow: 0 20px 40px rgba(0,0,0,.5); position: relative; z-index: 1; }
.wt-fold-top .wt-mast { font-size: clamp(38px, 10vw, 62px); }
.wt-fold-top .wt-head { font-size: clamp(32px, 8vw, 56px); }
.wt-fold-bottom { position: absolute; left: 0; right: 0; top: 100%; height: 100%; background: linear-gradient(var(--news-2), var(--news)) ; transform-origin: top; transform: rotateX(-178deg);
  background-image: repeating-linear-gradient(0deg, rgba(26,26,26,.22) 0 1px, transparent 1px 9px); transition: transform 1s cubic-bezier(.6, 0, .2, 1); }
.wt-extra { position: absolute; top: -18px; right: -10px; z-index: 2; background: var(--red-ink); color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 22px; padding: 6px 12px; transform: rotate(10deg); box-shadow: 0 8px 16px rgba(0,0,0,.4); }
.wt-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; transition: opacity .4s; }
.wt-cta { background: var(--news); color: var(--print); font-family: var(--font-label); font-weight: 700; }
.wt-lang { background: transparent; color: var(--news); border: 1px solid rgba(244,239,228,.4); border-radius: 999px; padding: 7px 14px; font-size: 14px; }
html.intro-opening .wt-fold-bottom { transform: rotateX(0); }
html.intro-opening .wt-fold { transform: rotate(0) translateY(-25%) scale(1.4); }
html.intro-opening .wt-actions, html.intro-opening .wt-extra { opacity: 0; }
html.intro-opening .wt-intro { opacity: 0; visibility: hidden; }

/* ---------- front page ---------- */
.wt-front { max-width: 960px; margin: 0 auto; background: var(--news); padding: clamp(20px, 5vw, 44px) clamp(16px, 4vw, 40px); box-shadow: 0 0 0 1px rgba(0,0,0,.1), 0 30px 60px -30px rgba(0,0,0,.5); }
.wt-deck { text-align: center; font-style: italic; font-size: clamp(18px, 2.6vw, 22px); margin: 14px auto 22px; max-width: 640px; }
.wt-photo { margin: 0 0 20px; border: 1px solid var(--print); padding: 8px; }
.wt-photo img, .wt-engraving { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.wt-photo figcaption { font-family: var(--font-label); font-size: 13px; font-style: italic; margin-top: 6px; }
.wt-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; text-align: left; }
.wt-lede { column-count: 2; column-gap: 22px; column-rule: 1px solid var(--line); text-align: justify; hyphens: auto; }
.wt-lede::first-letter { float: left; font-family: var(--font-display); font-weight: 900; font-size: 64px; line-height: .8; padding: 6px 8px 0 0; }
.wt-side { border-left: 1px solid var(--print); padding-left: 18px; font-size: 15px; display: grid; gap: 12px; align-content: start; }
.wt-kicker { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; border-bottom: 2px solid var(--print); padding-bottom: 4px; }
@media (max-width: 640px) { .wt-cols { grid-template-columns: 1fr; } .wt-lede { column-count: 1; } .wt-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--print); padding-top: 12px; } }

/* ---------- inside pages ---------- */
.wt-paper { max-width: 960px; margin: 24px auto 0; background: var(--news); padding: 0 clamp(16px, 4vw, 40px); box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.scratch { --foil-1: #8b8577; --foil-2: #d8d1bf; --foil-3: #6e695d; --foil-label: "Scratch the ink"; --burst: #1a1a1a, #8c1c13, #f4efe4; border: 1px solid var(--print); background: #fff; }
.dcell b { font-family: var(--font-display); font-weight: 900; }
.events { gap: 0; }
.event { padding: 18px 0; border-bottom: 1px solid var(--line); }
.event-date { border-right: 1px solid var(--print); padding-right: 16px; }
.event-date b { font-family: var(--font-display); font-weight: 900; }
.event h3 { font-family: var(--font-display); font-weight: 700; }
.cd-grid { border: 3px double var(--print); gap: 0; }
.cd-cell { border-radius: 0; }
.cd-cell + .cd-cell { border-left: 1px solid var(--print); }
.cd-cell b { font-family: var(--font-display); font-weight: 900; }
.faq-item, .info-card { border-radius: 0; border-color: var(--print); background: transparent; }
.rsvp-form { border: 2px dashed var(--print); border-radius: 0; background: #fff; position: relative; }
.rsvp-form::before { content: "✂"; position: absolute; top: -14px; left: 18px; background: var(--news); padding: 0 6px; font-size: 18px; }
.venue h3 { font-family: var(--font-display); font-weight: 900; }
.map { filter: grayscale(1) contrast(1.1); border-radius: 0; border: 1px solid var(--print); }
.btn { border-radius: 0; background: var(--print); border-color: var(--print); color: var(--news); }
.btn-wa { background: var(--print); border-color: var(--print); }
.btn-ghost { background: transparent; color: var(--print); border-color: var(--print); }
.note blockquote { font-family: var(--font-display); font-weight: 700; }
.signature { font-family: var(--font-display); font-style: italic; }
.foot { border-top: 3px double var(--print); }
.foot-names { font-family: "UnifrakturMaguntia", serif; }
@media (max-width: 560px) {
  .event { grid-template-columns: 1fr; text-align: center; }
  .event-date { border-right: 0; border-bottom: 1px solid var(--print); padding: 0 0 8px; display: flex; gap: 10px; justify-content: center; align-items: baseline; }
}
