/* ══ Terracotta Warmth — pasir hangat · tanah liat · umber tua ══
   Prefix: tc- · Fonts: Playfair Display (display) · Lato (body) */

:root {
  --tc-sand: #F1E5D6;
  --tc-sand-2: #E8D5C0;
  --tc-clay: #C4674F;
  --tc-clay-2: #A6513C;
  --tc-ochre: #DDA25C;
  --tc-umber: #4A322A;
  --tc-body: #6B5147;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Lato", system-ui, sans-serif;
  background: var(--tc-sand-2);
  color: var(--tc-body);
  -webkit-font-smoothing: antialiased;
}
body:not(.is-open) { overflow: hidden; }

/* ── grain overlay ── */
.tc-grain {
  position: fixed; inset: 0; z-index: 80; pointer-events: none;
  width: 100%; height: 100%; opacity: .055; mix-blend-mode: multiply;
}

/* ── page frame ── */
.tc-page {
  max-width: 480px; margin: 0 auto; background: var(--tc-sand);
  box-shadow: 0 0 60px rgba(74,50,42,.3); position: relative; overflow-x: clip;
}

/* ── cover: walk through the arch ── */
.tc-cover {
  position: fixed; inset: 0; z-index: 100;
  max-width: 480px; margin: 0 auto;
  background: var(--tc-sand);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: opacity 1s ease, visibility 0s 1.05s;
}
.tc-arch { position: absolute; top: 6%; left: 50%; transform: translateX(-50%); width: 300px; }
.tc-arch svg { display: block; width: 100%; height: auto; }
body.is-open .tc-cover { opacity: 0; visibility: hidden; pointer-events: none; }
body.is-open .tc-arch { animation: tc-walk 1.15s cubic-bezier(.6,0,.4,1) forwards; }
@keyframes tc-walk {
  0% { transform: translateX(-50%) scale(1); opacity: 1; }
  100% { transform: translateX(-50%) scale(4.6); opacity: 0; }
}
.tc-cover-inner {
  position: relative; text-align: center; color: var(--tc-umber);
  padding: 32px 28px; transition: opacity .5s ease, transform .5s ease;
}
body.is-open .tc-cover-inner { opacity: 0; transform: scale(1.12); }

