/* Pagi Sawah (Tema Fase 5, 4 Dec 2026): one day in the rice fields, dawn to dusk. Base layout from cine-seri.css;
 * this file gives the palette (rice green, morning gold, cream), the type (Marcellus for display, Mulish for
 * reading), a warm golden-hour grade over the photos, the sky that moves from dawn to dusk as the page scrolls, and
 * the pieces: the dawn cover over the terraces, the horizon, the sunrise arch, terraced frames, the growing rice
 * plant, the winding path, the sun that rises with the countdown, kites, field plots, the board at the hut, stalks
 * of rice and the dusk. */
@font-face { font-family: "Marcellus"; src: url("/frontend/assets/fonts/marcellus-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("/frontend/assets/fonts/mulish-latin.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }

:root {
    --c-night: #17241d; --c-ink: #f7efdc; --c-muted: rgba(247, 239, 220, .84); --c-accent: #e6b85c; /* 8:1 on field dark */ --c-accent-ink: #17241d;
    --c-line: rgba(230, 184, 92, .42); --c-glass: rgba(20, 34, 26, .68); --c-field: rgba(247, 239, 220, .08);
    --c-veil: rgba(16, 28, 21, .5); --c-shade-top: rgba(16, 28, 21, .8); --c-shade-foot: rgba(16, 28, 21, .92); --c-photo-foot: rgba(16, 28, 21, .95);
    --f-display: "Marcellus", Georgia, serif; --f-script: "Marcellus", Georgia, serif; --f-body: "Mulish", system-ui, sans-serif;
    --ct-shine: #fff1c4;
    --rice: #4f6b3a; --rice-hi: #8fb35a; --gold: #e6b85c; --cream: #f7efdc; --paper-ink: #23301c; --paper-muted: #4d5a3c; --soil: #8a6a3a;
    --path: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='80'%3E%3Cpath d='M12 0c10 20-10 20 0 40s-10 20 0 40' fill='none' stroke='%23e6b85c' stroke-width='2' stroke-dasharray='4 5'/%3E%3C/svg%3E");
}
:root[data-scheme="light"] {
    --c-night: #f7efdc; --c-ink: #23301c; --c-muted: #4d5a3c; --c-accent: #3f5a2a; /* 6.6:1 on cream */ --c-accent-ink: #fbf6e8;
    --c-line: rgba(63, 90, 42, .34); --c-glass: rgba(252, 248, 236, .9); --c-field: rgba(255, 255, 255, .72);
    --c-veil: rgba(247, 239, 220, .74); --c-shade-top: rgba(247, 239, 220, .9); --c-shade-foot: rgba(247, 239, 220, .94); --c-photo-foot: rgba(247, 239, 220, .95);
    --ct-shine: #a07820;
    --path: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='80'%3E%3Cpath d='M12 0c10 20-10 20 0 40s-10 20 0 40' fill='none' stroke='%233f5a2a' stroke-width='2' stroke-dasharray='4 5'/%3E%3C/svg%3E");
}
.cine-backdrop { background: radial-gradient(120% 80% at 50% 18%, #2a3d2c, #17241d 72%); }
.ps-amp { color: var(--c-accent); }

/* Golden hour on the photos (CSS only; the files are untouched). */
.cine-slide, .cine-backdrop-video, .cine-section-photo img { filter: sepia(.3) saturate(1.2) brightness(.9) contrast(1.02); }
.cs-sign { background: linear-gradient(180deg, rgba(230, 184, 92, .14), transparent 35%, transparent 70%, rgba(79, 107, 58, .2)); }

/* The sky over the page: dawn, morning, noon, afternoon and dusk, passed through as the page scrolls. It tints only
   the photo behind (the page sits above it). Without scroll-driven animation it stays at dawn. */
.ps-sky { position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 150, 120, .26), rgba(255, 205, 140, .16) 22%, rgba(255, 245, 215, .06) 42%, rgba(255, 230, 170, .1) 60%,
        rgba(240, 150, 60, .24) 80%, rgba(130, 60, 100, .32)); background-size: 100% 500%; background-position: 50% 0; }
:root[data-scheme="light"] .ps-sky { opacity: .6; }
@supports (animation-timeline: scroll()) {
    .ps-sky { animation: ps-day linear both; animation-timeline: scroll(root); }
}
@keyframes ps-day { to { background-position: 50% 100%; } }

/* ---- Cover: dawn over the terraces --------------------------------------------------------- */
.ps-opening { background: #17241d; }
.ps-opening .cine-opening-photo { filter: sepia(.35) saturate(1.1) brightness(.62); background-position: center 22%; }
.ps-opening .cine-opening-shade { background: linear-gradient(180deg, rgba(23, 36, 29, .78), rgba(23, 36, 29, .1) 34%, transparent 50%); }
.ps-dawn { position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.ps-sun { position: absolute; left: 50%; bottom: 26%; width: 8rem; aspect-ratio: 1; border-radius: 50%; translate: -50% 0;
    background: radial-gradient(circle, #ffe7a6 0 34%, #f3b85a 36% 46%, rgba(243, 184, 90, .35) 50%, transparent 70%); transition: transform 1.1s cubic-bezier(.3, .7, .2, 1) .1s; }
.ps-terraces { position: absolute; left: 0; bottom: 0; width: 100%; height: 44%; transition: transform .9s cubic-bezier(.6, 0, .3, 1) .45s, opacity .5s ease .9s; }
.ps-t1 { fill: #7d9a52; } .ps-t2 { fill: #5d7d3c; } .ps-t3 { fill: #45622c; } .ps-t4 { fill: #2f4620; }
.ps-rows { fill: none; stroke: rgba(240, 220, 150, .28); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.ps-mist { position: absolute; left: -25%; right: -25%; bottom: 30%; height: 3.6rem; border-radius: 50%; background: rgba(240, 236, 222, .5); filter: blur(16px); transition: opacity .6s ease; }
.ps-mist-late { bottom: 17%; height: 3rem; opacity: .8; }
@media (prefers-reduced-motion: no-preference) {
    .ps-mist { animation: ps-drift 16s ease-in-out infinite alternate; }
    .ps-mist-late { animation-duration: 21s; animation-direction: alternate-reverse; }
}
@keyframes ps-drift { to { transform: translateX(12%); } }
.ps-cover-top, .ps-cover-foot { position: relative; z-index: 2; text-align: center; }
.ps-cover-top > *, .ps-cover-foot > * { animation: cine-in 1.2s var(--ease-film) both; }
.ps-cover-top > :nth-child(2) { animation-delay: .2s; }
.ps-cover-foot > * { animation-delay: .5s; }
.ps-opening .cine-opening-kicker { color: #f3cf86; }
.ps-cover-names { margin: .5rem 0 0; color: #fbf4e2; font: 400 clamp(2.4rem, 11vw, 3.3rem)/1.08 var(--f-display); text-shadow: 0 2px 16px rgba(0, 0, 0, .45); }
.ps-cover-names .ps-amp { color: #f3cf86; }
.ps-cover-date { margin: .6rem 0 0; color: #f7efdc; font: 600 .95rem/1.4 var(--f-body); letter-spacing: .06em; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.ps-opening .cine-guest-label { color: #e9e2cc; }
.ps-opening .cine-guest-name { color: #fff8e6; font-family: var(--f-display); font-weight: 400; }
.ps-opening .cine-guest-note { color: #e9e2cc; }
.ps-opening .cine-opening-cta { background: var(--gold); color: #17241d; }
.ps-opening.is-closing { background-color: transparent; }
.ps-opening.is-closing .ps-sun { transform: translateY(-42vh) scale(1.25); }
.ps-opening.is-closing .ps-mist { opacity: 0; }
.ps-opening.is-closing .ps-terraces { transform: translateY(70%); opacity: 0; }
.ps-opening.is-closing .ps-cover-top > *, .ps-opening.is-closing .ps-cover-foot > * { animation: cine-out .6s ease-in both; }

/* ---- Home: the names on the horizon --------------------------------------------------------- */
.ps-hero .cine-block { text-align: center; margin-inline: auto; }
.ps-horizon { position: relative; display: block; width: min(15rem, 80%); height: 3rem; margin: 0 auto 1.2rem; border-bottom: 1px solid var(--c-accent); overflow: hidden; }
.ps-horizon i { position: absolute; left: 50%; bottom: -2.6rem; width: 5.2rem; aspect-ratio: 1; border-radius: 50%; translate: -50% 0;
    background: radial-gradient(circle, #ffe3a0 0 48%, rgba(243, 184, 90, .5) 56%, transparent 70%); }
.ps-names { margin: .5rem 0 0; color: var(--c-ink); font: 400 clamp(2.5rem, 12vw, 3.8rem)/1.08 var(--f-display); text-wrap: balance; }
.ps-date { margin-top: 1rem !important; color: var(--c-accent); font: 700 .85rem/1.4 var(--f-body); letter-spacing: .14em; text-transform: uppercase; }

/* ---- Verse: under a sunrise arch ------------------------------------------------------------ */
.ps-arch { position: relative; max-width: 25rem; margin: 0 auto; padding: 3.6rem 1.5rem 1.8rem; box-sizing: border-box; overflow: hidden; text-align: center;
    border-radius: 12rem 12rem .6rem .6rem / 8rem 8rem .6rem .6rem; background: var(--c-glass); box-shadow: inset 0 0 0 1px var(--c-line); }
.ps-rays { position: absolute; left: 50%; top: -9.4rem; width: 18rem; height: 12rem; translate: -50% 0;
    background: repeating-conic-gradient(from -90deg at 50% 100%, rgba(230, 184, 92, .3) 0 3deg, transparent 3deg 11deg);
    -webkit-mask: radial-gradient(closest-side at 50% 100%, #000 40%, transparent); mask: radial-gradient(closest-side at 50% 100%, #000 40%, transparent); }
.ps-small-title { margin: 0 0 1rem; color: var(--c-accent); font: 800 .75rem/1.4 var(--f-body); letter-spacing: .28em; text-transform: uppercase; }
.ps-verse { margin: 0; }
.ps-verse + .ps-verse { margin-top: 1.2rem; }
.ps-verse blockquote { margin: 0; font: 400 clamp(1.1rem, 4.6vw, 1.3rem)/1.6 var(--f-display); text-wrap: pretty; }
.ps-verse figcaption { margin-top: .8rem; color: var(--c-muted); font-size: .88rem; letter-spacing: .08em; }
.ps-arch .cine-lead { margin-top: 1rem; }

/* ---- Couple: terraced frames ---------------------------------------------------------------- */
.ps-couple .cine-block { margin-inline: auto; text-align: center; }
.ps-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: 100%; max-width: 26rem; margin: 0 auto; }
.ps-person { text-align: center; }
.ps-terrace-frame { display: grid; place-items: center; aspect-ratio: 3 / 4; margin-bottom: 1.35rem; overflow: hidden; border-radius: 50% 50% .3rem .3rem / 22% 22% .3rem .3rem;
    background: #2a3d2c; color: var(--gold); font: 400 2.4rem/1 var(--f-display); box-shadow: 0 .45rem 0 #7d9a52, 0 .9rem 0 #5d7d3c, 0 1.35rem 0 #45622c; }
.ps-terrace-frame img { width: 100%; height: 100%; object-fit: cover; }
.ps-role { color: var(--c-accent); font: 800 .75rem/1.3 var(--f-body); letter-spacing: .16em; text-transform: uppercase; }
.ps-person-name { margin: .35rem 0 0; font: 400 1.15rem/1.25 var(--f-display); }
.ps-parent { margin-top: .4rem !important; color: var(--c-muted); font-size: .85rem; line-height: 1.5; }
.ps-person .cine-socials { justify-content: center; }

/* ---- Story: from seed to harvest ------------------------------------------------------------ */
.ps-season { width: min(70vw, 16rem); padding: 0 0 1.1rem; overflow: hidden; border-radius: .5rem; background: var(--c-glass); box-shadow: inset 0 0 0 1px var(--c-line), 0 .8rem 1.6rem rgba(0, 0, 0, .28); scroll-snap-align: start; }
.ps-season-shot { aspect-ratio: 4 / 3; overflow: hidden; background: #2a3d2c; }
.ps-season-shot img { width: 100%; height: 100%; object-fit: cover; }
.ps-plant { display: flex; align-items: flex-end; gap: .5rem; margin: -1.8rem 1rem 0 !important; position: relative; }
.ps-plant svg { width: 3.6rem; height: 3.6rem; padding: .2rem; border-radius: 50%; background: var(--cream); box-shadow: 0 .3rem .8rem rgba(0, 0, 0, .3); }
.ps-plant span { padding-bottom: .3rem; color: var(--c-accent); font: 800 .75rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; }
.ps-soil { stroke: var(--soil); stroke-width: 2.4; stroke-linecap: round; }
.ps-seed { fill: #b88a4a; }
.ps-stem { fill: none; stroke: #5d8a2e; stroke-width: 2.2; stroke-linecap: round; }
.ps-ripe { fill: none; stroke: #a88a2c; stroke-width: 2.2; stroke-linecap: round; }
.ps-grain { fill: none; stroke: #d9a43a; stroke-width: 3.6; stroke-linecap: round; stroke-dasharray: .1 4.2; }
.ps-season-date { margin: .8rem 1rem 0 !important; color: var(--c-accent); font: 800 .75rem/1.4 var(--f-body); letter-spacing: .1em; text-transform: uppercase; }
.ps-season h3 { margin: .4rem 1rem; font: 400 1.2rem/1.25 var(--f-display); }
.ps-season p:not(.ps-season-date, .ps-plant) { margin: 0 1rem !important; color: var(--c-muted); font-size: .9rem; line-height: 1.6; }

/* ---- Events: a winding path between the fields --------------------------------------------- */
.ps-path-page .cine-block { margin-inline: auto; text-align: center; }
.ps-path { position: relative; width: 100%; max-width: 26rem; box-sizing: border-box; margin: 0 auto; padding: 0 0 0 2.4rem; list-style: none; }
.ps-path::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 24px; background: var(--path) 0 0 / 24px 80px repeat-y; }
.ps-stop { position: relative; padding: 1.1rem 1.1rem 1.2rem; border-radius: .5rem; background: var(--c-glass); box-shadow: inset 0 0 0 1px var(--c-line); }
.ps-stop + .ps-stop { margin-top: 1.3rem; }
.ps-stop::before { content: ""; position: absolute; left: -2.15rem; top: 1.2rem; width: .9rem; height: .9rem; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 4px var(--c-night); }
.ps-stop h3 { margin: 0; color: var(--c-accent); font: 400 clamp(1.45rem, 6.5vw, 1.75rem)/1.15 var(--f-display); }
.ps-stop-date { margin-top: .5rem !important; font-weight: 700; font-size: .95rem; }
.ps-stop-time { margin-top: .15rem !important; color: var(--c-muted); font-size: .92rem; }
.ps-stop address { margin-top: .7rem; color: var(--c-muted); font-style: normal; font-size: .9rem; line-height: 1.55; }
.ps-stop address strong { display: block; color: var(--c-ink); }
.ps-stop .cine-directions { margin-top: .9rem; }

/* ---- Countdown: the sun stands higher the nearer the day ----------------------------------- */
.ps-countdown .cine-block { text-align: center; margin-inline: auto; }
.ps-daysky { position: relative; display: block; width: min(15rem, 80%); height: 6rem; margin: .3rem auto 1.4rem; overflow: hidden; border-bottom: 2px solid var(--c-accent);
    background: linear-gradient(180deg, transparent, rgba(230, 184, 92, .14)); }
.ps-daysky i { position: absolute; left: 50%; bottom: calc(var(--rise, .5) * 4.4rem - 1.2rem); width: 2.6rem; aspect-ratio: 1; border-radius: 50%; translate: -50% 0;
    background: radial-gradient(circle, #ffe7a6 0 45%, #f3b85a 50%, transparent 72%); box-shadow: 0 0 1.4rem rgba(243, 184, 90, .55); }
.ps-clock .cine-clock-cells div { border-color: var(--c-line); background: var(--c-glass); }
.ps-clock .cine-clock-cells span { color: var(--c-accent); font-family: var(--f-display); }

/* ---- Dress: kites --------------------------------------------------------------------------- */
.ps-kites { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem; margin: 0 0 1.4rem; }
.ps-kite { position: relative; width: 2.8rem; height: 4.8rem; }
.ps-kite i { position: absolute; left: 0; top: 0; width: 100%; height: 3.4rem; clip-path: polygon(50% 0, 100% 38%, 50% 100%, 0 38%);
    background: linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, .6) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
        linear-gradient(180deg, transparent calc(38% - 1px), rgba(255, 255, 255, .6) calc(38% - 1px) calc(38% + 1px), transparent calc(38% + 1px)), var(--swatch); }
.ps-kite::after { content: ""; position: absolute; left: calc(50% - .4rem); top: 3.3rem; width: .8rem; height: 1.5rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 15'%3E%3Cpath d='M4 0c3 3-3 4 0 7.5s-3 4 0 7.5' fill='none' stroke='%23e6b85c' stroke-width='1'/%3E%3C/svg%3E") center / contain no-repeat; }
.ps-kite:nth-child(odd) { rotate: -8deg; }
.ps-kite:nth-child(even) { rotate: 7deg; }

/* ---- Gallery: field plots ------------------------------------------------------------------- */
.ps-gallery .cine-block { margin-inline: auto; text-align: center; }
.ps-gallery-line { color: var(--c-muted); font: 400 1.02rem/1.6 var(--f-display); }
.ps-plots { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 5.4rem; gap: .4rem; width: 100%; max-width: 26rem; box-sizing: border-box; margin: 0 auto; padding: .4rem; list-style: none;
    border-radius: .45rem; background: linear-gradient(135deg, #5d7d3c, #3f5a28); box-shadow: 0 1rem 2.2rem rgba(0, 0, 0, .3); }
.ps-plots li { grid-column: span 2; }
.ps-plots li:first-child { grid-column: span 4; grid-row: span 2; }
.ps-plot { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: .2rem; overflow: hidden; background: #2a3d2c; cursor: zoom-in; }
.ps-plot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ps-plot:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.ps-all { align-self: center; }

/* ---- RSVP: a board at the field hut --------------------------------------------------------- */
.ps-board { position: relative; border: .7rem solid #7a5232; border-image: repeating-linear-gradient(90deg, #7a5232 0 7px, #8f6440 7px 13px, #6e4a2c 13px 20px) 12;
    border-radius: 0; background: #fbf4e2; color: var(--paper-ink); text-shadow: none; box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, .35); }
.ps-board::before, .ps-board::after { content: ""; position: absolute; top: .5rem; width: .55rem; height: .55rem; border-radius: 50%; background: #6b6157; box-shadow: inset -1px -1px 0 rgba(0, 0, 0, .3); }
.ps-board::before { left: .6rem; }
.ps-board::after { right: .6rem; }
.ps-board .cine-kicker { color: #6b4f12; }
.ps-board .cine-title { color: var(--paper-ink); }
.ps-board .cine-lead, .ps-board legend, .ps-board .cine-field, .ps-board .cine-form-status { color: var(--paper-muted); }
.ps-board :is(input:not([type=radio]), select, textarea) { border-color: rgba(35, 48, 28, .3); background: #fffcf2; color: var(--paper-ink); }
.ps-board .cine-field :is(input, textarea)::placeholder { color: #6a7358; opacity: 1; }
.ps-board .cine-attendance-options label { border-color: rgba(35, 48, 28, .35); color: var(--paper-ink); }
.ps-board .cine-attendance-options input:checked + label { background: var(--rice); border-color: var(--rice); color: #fbf6e8; }
.ps-board .cine-submit { background: var(--rice); color: #fbf6e8; }

/* ---- Wishes: stalks of rice ----------------------------------------------------------------- */
.ps-stalks .cine-wish-list li { position: relative; padding-left: 2.6rem; border: 0; border-radius: .5rem; background: var(--c-glass); }
.ps-stalks .cine-wish-list li::before { content: ""; position: absolute; left: .7rem; top: .9rem; width: 1.3rem; height: 1.8rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 18'%3E%3Cpath d='M6.5 18V4M6.5 4c2.5.5 4.5 3 4.5 6.5' fill='none' stroke='%23c9a64a' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M7.5 5.5l1.5-.5M9 8l1.6-.3M10 11l1.3.2' stroke='%23e6b85c' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---- Closing: golden dusk ------------------------------------------------------------------- */
.ps-dusk { background: linear-gradient(180deg, rgba(214, 120, 50, .34), rgba(110, 50, 80, .2) 50%, transparent 82%); }
:root[data-scheme="light"] .ps-dusk { background: linear-gradient(180deg, rgba(240, 170, 100, .3), rgba(240, 200, 170, .12) 50%, transparent 82%); }
.ps-dusk .cine-block { text-align: center; margin-inline: auto; }
.ps-sunset { position: relative; display: block; width: min(15rem, 80%); height: 2.4rem; margin: 0 auto 1.3rem; overflow: hidden; border-bottom: 1px solid var(--c-accent); }
.ps-sunset i { position: absolute; left: 50%; bottom: -2.4rem; width: 4.8rem; aspect-ratio: 1; border-radius: 50%; translate: -50% 0;
    background: radial-gradient(circle, #ffc27a 0 46%, rgba(232, 120, 60, .5) 56%, transparent 70%); }
@media (prefers-reduced-motion: no-preference) {
    .ps-sunset i { transition: bottom 1.6s cubic-bezier(.3, .7, .2, 1) .3s; }
    .has-reveal .ps-dusk [data-reveal]:not(.is-revealed) .ps-sunset i { bottom: -1rem; }
}
.ps-end-names { margin-top: 1.3rem !important; font: 400 clamp(1.8rem, 8vw, 2.4rem)/1.1 var(--f-display); }
