:root {
    --bg: #f4efe7;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --ink: #1e2430;
    --muted: #5e6673;
    --line: rgba(30, 36, 48, 0.12);
    --accent: #0d7c66;
    --accent-strong: #095746;
    --danger: #a63131;
    --success: #1e8a4b;
    --shadow: 0 20px 60px rgba(34, 36, 38, 0.12);
    --radius: 22px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(13, 124, 102, 0.16), transparent 34%),
        radial-gradient(circle at top right, rgba(206, 99, 57, 0.16), transparent 28%),
        linear-gradient(180deg, #f7f1e8 0%, #eef4f0 100%);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

code {
    background: rgba(13, 124, 102, 0.08);
    padding: 0.15rem 0.35rem;
    border-radius: 8px;
}

.shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header,
.site-footer {
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.65);
    border-bottom: 1px solid var(--line);
}

.footer-shell,
.nav-shell,
.page-shell {
    padding: 1rem 0;
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.brand {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.page-shell {
    padding-block: 2rem 3rem;
}

.hero,
.grid {
    display: grid;
    gap: 1.25rem;
}

.hero {
    grid-template-columns: 1.5fr 1fr;
    align-items: stretch;
    margin-bottom: 1.5rem;
}

.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1.5rem;
}

.three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.watch-grid {
    grid-template-columns: 1.4fr 0.8fr;
    margin-bottom: 1.5rem;
}

.panel {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.4rem;
}

.hero-card {
    align-self: center;
}

.eyebrow {
    display: inline-flex;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(13, 124, 102, 0.1);
    color: var(--accent-strong);
    font-size: 0.9rem;
    font-weight: 700;
}

h1,
h2 {
    line-height: 1.15;
}

h1 {
    font-size: clamp(2rem, 3vw, 3.7rem);
    margin: 0.7rem 0 1rem;
}

h2 {
    margin-top: 0;
}

p,
li,
small,
span,
label {
    color: var(--muted);
}

.hero-actions,
.video-panel-head,
.list-row,
.page-intro {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--accent);
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
}

.button.ghost {
    background: transparent;
    color: var(--accent-strong);
    border-color: rgba(13, 124, 102, 0.22);
}

.stack-form {
    display: grid;
    gap: 1rem;
}

.stack-form label span {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
    font: inherit;
}

textarea {
    resize: vertical;
}

.inline-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.inline-check input {
    width: auto;
}

.alert {
    border-radius: var(--radius-sm);
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}

.alert.success {
    background: rgba(30, 138, 75, 0.12);
    color: var(--success);
}

.alert.error {
    background: rgba(166, 49, 49, 0.12);
    color: var(--danger);
}

.muted {
    color: var(--muted);
}

.plain-list {
    margin: 0;
    padding-left: 1.15rem;
}

.list-row {
    border-bottom: 1px solid var(--line);
    padding: 0.9rem 0;
}

.list-row.compact strong,
.list-row strong {
    display: block;
    margin-bottom: 0.2rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 0.8rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.narrow {
    max-width: 560px;
    margin-inline: auto;
}

.video-panel video {
    width: 100%;
    min-height: 420px;
    border-radius: 18px;
    background: #111;
    margin-top: 1rem;
}

@media (max-width: 860px) {
    .hero,
    .two-up,
    .three-up,
    .watch-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .video-panel-head,
    .list-row,
    .nav-shell,
    .page-intro {
        flex-direction: column;
        align-items: flex-start;
    }

    .button {
        width: 100%;
    }
}