/* ==========================================================================
   ESAI — Ghost theme stylesheet
   Plain CSS, no build step. Sections:
   1 Tokens  2 Base  3 Layout & utilities  4 Buttons & chips  5 Header & nav
   6 Hero  7 Stats  8 Sections  9 Programs  10 Cards  11 Join band
   12 Archives & pagination  13 Article  14 Post content & Ghost cards
   15 Legacy content compatibility  16 Footer  17 Error page  18 Motion & print
   ========================================================================== */

/* 1 Tokens ---------------------------------------------------------------- */
:root {
    --brand: var(--ghost-accent-color, #7d0c0e);
    --brand-700: #640a0b;
    --brand-900: #3a0607;
    --brand-50: #f8ecea;
    --brand-100: #f1d9d6;
    --gold: #c99a3b;
    --gold-soft: #ecd29b;
    --gold-text: #876220;

    --paper: #fbf8f3;
    --paper-2: #f4eee6;
    --surface: #ffffff;
    --line: #e8dfd5;
    --line-strong: #d3c5b8;
    --ink: #1f1918;
    --text: #2d2624;
    --ink-2: #4a403d;
    --muted: #675c58;
    --footer-bg: #1c1413;

    --font-ui: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: var(--gh-font-heading, "Source Serif 4"), Georgia, "Times New Roman", serif;
    --font-text: var(--gh-font-body, "Source Serif 4"), Georgia, "Times New Roman", serif;

    --wrap-max: 75rem;
    --gutter: clamp(1rem, 4vw, 2rem);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgb(31 25 24 / .06), 0 2px 6px rgb(31 25 24 / .04);
    --shadow: 0 18px 40px -22px rgb(58 6 7 / .45), 0 4px 12px -6px rgb(31 25 24 / .08);
    --shadow-lg: 0 30px 60px -30px rgb(58 6 7 / .55), 0 8px 20px -10px rgb(31 25 24 / .12);

    /* Kawung batik motif, used as a quiet background texture. */
    --kawung-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23ecd29b' stroke-width='1'%3E%3Cellipse cx='10' cy='10' rx='5' ry='12.5' transform='rotate(-45 10 10)'/%3E%3Cellipse cx='30' cy='10' rx='5' ry='12.5' transform='rotate(45 30 10)'/%3E%3Cellipse cx='10' cy='30' rx='5' ry='12.5' transform='rotate(45 10 30)'/%3E%3Cellipse cx='30' cy='30' rx='5' ry='12.5' transform='rotate(-45 30 30)'/%3E%3Ccircle cx='20' cy='20' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
    --kawung-brand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%237d0c0e' stroke-width='1'%3E%3Cellipse cx='10' cy='10' rx='5' ry='12.5' transform='rotate(-45 10 10)'/%3E%3Cellipse cx='30' cy='10' rx='5' ry='12.5' transform='rotate(45 30 10)'/%3E%3Cellipse cx='10' cy='30' rx='5' ry='12.5' transform='rotate(45 10 30)'/%3E%3Cellipse cx='30' cy='30' rx='5' ry='12.5' transform='rotate(-45 30 30)'/%3E%3Ccircle cx='20' cy='20' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
}

@supports (color: color-mix(in srgb, red, blue)) {
    :root {
        --brand-700: color-mix(in srgb, var(--brand) 82%, black);
        --brand-900: color-mix(in srgb, var(--brand) 45%, black);
        --brand-50: color-mix(in srgb, var(--brand) 7%, white);
        --brand-100: color-mix(in srgb, var(--brand) 15%, white);
    }
}

/* 2 Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 6rem;
    color-scheme: light;
}

body {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--brand); }
h1, h2, h3, h4 { text-wrap: balance; }
p, li { text-wrap: pretty; }
button, input { font: inherit; }

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
    border-radius: 4px;
}
.on-dark :focus-visible { outline-color: var(--gold-soft); }
.site-main:focus { outline: none; }

.menu-open body { overflow: hidden; }

/* 3 Layout & utilities ---------------------------------------------------- */
.wrap {
    width: min(100% - 2 * var(--gutter), var(--wrap-max));
    margin-inline: auto;
}
.wrap-mid { max-width: 52rem; }

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -5rem;
    z-index: 100;
    padding: .75rem 1.125rem;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.icon { width: 20px; height: 20px; flex: none; }

.eyebrow {
    margin: 0 0 .875rem;
    font: 700 .75rem/1.3 var(--font-ui);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.eyebrow-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: var(--brand);
}
.eyebrow-brand::before {
    content: "";
    width: 2rem;
    height: 2px;
    background: currentColor;
}
.eyebrow-gold { color: var(--gold-soft); }

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--muted);
}
.breadcrumb li + li::before {
    content: "/";
    margin-right: .4rem;
    color: var(--line-strong);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }

/* 4 Buttons & chips ------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 2.75rem;
    padding: .625rem 1.125rem;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font: 700 .9375rem/1.2 var(--font-ui);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn .icon { width: 18px; height: 18px; }
.btn-lg { min-height: 3.25rem; padding: .875rem 1.5rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 18px -10px rgb(125 12 14 / .7);
}
.btn-primary:hover { background: var(--brand-700); transform: translateY(-1px); }

.btn-secondary {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }

.btn-light { background: #fff; color: var(--brand-900); }
.btn-light:hover { background: var(--gold-soft); transform: translateY(-1px); }

.btn-outline-light { color: #fff; border-color: rgb(255 255 255 / .5); }
.btn-outline-light:hover { background: rgb(255 255 255 / .12); border-color: #fff; }

.btn-whatsapp { background: #0d7a42; color: #fff; }
.btn-whatsapp:hover { background: #0a6436; }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    transition: border-color .15s, color .15s, background-color .15s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }

.chip {
    display: inline-flex;
    align-items: center;
    padding: .4rem .85rem;
    border-radius: 999px;
    background: var(--brand-50);
    color: var(--brand);
    font-size: .8125rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .15s, color .15s;
}
.chip:hover { background: var(--brand); color: #fff; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .15s; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: .2em; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* 5 Header & nav ---------------------------------------------------------- */
.topbar {
    background: var(--brand-900);
    color: #f0e2de;
    font-size: .8125rem;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 2.375rem;
}
.topbar-tagline { margin: 0; font-weight: 600; letter-spacing: .02em; }
.topbar-links {
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.topbar-links a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}
.topbar-links a:hover { color: var(--gold-soft); }
.topbar-links .icon { width: 15px; height: 15px; color: var(--gold-soft); }
@media (max-width: 899px) { .topbar { display: none; } }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s;
}
/* Background on a pseudo-element: backdrop-filter on the header itself would
   become the containing block for the menu drawer. */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgb(255 255 255 / .94);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgb(58 6 7 / .35); }

.header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 4.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
    color: var(--ink);
    text-decoration: none;
}
.brand-logo {
    display: block;
    width: auto;
    height: 44px;
    border-radius: 6px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
    font-weight: 800;
    font-size: 1.0625rem;
    letter-spacing: .04em;
    color: var(--brand);
}
.brand-sub { font-size: .6875rem; font-weight: 600; color: var(--muted); }
@media (max-width: 389px) { .brand-text { display: none; } }
@media (min-width: 1180px) { .brand-text { display: none; } }

.primary-nav { display: none; margin-left: auto; }
.nav { margin: 0; padding: 0; list-style: none; }
.primary-nav .nav { display: flex; align-items: center; gap: .125rem; }
.primary-nav .nav a {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .5rem .7rem;
    border-radius: 999px;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--ink-2);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s, color .15s;
}
.primary-nav .nav a:hover { background: var(--brand-50); color: var(--brand); }
.primary-nav .is-current a { background: var(--brand-50); color: var(--brand); }
.primary-nav .nav-item-icon a { padding: .5rem; }
.ext-mark .icon { width: 14px; height: 14px; opacity: .7; }

.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.header-cta { display: none; }
@media (min-width: 600px) { .header-cta { display: inline-flex; } }

@media (min-width: 1180px) {
    .primary-nav { display: block; }
    .header-actions { margin-left: .5rem; }
    .menu-toggle { display: none; }
}

.menu-toggle .menu-icon-open { display: inline-grid; }
.menu-toggle .menu-icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon-close { display: inline-grid; }

/* Mobile drawer: hidden until main.js opens it; shown inline without JS. */
.drawer {
    background: var(--paper);
    border-top: 1px solid var(--line);
}
.js .drawer {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--drawer-top, 4.5rem));
    height: calc(100dvh - var(--drawer-top, 4.5rem));
    overflow-y: auto;
    overscroll-behavior: contain;
}
.js .drawer.is-open { display: block; animation: drawer-in .18s ease-out; }
@media (min-width: 1180px) { .drawer, .js .drawer.is-open { display: none; } }

