:root {
    --ink: #121816;
    --mist: #f2f4f1;
    --paper: #e9ece7;
    --teal: #0b3f3a;
    --teal-deep: #062825;
    --coral: #ff5a36;
    --coral-soft: #ffd8ce;
    --muted: #5d6a64;
    --line: rgba(18, 24, 22, 0.12);
    --shadow: 0 24px 60px rgba(6, 40, 37, 0.18);
    --radius: 18px;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Sora", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(255, 90, 54, 0.12), transparent 55%),
        radial-gradient(900px 500px at 100% 0%, rgba(11, 63, 58, 0.18), transparent 50%),
        linear-gradient(180deg, #f7f8f5 0%, var(--mist) 40%, #eef1ec 100%);
    min-height: 100vh;
    line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0; }

.noise {
    pointer-events: none;
    position: fixed;
    inset: 0;
    opacity: 0.04;
    z-index: 50;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 6vw;
    backdrop-filter: blur(14px);
    background: rgba(242, 244, 241, 0.78);
    border-bottom: 1px solid var(--line);
}

.brand { display: flex; flex-direction: column; gap: 0.1rem; }
.brand-mark {
    font-family: var(--font-display);
    font-size: 1.55rem;
    letter-spacing: 0.08em;
}
.brand-sub { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }

.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav a {
    font-size: 0.92rem;
    color: var(--muted);
    position: relative;
}
.nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%; bottom: -0.35rem;
    height: 2px;
    background: var(--coral);
    transition: right 0.35s ease;
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { right: 0; }

.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: #f7faf8;
}

.hero-media { position: absolute; inset: 0; }
.hero-img, .hero-fallback {
    width: 100%; height: 100%; object-fit: cover;
    animation: ken 18s ease-in-out infinite alternate;
}
.hero-fallback {
    background:
        linear-gradient(135deg, #0b3f3a, #163a48 45%, #2a1f1a),
        radial-gradient(circle at 70% 30%, rgba(255,90,54,.35), transparent 40%);
}
.hero-veil {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(6,40,37,0.15) 0%, rgba(6,40,37,0.35) 40%, rgba(6,40,37,0.88) 100%);
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding: 0 6vw 8vh;
    max-width: 820px;
}

.brand-hero {
    font-size: clamp(4.5rem, 14vw, 9rem);
    letter-spacing: 0.04em;
    margin: 0.2rem 0 0.6rem;
    animation: rise 1s ease both;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    color: var(--coral-soft);
    margin: 0;
}
.hero .lede, .page-hero .lede {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    max-width: 34rem;
    opacity: 0.92;
}

.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-top: 1.6rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-ghost { border: 1px solid rgba(255,255,255,0.45); color: #fff; }

.type-rail, .featured-block, .latest-grid, .type-section, .page-hero, .related, .article {
    padding: 4.5rem 6vw 0;
}
.type-section:last-of-type, .latest-grid { padding-bottom: 4rem; }

.type-rail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: -2.5rem;
    position: relative;
    z-index: 3;
}
.type-chip {
    background: rgba(255,255,255,0.82);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
    box-shadow: var(--shadow);
    display: grid;
    gap: 0.35rem;
    transition: transform 0.3s ease;
}
.type-chip:hover { transform: translateY(-4px); }
.type-chip-label { font-family: var(--font-display); font-size: 1.35rem; }
.type-chip-count { color: var(--coral); font-weight: 600; font-size: 0.9rem; }
.type-chip-line { color: var(--muted); font-size: 0.9rem; }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head p, .section-head a { color: var(--muted); }

.featured-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 1.5rem;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.featured-card img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.featured-card > div { padding: 2rem 2rem 2rem 0.5rem; display: grid; align-content: center; gap: 0.8rem; }
.featured-card h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.featured-card p { color: var(--muted); margin: 0; }
.featured-card time { color: var(--muted); font-size: 0.85rem; }

.pill {
    display: inline-flex;
    width: fit-content;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--teal);
    color: #fff;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
}
.post-grid.padded { padding: 0 6vw 3rem; }

