/* Kendo Club St. Gallen — fresh static theme */
:root {
    --bg: #0c0f12;
    --bg-elevated: #12171c;
    --bg-soft: #1a2229;
    --text: #e8eaed;
    --text-muted: #9aa3ad;
    --line: rgba(255, 255, 255, 0.08);
    --accent: #d4253a;
    --accent-soft: rgba(212, 37, 58, 0.15);
    --gold: #c9a227;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --font-sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
    --font-serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
    --wrap: min(1120px, calc(100% - 2rem));
    /* Fliesstext & Seitenkopf: breiter als klassische 65ch, nicht volle Layoutbreite */
    --content-max: min(48rem, calc(100% - 1.5rem));
}

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

html {
    scroll-behavior: smooth;
}

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

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    font-weight: 400;
    font-feature-settings: "kern" 1, "liga" 1;
    color: var(--text);
    background: var(--bg);
    background-image:
        radial-gradient(1200px 600px at 10% -10%, rgba(212, 37, 58, 0.12), transparent 55%),
        radial-gradient(900px 500px at 90% 0%, rgba(201, 162, 39, 0.08), transparent 50%);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

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

.visually-hidden {
    position: absolute;
    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: -100px;
    z-index: 1000;
    padding: 0.75rem 1rem;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
}

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

.wrap {
    width: var(--wrap);
    margin-inline: auto;
}

.wrap-inner {
    max-width: 62ch;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(12, 15, 18, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    width: var(--wrap);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    padding: 0;
    border-radius: 8px;
}

.site-logo:hover .site-logo__img {
    filter:
        drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45))
        brightness(1.06);
}

.site-logo:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.site-logo__img {
    display: block;
    height: clamp(44px, 10vw, 56px);
    width: auto;
    max-width: min(200px, 48vw);
    object-fit: contain;
    filter:
        drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35))
        brightness(1.05);
    transition: filter 0.2s ease;
}

@media (min-width: 901px) {
    .site-logo__img {
        height: 100px;
        max-width: min(280px, 100%);
    }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    cursor: pointer;
}

.nav-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    margin-inline: auto;
    background: var(--text);
    border-radius: 2px;
}

.site-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

.site-nav__link {
    display: inline-block;
    padding: 0.35rem 0.2rem;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.site-nav__link:hover {
    color: var(--text);
}

.site-nav__link.is-active {
    color: var(--text);
    border-bottom-color: var(--accent);
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--line);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .site-nav.is-open {
        max-height: 480px;
    }

    .site-nav__list {
        flex-direction: column;
        padding: 1rem 1.25rem 1.25rem;
        gap: 0;
    }

    .site-nav__link {
        padding: 0.65rem 0;
        border-bottom: 1px solid var(--line);
    }

    .site-nav__link.is-active {
        border-bottom-color: var(--line);
    }
}

/* Hero */
.hero {
    position: relative;
    min-height: min(88vh, 900px);
    display: grid;
    align-items: end;
    padding-bottom: 4rem;
}

.hero__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(12, 15, 18, 0.95) 0%,
        rgba(12, 15, 18, 0.55) 45%,
        rgba(12, 15, 18, 0.35) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero__join {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    padding: 0.65rem 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.hero__eyebrow {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 0.75rem;
}

.hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 500;
    line-height: 1.12;
    margin: 0 0 0.75rem;
    letter-spacing: -0.03em;
}

.hero__tagline {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--text-muted);
    max-width: 40ch;
    margin: 0 0 1.75rem;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1.4rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 12px 40px rgba(212, 37, 58, 0.35);
}

.btn--primary:hover {
    background: #e62d44;
    color: #fff;
}

.btn--ghost {
    border-color: var(--line);
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text);
}

