/* latin-ext */
@font-face {
  font-family: "display";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  src: url("fonts/display-100-normal-400-800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  font-display: swap;
}

/* latin */
@font-face {
  font-family: "display";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  src: url("fonts/display-100-normal-400-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}
/* latin-ext */
@font-face {
  font-family: "mono";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: normal;
  src: url("fonts/mono-normal-400-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  font-display: swap;
}

/* latin */
@font-face {
  font-family: "mono";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: normal;
  src: url("fonts/mono-normal-400-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}


/* ==========================================================================
   vibekoders.dev
   Palette: paper cream, ink black, paprika red, and a nod to the Hungarian
   tricolour in the details.
   ========================================================================== */

:root {
    --paper: #f6f1e7;
    --paper-2: #efe7d7;
    --card: #fffaf0;
    --ink: #16130f;
    --ink-2: #2a251f;
    --ink-3: #35302a;
    --muted: #6b6359;
    --paprika: #e0411f;
    --paprika-dark: #b8300f;
    --green: #2f6b45;
    --term-green: #7ee2a0;
    --hu-red: #cd2a3e;
    --hu-white: #ffffff;
    --hu-green: #436f4d;
    --on-ink: #f6f1e7;
    --on-ink-muted: #f6f1e7b3;

    --font-display: display, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: mono, ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

    --radius: 14px;
    --border: 2px solid var(--ink);
    --shadow: 5px 5px 0 var(--ink);
    --shadow-lg: 8px 8px 0 var(--ink);

    --container: 1180px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section-y: clamp(4.5rem, 10vw, 8rem);
}

/* ---------- Base ---------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    -webkit-text-size-adjust: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    line-height: 1.6;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

main {
    flex: 1;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 0.5em;
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-weight: 800;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.4rem, 1.4rem + 4.5vw, 4.5rem);
    letter-spacing: -0.03em;
    line-height: 1.02;
}

h2 {
    font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem);
}

h3 {
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

h4 {
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1em;
    text-wrap: pretty;
}

a {
    color: inherit;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
}

hr {
    margin: 3rem 0;
    border: 0;
    border-top: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent);
}

:focus-visible {
    outline: 3px solid var(--paprika);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: var(--paprika);
    color: var(--paper);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow {
    max-width: 840px;
}

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

.small {
    font-size: 0.875rem;
}

.icon {
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
    vertical-align: -0.15em;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: 8px;
}

.skip-link:focus {
    top: 1rem;
}

/* ---------- Buttons & links ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.85em 1.4em;
    border: var(--border);
    border-radius: 999px;
    background: var(--paprika);
    color: var(--paper);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--ink);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s
        ease;
}

.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--ink);
}

.btn--ghost {
    background: var(--card);
    color: var(--ink);
}

.btn--light {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
    box-shadow: 4px 4px 0 var(--paprika);
}

.btn--light:hover {
    box-shadow: 6px 6px 0 var(--paprika);
}

.btn--ghost-light {
    background: transparent;
    color: var(--paper);
    border-color: var(--paper);
    box-shadow: 4px 4px 0 var(--paprika);
}

.btn--ghost-light:hover {
    box-shadow: 6px 6px 0 var(--paprika);
}

.btn--small {
    padding: 0.55em 1.05em;
    font-size: 0.85rem;
    box-shadow: 3px 3px 0 var(--ink);
}

.btn--light.btn--small {
    box-shadow: 3px 3px 0 var(--paprika);
}

.link-arrow {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--paprika-dark);
}

.link-arrow::after {
    content: " →";
    display: inline-block;
    transition: transform 0.15s ease;
}

.link-arrow:hover::after {
    transform: translateX(4px);
}

.link-arrow--light,
.section--ink .link-arrow {
    color: var(--paprika);
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--ink);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 4.25rem;
}

.logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
    text-decoration: none;
    white-space: nowrap;
}

.logo--small {
    font-size: 1rem;
}

.logo__koders {
    color: var(--paprika);
}

.logo__cursor {
    color: var(--paprika);
    animation: blink 1.1s steps(1) infinite;
}

.site-nav {
    margin-left: auto;
}

.site-nav ul {
    display: flex;
    gap: 0.25rem;
    list-style: none;
}

.site-nav a {
    display: block;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current] {
    background: var(--paper-2);
}

.lang-switch {
    display: flex;
    list-style: none;
    border: var(--border);
    border-radius: 999px;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.lang-switch a {
    display: block;
    padding: 0.3rem 0.6rem;
    text-decoration: none;
}

.lang-switch a:hover {
    background: var(--paper-2);
}

.lang-switch a[aria-current] {
    background: var(--ink);
    color: var(--paper);
}

@media (max-width: 860px) {
    .site-nav {
        display: none;
    }

    .lang-switch {
        margin-left: auto;
    }
}

/* ---------- Hero ---------- */

/*
 * Hero + stats fill the first screen (minus the header), so the stats strip
 * sits at the bottom of the viewport. Spacing scales with the viewport height
 * so it still fits on short laptop screens.
 */
.above-fold {
    display: flex;
    flex-direction: column;
    min-height: calc(100svh - 4.25rem - 2px);
}

.hero {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    padding-block: clamp(1.5rem, 6svh, 5rem);
    overflow: hidden;
}

.hero::before,
.page-hero::before {
    /* faint dotted grid, like graph paper */
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--ink) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.07;
    mask-image: linear-gradient(to bottom, #000 40%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    display: grid;
    /* minmax(0, …) keeps the columns fixed, whatever the content */
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2.5rem, 5vw, 4.5rem);
}

@media (max-width: 960px) {
    .hero__inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

.hero__copy {
    container-type: inline-size;
}

.hero__title {
    /*
     * Scale the headline so the longest rotating word (--chars characters,
     * set in the template) always fits on one line of the column.
     */
    font-size: clamp(2rem, min(calc(100cqi / (var(--chars, 12) * 0.54)), 9svh),
        5.25rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

/*
 * Stack: children share one grid cell. Used to render the other translations
 * invisibly, so a block always takes the size of its longest translation.
 */
.stack {
    display: grid;
}

.stack > * {
    grid-area: 1 / 1;
}

.stack__ghost,
.stack__ghost * {
    visibility: hidden !important;
    animation: none !important;
}

/* All words share one grid cell: the rotator is as wide as the longest word. */
.rotator {
    display: inline-grid;
    color: var(--paprika);
}

.rotator__word {
    grid-area: 1 / 1;
    justify-self: start;
    position: relative;
    white-space: nowrap;
    visibility: hidden;
}

.rotator__word.is-active {
    visibility: visible;
    animation: swap-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rotator__word::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0.3em;
    bottom: -0.04em;
    height: 0.08em;
    background: var(--ink);
    border-radius: 999px;
    transform-origin: left;
}

.rotator__word.is-active::after {
    animation: underline 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lead {
    font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
    line-height: 1.55;
    max-width: 44ch;
    color: var(--ink-2);
}

.lead p {
    margin-bottom: 0.75em;
}

.lead p:last-child {
    margin-bottom: 0;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

/* ---------- Terminal ---------- */

.terminal {
    border: var(--border);
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--paper);
    box-shadow: 10px 10px 0 var(--paprika);
    overflow: hidden;
}

/* Scale the text so the longest line (--chars) never wraps. */
.terminal--fit {
    container-type: inline-size;
}

.terminal--fit .terminal__body {
    font-size: min(0.92rem, calc((100cqi - 2.5rem) / (var(--chars, 40) *
        0.61)));
    white-space: pre;
    overflow: hidden;
}

.hero__terminal {
    transform: rotate(1.25deg);
}

.terminal--static {
    margin-bottom: 2.5rem;
}

.terminal__bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #ffffff1f;
}

.terminal__bar span {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

/* traffic lights in Hungarian colours */
.terminal__bar span:nth-child(1) {
    background: var(--hu-red);
}

.terminal__bar span:nth-child(2) {
    background: var(--hu-white);
}

.terminal__bar span:nth-child(3) {
    background: var(--hu-green);
}

.terminal__bar p {
    margin: 0 0 0 auto;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    opacity: 0.55;
}

.terminal__body {
    margin: 0;
    padding: 1.25rem 1.25rem 1.5rem;
    font-family: var(--font-mono);
    font-size: clamp(0.78rem, 0.74rem + 0.22vw, 0.92rem);
    line-height: 1.8;
    white-space: pre-wrap;
}

.terminal__body code {
    font: inherit;
}

.t-line {
    display: block;
}

.t-prompt {
    color: var(--paprika);
    font-weight: 700;
}

.t-dim {
    color: #f6f1e7a6;
}

.t-ok {
    color: var(--term-green);
    font-weight: 700;
}

.t-err {
    color: #ff8a73;
    font-weight: 700;
}

.t-cursor {
    color: var(--paprika);
    animation: blink 1.1s steps(1) infinite;
}

/* lines appear one by one */
.terminal--animated .t-line {
    opacity: 0;
    animation: line-in 0.35s ease forwards;
}

.terminal--animated .t-line:nth-child(1) {
    animation-delay: 0.3s;
}
.terminal--animated .t-line:nth-child(2) {
    animation-delay: 1.1s;
}
.terminal--animated .t-line:nth-child(3) {
    animation-delay: 1.7s;
}
.terminal--animated .t-line:nth-child(4) {
    animation-delay: 2.3s;
}
.terminal--animated .t-line:nth-child(5) {
    animation-delay: 2.9s;
}
.terminal--animated .t-line:nth-child(6) {
    animation-delay: 3.6s;
}
.terminal--animated .t-line:nth-child(7) {
    animation-delay: 4.1s;
}
.terminal--animated .t-line:nth-child(8) {
    animation-delay: 4.6s;
}

/* ---------- Stats ---------- */

.stats {
    border-block: var(--border);
    background: var(--card);
}

.stats__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
}

.stats__list li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: clamp(1rem, 2.75svh, 1.75rem) 1.5rem;
    border-left: 2px solid var(--ink);
}

.stats__list li:last-child {
    border-right: 2px solid var(--ink);
}

.stats strong {
    font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--paprika);
}

.stats span {
    font-size: 0.95rem;
    color: var(--ink-2);
    line-height: 1.35;
}

@media (max-width: 860px) {
    .stats__list {
        grid-template-columns: 1fr 1fr;
        padding: 0;
    }

    .stats__list li {
        border: 0;
        border-bottom: 2px solid var(--ink);
    }

    .stats__list li:nth-child(odd) {
        border-right: 2px solid var(--ink);
    }

    .stats__list li:nth-last-child(-n + 2) {
        border-bottom: 0;
    }
}

/* ---------- Sections ---------- */

h2 em {
    position: relative;
    font-style: normal;
    color: var(--paprika);
    white-space: nowrap;
}

h2 em::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.04em;
    height: 0.08em;
    background: var(--ink);
    border-radius: 999px;
}

.section--ink h2 em::after {
    background: var(--paper);
}

.section {
    padding-block: var(--section-y);
}

.section--flush-top {
    padding-top: 0;
}

.section__header {
    max-width: 780px;
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section__intro {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 60ch;
}

.section__more {
    margin: 2.5rem 0 0;
}

.kicker {
    margin-bottom: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--paprika-dark);
}

.kicker::before {
    content: "// ";
}

.section--ink {
    background: var(--ink);
    color: var(--on-ink);
}

.section--ink .kicker {
    color: var(--paprika);
}

.section--ink .section__intro {
    color: var(--on-ink-muted);
}

.section--tint {
    background: var(--paper-2);
    border-block: var(--border);
}

.grid {
    display: grid;
    gap: clamp(1.25rem, 2.5vw, 2rem);
}

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

/* ---------- Cards / services ---------- */

.card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    border: var(--border);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-lg);
}

.card p {
    color: var(--ink-2);
}

.card__icon {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.25rem;
    border: var(--border);
    border-radius: 12px;
    background: var(--paprika);
    color: var(--paper);
}

.card__icon .icon {
    width: 1.5rem;
    height: 1.5rem;
}

.grid--3 .card:nth-child(2) .card__icon {
    background: var(--paper);
    color: var(--ink);
}

.grid--3 .card:nth-child(3) .card__icon {
    background: var(--green);
}

.checklist {
    list-style: none;
    display: grid;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 0.95rem;
}

.checklist li {
    position: relative;
    padding-left: 1.6em;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-family: var(--font-mono);
    font-weight: 700;
}

/* ---------- Steps ---------- */

.steps {
    margin-top: clamp(3rem, 6vw, 4.5rem);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    border: var(--border);
    border-radius: var(--radius);
    background: var(--paper-2);
}

.steps__title {
    font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
    margin-bottom: 1.5rem;
}

.steps__list {
    list-style: none;
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.steps__list li {
    counter-increment: step;
    padding-top: 1rem;
    border-top: 2px solid var(--ink);
}

.steps__list li::before {
    content: "0" counter(step);
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--paprika-dark);
}

.steps__list h4 {
    margin-bottom: 0.35rem;
}

.steps__list p {
    margin: 0;
    color: var(--ink-2);
    font-size: 0.97rem;
}

/* ---------- Course cards ---------- */

.course-list {
    display: grid;
    gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.course-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 2px solid #f6f1e733;
    border-radius: var(--radius);
    background: var(--ink-2);
    color: var(--on-ink);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.course-card:hover {
    border-color: var(--paprika);
    transform: translateY(-3px);
}

.course-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.course-card__title {
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
    margin: 0 0 0.35rem;
}

.course-card__title a {
    text-decoration: none;
}

.course-card__title a:hover {
    text-decoration: underline;
    text-decoration-color: var(--paprika);
    text-underline-offset: 0.15em;
}

.course-card__subtitle {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--paprika);
    margin-bottom: 1rem;
}

.course-card__summary {
    color: #f6f1e7d9;
    max-width: 70ch;
}

.course-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
    margin-top: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f6f1e722;
}

.badge {
    display: inline-block;
    padding: 0.25em 0.7em;
    border: 1.5px solid #f6f1e766;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ---------- Avatars ---------- */

.avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    list-style: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.avatars li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.avatars img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid currentColor;
    object-fit: cover;
    background: var(--paper-2);
}

.avatars--large img {
    width: 56px;
    height: 56px;
}

/* ---------- About & people ---------- */

.about {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
}

@media (max-width: 960px) {
    .about {
        grid-template-columns: 1fr;
    }
}

.about__story p {
    font-size: 1.12rem;
    max-width: 58ch;
}

.quote {
    position: relative;
    margin: 2rem 0 0;
    padding: 1.5rem 1.5rem 1.5rem 1.75rem;
    border-left: 6px solid var(--paprika);
    background: var(--card);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.quote p {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.45;
}

.team {
    display: grid;
    gap: 1.5rem;
}

.team--wide {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
}

.person {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
    border: var(--border);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
}

.person__photo {
    width: 88px;
    height: 88px;
    border: var(--border);
    border-radius: 50%;
    object-fit: cover;
    background: var(--paper-2);
}

.person--full .person__photo {
    width: 112px;
    height: 112px;
}

.person__name {
    margin-bottom: 0.15rem;
}

.person__role {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.person__bio,
.person__bio p {
    color: var(--ink-2);
    font-size: 0.98rem;
}

.person__links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
}

.person__links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    text-decoration: none;
}

.person__links a:hover {
    color: var(--paprika-dark);
}

@media (max-width: 520px) {
    .person {
        grid-template-columns: 1fr;
    }
}

/* ---------- FAQ ---------- */

.faq {
    display: grid;
    gap: 1rem;
}

.faq details {
    border: var(--border);
    border-radius: var(--radius);
    background: var(--card);
    transition: box-shadow 0.2s ease;
}

.faq details[open] {
    box-shadow: var(--shadow);
}

.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.4rem;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

/* The +/× icon is drawn with two centred bars, so it is perfectly centred in
   the circle regardless of font metrics. */
.faq summary::after {
    content: "";
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border: var(--border);
    border-radius: 50%;
    background:
        linear-gradient(currentColor, currentColor) center / 0.7rem 2px
        no-repeat,
        linear-gradient(currentColor, currentColor) center / 2px 0.7rem
        no-repeat;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s
        ease;
}

.faq details[open] summary::after {
    transform: rotate(45deg);
    background-color: var(--paprika);
    color: var(--paper);
}

.faq details p {
    margin: 0;
    padding: 0 1.4rem 1.3rem;
    color: var(--ink-2);
}

/* ---------- Contact ---------- */

/*
 * The contact section fills one screen (below the sticky header) and its
 * spacing scales with the viewport height, so the whole form is visible when
 * jumping to #contact, even on short laptop screens.
 */
.contact {
    display: flex;
    align-items: center;
    min-height: calc(100svh - 5rem);
    padding-block: clamp(1rem, 4svh, 4rem);
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
}

@media (max-width: 960px) {
    .contact__inner {
        grid-template-columns: 1fr;
    }
}

.contact h2 {
    font-size: clamp(2.5rem, 1.4rem + 4.5vw, 4.75rem);
    letter-spacing: -0.035em;
    line-height: 1;
}

.accent {
    color: var(--paprika);
}

.contact__email {
    display: inline-block;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: clamp(1rem, 0.9rem + 0.6vw, 1.3rem);
    text-decoration-color: var(--paprika);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(0.6rem, 1.6svh, 1.1rem);
    padding: clamp(1.25rem, 3svh, 2rem) clamp(1.25rem, 3vw, 2rem);
    border: var(--border);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-lg);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.field--full {
    grid-column: 1 / -1;
}

.field label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: clamp(0.45rem, 1.1svh, 0.7rem) 0.9rem;
    border: var(--border);
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
}

.field textarea {
    resize: vertical;
    height: clamp(5rem, 15svh, 8rem);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
    outline-offset: 1px;
}

.contact-form__actions {
    align-items: flex-start;
    gap: 1rem;
}

.contact-form__status {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
}

.contact-form__status:empty {
    display: none;
}

.contact-form__status[data-state="success"] {
    color: var(--green);
}

.contact-form__status[data-state="error"] {
    color: var(--paprika-dark);
}

/* The Turnstile widget is invisible unless a challenge is needed. */
.contact-form__turnstile:empty {
    display: none;
}

/* ---------- CTA band ---------- */

.cta-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 3rem;
    padding: clamp(1.75rem, 4vw, 3rem);
    border: var(--border);
    border-radius: var(--radius);
    background: var(--paprika);
    color: var(--paper);
    box-shadow: var(--shadow-lg);
}

