/* =========================================================================
   ISLA — tropical / beach (the 2026 "vibrant but not cartoonish" tropical trend)
   Signature idea: the invitation is hidden behind monstera and palm leaves that
   part when tapped, revealing a sunset over the sea. An "island guide" section
   covers getting there, where to stay and what to pack.
   Type: Gloock (display) · Caveat (handwritten) · Outfit (text)
   ========================================================================= */
@font-face { font-family: "Gloock"; src: url("../fonts/isla/gloock-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/isla/caveat-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/isla/outfit-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/isla/outfit-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #fbf5ea; --paper: #fffcf6; --ink: #23352b; --muted: #66756b; --line: rgba(35, 53, 43, .14);
  --accent: #b1634d; --accent-ink: #fff; --leaf: #2f5d46; --leaf-2: #4f8a5f; --sun: #f2b84b; --sea: #3a8f8a; --sky-1: #f6c58a; --sky-2: #ee8f6f;
  --display: "Gloock", Georgia, serif; --hand: "Caveat", cursive; --text: "Outfit", system-ui, sans-serif;
  --radius: 22px; --maxw: 600px;
}
body { background: var(--bg); }
.lf { fill: var(--leaf); } .lf-rib { fill: none; stroke: color-mix(in srgb, var(--leaf) 60%, #000); stroke-width: 2.4; }

/* ---------- Intro: the leaves part ---------- */
.is-intro { --intro-ms: 1700; overflow: hidden; background: linear-gradient(180deg, var(--sky-1), var(--sky-2) 70%, var(--sea)); transition: opacity .6s ease 1.1s, visibility 0s linear 1.7s; }
.is-intro .is-sun { position: absolute; left: 50%; top: 42%; width: 160px; height: 160px; margin: -80px; border-radius: 50%; background: radial-gradient(circle, #fff3d0, var(--sun) 60%, transparent 72%); }
.is-intro-text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.is-intro-names { font-family: var(--display); font-size: clamp(2.4rem, 11vw, 3.6rem); line-height: 1.05; padding: 0 20px; }
.is-intro-date { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
.is-lf { position: absolute; z-index: 2; width: 70vmax; max-width: 560px; height: auto; transition: transform 1.1s cubic-bezier(.6,0,.25,1); will-change: transform; }
.is-lf.l1 { left: -26%; top: -16%; transform: rotate(140deg); } .is-lf.l2 { right: -30%; top: -12%; transform: rotate(-150deg); }
.is-lf.l3 { left: -34%; top: 30%; transform: rotate(60deg); } .is-lf.l4 { right: -32%; top: 34%; transform: rotate(-80deg); }
.is-lf.l5 { left: -20%; bottom: -26%; transform: rotate(20deg); } .is-lf.l6 { right: -24%; bottom: -24%; transform: rotate(-30deg); }
.is-lf .lf { fill: var(--leaf); } .is-lf.l2 .lf, .is-lf.l3 .lf, .is-lf.l6 .lf { fill: var(--leaf-2); }
.is-open { position: absolute; z-index: 3; left: 50%; bottom: calc(40px + env(safe-area-inset-bottom)); transform: translateX(-50%); min-height: 52px; padding: 12px 26px; border: 0; border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 1rem var(--text); box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); cursor: pointer; white-space: nowrap; }
.is-opening .l1 { transform: translate(-60%, -50%) rotate(170deg); } .is-opening .l2 { transform: translate(60%, -50%) rotate(-180deg); }
.is-opening .l3 { transform: translate(-80%, 0) rotate(40deg); } .is-opening .l4 { transform: translate(80%, 0) rotate(-60deg); }
.is-opening .l5 { transform: translate(-60%, 60%) rotate(0); } .is-opening .l6 { transform: translate(60%, 60%) rotate(-10deg); }
.is-opening .is-open { opacity: 0; transition: opacity .3s; }

/* ---------- Headings & wave dividers ---------- */
.t-isla .sh-k { font-family: var(--hand); font-size: 1.7rem; letter-spacing: 0; text-transform: none; color: var(--accent); margin-bottom: 0; }
.t-isla .sh-t { color: var(--ink); }
.t-isla .s:not(.s-hero):not(.s-closing) { position: relative; }
.t-isla .s:nth-of-type(odd):not(.s-hero) { background: color-mix(in srgb, var(--sea) 10%, var(--bg)); }
.t-isla .s:nth-of-type(odd):not(.s-hero)::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 15px; max-width: none; background: inherit;
  -webkit-mask: radial-gradient(14px 15px at 50% 100%, #000 98%, transparent) 0 0 / 28px 15px repeat-x; mask: radial-gradient(14px 15px at 50% 100%, #000 98%, transparent) 0 0 / 28px 15px repeat-x; }

/* ---------- Hero: sunset over the sea ---------- */
.t-isla .s-hero { position: relative; overflow: hidden; padding: 0 22px 60px; align-content: start; min-height: 100svh; }
.is-sky { position: relative; height: 230px; margin: 0 -22px 0; max-width: none !important; background: linear-gradient(180deg, var(--sky-1), var(--sky-2)); overflow: hidden; }
.is-sky .is-sun { position: absolute; left: 50%; bottom: 10px; width: 120px; height: 120px; margin-left: -60px; border-radius: 50%; background: radial-gradient(circle, #fff3d0, var(--sun) 62%, transparent 72%); }
.is-sea { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 60px; }
.is-sea path { fill: var(--sea); } .is-sea .sea-2 { fill: var(--bg); }
.is-corner { position: absolute; width: 120px; height: auto; opacity: .95; pointer-events: none; }
.is-corner.c1 { left: -62px; top: 170px; transform: rotate(40deg); }
.is-corner.c2 { right: -66px; top: 186px; transform: rotate(-60deg); }
.is-corner.c2 .lf { fill: var(--leaf-2); }
.t-isla .hero-in { position: relative; z-index: 1; margin-top: 18px; padding: 0 30px; }
.t-isla .hero-guest { font-family: var(--hand); font-size: 1.5rem; color: var(--accent); }
.is-script { font-family: var(--hand); font-size: 1.8rem; color: var(--accent); margin-bottom: 0; }
.t-isla .hero-t { display: flex; flex-direction: column; align-items: center; font-size: clamp(3rem, 15vw, 5rem); line-height: 1; color: var(--ink); }
.t-isla .hero-t .amp { font-family: var(--hand); font-style: normal; font-size: .6em; color: var(--accent); }
.t-isla .hero-line { max-width: 20em; margin: 14px auto; color: var(--muted); }
.t-isla .hero-date { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 2px; }
.t-isla .hero-place { color: var(--muted); }
.t-isla .hero-cta { background: var(--accent); font-weight: 600; letter-spacing: .06em; }

/* ---------- Island guide ---------- */
.guide { display: grid; gap: 12px; }
.gd { background: var(--paper); border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: 0 14px 30px -24px var(--ink); display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; }
.gd-ic { grid-row: span 2; font-size: 1.8rem; line-height: 1; }
.gd-t { font-family: var(--display); font-size: 1.3rem; margin-bottom: 4px; }
.gd-d { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Other sections ---------- */
.t-isla .cd-u { background: var(--paper); border-radius: 50%; aspect-ratio: 1; display: grid; place-content: center; box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.t-isla .cd-u b { color: var(--ink); font-size: clamp(1.6rem, 8vw, 2.4rem); }
.t-isla .cd-u span { font-size: .66rem; }
.t-isla .btn-line { border-color: var(--leaf); color: var(--leaf); font-weight: 600; }
.t-isla .btn-line:hover { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.t-isla .story-body p { text-align: center; }
.t-isla .tl-i { border-bottom: 2px dotted var(--line); }
.t-isla .tl-time { color: var(--accent); font-weight: 600; }
.t-isla .tl-title { font-family: var(--display); font-weight: 400; font-size: 1.2rem; }
.t-isla .vn-c { border: 0; border-radius: var(--radius); box-shadow: 0 14px 30px -24px var(--ink); }
.t-isla .vn-l { color: var(--accent); font-weight: 600; }
.t-isla .pp-h { font-family: var(--hand); font-size: 1.6rem; color: var(--accent); }
.t-isla .sw-dot { border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.t-isla .dr-text { font-size: 1.05rem; }
.t-isla .faq summary { font-family: var(--display); font-weight: 400; font-size: 1.15rem; }
.t-isla .rs, .t-isla .rs-done { border: 0; border-radius: 26px; box-shadow: 0 20px 40px -28px var(--ink); }
.t-isla .f-in, .t-isla .ch span { border-radius: 16px; }
.t-isla .rs-btn { background: var(--accent); font-weight: 600; }
.t-isla .rs-done-t { color: var(--ink); }
.t-isla .cl-line { font-family: var(--hand); font-size: 2.4rem; color: var(--accent); line-height: 1.1; }
.t-isla .cl-sign { font-family: var(--display); font-size: 1.4rem; color: var(--ink); }

@media (min-width: 720px) {
  .guide { grid-template-columns: repeat(3, 1fr); }
  .gd { grid-template-columns: 1fr; }
  .gd-ic { grid-row: auto; margin-bottom: 6px; }
}
/* hero is a block, so the sky band can span the full width */
.t-isla .s-hero { display: block; text-align: center; }
.t-isla .is-sky { width: calc(100% + 44px); }

/* ---------- sunset-arch cover & island-hopping gallery ---------- */
.il-sun { position: relative; margin: 0 auto; max-width: 400px; padding: 12px 12px 0; border-radius: 999px 999px var(--radius) var(--radius); background: linear-gradient(180deg, var(--sky-1), var(--sky-2)); }
.il-simg { border-radius: 999px 999px 14px 14px; background: color-mix(in srgb, var(--sun) 35%, var(--paper)); }
.il-lf { position: absolute; width: 34%; z-index: 2; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(35,53,43,.25)); }
.il-lf1 { left: -12%; bottom: -6%; transform: rotate(-28deg); transform-origin: 50% 100%; animation: il-sway 6s ease-in-out infinite; }
.il-lf2 { right: -12%; bottom: 6%; width: 28%; transform: rotate(30deg) scaleX(-1); transform-origin: 50% 100%; animation: il-sway2 7s ease-in-out infinite; }
@keyframes il-sway { 50% { transform: rotate(-22deg); } } @keyframes il-sway2 { 50% { transform: rotate(36deg) scaleX(-1); } }
.il-isle { width: min(70vw, 270px); margin: 0; }
.il-iimg { aspect-ratio: 4 / 5; border-radius: var(--radius) var(--radius) 0 0; background: color-mix(in srgb, var(--sea) 20%, var(--paper));
  -webkit-mask: radial-gradient(14px at 50% calc(100% + 6px), transparent 98%, #000) 50% 0 / 40px 100% repeat-x; mask: radial-gradient(14px at 50% calc(100% + 6px), transparent 98%, #000) 50% 0 / 40px 100% repeat-x; }
.il-isle figcaption { margin-top: 6px; display: grid; gap: 2px; font: 1.15rem/1.2 var(--hand); color: var(--ink); }
.il-isle figcaption span { font: 600 .7rem var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--sea); }
.il-isle:not(.is-current) .il-iimg { opacity: .82; }
.il-gal .swipe-dots { color: var(--sea); }
@media (prefers-reduced-motion: reduce) { .il-lf { animation: none; } }