.drawer-inner { display: grid; gap: 1.5rem; padding-block: 1rem 2.5rem; }
.drawer .nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: 1rem .25rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}
.drawer .nav .is-current a { color: var(--brand); }
.drawer .nav-item-icon a::after,
.site-footer .nav-item-icon a::after { content: attr(title); }
.drawer .nav-item-icon a { flex-direction: row-reverse; justify-content: flex-end; }
.drawer-contact { display: grid; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.drawer-contact a {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem 0;
    color: var(--ink-2);
    font-weight: 600;
    text-decoration: none;
}
.drawer-contact .icon { color: var(--brand); }

@keyframes drawer-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

/* 6 Hero ------------------------------------------------------------------ */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem);
    background:
        radial-gradient(1100px 520px at 88% -12%, var(--brand-50), transparent 62%),
        var(--paper);
}
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
    width: min(46rem, 90vw);
    height: 30rem;
    background: var(--kawung-brand) 0 0 / 44px;
    opacity: .09;
    -webkit-mask-image: radial-gradient(closest-side at 70% 30%, #000, transparent);
    mask-image: radial-gradient(closest-side at 70% 30%, #000, transparent);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    gap: 2rem;
    grid-template-areas: "copy" "media" "aside";
}
.hero-copy { grid-area: copy; }
.hero-media { grid-area: media; }
.hero-aside { grid-area: aside; }

@media (min-width: 960px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
        grid-template-areas: "copy aside" "media media";
        column-gap: clamp(2.5rem, 5vw, 4.5rem);
        row-gap: 3rem;
        align-items: end;
    }
}

.hero-title {
    margin: 0;
    max-width: 17ch;
    font-family: var(--font-display);
    font-size: clamp(2.375rem, 1.5rem + 3.9vw, 4.375rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -.025em;
    color: var(--ink);
}
.hero-lead {
    max-width: 38rem;
    margin: 1.25rem 0 0;
    font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem);
    line-height: 1.6;
    color: var(--ink-2);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
@media (max-width: 599px) { .hero-actions .btn { flex: 1 1 auto; } }

.hero-media {
    position: relative;
    margin: 0;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--brand-900);
    box-shadow: var(--shadow-lg);
}
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12);
    background: linear-gradient(to top, rgb(58 6 7 / .28), transparent 35%);
    pointer-events: none;
}
@media (min-width: 600px) { .hero-media { aspect-ratio: 16 / 9; } }
@media (min-width: 960px) { .hero-media { aspect-ratio: 2.2 / 1; } }

.hero-aside { display: grid; gap: 1rem; align-content: end; }

.spotlight {
    position: relative;
    isolation: isolate;
    display: block;
    overflow: hidden;
    padding: 1.375rem 1.5rem 1.5rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--brand), var(--brand-900));
    color: #fff;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}
.spotlight::after {
    content: "";
    position: absolute;
    inset: 0 0 0 45%;
    z-index: -1;
    background: var(--kawung-gold) 0 0 / 40px;
    opacity: .16;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000);
    mask-image: linear-gradient(90deg, transparent, #000);
}
.spotlight:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.spotlight-label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font: 800 .6875rem/1 var(--font-ui);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-soft);
}
.pulse {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--gold-soft);
    animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgb(236 210 155 / .7); }
    70% { box-shadow: 0 0 0 .6rem rgb(236 210 155 / 0); }
    100% { box-shadow: 0 0 0 0 rgb(236 210 155 / 0); }
}
.spotlight-title {
    display: block;
    margin-top: .875rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}
.spotlight-meta { display: block; margin-top: .5rem; font-size: .875rem; color: rgb(255 255 255 / .82); }
.spotlight-more {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: 1.125rem;
    font-size: .875rem;
    font-weight: 700;
}
.spotlight-more .icon { width: 17px; height: 17px; transition: transform .15s; }
.spotlight:hover .spotlight-more .icon { transform: translateX(3px); }