.btn--sm {
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section--accent {
    background: linear-gradient(135deg, var(--accent-soft), transparent);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section__header {
    margin-bottom: 2.5rem;
}

.section__title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--gold);
    font-weight: 500;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.section__lead {
    margin: 0;
    color: var(--text-muted);
    max-width: 50ch;
}

.grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 720px) {
    .grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.card__media {
    height: 160px;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    overflow: hidden;
    background: var(--bg-soft);
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card__title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 0.35rem;
}

.card__title a {
    text-decoration: none;
}

.card__title a:hover {
    text-decoration: underline;
}

.card__text {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.section--home-quote {
    padding-top: 3rem;
    padding-bottom: 5rem;
    margin-bottom: 3rem;
}

.home-quote {
    max-width: var(--content-max);
    margin-inline: auto;
}

.home-quote__box {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.35rem 1.35rem 1.25rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.home-quote__label {
    margin: 0 0 0.65rem;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

.home-quote__bq {
    margin: 0;
}

.home-quote__bq p {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3.2vw, 2rem);
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    letter-spacing: -0.03em;
}

.home-quote__note {
    margin: 1.1rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--text-muted);
    font-size: 1.4rem;
    line-height: 1.55;
}

.home-video {
    width: 100%;
    margin: 3rem 0 0;
}

.home-video__label {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--gold);
    margin: 0 0 1.25rem;
}

.video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Inner pages */
.page {
    padding-bottom: 4rem;
}

.page-hero {
    padding: 3.5rem 0 2rem;
    border-bottom: 1px solid var(--line);
    max-width: var(--content-max);
    margin-inline: auto;
    width: 100%;
}

.page-hero__eyebrow {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 0.5rem;
}

.page-hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 500;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.page-hero__lead {
    margin: 0;
    color: var(--text-muted);
}

.page__body {
    padding-top: 2.5rem;
}

/* Textseiten: eine Spalte wie Seitenkopf; Seiten nur mit .wrap (ohne .prose) nutzen volle --wrap */
.page__body.wrap.prose {
    max-width: min(var(--content-max), var(--wrap));
    margin-inline: auto;
    width: 100%;
}

.prose {
    line-height: 1.65;
    color: var(--text-muted);
}

.prose ul {
    list-style: none;
    padding: 0;
}

.prose h2 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
    margin: 2rem 0 0.75rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.prose p {
    margin: 0 0 1rem;
}

.prose .small {
    font-size: 1.4rem;
    color: var(--text-muted);
}

.content-figure {
    margin: 0 0 2rem;
}

.content-figure__img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.content-figure__placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    border: 1px dashed var(--line);
    background:
        linear-gradient(135deg, rgba(212, 37, 58, 0.12), rgba(201, 162, 39, 0.08)),
        var(--bg-soft);
}

.media-split {
    display: grid;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 800px) {
    .media-split {
        grid-template-columns: 1fr 1.1fr;
    }
}

.media-split__visual .content-figure__img,
.media-split__visual .content-figure__placeholder {
    border-radius: var(--radius);
}

/* Vorstand – kompakte Zeile */
.board-grid {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 560px) {
    .board-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

.board-card {
    text-align: center;
    list-style: none;
}

.board-card__photo {
    width: 100%;
    max-width: 120px;
    margin: 0 auto 0.5rem;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-soft);
}

.board-card__img,
.board-card__photo .content-figure__placeholder {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.board-card__name {
    margin: 0 0 0.15rem;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-muted);
}

