:root {
    --ink: #1a1a1a;
    --ink-soft: #4a4a4a;
    --ink-line: #e7e3dc;
    --bg: #faf7f1;
    --bg-card: #ffffff;
    --brand: #8a5b3b;
    --brand-dark: #6a4429;
    --accent: #c97c5c;
    --green: #4a7c59;
    --amber: #c8893f;
    --red: #b04a4a;
    --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--bg);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><g fill='%23c97c5c' opacity='0.05'><circle cx='15' cy='15' r='1'/><circle cx='45' cy='45' r='1'/><circle cx='30' cy='30' r='0.6'/></g></svg>");
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    letter-spacing: .2px;
    margin: 0 0 .6em;
    color: var(--ink);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-top: 1.5em; }
h3 { font-size: 1.25rem; }

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

header.site {
    background: var(--bg-card);
    border-bottom: 1px solid var(--ink-line);
    padding: 1rem 0;
    position: sticky; top: 0; z-index: 10;
    backdrop-filter: blur(8px);
}

header .wrap {
    max-width: 1080px; margin: 0 auto; padding: 0 1.25rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    flex-wrap: wrap;
}

.brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem; font-weight: 700;
    color: var(--brand-dark);
}

nav.primary { display: flex; gap: .25rem; align-items: center; flex-wrap: wrap; }
nav.primary a {
    padding: .45rem .85rem; border-radius: 8px;
    color: var(--ink-soft); font-size: .95rem; font-weight: 500;
    transition: background .15s;
}
nav.primary a:hover { background: var(--ink-line); text-decoration: none; }
nav.primary a.active { background: var(--brand); color: white; }

.lang-switch { display: inline-flex; gap: 2px; margin-left: .5rem; }
.lang-switch a {
    padding: .3rem .6rem; border-radius: 6px;
    background: var(--ink-line); color: var(--ink-soft);
    font-size: .8rem; font-weight: 600; text-transform: uppercase;
}
.lang-switch a.active { background: var(--brand); color: white; }

main { max-width: 1080px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }

.hero {
    background: linear-gradient(135deg, #f3ead7 0%, #faf7f1 60%);
    border-radius: 18px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--ink-line);
    position: relative;
    overflow: hidden;
}
.hero--illustrated { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; padding: 3rem 2.5rem; }
.hero__copy { position: relative; z-index: 1; }
.hero__art { position: relative; }
.hero__art img { width: 100%; max-width: 480px; height: auto; display: block; mix-blend-mode: multiply; }
@media (max-width: 720px) {
    .hero--illustrated { grid-template-columns: 1fr; }
    .hero__art { order: -1; max-width: 280px; margin: 0 auto; }
}

.ornament { text-align: center; margin: 2rem 0; }
.ornament img { opacity: .75; }

.text-center { text-align: center; }

.hero__couple {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 600;
    margin: .35em 0 .15em; line-height: 1;
}
.hero__couple span { color: var(--brand-dark); }
.hero__amp { color: var(--accent); font-style: italic; font-weight: 400; }
.hero__fullnames {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem; color: var(--ink-soft); letter-spacing: .5px;
    margin: 0 0 1rem; font-style: italic;
}

.hero .meta { color: var(--brand-dark); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: .85rem; }
.hero p.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 38em; }
.hero .event-info { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.5rem; }
.hero .event-info > div { background: white; padding: 1rem 1.25rem; border-radius: 12px; border: 1px solid var(--ink-line); }
.hero .event-info dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-soft); margin-bottom: .25rem; }
.hero .event-info dd { font-size: 1.05rem; font-weight: 600; margin: 0; color: var(--ink); }

.card {
    background: var(--bg-card); border: 1px solid var(--ink-line);
    border-radius: 14px; padding: 1.5rem; box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
}

.card h2:first-child, .card h3:first-child { margin-top: 0; }

.btn {
    display: inline-block; padding: .7rem 1.25rem;
    border-radius: 10px; border: none; cursor: pointer;
    font: inherit; font-weight: 600; font-size: .95rem;
    background: var(--brand); color: white;
    transition: background .15s, transform .05s;
    text-decoration: none;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: var(--ink-line); color: var(--ink); }
