:root {
    /* Bavaria-themed: white ground, black type, flag blue accents */
    --paper: #ffffff;
    --ink: #000000;
    --muted: #4a4a4a;
    --line: #d6d6d6;
    --accent: #0077b6;
    --hover: #e8f4fa;
    --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
    --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: -0.011em;
}

a {
    color: inherit;
}

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

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.skip {
    position: absolute;
    left: 1rem;
    top: 0;
    transform: translateY(-120%);
    background: var(--ink);
    color: var(--paper);
    padding: 0.55rem 0.8rem;
    z-index: 5;
}

.skip:focus {
    transform: none;
}

.top,
main,
footer,
.page {
    width: min(40rem, calc(100% - 2.5rem));
    margin-inline: auto;
}

.top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding-top: 1.4rem;
    font-size: 0.92rem;
}

.top-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.85rem 1.15rem;
}

.top-nav {
    color: var(--muted);
    font-weight: 500;
    text-decoration: none;
}

.top-nav:hover,
.top-nav.is-active {
    color: var(--ink);
}

.top-nav.is-active {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.lang {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.lang button {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    cursor: pointer;
}

.lang button:hover,
.lang button.is-active {
    color: var(--ink);
}

.lang button.is-active {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.lang-sep {
    color: var(--line);
}

.mark,
.top-cta,
footer a,
.back {
    text-decoration: none;
}

.mark {
    font-weight: 500;
}

.top-cta,
.back,
footer {
    color: var(--muted);
}

.top-cta {
    font-weight: 500;
    color: var(--ink);
    text-align: right;
}

.top-cta:hover {
    color: var(--accent);
}

.hero {
    margin-top: clamp(3.5rem, 12vh, 7rem);
}

.role {
    margin: 0 0 1rem;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-title {
    margin: 0;
    max-width: 12em;
    font-family: var(--serif);
    font-weight: 560;
    letter-spacing: -0.04em;
}

.hero-lead {
    display: block;
    font-size: clamp(2.7rem, 6.4vw, 4.35rem);
    line-height: 0.96;
}

.hero-payoff {
    display: block;
    margin-top: 1.15rem;
    padding-top: 0.95rem;
    border-top: 2px solid var(--accent);
    max-width: 14em;
    font-size: clamp(1.45rem, 2.6vw, 1.95rem);
    font-style: italic;
    font-weight: 460;
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.hero-name {
    margin: 1.7rem 0 0;
    font-family: var(--serif);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 560;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.hero-name em {
    font-style: italic;
    font-weight: 460;
}

.hero-cred {
    margin: 0.55rem 0 0;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    line-height: 1.45;
    text-transform: uppercase;
}

.lede {
    margin: 1.15rem 0 0;
    max-width: 28rem;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.5;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    margin-top: 0.35rem;
    padding: 0 0 0.22rem;
    border: 0;
    border-bottom: 1.5px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 1.12rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    appearance: none;
}

.btn:hover {
    background: transparent;
    border-bottom-color: var(--accent);
    color: var(--accent);
}

.btn-go {
    color: var(--muted);
    transition: transform 160ms ease;
}

.btn:hover .btn-go {
    color: var(--accent);
    transform: translateX(3px);
}

.start-line {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.5;
}

.cta-note {
    margin-top: 0.75rem !important;
    max-width: 28rem;
    color: var(--muted);
    font-size: 1.02rem !important;
}

.lead-form {
    display: grid;
    gap: 1.05rem;
    margin-top: 1.5rem;
    max-width: 28rem;
}

.field {
    display: grid;
    gap: 0.35rem;
}

.field label {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.field input,
.field select {
    width: 100%;
    margin: 0;
    padding: 0.55rem 0.1rem;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    appearance: none;
}

.field select {
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 1.4rem;
}

.field input::placeholder {
    color: #9a9a9a;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

.form-note {
    margin: 0.2rem 0 0;
    max-width: 28rem;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.form-note a {
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
}

.form-error {
    margin: 0;
    color: #8d1d1d;
    font-size: 0.95rem;
    line-height: 1.4;
}

.form-error:empty {
    display: none;
}

h1 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 560;
    font-size: clamp(3.4rem, 8vw, 5.4rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
}

h1 em {
    font-style: italic;
    font-weight: 460;
}

.block {
    margin-top: 3.25rem;
}

h2 {
    margin: 0 0 0.75rem;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.prose p {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.5;
}

.prose p + p {
    margin-top: 1rem;
}

.prose a {
    color: var(--ink);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
}

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

.lines {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--line);
}

.lines li {
    margin: 0;
    padding: 0.9rem 0.15rem;
    border-top: 1px solid var(--line);
    font-size: 1.08rem;
    line-height: 1.45;
}

.rows {
    border-bottom: 1px solid var(--line);
}

.row {
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: baseline;
    padding: 0.95rem 0.15rem;
    border-top: 1px solid var(--line);
    text-decoration: none;
}

.row:hover {
    background: var(--hover);
}

.row-name {
    font-weight: 500;
}

.row-note,
.go {
    color: var(--muted);
}

.go {
    transition: transform 160ms ease;
}

.row:hover .row-name,
.row:hover .go {
    color: var(--accent);
}

.row:hover .go {
    transform: translateX(3px);
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-top: 4rem;
    padding: 1.3rem 0 2rem;
    border-top: 1px solid var(--line);
    font-size: 0.92rem;
}

.foot-meta {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.35rem;
    min-width: 0;
    white-space: nowrap;
}

.foot-name {
    color: var(--ink);
    font-weight: 500;
}

.foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.15rem;
    justify-content: flex-end;
    align-items: baseline;
}

.page {
    margin-top: clamp(3rem, 8vh, 5rem);
    margin-bottom: 4rem;
}

.page h1 {
    font-size: clamp(3rem, 8vw, 4.4rem);
    margin-bottom: 1.25rem;
}

.page-intro {
    margin: -0.4rem 0 0;
    color: var(--muted);
}

.page h2 {
    margin-top: 2.1rem;
}

.page p {
    margin: 0.4rem 0 0;
    font-size: 1.02rem;
}

.page p + p {
    margin-top: 0.75rem;
}

.page a {
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
}

.back {
    display: inline-block;
    margin-bottom: 1.6rem;
}

/* Articles / posts ------------------------------------------------ */

::selection {
    background: #cfe8f5;
    color: var(--ink);
}

.page.articles-index,
.page.post {
    position: relative;
}

.page.articles-index .back,
.page.post .back {
    margin-bottom: 2.1rem;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
}

.page.articles-index h1,
.page.post h1 {
    font-family: var(--serif);
    font-weight: 560;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.page.articles-index h1 {
    font-size: clamp(2.7rem, 7.2vw, 3.95rem);
    line-height: 0.98;
    margin: 0 0 0.2rem;
}

.page.articles-index h1::after {
    content: "";
    display: block;
    width: 2.75rem;
    height: 2px;
    margin-top: 1.05rem;
    background: var(--accent);
}

.article-list {
    margin-top: 2.35rem;
}

.article-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 1.1rem;
    row-gap: 0.4rem;
    align-items: center;
    padding: 1.45rem 0.2rem 1.5rem 0.95rem;
    border-top: 1px solid var(--line);
    text-decoration: none;
    transition: background-color 160ms ease;
}

.article-card:last-child {
    border-bottom: 1px solid var(--line);
}

.article-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.25rem;
    bottom: 1.25rem;
    width: 2px;
    background: transparent;
    transition: background-color 160ms ease, top 160ms ease, bottom 160ms ease;
}

.article-card:hover {
    background: linear-gradient(90deg, var(--hover) 0%, transparent 70%);
}

.article-card:hover::before {
    top: 0.85rem;
    bottom: 0.85rem;
    background: var(--accent);
}

.article-card-date {
    grid-column: 1 / -1;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.article-card-title {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.55rem, 3.7vw, 2.05rem);
    font-weight: 560;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-wrap: balance;
    transition: color 160ms ease;
}

.article-card-dek {
    grid-column: 1;
    margin: 0.05rem 0 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.48;
    max-width: 33rem;
}

.article-card-go {
    grid-row: 2 / 4;
    grid-column: 2;
    align-self: center;
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1;
    transition: transform 180ms ease, color 160ms ease;
}

.article-card:hover .article-card-title,
.article-card:hover .article-card-go {
    color: var(--accent);
}

.article-card:hover .article-card-go {
    transform: translateX(5px);
}

.page.post {
    width: min(38.5rem, calc(100% - 2.5rem));
}

.page.post h1 {
    font-size: clamp(2.25rem, 6.2vw, 3.35rem);
    line-height: 1.05;
    margin: 0 0 1rem;
}

.post-meta {
    margin: 0 0 0.95rem;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.post-dek {
    position: relative;
    margin: 0 0 2.15rem;
    padding: 0 0 1.55rem 1.05rem;
    border-left: 2px solid var(--accent);
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(1.22rem, 2.9vw, 1.48rem);
    font-weight: 460;
    font-style: italic;
    line-height: 1.38;
    letter-spacing: -0.018em;
    max-width: 33rem;
    text-wrap: pretty;
}

.post-dek::after {
    content: "";
    position: absolute;
    left: 1.05rem;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--line) 0%, transparent 100%);
}

.post-body {
    max-width: 35.5rem;
}

.post-body p {
    margin: 1.15rem 0 0;
    font-size: 1.07rem;
    line-height: 1.72;
    letter-spacing: -0.011em;
    text-wrap: pretty;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.post-body p:first-child {
    margin-top: 0;
}

.post-body p:first-child::first-letter {
    float: left;
    margin: 0.08rem 0.55rem 0 0;
    color: var(--accent);
    font-family: var(--serif);
    font-size: 3.55rem;
    font-weight: 560;
    line-height: 0.82;
    letter-spacing: -0.04em;
}

.post-body p.is-bridge {
    margin-top: 1.85rem;
    margin-bottom: 0.15rem;
    max-width: 28rem;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(1.12rem, 2.4vw, 1.28rem);
    font-weight: 520;
    font-style: normal;
    line-height: 1.35;
    letter-spacing: -0.022em;
}

.post-body p.is-bridge + p {
    margin-top: 0.95rem;
}

.post-cta {
    position: relative;
    margin-top: 3rem;
    padding: 1.45rem 0 0.15rem 1.1rem;
    border-top: 1px solid var(--line);
    border-left: 2px solid var(--accent);
    max-width: 33rem;
}

.post-cta::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 100%;
    background: linear-gradient(90deg, var(--hover) 0%, transparent 62%);
    pointer-events: none;
    z-index: 0;
}

.post-cta > * {
    position: relative;
    z-index: 1;
}

.post-cta p {
    margin: 0 0 1.05rem;
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.5;
    max-width: 28rem;
}

.post-cta .btn {
    margin-top: 0.1rem;
}

@media (max-width: 640px) {
    .top,
    main,
    footer,
    .page {
        width: min(40rem, calc(100% - 1.5rem));
    }

    .page.post {
        width: min(40rem, calc(100% - 1.5rem));
    }

    .top-cta {
        font-size: 0.86rem;
        line-height: 1.25;
    }

    .hero {
        margin-top: 2.6rem;
    }

    .hero-title,
    .hero-payoff {
        max-width: none;
    }

    .hero-lead {
        font-size: 2.45rem;
    }

    .hero-payoff {
        font-size: 1.32rem;
    }

    .lede {
        font-size: 1rem;
        max-width: none;
    }

    .prose p,
    .start-line {
        font-size: 1.05rem;
    }

    .lines li {
        font-size: 1.02rem;
    }

    .row {
        grid-template-columns: 1fr auto;
        gap: 0.15rem 1rem;
    }

    .row-note {
        grid-column: 1 / -1;
    }

    footer {
        align-items: baseline;
        flex-wrap: wrap;
    }

    .page.post h1 {
        font-size: 2.1rem;
    }

    .post-dek {
        font-size: 1.2rem;
        margin-bottom: 1.7rem;
        padding: 0 0 1.25rem 0.9rem;
    }

    .post-body p:first-child::first-letter {
        font-size: 3rem;
        margin-right: 0.45rem;
    }

    .post-body p.is-bridge {
        font-size: 1.12rem;
    }

    .article-card {
        padding: 1.25rem 0.1rem 1.3rem 0.8rem;
        row-gap: 0.3rem;
    }

    .article-card-go {
        align-self: start;
        margin-top: 0.2rem;
    }

    .post-cta {
        margin-top: 2.5rem;
        padding-left: 0.9rem;
    }
}

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

    .go,
    .btn-go,
    .article-card-go {
        transition: none;
    }
}