.cta-band h2 {
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
    margin-bottom: 0.35rem;
}

.cta-band p {
    margin: 0;
    max-width: 55ch;
}

.cta-band .btn {
    background: var(--paper);
    color: var(--ink);
}

/* ---------- Page hero (courses index) ---------- */

.page-hero {
    position: relative;
    padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4rem);
    background: var(--ink);
    color: var(--on-ink);
}

.page-hero::before {
    background-image: radial-gradient(var(--paper) 1px, transparent 1px);
}

.page-hero .container {
    position: relative;
}

.page-hero .kicker {
    color: var(--paprika);
}

.page-hero h1 {
    max-width: 18ch;
}

.page-hero .lead {
    color: var(--on-ink-muted);
    max-width: 60ch;
}

/* ---------- Course page ---------- */

.course-hero {
    padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem);
    background: var(--ink);
    color: var(--on-ink);
}

.course-hero__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

@media (max-width: 960px) {
    .course-hero__inner {
        grid-template-columns: 1fr;
    }
}

.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--on-ink-muted);
    text-decoration: none;
}

.back-link:hover {
    color: var(--paprika);
}

.course-hero h1 {
    margin-top: 1.25rem;
}

.course-hero__subtitle {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--paprika);
}

.course-hero .lead {
    color: #f6f1e7e0;
    max-width: 52ch;
}