.btn.secondary:hover { background: #d6d2c9; }
.btn.danger { background: var(--red); }
.btn.danger:hover { background: #963c3c; }
.btn.small { padding: .35rem .8rem; font-size: .85rem; }

.btn-link {
    background: none; border: none; color: var(--brand-dark);
    padding: 0; cursor: pointer; font: inherit; text-decoration: underline;
}

label { display: block; margin-bottom: 1rem; }
label .lbl { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .25rem; color: var(--ink); }
input[type=text], input[type=email], input[type=tel], input[type=time],
input[type=number], input[type=url], input[type=date], input[type=datetime-local],
select, textarea {
    width: 100%; padding: .65rem .8rem;
    border: 1px solid var(--ink-line); border-radius: 8px;
    font: inherit; background: white;
}
textarea { min-height: 6rem; resize: vertical; }
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(138,91,59,.15);
}

.alert { padding: 1rem 1.25rem; border-radius: 10px; margin-bottom: 1.25rem; border: 1px solid; }
.alert.success { background: #ecf6ee; border-color: #cae0ce; color: #2e5d3d; }
.alert.warning { background: #fdf6e6; border-color: #efe1bc; color: #735210; }
.alert.error { background: #fbe8e8; border-color: #efc8c8; color: #8b2e2e; }
.alert.info { background: #ebf2f7; border-color: #c8d8e8; color: #2d4f6e; }

table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { padding: .65rem .75rem; text-align: left; border-bottom: 1px solid var(--ink-line); vertical-align: top; }
table.data thead { background: var(--bg); }
table.data tbody tr:hover { background: #fdfaf3; }

.badge { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .3px; }
.badge.green { background: #dfeee3; color: #2e5d3d; }
.badge.red { background: #f5dcdc; color: #7d2a2a; }
.badge.amber { background: #fbe9c4; color: #6f4d10; }
.badge.gray { background: var(--ink-line); color: var(--ink-soft); }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--brand); }
.timeline li { padding: 1rem 1rem 1rem 1.5rem; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -8px; top: 1.6rem; width: 13px; height: 13px; background: var(--brand); border-radius: 50%; border: 3px solid var(--bg); }
.timeline .time { font-weight: 700; color: var(--brand-dark); margin-right: .75rem; }
.timeline h3 { margin: 0 0 .25rem; display: inline; }

.grid { display: grid; gap: 1rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--ink-line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.05); }

.countdown { font-size: 3.5rem; font-weight: 700; color: var(--brand-dark); font-family: 'Cormorant Garamond', serif; }
.countdown small { font-size: 1rem; color: var(--ink-soft); font-weight: 500; display: block; margin-top: .25rem; }

footer.site {
    border-top: 1px solid var(--ink-line); padding: 2.5rem 1.25rem;
    text-align: center; color: var(--ink-soft); font-size: .9rem;
    background: var(--bg-card);
    position: relative;
}
footer.site::before {
    content: '';
    display: block;
    width: 120px; height: 12px;
    margin: 0 auto 1rem;
    background: url('/assets/img/divider.svg') no-repeat center / contain;
    opacity: .6;
}

.shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; }
.shortcut {
    background: white; border: 1px solid var(--ink-line); border-radius: 10px;
    padding: 1rem; text-align: center; color: var(--ink); font-weight: 500;
    transition: border-color .15s, transform .1s;
}
.shortcut:hover { border-color: var(--brand); transform: translateY(-2px); text-decoration: none; }

.lightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 99;
    display: none; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.4); }
.lightbox .close { position: absolute; top: 1rem; right: 1.5rem; color: white; font-size: 2rem; cursor: pointer; background: none; border: none; }

@media (max-width: 640px) {
    .hero { padding: 2rem 1.25rem; }
    nav.primary { width: 100%; }
    main { padding: 1.25rem; }
    .countdown { font-size: 2.5rem; }
}