.post-tile a {
    display: grid;
    gap: 0.75rem;
    height: 100%;
    padding: 0.75rem;
    border-radius: 22px;
    background: rgba(255,255,255,0.55);
    border: 1px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.post-tile a:hover {
    transform: translateY(-4px);
    border-color: var(--line);
    background: #fff;
}
.post-tile-media {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    background: var(--paper);
}
.post-tile-media img, .post-tile-fallback {
    width: 100%; height: 100%; object-fit: cover;
}
.post-tile-fallback {
    background: linear-gradient(135deg, #0b3f3a, #ff5a36 140%);
}
.post-tile-media .pill { position: absolute; left: 0.75rem; top: 0.75rem; }
.post-tile h3 { font-size: 1.25rem; }
.post-tile p, .post-tile time { margin: 0; color: var(--muted); font-size: 0.92rem; }

.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 0.4rem 0; }

.about-hero,
.join-hero,
.about-page,
.join-page {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}
.about-hero,
.join-hero {
    padding-bottom: 1.5rem;
}
.about-page,
.join-page {
    padding: 0 6vw 4rem;
}
.about-block p {
    margin: 0;
    font-size: clamp(1.05rem, 0.3vw + 1rem, 1.15rem);
    color: #24302c;
    line-height: 1.75;
}
.about-meta {
    margin: 2rem 0 0;
    display: grid;
    gap: 1.25rem;
}
.about-meta dt {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 0.35rem;
}
.about-meta dd {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--teal);
    font-style: italic;
}
.about-divider {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 2.75rem 0;
}
.about-bn p {
    font-size: 1.08rem;
    line-height: 1.9;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.filter {
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.6);
    font-size: 0.88rem;
}
.filter.is-active, .filter:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

.article { max-width: 820px; margin: 0 auto; padding-bottom: 3rem; }
.article-header { padding-top: 3rem; display: grid; gap: 1rem; }
.article-header h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.article-meta { color: var(--muted); display: flex; gap: 0.5rem; flex-wrap: wrap; }
.article-hero {
    margin: 2rem 0;
    border-radius: 24px;
    overflow: hidden;
}
.article-hero img { width: 100%; max-height: 520px; object-fit: cover; }
.article-body {
    font-size: 1.05rem;
    color: #24302c;
}
.article-body img {
    margin: 1.5rem auto;
    border-radius: 14px;
}
.article-body a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.source-link {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    word-break: break-all;
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer {
    margin-top: 4rem;
    padding: 3rem 6vw;
    background: var(--teal-deep);
    color: #e8efec;
    display: grid;
    gap: 0.6rem;
}
.footer-brand {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.08em;
}
.pagination-wrap { padding: 1rem 6vw 4rem; }
.pagination { display: flex; gap: 1rem; align-items: center; justify-content: center; }
.pagination a { color: var(--teal); font-weight: 500; }
.page-disabled, .page-status { color: var(--muted); }

.empty { color: var(--muted); grid-column: 1 / -1; }

.team-hero .motto {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--teal);
}
.team-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 6vw 4rem;
}
.team-section {
    padding: 2.5rem 0 0.5rem;
    border-top: 1px dashed var(--line);
}
.team-section:first-of-type { border-top: 0; padding-top: 0.5rem; }
.team-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 1.75rem;
    color: var(--teal-deep);
}
.team-founder {
    display: grid;
    gap: 1.25rem;
    max-width: 520px;
}
.team-founder-photo {
    border-radius: 18px;
    overflow: hidden;
    background: var(--paper);
    aspect-ratio: 1;
    max-width: 360px;
}
.team-founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-founder-copy h3 {
    font-size: 1.45rem;
    margin: 0 0 0.65rem;
}
.team-founder-copy h3 a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.team-founder-bio {
    color: #24302c;
    font-size: 1rem;
    line-height: 1.7;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem 1.25rem;
}
.team-card { text-align: center; display: grid; gap: 0.65rem; justify-items: center; }
.team-card-photo {
    width: 100%;
    max-width: 180px;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    background: var(--paper);
}
.team-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0b3f3a, #163a48);
    color: #fff;
    font-family: var(--font-display);
    font-size: 2.5rem;
}
.team-card h3 { font-size: 1.05rem; margin: 0; }
.team-card h3 a {
    color: var(--teal);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.team-role {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    font-family: var(--font-display);
    font-style: italic;
}
.team-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,0.7);
}
.team-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.team-table th, .team-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.team-table th {
    background: #eef3f0;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.82rem;
}
.team-table tr:last-child td { border-bottom: 0; }
.team-table a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.team-empty { padding: 2rem 0; }