.facts {
    padding: 1.75rem;
    border: 2px solid var(--paper);
    border-radius: var(--radius);
    background: var(--ink-2);
    box-shadow: 8px 8px 0 var(--paprika);
}

.facts dl {
    display: grid;
    gap: 1rem;
    margin: 0 0 1.25rem;
}

.facts dl > div {
    display: grid;
    gap: 0.1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f6f1e722;
}

.facts dt {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--on-ink-muted);
}

.facts dd {
    margin: 0;
    font-weight: 700;
    font-size: 1.05rem;
}

.facts dd a {
    color: inherit;
    text-decoration-color: var(--paprika);
    text-underline-offset: 4px;
}

.course-body {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

@media (max-width: 960px) {
    .course-body {
        grid-template-columns: 1fr;
    }
}

.prose p {
    font-size: 1.12rem;
    max-width: 65ch;
}

.prose p:first-child {
    font-size: clamp(1.12rem, 1.02rem + 0.5vw, 1.3rem);
    font-weight: 600;
    line-height: 1.5;
}

.course-body__side {
    display: grid;
    gap: 1.25rem;
}

.note {
    padding: 1.5rem;
    border: var(--border);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
}

.note--soft {
    background: var(--paper-2);
    box-shadow: none;
}

.note h2 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--paprika-dark);
    margin-bottom: 0.75rem;
}