.board-card__title {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.board-card__email {
    margin: 0.5rem 0 0;
}

.board-card__email-btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.checklist li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.table-wrap {
    overflow-x: auto;
    margin: 1rem 0 2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.data-table th,
.data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.data-table th {
    background: var(--bg-soft);
    font-weight: 600;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table__range {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    white-space: nowrap;
}

.data-table__dash {
    line-height: 1;
    transform: translateY(-0.08em);
}

.timeline {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    border-left: 2px solid var(--line);
}

.timeline__item {
    position: relative;
    padding: 0 0 1.5rem 1.5rem;
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__item::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline__date {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0.35rem;
}

.timeline__title {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.timeline__meta {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Agenda – Event cards (inspiriert von Listenansicht, angepasst an Dark Theme) */
.event-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-card {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

@media (min-width: 720px) {
    .event-card {
        grid-template-columns: minmax(0, 1fr) minmax(200px, 28%);
        align-items: stretch;
    }
}

.event-card__body {
    padding: 1.25rem 1.35rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
}

.event-card__tag {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    background: var(--accent-soft);
    border: 1px solid rgba(212, 37, 58, 0.35);
    border-radius: 4px;
}

.event-card__title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.event-card__meta {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--text);
}

.event-card__meta time {
    display: block;
}

.event-card__loc {
    display: block;
    margin-top: 0.2rem;
    color: var(--text-muted);
}

.event-card__desc {
    margin: 0.35rem 0 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.event-card__media {
    position: relative;
    min-height: 180px;
    background: var(--bg-soft);
}

@media (min-width: 720px) {
    .event-card__media {
        min-height: 100%;
    }
}

.event-card__img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    display: block;
}

.event-card__badge {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 4.25rem;
    padding: 0.55rem 0.65rem 0.5rem;
    background: var(--accent);
    color: #fff;
    line-height: 1.1;
    text-align: center;
}

.event-card__badge-dow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.9;
}

.event-card__badge-day {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0.1rem 0;
}

.event-card__badge-mon {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.9;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gallery__item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    aspect-ratio: 1;
}

.gallery__trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
    border-radius: inherit;
}

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

.gallery__trigger:hover .gallery__img {
    transform: scale(1.04);
}

.gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Rückblick – Instagram embeds */
.instagram-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.instagram-grid__item {
    width: 100%;
    min-width: 0;
}

.instagram-grid__item .instagram-media {
    margin: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    background: var(--bg-elevated) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius) !important;
    box-shadow: none !important;
}

body.lightbox-open {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.lightbox[hidden] {
    display: none !important;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    cursor: pointer;
}

.lightbox__dialog {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1400px);
    max-height: min(92vh, 900px);
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__img {
    max-width: 100%;
    max-height: min(92vh, 900px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.lightbox__close {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transform: translate(25%, -25%);
}

.lightbox__close:hover {
    background: var(--bg-soft);
    color: var(--accent);
}

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

.lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(18, 23, 28, 0.92);
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox__nav:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

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

.lightbox__nav--prev {
    left: 0;
    transform: translateX(calc(-100% - 0.75rem));
}

.lightbox__nav--next {
    right: 0;
    transform: translateX(calc(100% + 0.75rem));
}

@media (max-width: 720px) {
    .lightbox__nav--prev {
        left: 0.25rem;
        transform: translateX(0);
    }

    .lightbox__nav--next {
        right: 0.25rem;
        transform: translateX(0);
    }

    .lightbox__close {
        top: 0.5rem;
        right: 0.5rem;
        transform: none;
    }
}

.link-cards {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-cards__item {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
}

.link-cards__a {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-decoration: none;
}

.link-cards__a:hover .link-cards__title {
    color: var(--accent);
}

.link-cards__title {
    font-weight: 600;
    font-size: 1.05rem;
}

.link-cards__url {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.link-cards__note {
    margin: 0.5rem 0 0;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.contact-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-card {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.contact-card h2 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}

.contact-en {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.contact-en__sub {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
    margin: 1.75rem 0 1rem;
    letter-spacing: -0.02em;
}

.legal-block {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.legal-block h2 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
}

.legal-content h2 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 500;
    margin: 1.75rem 0 0.5rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p,
.legal-content ul {
    margin: 0 0 0.85rem;
}

.legal-content ul {
    padding-left: 1.25rem;
}

.legal-content li {
    margin-bottom: 0.35rem;
}

.legal-content__updated {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 1rem;
}

.legal-block h3 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 500;
    margin: 1.75rem 0 0.5rem;
}

.legal-block p,
.legal-block ul {
    margin: 0 0 0.85rem;
}

.legal-block ul {
    padding-left: 1.25rem;
}

.legal-block li {
    margin-bottom: 0.35rem;
}

.legal-block__updated {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 2rem 0 2.5rem;
    background: rgba(0, 0, 0, 0.25);
}

.site-footer__inner {
    width: var(--wrap);
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.site-footer__owner {
    margin: 0;
}

.site-footer__meta {
    margin: 0;
}

.site-footer__meta a {
    color: var(--text-muted);
}

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

.site-footer__sep {
    margin: 0 0.35rem;
}