.quick-links {
    padding: .25rem 1.375rem .375rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.quick-links-title {
    margin: 1rem 0 .25rem;
    font: 700 .75rem/1 var(--font-ui);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.quick-links ul { margin: 0; padding: 0; list-style: none; }
.quick-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 0;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}
.quick-links li:first-child a { border-top: 0; }
.quick-links .icon { width: 18px; height: 18px; color: var(--brand); transition: transform .15s; }
.quick-links a:hover { color: var(--brand); }
.quick-links a:hover .icon { transform: translateX(3px); }

/* 7 Stats ----------------------------------------------------------------- */
.stats {
    background: var(--surface);
    border-block: 1px solid var(--line);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}
.stat {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 2.5vw, 2rem);
}
.stat:nth-child(even) { border-left: 1px solid var(--line); }
.stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
@media (min-width: 900px) {
    .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .stat:nth-child(n) { border-top: 0; border-left: 1px solid var(--line); }
    .stat:first-child { border-left: 0; padding-left: 0; }
}
.stat-value {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 1.7rem + 2.2vw, 3.375rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--brand);
    font-variant-numeric: lining-nums;
}
.stat-label { font-size: .875rem; font-weight: 600; color: var(--muted); }

/* 8 Sections -------------------------------------------------------------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2.5rem;
    margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.section-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.625rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.018em;
    color: var(--ink);
}
.section-lead { max-width: 34rem; margin: 0; color: var(--ink-2); }
.section-programs {
    background: linear-gradient(var(--paper-2), var(--paper));
    border-bottom: 1px solid var(--line);
}
.section-related { background: var(--paper-2); border-top: 1px solid var(--line); }
.section-related .section-title { margin-bottom: 1.5rem; }
.section-related .section-head .section-title { margin-bottom: 0; }

/* 9 Programs -------------------------------------------------------------- */
.program-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 600px) { .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .program-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }

.program {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 1.5rem 1.5rem 1.375rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.program::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--gold));
    transform: scaleX(.22);
    transform-origin: left;
    transition: transform .35s;
}
.program:hover { transform: translateY(-3px); border-color: transparent; box-shadow: var(--shadow); }
.program:hover::before, .program:focus-within::before { transform: scaleX(1); }
.program-index {
    font-size: .8125rem;
    font-weight: 800;
    letter-spacing: .1em;
    color: var(--gold-text);
}
.program-name {
    margin: 1.25rem 0 .5rem;
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.2;
}
.program-name a { color: var(--ink); text-decoration: none; }
.program-name a::after { content: ""; position: absolute; inset: 0; }
.program:hover .program-name a { color: var(--brand); }
.program-desc {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    font-size: .9375rem;
    color: var(--ink-2);
}
.program-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: auto 0 0;
    padding-top: 1.25rem;
    font-size: .875rem;
    font-weight: 700;
    color: var(--brand);
}
.program-meta .icon { width: 18px; height: 18px; transition: transform .15s; }
.program:hover .program-meta .icon { transform: translateX(4px); }

/* 10 Cards ---------------------------------------------------------------- */
.post-grid {
    display: grid;
    gap: clamp(1rem, 2vw, 1.75rem);
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-900); }
.card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.card:hover .card-media img { transform: scale(1.035); }
.card-placeholder {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    height: 100%;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-900) 100%);
    color: #fff;
    text-align: center;
}
.card-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--kawung-gold) center / 44px;
    opacity: .16;
}
.card-placeholder span {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.2;
    text-wrap: balance;
}
.card-placeholder span::after {
    content: "";
    display: block;
    width: 2rem;
    height: 2px;
    margin: .75rem auto 0;
    background: var(--gold-soft);
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .55rem;
    padding: 1.25rem 1.375rem 1.375rem;
}
.card-tag {
    position: relative;
    z-index: 2;
    align-self: flex-start;
    padding: .35rem .65rem;
    border-radius: 999px;
    background: var(--brand-50);
    color: var(--brand);
    font-size: .6875rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
}
.card-tag:hover { background: var(--brand); color: #fff; }
.card-title {
    margin: .2rem 0 0;
    font-family: var(--font-display);
    font-size: 1.3125rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.01em;
}
.card-link { color: var(--ink); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card-link { color: var(--brand); }
.card-excerpt {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: .9375rem;
    line-height: 1.6;
    color: var(--ink-2);
}
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: auto 0 0;
    padding-top: .75rem;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--muted);
}