.note p:last-child {
    margin-bottom: 0;
}

.note ul {
    list-style: none;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.note a {
    text-decoration-color: var(--paprika);
    text-underline-offset: 3px;
}

/* ---------- Syllabus ---------- */

.sessions {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.session {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    border: var(--border);
    border-radius: var(--radius);
    background: var(--card);
}

@media (max-width: 720px) {
    .session {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

.session__num {
    font-family: var(--font-mono);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    color: var(--paprika);
}

.session h3 {
    font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
}

.session__what ul {
    list-style: none;
    display: grid;
    gap: 0.4rem;
}

.session__what li {
    position: relative;
    padding-left: 1.5em;
    color: var(--ink-2);
}

.session__what li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--paprika);
    font-family: var(--font-mono);
}

/* ---------- 404 ---------- */

.not-found h1 {
    font-size: clamp(2.25rem, 1.5rem + 3.5vw, 4rem);
}

/* ---------- Footer ---------- */

.flag-stripe {
    height: 6px;
    background: linear-gradient(
        to right,
        var(--hu-red) 0 33.33%,
        var(--hu-white) 33.33% 66.66%,
        var(--hu-green) 66.66% 100%
    );
}

.site-footer {
    background: var(--ink);
    color: var(--paper);
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    padding-block: 2.5rem;
}

.site-footer p {
    margin: 0;
}

.site-footer .muted {
    color: #f6f1e799;
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.site-footer__links {
    font-family: var(--font-mono);
    font-size: 0.88rem;
}

.site-footer__links a {
    text-decoration-color: var(--paprika);
    text-underline-offset: 4px;
}

.site-footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-footer__links a {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
}

/* ---------- Scroll reveal (enabled by main.js) ---------- */

.js .reveal {
    opacity: 0;
    translate: 0 18px;
    transition: opacity 0.6s ease, translate 0.6s cubic-bezier(0.2, 0.8, 0.2,
        1);
}

.js .reveal.is-visible {
    opacity: 1;
    translate: 0 0;
}

/* ---------- Animations ---------- */

@keyframes blink {
    50% {
        opacity: 0;
    }
}

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

@keyframes swap-in {
    from {
        opacity: 0;
        transform: translateY(0.35em);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes underline {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .js .reveal {
        opacity: 1;
        translate: none;
    }
}

/* Keep the header call to action on one line in every language. */
.site-header .btn {
    white-space: nowrap;
}

.facts dl {
    margin-bottom: 0;
}

.facts dl > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