.tc-cover-kicker { font-size: 11px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--tc-clay); margin-bottom: 8px; }
.tc-cover-names {
  font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-style: italic;
  font-size: 52px; line-height: 1.1; color: #FDF4E9;
  text-shadow: 0 2px 18px rgba(74,50,42,.4);
}
.tc-cover-names span { display: block; font-size: 22px; font-style: normal; color: #F3D9BE; margin: 4px 0; }
.tc-cover-date { font-size: 14px; letter-spacing: .1em; color: #F3D9BE; }
.tc-cover-guest { margin: 28px 0 24px; font-size: 14px; color: #5d4436; }
.tc-guest-name {
  font-family: "Playfair Display", serif; font-size: 22px; font-weight: 500; color: var(--tc-umber);
  margin: 6px 0 4px;
}
.tc-guest-note { font-size: 11px; color: #8a6f60; }
.tc-open-btn {
  font-family: "Lato", sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #FDF4E9; background: var(--tc-clay);
  border: none; border-radius: 999px; padding: 15px 40px; cursor: pointer;
  box-shadow: 0 12px 26px -10px rgba(166,81,60,.8);
  transition: transform .25s ease, background .25s ease;
}
.tc-open-btn:hover { transform: translateY(-2px); background: var(--tc-clay-2); }
.tc-cover-foot { margin-top: 20px; font-size: 10.5px; letter-spacing: .26em; color: #8a6f60; }

/* ── hero ── */
.tc-hero { position: relative; text-align: center; padding: 56px 26px 0; }
.tc-hero-grass { display: block; width: 100%; height: 70px; }
.tc-hero-intro { font-size: 13.5px; line-height: 1.7; color: var(--tc-body); max-width: 34ch; margin: 0 auto 16px; }
.tc-hero-names {
  font-family: "Playfair Display", serif; font-weight: 500; font-size: 54px; line-height: 1.08;
  color: var(--tc-umber);
}
.tc-hero-names em { display: block; font-size: 22px; font-style: italic; color: var(--tc-clay); margin: 8px 0; }
.tc-hero-date { margin-top: 12px; font-size: 15px; letter-spacing: .12em; color: var(--tc-body); }

.tc-cd {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin: 34px auto 54px; max-width: 350px;
}
.tc-cd-cell {
  background: #FBF3E8; border: 1px solid #E3CBB4;
  border-radius: 999px 999px 14px 14px; padding: 16px 4px 10px; text-align: center;
}
.tc-cd-cell b {
  display: block; font-family: "Playfair Display", serif; font-weight: 500; font-size: 24px;
  color: var(--tc-clay-2); font-variant-numeric: tabular-nums;
}
.tc-cd-cell span { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #8a6f60; }

/* ── sections ── */
.tc-section { padding: 52px 26px; }
.tc-sec-head { text-align: center; margin-bottom: 32px; }
.tc-sec-kicker { font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--tc-clay); margin-bottom: 8px; }
.tc-sec-kicker::before, .tc-sec-kicker::after { content: "·"; margin: 0 8px; color: var(--tc-ochre); }
.tc-sec-title { font-family: "Playfair Display", serif; font-weight: 500; font-size: 27px; line-height: 1.3; color: var(--tc-umber); }

/* ── couple ── */
.tc-couple-card { text-align: center; }
.tc-arch-portrait {
  width: 92px; height: 108px; margin: 0 auto 16px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, var(--tc-clay), var(--tc-clay-2));
  border-radius: 999px 999px 0 0;
  box-shadow: inset 0 0 0 4px var(--tc-sand), inset 0 0 0 5px var(--tc-ochre);
}
.tc-arch-portrait span {
  font-family: "Playfair Display", serif; font-size: 26px; font-weight: 500; color: #FDF4E9;
  letter-spacing: .04em; padding-top: 14px;
}
.tc-couple-name { font-family: "Playfair Display", serif; font-weight: 500; font-size: 23px; color: var(--tc-umber); }
.tc-couple-parents { margin-top: 10px; font-size: 13.5px; line-height: 1.65; color: var(--tc-body); }
.tc-couple-ig { margin-top: 8px; font-size: 12.5px; color: var(--tc-clay); letter-spacing: .04em; }
.tc-couple-amp {
  text-align: center; font-family: "Playfair Display", serif; font-style: italic;
  font-size: 30px; color: var(--tc-clay); margin: 14px 0;
}

/* ── events ── */
.tc-events { background: linear-gradient(180deg, #EFE0CC 0%, var(--tc-sand) 100%); }
.tc-event {
  text-align: center; padding: 30px 22px 24px; margin-bottom: 16px;
  background: #FBF3E8; border: 1px solid #E3CBB4;
  border-radius: 130px 130px 16px 16px;
}
.tc-event-title { font-family: "Playfair Display", serif; font-weight: 500; font-size: 22px; color: var(--tc-umber); }
.tc-event-time { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--tc-clay); }
.tc-event-date { font-size: 13px; color: #8a6f60; margin-top: 2px; }
.tc-event-venue { margin-top: 12px; font-size: 15px; font-weight: 700; color: var(--tc-umber); }
.tc-event-addr { font-size: 13px; color: var(--tc-body); line-height: 1.55; margin-top: 3px; }
.tc-cal { margin-top: 14px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.tc-cal a {
  font-size: 12px; font-weight: 700; text-decoration: none;
  color: var(--tc-clay-2); border: 1px solid var(--tc-clay);
  padding: 7px 13px; border-radius: 999px; transition: background .2s ease, color .2s ease;
}
.tc-cal a:hover { background: var(--tc-clay); color: #FDF4E9; }

.tc-maps { margin-top: 8px; }
.tc-map-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: #FBF3E8; border: 1px solid #E3CBB4;
  border-radius: 999px 999px 0 0; overflow: hidden;
}
.tc-map-tab {
  appearance: none; border: none; background: transparent; cursor: pointer;
  padding: 11px 0; font-family: "Lato", sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: .08em; color: var(--tc-umber);
}
.tc-map-tab.is-active { background: var(--tc-clay); color: #FDF4E9; }
.tc-map { display: block; width: 100%; height: 230px; border: 1px solid #E3CBB4; border-top: none; border-radius: 0 0 14px 14px; }

/* ── story ── */
.tc-story { list-style: none; position: relative; padding-left: 26px; }
.tc-story::before {
  content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(180deg, var(--tc-clay), var(--tc-ochre));
}
.tc-story-item { position: relative; padding: 0 0 30px 16px; }
.tc-story-item:last-child { padding-bottom: 0; }
.tc-story-item::before {
  content: ""; position: absolute; left: -21px; top: 6px; width: 12px; height: 14px;
  background: var(--tc-sand); border: 2px solid var(--tc-clay);
  border-radius: 999px 999px 0 0;
}
.tc-story-year { font-family: "Playfair Display", serif; font-size: 15px; font-weight: 500; color: var(--tc-clay); letter-spacing: .06em; }
.tc-story-title { font-family: "Playfair Display", serif; font-weight: 500; font-size: 19px; color: var(--tc-umber); margin: 4px 0 6px; }
.tc-story-text { font-size: 14px; line-height: 1.7; color: var(--tc-body); }

/* ── gallery ── */
.tc-gallery-sec { background: #EFE0CC; }
.tc-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tc-g-item {
  border-radius: 90px 90px 12px 12px; overflow: hidden; cursor: zoom-in;
  box-shadow: 0 10px 24px -14px rgba(74,50,42,.5);
  transition: transform .25s ease;
 aspect-ratio: 4/3; overflow: hidden; }
.tc-g-item:hover { transform: translateY(-3px); }
.tc-g-item svg { display: block; width: 100%; height: auto; }
.tc-g-item img { display: block; width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; }
.tc-g-item { color: #A6513C; }

/* ── forms ── */
.tc-form { display: grid; gap: 18px; }
.tc-field { display: grid; gap: 7px; border: none; }
.tc-field span, .tc-field legend { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tc-clay-2); }
.tc-field input, .tc-field select, .tc-field textarea {
  font-family: "Lato", sans-serif; font-size: 15px; color: var(--tc-umber);
  background: #FBF3E8; border: 1.6px solid #E3CBB4; border-radius: 12px; padding: 12px 14px;
  outline: none; width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.tc-field input:focus, .tc-field select:focus, .tc-field textarea:focus {
  border-color: var(--tc-clay); box-shadow: 0 0 0 3px rgba(196,103,79,.15);
}
.tc-field textarea { resize: vertical; }
.tc-radios { display: block; }
.tc-radios label { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--tc-body); padding: 6px 0; text-transform: none; letter-spacing: 0; }
.tc-radios input { accent-color: var(--tc-clay); width: 17px; height: 17px; }
.tc-submit {
  justify-self: center; appearance: none; border: none; cursor: pointer;
  font-family: "Lato", sans-serif; font-size: 13.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #FDF4E9; background: var(--tc-clay);
  padding: 14px 38px; border-radius: 999px;
  box-shadow: 0 12px 26px -10px rgba(166,81,60,.8); transition: transform .2s ease, background .2s ease;
}
.tc-submit:hover { transform: translateY(-2px); background: var(--tc-clay-2); }
.tc-thanks {
  text-align: center; font-family: "Playfair Display", serif; font-size: 19px;
  color: var(--tc-clay); padding: 26px 10px;
}

/* ── wishes ── */
.tc-wish-form { margin-bottom: 30px; }
.tc-wishes { display: grid; gap: 12px; margin-bottom: 18px; }
[data-wishes-list] .wish {
  background: #FBF3E8; border: 1px solid #E3CBB4; border-left: 3px solid var(--tc-clay);
  border-radius: 12px; padding: 15px 17px 13px;
}
[data-wishes-list] .wish h4 { font-family: "Playfair Display", serif; font-weight: 500; font-size: 16.5px; color: var(--tc-umber); }
[data-wishes-list] .wish p { font-size: 13.5px; line-height: 1.6; color: var(--tc-body); margin-top: 4px; }
[data-wishes-list] .wish time { display: block; font-size: 11px; color: #8a6f60; margin-top: 7px; letter-spacing: .04em; }
.tc-more {
  display: block; margin: 0 auto; appearance: none; cursor: pointer;
  background: none; border: 1.6px solid var(--tc-clay); color: var(--tc-clay-2);
  font-family: "Lato", sans-serif; font-size: 12.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 10px 22px; border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.tc-more:hover { background: var(--tc-clay); color: #FDF4E9; }

/* ── amplop ── */
.tc-amplop { background: linear-gradient(180deg, #EFE0CC 0%, var(--tc-sand) 100%); }
.tc-amplop-note { text-align: center; font-size: 13.5px; line-height: 1.7; color: var(--tc-body); max-width: 38ch; margin: 0 auto 24px; }
.tc-env {
  text-align: center; color: #FDF4E9;
  background: linear-gradient(180deg, var(--tc-clay), var(--tc-clay-2));
  border-radius: 110px 110px 16px 16px; padding: 30px 20px 20px; margin-bottom: 14px;
}
.tc-env-bank { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #F3D9BE; }
.tc-env-num { font-family: "Playfair Display", serif; font-size: 24px; letter-spacing: .06em; margin-top: 8px; }
.tc-env-holder { font-size: 12.5px; color: #F3D9BE; margin-top: 4px; }
.tc-copy {
  margin-top: 14px; appearance: none; cursor: pointer;
  background: #FDF4E9; color: var(--tc-clay-2); border: none;
  font-family: "Lato", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  padding: 8px 18px; border-radius: 999px; transition: background .2s ease;
}
.tc-copy:hover { background: var(--tc-ochre); }

/* ── closing ── */
.tc-closing { text-align: center; color: var(--tc-umber); padding: 56px 28px 40px; }
.tc-close-arch { width: 74px; height: auto; color: var(--tc-clay); margin-bottom: 14px; }
.tc-closing-text { font-size: 13.5px; line-height: 1.75; color: var(--tc-body); max-width: 36ch; margin: 0 auto 22px; }
.tc-closing-names {
  font-family: "Playfair Display", serif; font-style: italic; font-weight: 500;
  font-size: 38px; line-height: 1.2;
}
.tc-closing-fam { margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--tc-clay); }

/* ── music toggle ── */
.tc-music {
  position: fixed; right: 18px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 999px 999px 12px 12px;
  background: var(--tc-clay); color: #FDF4E9;
  border: none; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px -8px rgba(166,81,60,.85);
}
.tc-music svg { width: 21px; height: 21px; }
.tc-music.is-playing { animation: tc-pulse 2.4s ease infinite; }
@keyframes tc-pulse {
  0%, 100% { box-shadow: 0 10px 24px -8px rgba(166,81,60,.85), 0 0 0 0 rgba(221,162,92,.6); }
  55% { box-shadow: 0 10px 24px -8px rgba(166,81,60,.85), 0 0 0 12px rgba(221,162,92,0); }
}

/* ── reveal (behavior-critical) ── */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .85s ease, transform .85s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }

/* ── lightbox (theme flavor) ── */
.lb-overlay { font-family: "Lato", sans-serif; }
.map-open { color: var(--tc-clay); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  /* cover-open end-states so content remains reachable */
  body.is-open [data-cover] { opacity: 0 !important; visibility: hidden !important; }
}
