:root {
    --cream: #E8D8C4;
    --cream-light: #F3EADF;
    --wine: #561C24;
    --accent: #6D2932;
    --taupe: #C7B7A3;
    --muted: #665A50;
    --gold: #8A5A12;
    --error: #A3201F;
    --font-title: "Yeseva One", Georgia, serif;
    --font-text: "Josefin Sans", system-ui, sans-serif;
    --radius: 16px;
    --shadow-soft: 0 12px 32px rgba(86, 28, 36, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.65;
    color: var(--wine);
    background: var(--cream);
}

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

h1, h2, h3 {
    font-family: var(--font-title);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0;
}

h1, h2 { line-height: 1.05; }
h2 { margin: 0 0 24px; font-size: 2.25rem; }
h3 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 700; }

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

strong, b { color: var(--gold); }

:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    top: 16px;
    left: 16px;
    z-index: 100;
    padding: 8px 16px;
    background: var(--cream);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--cream);
    background: var(--wine);
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-block: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--cream);
    text-decoration: none;
}

.brand svg { width: 52px; height: 26px; }

.brand-word {
    padding-left: 14px;
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    border-left: 1px solid rgba(232, 216, 196, .4);
}

.site-nav { width: 100%; }

.site-nav ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 8px 0 4px;
    list-style: none;
}

.site-nav a {
    display: block;
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--cream);
    text-decoration: none;
    opacity: .85;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 6px;
    opacity: 1;
}

.site-nav .nav-cta {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 16px;
    border: 1px solid var(--cream);
    border-radius: 999px;
    opacity: 1;
}

.site-nav .nav-cta:hover {
    color: var(--wine);
    text-decoration: none;
    background: var(--cream);
}

.page-hero {
    padding: 56px 0 64px;
    color: var(--wine);
    background: var(--cream);
}

.page-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2.75rem, 9vw, 4.75rem);
    text-wrap: balance;
}

.page-hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.page-hero .lead {
    max-width: 560px;
    margin: 0 0 32px;
    font-size: 1.1rem;
    color: var(--muted);
}

.eyebrow {
    margin: 0 0 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero-visual { display: none; }

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid transparent;
    border-radius: 999px;
    transition: background .2s, color .2s, border-color .2s;
}

.btn-primary { color: var(--cream); background: var(--accent); }
.btn-primary:hover { background: var(--wine); }

.btn-ghost { color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { color: var(--cream); background: var(--accent); }

.link-arrow {
    font-weight: 600;
    text-decoration: none;
}

.link-arrow:hover { text-decoration: underline; }

.section { padding: 56px 0; }

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 24px;
    margin-bottom: 24px;
}

.section-head h2 { margin: 0; }

.text { max-width: 680px; }
.text p { margin: 0 0 16px; }

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--cream-light);
    border: 1px solid var(--taupe);
    border-radius: var(--radius);
    transition: transform .2s, box-shadow .2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.card-narrow { max-width: 560px; }

.card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    object-fit: contain;
    border-radius: 12px;
}

.card p { margin: 0 0 16px; color: var(--muted); }
.card .actions { margin-top: auto; padding-top: 8px; }
.card .btn { padding: 8px 18px; font-size: 0.9rem; }

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.tags li {
    padding: 2px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--taupe);
    border-radius: 999px;
}