@media (max-width: 719px) {
    .post-grid > .card:not(:first-child) {
        display: grid;
        grid-template-columns: 6.5rem minmax(0, 1fr);
        gap: 0 1rem;
        padding: 1rem;
    }
    .post-grid > .card:not(:first-child) .card-media {
        aspect-ratio: 1;
        border-radius: var(--radius-sm);
        align-self: start;
    }
    .post-grid > .card:not(:first-child) .card-placeholder { padding: .5rem; }
    .post-grid > .card:not(:first-child) .card-placeholder span { font-size: .875rem; }
    .post-grid > .card:not(:first-child) .card-placeholder span::after { display: none; }
    .post-grid > .card:not(:first-child) .card-body { padding: 0; gap: .35rem; }
    .post-grid > .card:not(:first-child) .card-title { font-size: 1.125rem; margin: 0; }
    .post-grid > .card:not(:first-child) .card-excerpt { display: none; }
    .post-grid > .card:not(:first-child) .card-meta { padding-top: .25rem; font-size: .75rem; }
    .post-grid > .card:not(:first-child) .card-tag { padding: 0; background: none; font-size: .625rem; }
}

/* 11 Join band ------------------------------------------------------------ */
.join {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(3.5rem, 8vw, 6rem);
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-900) 85%);
    color: #fff;
}
.join::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--kawung-gold) 0 0 / 56px;
    opacity: .13;
    -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 75%);
    mask-image: linear-gradient(100deg, transparent 20%, #000 75%);
}
.join-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) {
    .join-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 4.5rem; align-items: center; }
}
.join-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 1.35rem + 2.2vw, 2.875rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.015em;
}
.join-lead { max-width: 32rem; margin: 1rem 0 0; font-size: 1.0625rem; color: rgb(255 255 255 / .86); }
.join-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.steps {
    display: grid;
    gap: .875rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 600px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.step {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid rgb(255 255 255 / .16);
    border-radius: var(--radius);
    background: rgb(255 255 255 / .07);
}
.step-num {
    display: grid;
    place-items: center;
    flex: 0 0 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--brand-900);
    font-weight: 800;
}
.step-title { margin: .3rem 0; font: 700 1rem/1.3 var(--font-ui); }
.step p { margin: 0; font-size: .875rem; line-height: 1.55; color: rgb(255 255 255 / .82); }

/* 12 Archives & pagination ----------------------------------------------- */
.archive-header {
    padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(900px 400px at 90% -30%, var(--brand-50), transparent 60%),
        var(--paper);
}
.archive-header-author { display: flex; gap: 1.5rem; align-items: flex-start; }
.archive-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.375rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.02em;
    color: var(--ink);
}
.archive-desc { max-width: 42rem; margin: 1rem 0 0; font-size: 1.0625rem; color: var(--ink-2); }
.archive-count {
    margin: 0 0 1.5rem;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.archive-list { margin: 0; padding: 0; list-style: none; }
.archive-year h2 {
    margin: 2.75rem 0 .25rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--brand);
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--brand);
}
.archive-year:first-child h2 { margin-top: 0; }
.archive-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .25rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}
@media (min-width: 600px) {
    .archive-item { grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.25rem; align-items: baseline; }
}
.archive-date { font-size: .8125rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.archive-link {
    font-family: var(--font-display);
    font-size: 1.1875rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
    text-decoration: none;
}
.archive-link:hover { color: var(--brand); text-decoration: underline; text-underline-offset: .2em; }
.archive-tag {
    display: inline-block;
    margin-left: .6rem;
    font-size: .6875rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    vertical-align: .15em;
    color: var(--brand);
}

.pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin-top: clamp(2rem, 4vw, 3rem);
}
.pagination-next { text-align: right; }
.pagination-info { margin: 0; font-size: .875rem; font-weight: 600; color: var(--muted); }
@media (max-width: 599px) {
    .pagination { grid-template-columns: 1fr 1fr; }
    .pagination-info { grid-column: 1 / -1; grid-row: 2; text-align: center; }
}

.empty { color: var(--muted); }

/* 13 Article -------------------------------------------------------------- */
.gh-canvas {
    --content-width: 44rem;
    --wide-width: 68rem;
    display: grid;
    grid-template-columns:
        [full-start] minmax(var(--gutter), 1fr)
        [wide-start] minmax(0, calc((var(--wide-width) - var(--content-width)) / 2))
        [main-start] min(var(--content-width), calc(100% - var(--gutter) * 2))
        [main-end] minmax(0, calc((var(--wide-width) - var(--content-width)) / 2))
        [wide-end] minmax(var(--gutter), 1fr)
        [full-end];
}
.gh-canvas > * { grid-column: main; }
.article-wide .gh-canvas { --content-width: 62rem; --wide-width: 75rem; }

