/* ===== Sumba page: Water for Anugerah campaign theme (written by sumba_theme.py; edit it there) ===== */
/* Jua, hosted with the site (the Latin letters only: English and Indonesian) */
@font-face { font-family: 'Jua'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/jua-latin.woff2) format('woff2'); }
:root { --sg: #424735; --sb: #103061; --sc: #FFEDD0; }
body.sw { --top: var(--sg); --page: var(--sg);   /* no blue top any more: the header and opening are the page green */ --card: var(--sb); --deep: #353A2A;
  --bg: var(--page); --surface: var(--card); --ink: var(--sc); --muted: color-mix(in srgb, var(--sc) 72%, transparent);
  --rule: color-mix(in srgb, var(--sc) 18%, transparent); --red: var(--sc); --blue: var(--sc); --sky: var(--card);
  --display: "Jua", var(--sans); --on-red: var(--page); --logo-red: #D88076; --logo-blue: #8FB4E8; --logo-yellow: var(--sc);
  background: var(--page); color: var(--sc);
}
body.sw :is(h1, h2, h3, .quote p) { font-family: "Jua", var(--sans); font-weight: 400; letter-spacing: 0; }
body.sw .stats strong { font-family: "Jua", var(--sans); font-weight: 400; letter-spacing: 0; color: var(--sc); }
body.sw .eyebrow { color: var(--sc); opacity: .8; }
/* small labels (eyebrows, counter labels) in capitals, spaced out a little, like the photo captions */
body.sw :is(.eyebrow, .stats span) { letter-spacing: 0.08em; text-transform: uppercase; }

/* header in the page green; dark green from the news section down */
body.sw .nav, body.sw .nav.scrolled { background-color: var(--top); transition: background-color .2s ease; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent;
  --logo-red: var(--sc); --logo-blue: var(--sc); --logo-yellow: var(--sc); }
body.sw .nav :is(.brand, .sub-toggle, #site-menu > li > a, .lang a, .lang span) { color: var(--sc); }
body.sw .nav .btn { background-color: var(--sc); color: var(--top); }
body.sw .nav :is(.menu-btn span, .menu-btn::before, .menu-btn::after) { background: var(--sc); }
body.sw .nav .has-sub .sub { --bg: var(--top); }
body.sw .nav .has-sub .sub a:hover { background: color-mix(in srgb, var(--sc) 12%, transparent); }
/* from the news section down the page stays smooth dark green, and so does the header */
body.sw .nav.on-end { background-color: var(--deep); }
body.sw .nav.on-end .btn { color: var(--deep); }
body.sw .nav.on-end .has-sub .sub { --bg: var(--deep); }
@media (max-width: 760px) { body.sw .nav.on-end #site-menu { background-color: var(--deep); } }
@media (max-width: 760px) { body.sw .nav #site-menu { background-color: var(--top); border-bottom-color: transparent; transition: background-color .2s ease; } }

/* opening: the title straight on the green, then the intro at the usual heading-to-text gap */
.sw .page-hero { background-color: var(--page); padding-bottom: 0; }
.sw .page-hero h1 { font-size: clamp(3rem, 9vw, 6.5rem); line-height: 1; color: var(--sc); }
/* the title: real text in Jua on the page, in the poster's colours (water blue / cream / petal pink) */
body.sw .page-hero h1.sw-title { filter: url(#sw-fuzz); width: min(100%, 980px); max-width: none; margin: 22.4px auto 0; font-size: clamp(2.6rem, 10.2vw, 6.2rem); text-transform: lowercase;
  line-height: 1.3; padding: .2em 0 .3em; letter-spacing: .01em; text-align: center; justify-self: stretch; }
.sw-title .w { color: #8FB4E8; } .sw-title .f { color: var(--sc); } .sw-title .a { color: #D88076; white-space: nowrap; }
@media (max-width: 600px) { .sw .page-hero .eyebrow .sw-ey { display: block; } .sw .page-hero .eyebrow .sw-dot { display: none; } }
@media (max-width: 600px) { body.sw .sw-open { padding-top: 47.3px; } body.sw .sw-intro { padding-bottom: calc(var(--space) + 35.4px); } }   /* the same gap above and below the title and below the intro on phones */
@media (max-width: 600px) { body.sw .page-hero h1.sw-title { font-size: 17vw; line-height: 1.02; margin-top: 22.7px; } .sw-title .a { display: block; } }
.sw .page-hero .eyebrow { opacity: .85; }
.sw-open { padding-top: 53px; }

.sw-intro { position: relative; z-index: 1; text-align: center; display: grid; justify-items: center; gap: 14px; padding-bottom: calc(var(--space) + 25.4px); }
.sw-intro .lede { color: var(--sc); max-width: 38rem; }
.sw-intro .muted a.keep { color: var(--sc); }
body.sw .tile.news .link-more { font-size: 14px; }   /* same size as the date and text above it */

/* the two flowers from the campaign drawing grow up from the bottom of the page; a drop falls fast out of the menu bar
   onto the big one, and where it lands a ring of water spreads and two tiny drops splash out (script at the end) */
body.sw main > section:last-child { padding-bottom: 0; }
.sw-flowers { position: relative; width: min(900px, 94vw); margin: clamp(2rem, 5vw, 3.5rem) auto 0; pointer-events: none; }
.sw-flowers .sw-art { display: block; width: 100%; height: auto; }
.sw-drop { position: absolute; z-index: 40; left: 17.9%; top: 0; width: 7%; height: auto; opacity: 0; transform-origin: 50% 100%; }
/* where the drop lands (the big flower's centre): a ring of water spreads out and two tiny drops splash up */
.sw-ripple, .sw-splash { position: absolute; left: 21.4%; top: 56.5%; pointer-events: none; opacity: 0; }
.sw-ripple { width: 9%; aspect-ratio: 2.2; margin: -2% 0 0 -4.5%; border: 2px solid #CFE0F7; border-radius: 50%; }
.sw-splash { width: 1.1%; aspect-ratio: .8; margin: -1% 0 0 -.55%; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #2E4A75; box-shadow: inset 0 0 0 1px #8FB4E8; }

/* the big lettering looks printed like the posts: slightly rough edges (no grain in it) */
body.sw :is(.page-hero h1, main h2, main h3, .stats strong, .quote p, .brand) { filter: url(#sw-rough-text); }
/* the tails of g, y and p reach below the line, and some browsers cut a filtered element at its box: so the box gets
   room for the tails (padding) and the page spacing stays as it was (the same amount taken off the margin) */
body.sw :is(main h2, main h3, .stats strong, .quote p) { padding-bottom: .3em; margin-bottom: -.3em; }
body.sw .timeline h3 { margin-bottom: calc(16px - .3em); }
body.sw .stats strong { color: var(--sc); }

/* Jua for the logo, menu, language switch, buttons and footer links too (body text stays Geist) */
body.sw :is(.nav ul a, .nav .sub-toggle, .nav .lang, .nav .lang a, .nav .lang span, .btn, footer, footer a, .strip-btn) { font-family: "Jua", var(--sans); font-weight: 400; letter-spacing: 0; }
/* Jua has one weight: never let the browser fake a bold version of it (the current language was being thickened) */
body.sw .nav .lang :is(span, a) { font-weight: 400; font-synthesis: none; }
body.sw :is(h1, h2, h3, .stats strong, .brand) { font-synthesis: none; }

/* the rest of the page in the campaign colours */
body.sw .stats span { color: var(--muted); }
body.sw .tile { background-color: var(--card); color: var(--sc); }
/* the Before / After boxes and the news box are cream paper like the posts, with dark green writing */
body.sw :is(.tiles.two, .tiles.one) .tile { position: relative; isolation: isolate; background: none; box-shadow: none; color: var(--sg); }
/* the paper sits in a layer behind the text, with the same slightly fuzzy edge as the big lettering (the text stays crisp) */
body.sw :is(.tiles.two, .tiles.one) .tile::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background-color: #FFF1DC; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.56 0 0 0 0 0.5 5 0 0 0 -2.3'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 0 .5 .68'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E"); background-size: 240px 240px; filter: url(#sw-rough); }
body.sw a.tile.news:hover { box-shadow: none; }   /* a hover shadow would show the box's straight edge */
body.sw :is(.tiles.two, .tiles.one) .tile :is(p, .when, .link-more) { color: color-mix(in srgb, var(--sg) 85%, transparent); }
body.sw :is(.tiles.two, .tiles.one) .tile .when::before { background: var(--sg); }
body.sw .tiles.two .tile .when { letter-spacing: 0.08em; text-transform: uppercase; }   /* BEFORE / AFTER, like the small labels */
body.sw .tile .when::before { background: var(--sc); }
body.sw section.alt { background-color: var(--deep); }
body.sw .shot img { background: var(--card); }
body.sw .strip-btn { background: var(--card); color: var(--sc); }
body.sw .btn { background-color: var(--sc); color: var(--page); }
body.sw .timeline li { grid-template-columns: 9rem 1fr; }   /* wide enough that every date (18 JUN 2026) stays on one line */
body.sw .timeline time { white-space: nowrap; }
@media (max-width: 600px) { body.sw .timeline li { grid-template-columns: 1fr; } }
body.sw .timeline time { color: var(--sc); opacity: .75; letter-spacing: 0.08em; text-transform: uppercase; }   /* dates styled like the small labels */
body.sw footer { background-color: var(--deep); border-top: 1px solid var(--rule); }
body.sw footer .wrap::before { display: none; }
body.sw main > * + section::after { display: none; }   /* no red / blue / yellow dots between sections */
body.sw footer a:hover { color: var(--sc); }