.values {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.values li {
    padding: 20px 24px;
    background: var(--cream-light);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.values strong {
    display: block;
    font-family: var(--font-title);
    font-size: 1.2rem;
}

.values span { font-size: 0.95rem; color: var(--muted); }

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

.timeline li { position: relative; margin-bottom: 28px; }

.timeline li::before {
    content: "";
    position: absolute;
    top: 6px;
    left: -31px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border: 3px solid var(--cream);
    border-radius: 50%;
}

.timeline .date,
.contact-list span {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.timeline p { margin: 4px 0 0; color: var(--muted); }

.cta {
    padding: 40px 24px;
    color: var(--cream);
    background: var(--wine);
    border-radius: 24px;
}

.cta h2 { margin-bottom: 12px; }
.cta p { max-width: 520px; margin: 0 0 24px; opacity: .85; }
.cta .btn-primary { color: var(--wine); background: var(--cream); }
.cta .btn-primary:hover { background: var(--cream-light); }
.cta .cta-link { color: var(--cream); }

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

.form .btn {
    justify-self: start;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.field input,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    color: var(--wine);
    background: var(--cream-light);
    border: 1px solid var(--taupe);
    border-radius: 10px;
}

.field input:focus,
.field textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

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

.field :user-invalid { border: 2px solid var(--error); }

.contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-list li { margin-bottom: 16px; }

.site-footer {
    margin-top: 32px;
    padding: 32px 0;
    color: var(--cream);
    background: var(--wine);
}

.site-footer a { color: var(--cream); }

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
}

.footer-inner p { margin: 0; }

.motto {
    font-size: 0.75rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    opacity: .7;
}

.v-code .window {
    overflow: hidden;
    color: var(--cream);
    background: var(--wine);
    border-radius: 18px;
    box-shadow: 0 24px 48px rgba(86, 28, 36, .25);
    transform: rotate(2deg);
}

.v-code .window-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(232, 216, 196, .15);
}

.v-code .window-bar span {
    width: 10px;
    height: 10px;
    background: rgba(232, 216, 196, .35);
    border-radius: 50%;
}

.v-code .window-bar p { margin: 0 0 0 10px; font-size: .78rem; opacity: .6; }

.v-code pre {
    margin: 0;
    padding: 22px 22px 26px;
    font: 500 .88rem/1.8 ui-monospace, "Cascadia Code", Consolas, monospace;
    white-space: pre;
}

.v-code .k { color: #D9A3AB; }
.v-code .p { color: var(--taupe); }
.v-code .s { color: #E9C48F; }
.v-code .b { color: #A8D5A2; }

.v-code .caret {
    display: inline-block;
    width: 8px;
    height: 1em;
    vertical-align: -2px;
    background: var(--cream);
    animation: blink 1s steps(1) infinite;
}

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

.v-code .float-badge {
    position: absolute;
    bottom: -28px;
    left: -36px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: var(--cream-light);
    border: 1px solid var(--taupe);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(86, 28, 36, .14);
}

.v-code .float-badge strong {
    font-family: var(--font-title);
    font-size: 1.6rem;
    line-height: 1;
    color: #2E7D32;
}

.v-code .float-badge span { font-size: .8rem; line-height: 1.3; color: var(--muted); }

@media (min-width: 768px) {
    body { font-size: 17px; }

    h2 { font-size: 2.75rem; }

    .container { padding: 0 32px; }

    .header-inner { flex-wrap: nowrap; padding-block: 18px; }

    .site-nav { width: auto; }

    .site-nav ul {
        flex-direction: row;
        align-items: center;
        gap: 28px;
        padding: 0;
    }

    .site-nav a { padding: 0; }
    .site-nav .nav-cta { margin-top: 0; }

    .page-hero { padding: 96px 0 104px; }

    .section { padding: 80px 0; }

    .grid { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }

    .split {
        display: grid;
        grid-template-columns: 3fr 2fr;
        gap: 56px;
        align-items: start;
    }

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

    .cta { padding: 56px 48px; }

    .footer-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

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

    .page-hero h1 { font-size: 4.4rem; }

    .hero-content:has(> .hero-visual) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 48px;
        align-items: center;
    }

    .hero-visual { display: block; position: relative; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .card { transition: none; }
    .card:hover { transform: none; }
    .v-code .caret { animation: none; }
}

@media print {
    .skip-link, .site-nav, .site-footer, .form, .actions, .cta { display: none !important; }
    body, .site-header, .card, .values li { color: #000; background: #fff; box-shadow: none; }
    .site-header { position: static; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
    .card, .timeline li { break-inside: avoid; }
}
