:root {
    color-scheme: light;
    --paper: #f5f1e8;
    --ink: #17221d;
    --muted: #59645f;
    --line: rgba(23, 34, 29, 0.16);
    --accent: #29533f;
    --accent-2: #c68b2f;
    --surface: rgba(255, 255, 255, 0.72);
    --shadow: 0 24px 70px rgba(23, 34, 29, 0.12);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 0%, rgba(198, 139, 47, 0.18), transparent 31rem),
        linear-gradient(180deg, #fbf8f1 0%, var(--paper) 100%);
}

body.elsewright {
    --paper: #eeeaf4;
    --ink: #20192a;
    --muted: #665d70;
    --line: rgba(32, 25, 42, 0.16);
    --accent: #593e70;
    --accent-2: #c05c3f;
    background:
        radial-gradient(circle at 88% 2%, rgba(192, 92, 63, 0.18), transparent 30rem),
        linear-gradient(180deg, #faf7fc 0%, var(--paper) 100%);
}

body.jamdoku {
    --paper: #edf3ec;
    --ink: #17251e;
    --muted: #58665f;
    --line: rgba(23, 37, 30, 0.16);
    --accent: #29533f;
    --accent-2: #c68b2f;
    background:
        linear-gradient(rgba(41, 83, 63, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(41, 83, 63, 0.035) 1px, transparent 1px),
        radial-gradient(circle at 84% 4%, rgba(198, 139, 47, 0.2), transparent 29rem),
        linear-gradient(180deg, #f9fbf7 0%, var(--paper) 100%);
    background-size: 3rem 3rem, 3rem 3rem, auto, auto;
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 3px solid var(--accent-2);
    outline-offset: 4px;
    border-radius: 0.2rem;
}

.shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--line);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.wordmark-dot {
    width: 0.72rem;
    height: 0.72rem;
    border: 2px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0.32rem 0.32rem 0 0 var(--accent-2);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem 1.15rem;
}

.site-nav a {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 650;
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--accent);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
    align-items: center;
    gap: clamp(2.5rem, 7vw, 7rem);
    min-height: 38rem;
    padding: clamp(4rem, 9vw, 8rem) 0;
}

.eyebrow {
    margin: 0 0 1.1rem;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.035em;
}

h1 {
    max-width: 13ch;
    margin-bottom: 1.4rem;
    font-size: clamp(3.25rem, 8vw, 7.3rem);
    font-weight: 500;
    line-height: 0.92;
}

h2 {
    max-width: 18ch;
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 500;
    line-height: 1.02;
}

h3 {
    margin-bottom: 0.65rem;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.lede {
    max-width: 39rem;
    margin-bottom: 2rem;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.65;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.button {
    display: inline-flex;
    min-height: 2.9rem;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1.1rem;
    border: 1px solid var(--accent);
    border-radius: 999px;
    color: white;
    background: var(--accent);
    font-size: 0.88rem;
    font-weight: 750;
    text-decoration: none;
}

.button.secondary {
    color: var(--accent);
    background: transparent;
}

.button:hover {
    transform: translateY(-1px);
}

.hero-mark {
    position: relative;
    width: min(100%, 24rem);
    aspect-ratio: 1;
    justify-self: end;
    border: 1px solid var(--line);
    border-radius: 46% 54% 62% 38% / 48% 37% 63% 52%;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.16)),
        var(--surface);
    box-shadow: var(--shadow);
    transform: rotate(3deg);
}

.hero-mark::before,
.hero-mark::after {
    position: absolute;
    content: "";
}

.hero-mark::before {
    inset: 18%;
    border: 1px solid var(--accent);
    border-radius: 50%;
}

.hero-mark::after {
    width: 34%;
    height: 34%;
    right: 13%;
    bottom: 14%;
    border-radius: 0.8rem;
    background: var(--accent-2);
    box-shadow: -5rem -5rem 0 -0.8rem var(--accent);
    transform: rotate(-9deg);
}

.grid-mark {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.38rem;
    width: min(100%, 23rem);
    aspect-ratio: 1;
    justify-self: end;
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: 2.1rem;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

.grid-mark span {
    border: 1px solid rgba(41, 83, 63, 0.25);
    border-radius: 0.5rem;
    background: rgba(41, 83, 63, 0.06);
}

.grid-mark span:nth-child(3n + 1) {
    background: rgba(198, 139, 47, 0.28);
}

.grid-mark img {
    grid-column: 2 / 4;
    grid-row: 2 / 4;
    z-index: 1;
    width: 100%;
    align-self: center;
    border-radius: 22%;
    box-shadow: 0 1rem 2.5rem rgba(23, 37, 30, 0.2);
}

.section {
    padding: clamp(4rem, 8vw, 7rem) 0;
    border-top: 1px solid var(--line);
}

.section-intro {
    display: grid;
    grid-template-columns: 0.55fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.section-intro p {
    max-width: 43rem;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.7;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.card {
    min-height: 15rem;
    padding: 1.45rem;
    border: 1px solid var(--line);
    border-radius: 1.2rem;
    background: var(--surface);
}

.card-index {
    display: block;
    margin-bottom: 3.4rem;
    color: var(--accent-2);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
}

.card p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.55;
}

.statement {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: end;
}

.statement blockquote {
    margin: 0;
    color: var(--accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 5vw, 4.8rem);
    line-height: 1.02;
}

.statement p {
    max-width: 35rem;
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.7;
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    padding: 2.2rem 0 3.5rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.6;
}

.site-footer p {
    max-width: 48rem;
    margin: 0;
}

.site-footer a {
    font-weight: 700;
    text-underline-offset: 0.2em;
}

@media (max-width: 760px) {
    .site-header,
    .section-intro,
    .statement,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .site-header {
        align-items: flex-start;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 4.5rem;
    }

    .hero-mark,
    .grid-mark {
        width: min(88vw, 21rem);
        justify-self: center;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card {
        min-height: 0;
    }

    .card-index {
        margin-bottom: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button:hover {
        transform: none;
    }
}

