/* ZSKS — warm coffee design system, re-authored from the design handoff.
   Tokens per README: cream canvas, terracotta accent, dark-brown panels,
   16px card radius, 8px control radius, no shadows, Archivo 400/600/800. */

:root {
    --cream: #faf6ec;
    --ink: #3a241a;
    --muted: #5c4636;
    --muted-2: #7a5f4c;
    --muted-3: #8a6f5a;
    --terra: #b4531f;
    --terra-dark: #93421a;
    --tan: #efe3cd;
    --gold: #d9a441;
    --line: rgba(58, 36, 26, .22);
    --line-strong: rgba(58, 36, 26, .35);
    --line-soft: rgba(58, 36, 26, .18);
    --line-list: rgba(58, 36, 26, .12);
    --cream-75: rgba(250, 246, 236, .75);
    --cream-88: rgba(250, 246, 236, .88);
    --font: "Archivo", system-ui, sans-serif;
}

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

body {
    margin: 0;
    background: #e7e5e1;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
}

img { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 800; margin: 0; }

a { color: var(--terra-dark); text-underline-offset: 3px; text-decoration: none; }
a:hover { color: var(--ink); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
::selection { background: rgba(180, 83, 31, .3); }

/* — page shell — */
.site { width: 100%; max-width: 1280px; margin: 0 auto; background: var(--cream); }
.wrap { padding: 16px 24px 28px; }

/* — type — */
.kicker {
    font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
    font-weight: 600; color: var(--terra); margin: 0;
}
.kicker--light { color: var(--cream-75); letter-spacing: .13em; }
.kicker--gold { color: var(--gold); }

.h-hero {
    font-size: clamp(38px, 5vw, 58px); line-height: 1.04;
    letter-spacing: -0.02em; margin: 0;
}
.h-page { font-size: clamp(34px, 4.5vw, 52px); line-height: 1.04; letter-spacing: -0.02em; }
.h-section { font-size: clamp(24px, 3.4vw, 30px); line-height: 1.14; letter-spacing: -0.015em; }

.lead { font-size: 16px; line-height: 1.6; }
.text-muted { color: var(--muted); }
.text-soft { color: var(--muted-2); }

/* — panels & cards — */
.panel { border-radius: 16px; }
.panel--terra { background: var(--terra); color: var(--cream); }
.panel--dark { background: var(--ink); color: var(--cream); }
.panel--tan { background: var(--tan); }
.card { border: 1px solid var(--line); border-radius: 16px; }

/* photo corners: default 16, one 96px corner per README */
.ph { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.ph--tr { border-radius: 16px 96px 16px 16px; }
.ph--br { border-radius: 16px 16px 96px 16px; }
.ph--bl { border-radius: 16px 16px 16px 96px; }
.ph--tl { border-radius: 96px 16px 16px 16px; }

/* — buttons — */
.btn {
    display: inline-block; font-family: var(--font); font-weight: 800;
    font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer;
    padding: 13px 26px; border-radius: 8px; border: 0; background: transparent;
}
.btn--cream { background: var(--cream); color: var(--ink); }
.btn--cream:hover { background: #f1ead9; color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--cream); font-size: 14px; padding: 11px 22px; }
.btn--dark:hover { background: #4a3024; color: var(--cream); }
.btn--terra { background: var(--terra); color: var(--cream); font-size: 14px; padding: 11px 22px; }
.btn--terra:hover { background: var(--terra-dark); color: var(--cream); }
.btn--outline {
    border: 1px solid rgba(58, 36, 26, .4); color: var(--ink);
    font-size: 14px; padding: 10px 20px;
}
.btn--outline:hover { background: rgba(58, 36, 26, .06); color: var(--ink); }

/* — tags & chips — */
.tag {
    display: inline-block; border: 1px solid var(--line-strong); border-radius: 6px;
    font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    padding: 4px 10px;
}
.badge {
    display: inline-block; background: var(--terra); color: var(--cream);
    font-size: 11px; font-weight: 700; letter-spacing: .06em;
    padding: 4px 10px; border-radius: 6px;
}
.mchip {
    border: 1px solid var(--line-strong); border-radius: 8px; background: transparent;
    color: var(--ink); font: inherit; font-size: 13px; font-weight: 600;
    padding: 8px 16px; cursor: pointer;
}
.mchip.on { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* — grids — */
.grid { display: grid; gap: 16px; }
.g-7-5 { grid-template-columns: 7fr 5fr; }
.g-5-7 { grid-template-columns: 5fr 7fr; }
.g-2 { grid-template-columns: 1fr 1fr; }
.g-3 { grid-template-columns: repeat(3, 1fr); }

/* — header / nav — */
.site-nav {
    /* bottom padding 28 ≈ logo overhang (8) + 20, so the gap between the logo
       and the rule matches the 20px gap between the rule and the boxes below */
    display: flex; align-items: center; gap: 18px; padding: 14px 28px 28px;
    flex-wrap: wrap; border-bottom: 1px solid var(--line-soft);
}
.site-nav .logo { margin-right: auto; display: block; }
/* Large logo, compact bar: negative margins keep its layout box at ~60px so the
   nav doesn't grow; the asymmetry lifts it a few px off the bottom rule. */
.site-nav .logo img { height: 88px; margin: -20px 0 -8px; display: block; }
.nav-links { display: flex; gap: 24px; align-items: center; font-size: 14px; }
.navlink { color: inherit; text-decoration: none; padding-bottom: 2px; }
.navlink:hover { color: var(--terra); }
.navlink.active { color: var(--terra); box-shadow: inset 0 -2px 0 var(--terra); }
.lang-switch {
    display: inline-flex; flex: none; border: 1px solid var(--line-strong);
    border-radius: 8px; overflow: hidden;
}
.lang-switch a {
    font-size: 12px; font-weight: 600; padding: 6px 12px; color: inherit;
    background: transparent; text-decoration: none;
}
.lang-switch a + a { border-left: 1px solid var(--line-strong); }
.lang-switch a.on { background: var(--terra); color: #fff; }
.mburger {
    border: 1px solid var(--line-strong); border-radius: 8px; background: transparent;
    padding: 8px 12px; cursor: pointer; color: inherit; font-size: 20px; line-height: 1;
}
.mburger:hover { color: var(--terra); }
.mobile-menu { display: none; flex-direction: column; border-bottom: 1px solid var(--line-soft); }
.mobile-menu.open { display: flex; }
.mobile-menu .navlink {
    padding: 16px 20px; font-size: 16px; font-weight: 600;
    border-bottom: 1px solid var(--line-list);
}
.mobile-menu .join-row { padding: 16px 20px; }

/* — footer — */
.site-footer {
    border-top: 1px solid var(--line-soft); padding: 26px 28px 0;
    display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
}
.site-footer .brand { font-size: 20px; font-weight: 800; font-family: var(--font); margin: 0; }
.site-footer .brand span { color: var(--terra); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.footer-links a { font-size: 13.5px; color: inherit; }
.footer-links a:hover { color: var(--terra); }
.copyright { text-align: center; font-size: 12px; color: var(--muted-3); margin: 18px 0 4px; }

/* — event calendar rows — */
.cal-row {
    display: grid; grid-template-columns: 110px 1fr auto; gap: 24px;
    align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line-list);
}
.cal-row:last-child { border-bottom: 0; }
/* weekly recurring event: highlighted row, label instead of a date */
.cal-row--weekly {
    border-bottom: 0 !important; border-radius: 12px;
    padding: 16px 18px; margin: 4px -18px 10px;
}
.cal-row--weekly .rec-label {
    font-weight: 800; font-size: 13px; line-height: 1.35;
    letter-spacing: .05em; text-transform: uppercase;
}
.cal-date { display: flex; flex-direction: column; }
.cal-date .d { font-family: var(--font); font-weight: 800; font-size: 28px; line-height: 1; color: var(--terra); }
.cal-date .m { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-top: 4px; }

/* — forms — */
.field label { font-size: 12.5px; font-weight: 600; display: block; margin-bottom: 6px; }
.input {
    width: 100%; border: 1px solid var(--line-strong); border-radius: 8px;
    background: #fffdf8; color: inherit; font: inherit; font-size: 14px; padding: 10px 12px;
}
.input:focus-visible { border-color: var(--terra); outline-offset: 0; }
textarea.input { min-height: 110px; resize: vertical; }
.form-errors { color: var(--terra-dark); font-size: 13px; margin: 4px 0 0; list-style: none; padding: 0; }
.flash-ok {
    background: var(--tan); border-radius: 8px; padding: 12px 16px;
    font-size: 14px; font-weight: 600; margin-bottom: 16px;
}

/* — responsive: single 760px breakpoint per handoff — */
.only-m { display: none; }

@media (min-width: 761px) {
    .mobile-menu { display: none !important; }
}

@media (max-width: 760px) {
    .g-7-5, .g-5-7, .g-2, .g-3 { grid-template-columns: 1fr; }
    .p { padding-left: 20px !important; padding-right: 20px !important; }
    .py { padding-top: 34px !important; padding-bottom: 34px !important; }
    .hide-m { display: none !important; }
    .only-m { display: inline-block; }
    .site-nav { gap: 12px; padding-bottom: 24px; }
    .site-nav .logo img { height: 68px; margin: -12px 0 -4px; }
    .cal-row { grid-template-columns: 72px 1fr; }
    .cal-row .tag { display: none; }
}