.member-profile {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 6vw 4rem;
}
.team-profile-hero { padding-bottom: 1rem; }
.team-profile-hero .eyebrow a { color: var(--muted); }
.member-intro {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}
.member-photo {
    border-radius: 16px;
    overflow: hidden;
    background: var(--paper);
    aspect-ratio: 1;
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-photo-fallback { min-height: 260px; }
.member-bio h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 1rem; color: var(--teal-deep); }
.member-bio-text {
    color: #24302c;
    font-size: 1.02rem;
    line-height: 1.75;
}
.member-accordion { margin-top: 2.5rem; display: grid; gap: 0.35rem; }
.member-acc {
    border-bottom: 1px solid var(--line);
    padding: 0.15rem 0;
}
.member-acc summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0.15rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--teal-deep);
}
.member-acc summary::-webkit-details-marker { display: none; }
.member-acc-icon {
    width: 0.65rem;
    height: 0.65rem;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
.member-acc[open] .member-acc-icon { transform: rotate(-135deg); margin-top: 0.35rem; }
.member-acc-body { padding: 0 0.15rem 1.15rem; color: #24302c; }
.member-acc-body ul {
    margin: 0;
    padding-left: 1.15rem;
    display: grid;
    gap: 0.45rem;
}

.themes-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 6vw 4rem;
    display: grid;
    gap: 3rem;
}
.theme-block {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 2rem;
    align-items: start;
}
.theme-media {
    border-radius: 18px;
    overflow: hidden;
    background: var(--paper);
    aspect-ratio: 1;
}
.theme-media img { width: 100%; height: 100%; object-fit: cover; }
.theme-media-fallback {
    width: 100%;
    height: 100%;
    min-height: 220px;
    background:
        linear-gradient(135deg, rgba(11,63,58,0.9), rgba(255,90,54,0.55)),
        radial-gradient(circle at 30% 30%, #fff6, transparent 50%);
}
.theme-copy { display: grid; gap: 0.85rem; align-content: start; }
.theme-copy h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--teal-deep);
    margin: 0;
}
.theme-title-bn { margin-top: 0.75rem; }
.theme-copy p {
    margin: 0;
    color: #24302c;
    font-size: 1.02rem;
    line-height: 1.7;
}

.join-intro {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.35rem 1.5rem;
    margin-bottom: 1.25rem;
    display: grid;
    gap: 0.85rem;
}
.join-intro p { margin: 0; color: #24302c; line-height: 1.7; }
.join-required-note { color: #b42318; font-size: 0.9rem; }
.join-flash {
    background: #e7f7ef;
    border: 1px solid #9fd6b5;
    color: #0f5132;
    padding: 0.9rem 1.1rem;
    border-radius: 14px;
    margin-bottom: 1.25rem;
}
.join-form { display: grid; gap: 1rem; }
.join-field {
    display: grid;
    gap: 0.45rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.1rem 1.2rem 1.2rem;
}
.join-label { font-weight: 600; color: var(--ink); font-size: 0.98rem; }
.join-hint { color: var(--muted); font-size: 0.85rem; line-height: 1.45; }
.join-field input,
.join-field select,
.join-field textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 0.65rem 0;
    font: inherit;
    background: transparent;
    color: var(--ink);
}
.join-field input:focus,
.join-field select:focus,
.join-field textarea:focus {
    outline: none;
    border-bottom-color: var(--teal);
}
.join-checkboxes {
    gap: 0.75rem;
    overflow: visible;
}
.join-checkboxes .join-label {
    margin: 0;
    line-height: 1.45;
}
.join-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: #24302c;
    cursor: pointer;
    line-height: 1.45;
}
.join-check input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    min-width: 1.05rem;
    margin: 0.15rem 0 0;
    flex-shrink: 0;
    accent-color: var(--teal);
    border: 0;
    padding: 0;
}
.req { color: #b42318; }
.join-submit {
    justify-self: start;
    margin-top: 0.35rem;
    border: 0;
    cursor: pointer;
}
.error { color: #b42318; font-size: 0.85rem; }

@media (max-width: 960px) {
    .type-rail, .post-grid, .featured-card { grid-template-columns: 1fr; }
    .featured-card > div { padding: 1.25rem; }
    .site-header { flex-direction: column; align-items: flex-start; }
    .hero { min-height: 78vh; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .member-intro { grid-template-columns: 1fr; }
    .theme-block { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .team-grid { grid-template-columns: 1fr; }
}

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes ken {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}
@keyframes rise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}
