:root {
    --bg: #f6f1e9;
    --panel: rgba(255, 255, 255, 0.9);
    --panel-strong: #ffffff;
    --line: rgba(29, 46, 64, 0.1);
    --ink: #183047;
    --muted: #5f6d7d;
    --brand: #0f766e;
    --brand-strong: #0d4b47;
    --accent: #f97316;
    --success: #16725f;
    --warning: #a86a16;
    --danger: #b14934;
    --shadow: 0 24px 60px rgba(27, 43, 61, 0.12);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: "Verdana", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 24%),
        radial-gradient(circle at 85% 12%, rgba(15, 118, 110, 0.16), transparent 24%),
        linear-gradient(180deg, #fbf7f1 0%, #f1ece3 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(15, 118, 110, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 118, 110, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, black 0%, rgba(0, 0, 0, 0.15) 65%, transparent 100%);
}

.page {
    width: min(1220px, calc(100% - 28px));
    margin: 0 auto;
    padding: 34px 0 64px;
}

.sitebar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.sitebar__brand {
    display: inline-flex;
    align-items: center;
}

.sitebar__brand img {
    width: 180px;
    max-width: 42vw;
    height: auto;
    display: block;
}

.sitebar__copy {
    display: grid;
    gap: 4px;
}

.sitebar__copy strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
}

.sitebar__copy span {
    color: var(--muted);
    font-size: 0.96rem;
}

.hero,
.card {
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero {
    display: block;
    margin-bottom: 24px;
}

.hero__copy,
.card {
    background: var(--panel);
    backdrop-filter: blur(14px);
    overflow: hidden;
}

.hero__copy {
    border-radius: var(--radius-xl);
}

.hero__copy {
    position: relative;
    padding: 38px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 248, 243, 0.92)),
        linear-gradient(135deg, rgba(15, 118, 110, 0.06), rgba(249, 115, 22, 0.05));
}

.hero__copy::after {
    content: "";
    position: absolute;
    inset: auto -30px -40px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15), transparent 70%);
}

.eyebrow,
.card__kicker {
    margin: 0 0 10px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 800;
}

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

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

h1 {
    max-width: 12ch;
    margin-bottom: 18px;
    font-size: clamp(2.8rem, 5vw, 4.9rem);
    line-height: 0.92;
}

h2 {
    margin-bottom: 10px;
    font-size: clamp(1.9rem, 3vw, 2.7rem);
}

h3 {
    margin-bottom: 10px;
    font-size: 1.75rem;
}

.hero__text,
.card__text,
.section-head__text,
.holiday-builder__text,
.field-hint {
    color: var(--muted);
    line-height: 1.65;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 22px;
}

.hero__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 0;
    padding: 0;
    list-style: none;
}

.hero__highlights li {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.08);
    color: var(--brand);
    font-weight: 700;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand) 0%, #14978e 100%);
    color: #f7fafc;
    text-decoration: none;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
    filter: saturate(1.05);
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.18);
}

.button--ghost {
    background: rgba(249, 115, 22, 0.08);
    color: var(--brand);
    box-shadow: none;
    border: 1px solid rgba(249, 115, 22, 0.12);
}

.button--small {
    padding: 11px 15px;
}

.section-head {
    margin-bottom: 18px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.card {
    padding: 28px;
    border-radius: var(--radius-lg);
}

.card--wide {
    grid-column: 1 / -1;
}

.card__header {
    margin-bottom: 18px;
}

.form {
    display: grid;
    gap: 16px;
}

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.split--triple {
    grid-template-columns: 1fr 1fr 0.85fr;
    align-items: end;
}

.field {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(23, 38, 59, 0.12);
    border-radius: 16px;
    background: var(--panel-strong);
    color: var(--ink);
    font: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.field textarea {
    resize: vertical;
    min-height: 98px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    transform: translateY(-1px);
    border-color: rgba(13, 59, 102, 0.36);
    box-shadow: 0 0 0 4px rgba(13, 59, 102, 0.08);
}

.field--toggle {
    align-content: stretch;
}

.switch {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(23, 38, 59, 0.12);
    background: #fff;
}

.switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch__slider {
    position: relative;
    width: 48px;
    height: 28px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.18);
    transition: background 0.18s ease;
}

.switch__slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
    transition: transform 0.18s ease;
}

.switch input:checked + .switch__slider {
    background: rgba(22, 114, 95, 0.82);
}

.switch input:checked + .switch__slider::after {
    transform: translateX(19px);
}

.switch__text {
    font-weight: 800;
    color: var(--brand);
}

.holiday-builder {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.04), rgba(249, 115, 22, 0.06));
    border: 1px solid rgba(15, 118, 110, 0.08);
}

.holiday-builder__header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: start;
}

.holiday-builder__title {
    margin-bottom: 6px;
    font-weight: 800;
    color: var(--brand);
}

.holiday-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.holiday-list--disabled {
    opacity: 0.62;
}

.holiday-option {
    display: flex;
    gap: 12px;
    align-items: start;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(15, 118, 110, 0.08);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.holiday-option:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 118, 110, 0.18);
}

.holiday-option input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--brand);
}

.holiday-option--off {
    opacity: 0.58;
}

.holiday-option__copy {
    display: grid;
    gap: 4px;
}

.holiday-option__copy strong {
    color: var(--ink);
}

.holiday-option__copy small {
    color: var(--muted);
}

.field-hint {
    margin-bottom: 0;
    font-size: 0.94rem;
}

.result {
    min-height: 120px;
    margin-top: 18px;
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(22, 114, 95, 0.12);
    background: rgba(248, 251, 253, 0.9);
    line-height: 1.6;
}

.result strong {
    color: var(--success);
}

.result.is-error {
    border-color: rgba(177, 73, 52, 0.18);
    color: var(--danger);
}

code {
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.08);
    color: var(--brand-strong);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.92em;
}

@media (max-width: 1060px) {
    .grid,
    .holiday-list,
    .split--triple {
        grid-template-columns: 1fr;
    }

    .holiday-builder__header,
    .sitebar {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .page {
        width: min(100% - 18px, 1220px);
        padding: 18px 0 36px;
    }

    .hero__copy,
    .card {
        padding: 22px;
    }

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

    .hero__highlights {
        display: grid;
        grid-template-columns: 1fr;
    }

    .result {
        min-height: 0;
    }

}