.article-header { padding-top: clamp(2rem, 5vw, 3.5rem); }
.article-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.35rem + 2.9vw, 3.375rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.022em;
    color: var(--ink);
}
.article-dek {
    margin: 1rem 0 0;
    font-size: clamp(1.125rem, 1.05rem + .4vw, 1.3125rem);
    line-height: 1.55;
    color: var(--ink-2);
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.5rem;
    margin-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
    font-size: .875rem;
    font-weight: 600;
    color: var(--muted);
}
.meta-item, .meta-authors { display: inline-flex; align-items: center; gap: .45rem; }
.meta-item .icon { width: 17px; height: 17px; color: var(--brand); }
.meta-authors a { color: var(--ink); text-decoration: none; }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.avatar-lg { width: 80px; height: 80px; flex: none; }

.article-image { margin: clamp(1.75rem, 4vw, 2.5rem) 0 0; }
.article-image > * { grid-column: wide; }
.article-image-frame {
    display: flex;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--paper-2);
}
.article-image img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: min(78vh, 760px);
    object-fit: contain;
}
.article-image figcaption {
    margin-top: .75rem;
    font-size: .875rem;
    color: var(--muted);
    text-align: center;
}

.article-page { padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }

.article-footer {
    row-gap: 1.75rem;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    padding-bottom: clamp(3rem, 6vw, 4.5rem);
}
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
}
.article-tags ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.article-tags-label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.share { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.share-label { margin: 0; font-size: .9375rem; font-weight: 700; color: var(--ink); }
.share-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.share-list [hidden] { display: none; }
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 .75rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font: 700 .875rem/1 var(--font-ui);
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s, color .15s, background-color .15s;
}
.share-btn:hover { border-color: var(--brand); color: var(--brand); }
.share-btn .icon { width: 18px; height: 18px; }
.share-whatsapp { padding-inline: 1.125rem; border-color: transparent; background: #0d7a42; color: #fff; }
.share-whatsapp:hover { border-color: transparent; background: #0a6436; color: #fff; }

.follow-box {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 1.25rem;
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper-2);
}
.follow-box::after {
    content: "";
    position: absolute;
    inset: 0 0 0 55%;
    z-index: -1;
    background: var(--kawung-brand) 0 0 / 40px;
    opacity: .07;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000);
    mask-image: linear-gradient(90deg, transparent, #000);
}
.follow-title { margin: 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--ink); }
.follow-copy p { margin: .35rem 0 0; color: var(--ink-2); }
.follow-actions { display: flex; flex-wrap: wrap; gap: .625rem; }
.follow-form { display: flex; flex-wrap: wrap; gap: .5rem; }
.input {
    flex: 1 1 14rem;
    min-height: 2.75rem;
    padding: .5rem 1rem;
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
}
.form-note { display: none; flex-basis: 100%; margin: 0; font-size: .875rem; }
.follow-form.success .form-success, .follow-form.error .form-error { display: block; }

/* 14 Post content & Ghost cards ------------------------------------------- */
.gh-content {
    margin-top: clamp(2rem, 4vw, 2.75rem);
    font-family: var(--font-text);
    font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
    line-height: 1.75;
    color: var(--text);
    overflow-wrap: break-word;
}
.gh-content > * { margin-top: 0; margin-bottom: 0; }
.gh-content > * + * { margin-top: 1.4em; }
.gh-content > .kg-width-wide { grid-column: wide; }
.gh-content > .kg-width-full { grid-column: full; }

.gh-content h2, .gh-content h3, .gh-content h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.01em;
    color: var(--ink);
}
.gh-content > :is(h2, h3, h4) { margin-top: 2em; }
.gh-content > :is(h2, h3, h4) + * { margin-top: .7em; }
.gh-content h2 { font-size: 1.6em; }
.gh-content h3 { font-size: 1.3em; }
.gh-content h4 { font-size: 1.1em; }
.gh-content h1 { font-family: var(--font-display); font-size: 1.9em; line-height: 1.15; color: var(--ink); }

.gh-content a {
    color: var(--brand);
    text-decoration: underline;
    text-decoration-thickness: .07em;
    text-underline-offset: .18em;
}
.gh-content a:hover { text-decoration-thickness: .14em; }
.gh-content strong { font-weight: 700; color: var(--ink); }

.gh-content ul, .gh-content ol { padding-left: 1.4em; }
.gh-content ul { list-style: disc; }
.gh-content ol { list-style: decimal; }
.gh-content li + li { margin-top: .5em; }
.gh-content li::marker { color: var(--brand); }

.gh-content blockquote:not([class]) {
    margin-inline: 0;
    padding-left: 1.25em;
    border-left: 3px solid var(--brand);
    font-style: italic;
    font-size: 1.08em;
    color: var(--ink);
}
.gh-content .kg-blockquote-alt {
    padding: 0 1em;
    font-family: var(--font-display);
    font-size: 1.4em;
    font-style: italic;
    line-height: 1.4;
    text-align: center;
    color: var(--brand);
}

.gh-content hr {
    width: 6rem;
    height: 0;
    margin-block: 2.5em;
    border: 0;
    border-top: 2px solid var(--line-strong);
    justify-self: center;
}

.gh-content table {
    display: block;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-family: var(--font-ui);
    font-size: .875em;
    line-height: 1.5;
}
.gh-content th, .gh-content td { padding: .6em .9em; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.gh-content th { background: var(--paper-2); font-weight: 700; color: var(--ink); }

.gh-content code { padding: .1em .35em; border-radius: 4px; background: var(--paper-2); font-size: .85em; }
.gh-content pre { overflow-x: auto; padding: 1em 1.25em; border-radius: var(--radius-sm); background: var(--ink); color: #f4eee6; font-size: .85em; }
.gh-content pre code { padding: 0; background: none; }

.gh-content figure { margin-inline: 0; }
.gh-content figcaption {
    margin-top: .75em;
    font-family: var(--font-ui);
    font-size: .8125rem;
    line-height: 1.5;
    color: var(--muted);
    text-align: center;
}
.kg-image-card img { display: block; margin-inline: auto; border-radius: var(--radius-sm); }
.kg-width-full.kg-image-card img { border-radius: 0; width: 100%; }
.kg-gallery-image img { border-radius: 6px; }
.kg-embed-card { display: flex; flex-direction: column; align-items: center; }

.gh-content .kg-bookmark-container {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    font-family: var(--font-ui);
    box-shadow: var(--shadow-sm);
}
.gh-content .kg-bookmark-container:hover { border-color: var(--brand); }
/* Ghost's card CSS loads after ours and sets a system font on these. */
.gh-content .kg-bookmark-content,
.gh-content .kg-file-card a.kg-file-card-container { font-family: var(--font-ui); }
.gh-content .kg-bookmark-title { font-weight: 700; color: var(--ink); }
.gh-content .kg-bookmark-description { color: var(--ink-2); opacity: 1; }
.gh-content .kg-file-card-container { border-radius: var(--radius); text-decoration: none; }
.gh-content :is(.kg-file-card-caption, .kg-file-card-filename, .kg-file-card-filesize) { color: var(--muted); opacity: 1; }
/* Phones: stack the bookmark card so its image keeps its shape. */
@media (max-width: 599px) {
    .gh-content .kg-bookmark-container { flex-direction: column-reverse; }
    .gh-content .kg-bookmark-thumbnail { flex: none; min-width: 0; max-height: none; aspect-ratio: 1.91 / 1; }
    .gh-content .kg-bookmark-thumbnail img { border-radius: 0; }
}
.gh-content .kg-callout-card { font-family: var(--font-ui); font-size: .95em; border-radius: var(--radius); }
.gh-content .kg-button-card a.kg-btn { font-family: var(--font-ui); border-radius: 999px; text-decoration: none; }
.gh-content .kg-toggle-card { font-family: var(--font-ui); border-radius: var(--radius); }
.gh-content .kg-toggle-heading-text { font-family: var(--font-display); }

/* 15 Legacy content compatibility ----------------------------------------
   Older posts were written with Tailwind utility classes (served by a CDN
   script that has been removed) and WordPress block classes. These rules
   keep those posts looking as authored. Scoped to post content only. */
.gh-content .flex { display: flex; }
.gh-content .flex-col { flex-direction: column; }
.gh-content .items-center { align-items: center; }
.gh-content .gap-4 { gap: 1rem; }
.gh-content .p-4 { padding: 1rem; }
.gh-content .p-8 { padding: 2rem; }
.gh-content .mx-auto { margin-inline: auto; }
.gh-content .relative { position: relative; }
.gh-content .overflow-auto { overflow: auto; }
.gh-content .max-w-full { max-width: 100%; }
.gh-content .h-24 { height: 6rem; }
.gh-content .object-fill { object-fit: fill; }
.gh-content .rounded-xl { border-radius: .75rem; }
.gh-content .rounded-md { border-radius: .375rem; }
.gh-content .bg-white { background-color: #fff; }
.gh-content .bg-slate-200 { background-color: #e2e8f0; }
.gh-content .shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1); }
.gh-content .shadow-lg.ring-1 { box-shadow: 0 0 0 1px rgb(0 0 0 / .05), 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1); }
.gh-content .divide-y > * + * { border-top: 1px solid #e2e8f0; }
.gh-content .text-slate-900 { color: #0f172a; }
.gh-content .text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.gh-content .font-medium { font-weight: 500; }
.gh-content .font-light { font-weight: 300; }
.gh-content .list-disc { list-style: disc; }
.gh-content .flex > *, .gh-content .divide-y > * { margin-top: 0; }
/* Let flex children shrink below their longest word (long URLs), so these
   cards wrap on phones instead of scrolling sideways. */
.gh-content .flex > * { min-width: 0; }
.gh-content .flex a { overflow-wrap: anywhere; }

.gh-content .has-text-align-left { text-align: left; }
.gh-content .alignleft { float: left; max-width: 50%; margin: .3em 1.5em 1em 0; }
.gh-content .alignfull { grid-column: wide; }
.gh-content .has-background { padding: 1.25em 1.5em; border-radius: var(--radius-sm); }
.gh-content .has-very-light-gray-background-color { background-color: #eeeeee; }
.gh-content .has-very-dark-gray-color { color: #313131; }
.gh-content .wp-block-pullquote { margin-inline: 0; padding: 1.5em 0; border-block: 3px solid var(--brand); text-align: center; }
.gh-content .wp-block-pullquote blockquote { margin: 0; font-family: var(--font-display); font-size: 1.3em; font-style: italic; }

/* 16 Footer --------------------------------------------------------------- */
.site-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-top: clamp(3rem, 6vw, 4.5rem);
    background: var(--footer-bg);
    color: #d6cbc6;
    font-size: .9375rem;
}
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--kawung-gold) 0 0 / 56px;
    opacity: .05;
}
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 900px) {
    .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 3.5rem; }
}
.footer-brand { display: inline-block; }
.footer-brand img { display: block; width: 150px; height: auto; border-radius: var(--radius-sm); }
.footer-desc { max-width: 28rem; margin: 1.25rem 0 0; line-height: 1.65; }
.footer-social { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.footer-social a {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgb(255 255 255 / .2);
    border-radius: 50%;
    color: #fff;
    transition: background-color .15s, color .15s, border-color .15s;
}
.footer-social a:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--brand-900); }
.footer-heading {
    margin: 0 0 1.25rem;
    font: 800 .75rem/1 var(--font-ui);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-soft);
}
.site-footer .nav { display: grid; gap: .125rem; }
.site-footer .nav a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem 0;
    color: #fff;
    text-decoration: none;
}
.site-footer .nav a:hover { color: var(--gold-soft); text-decoration: underline; text-underline-offset: .2em; }
.site-footer .nav-item-icon .icon { width: 18px; height: 18px; }
.footer-address { display: grid; gap: .875rem; font-style: normal; }
.footer-line { display: flex; gap: .75rem; margin: 0; line-height: 1.55; }
.footer-line .icon { flex: none; width: 18px; height: 18px; margin-top: .15rem; color: var(--gold-soft); }
.footer-line a { color: #fff; }
.footer-line a:hover { color: var(--gold-soft); }
.footer-cta { margin-top: 1.75rem; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    padding-block: 1.5rem;
    border-top: 1px solid rgb(255 255 255 / .12);
    font-size: .8125rem;
    color: #b2a6a1;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: inherit; }

/* 17 Error page ----------------------------------------------------------- */
.error-page {
    padding-block: clamp(4rem, 10vw, 7rem);
    text-align: center;
    background:
        radial-gradient(800px 380px at 50% -10%, var(--brand-50), transparent 65%),
        var(--paper);
}
.error-code {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(5rem, 3rem + 10vw, 9rem);
    font-weight: 700;
    line-height: 1;
    color: var(--brand-100);
}
.error-title { margin: .5rem 0 0; font-family: var(--font-display); font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); font-weight: 600; color: var(--ink); }
.error-text { max-width: 32rem; margin: 1rem auto 0; color: var(--ink-2); }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.error-details { text-align: left; }

/* 18 Motion & print ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .topbar, .site-header, .site-footer, .share, .follow-box, .section-related, .join, .skip-link { display: none !important; }
    body { background: #fff; }
    .gh-content a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
