/* ============================================================
   guia-cafe.com — "Monte" (DESIGN.md)
   Rust-tinted coastal café: Corten #b84b30 full-bleed hero field,
   Sandstone #f8f4e9 cream canvas, one serif voice (Playfair Display
   as Riposte substitute) + mono functional print (JetBrains Mono as
   Apercu Mono substitute). Flat: no shadows, no gradients. Two-radius
   shape language: 14px cards, 9999px pills. Outlined actions only —
   the border IS the button.
   ============================================================ */

/* ---- Fonts (self-hosted, CSP: font-src 'self') ---- */

@font-face {
    font-family: 'Playfair Display';
    src: url('/fonts/playfair-display-var.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('/fonts/jetbrains-mono-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ---- Tokens ---- */

:root {
    --corten: #b84b30;
    --bordeaux: #5f1d1a;
    --sand: #f8f4e9;
    --drift: #e5e7eb;
    --charcoal: #000000;
    --bone: #ffffff;
    --smoke: #666666;
    --ash: #999999;
    --espresso: #3e3d3a;

    --font-serif: 'Playfair Display', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    --font-body: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --page-max: 1200px;
    --narrow-max: 740px;
    --section-gap: 80px;
    --radius-card: 14px;
    --radius-pill: 9999px;

    --track-eyebrow: .1em;   /* 2.4px @ 24px */
    --track-display: .1em;   /* 3.6px @ 36px */
    --track-label: .05em;
}

/* ---- Reset / base ---- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--sand);
    color: var(--espresso);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
}

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

a { color: var(--corten); }
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--corten);
    outline-offset: 3px;
    border-radius: 2px;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--corten);
    line-height: 1.15;
    margin: 0 0 .5em;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--bone);
    color: var(--bordeaux);
    padding: 10px 22px;
    z-index: 100;
    font-family: var(--font-mono);
    font-size: 14px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---- Layout primitives (universal classes: shared legal/autor views) ---- */

.container {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 0 24px;
}
.container-narrow { max-width: var(--narrow-max); }

.section { padding: var(--section-gap) 0 0; }
.section:last-child { padding-bottom: var(--section-gap); }

/* ---- Header: three-element bar on a Corten field ---- */

.top {
    background: var(--corten);
    color: var(--sand);
}
.top-in {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}
.top-side { display: flex; gap: 28px; align-items: center; }
.top-side-r { justify-content: flex-end; }
.top a { text-decoration: none; }
.top-link {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 12px;
    letter-spacing: var(--track-label);
    text-transform: uppercase;
    color: var(--sand);
    padding: 6px 2px;
}
.top-link:hover { color: var(--bone); text-decoration: underline; text-underline-offset: 4px; }
.top-link.is-here { text-decoration: underline; text-underline-offset: 4px; }

.wordmark {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 26px;
    line-height: 1;
    color: var(--sand);
    letter-spacing: .01em;
}
.wordmark b { font-weight: 600; }

.burger {
    background: none;
    border: 1.5px solid var(--sand);
    border-radius: var(--radius-pill);
    color: var(--sand);
    font-family: var(--font-serif);
    font-size: 12px;
    letter-spacing: var(--track-label);
    text-transform: uppercase;
    padding: 8px 20px;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}
.burger:hover { background: var(--sand); color: var(--corten); }

/* Full-screen menu sheet: a Corten field of serif links */
.mainnav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--corten);
    z-index: 50;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 34px;
    text-align: center;
}
.mainnav.is-open { display: flex; }
.mainnav-a {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(24px, 4vw, 34px);
    letter-spacing: var(--track-eyebrow);
    text-transform: uppercase;
    color: var(--sand);
    text-decoration: none;
}
.mainnav-a:hover { color: var(--bone); text-decoration: underline; text-underline-offset: 6px; }
.mainnav-a.is-here { text-decoration: underline; text-underline-offset: 6px; }
.mainnav-close {
    position: absolute;
    top: 22px;
    right: 24px;
}
.mainnav .meta-mono { color: var(--sand); opacity: .8; margin-top: 10px; }

/* Home: the header sits on the hero field with no seam */
.page-home .top { background: transparent; position: absolute; inset: 0 0 auto 0; z-index: 5; }

/* ---- Hero (home): the screen IS the hero ---- */

.hero {
    background: var(--corten);
    color: var(--sand);
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 72px;
}
.hero-art { margin: 0 auto 8px; width: min(360px, 62vw); }
.hero-art svg { display: block; width: 100%; height: auto; }
.hero-curve-text {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 21.5px;
    letter-spacing: 6px;
    fill: var(--sand);
    text-transform: uppercase;
}
.hero h1 {
    color: var(--sand);
    font-weight: 600;
    font-size: clamp(30px, 5vw, 44px);
    letter-spacing: var(--track-display);
    text-transform: uppercase;
    line-height: 1.1;
    max-width: 21ch;
    margin: 0 auto 18px;
}
.hero-lede {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--sand);
    max-width: 60ch;
    margin: 0 auto 32px;
}
.hero-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    color: var(--sand);
    opacity: .85;
    margin: 28px 0 0;
}

/* ---- Pill buttons: outlined only, never filled ---- */

.pill {
    display: inline-block;
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 15px;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
    background: transparent;
    border: 1.5px solid var(--corten);
    border-radius: var(--radius-pill);
    color: var(--corten);
    padding: 14px 32px;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}
.pill:hover { background: var(--corten); color: var(--sand); }
.pill-sand { border-color: var(--sand); color: var(--sand); }
.pill-sand:hover { background: var(--sand); color: var(--corten); }
.pill-sm { font-size: 12px; padding: 9px 22px; }

/* ---- Section openers: eyebrow + display headline ---- */

.eyebrow {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 20px;
    letter-spacing: var(--track-eyebrow);
    text-transform: uppercase;
    color: var(--corten);
    text-align: center;
    margin: 0 0 20px;
}
.display {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(26px, 4vw, 36px);
    letter-spacing: var(--track-display);
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--corten);
    text-align: center;
    max-width: 26ch;
    margin: 0 auto 20px;
}
.opener-note {
    text-align: center;
    color: var(--smoke);
    max-width: 58ch;
    margin: 0 auto;
}
.left-opener .eyebrow,
.left-opener .display,
.left-opener .opener-note { text-align: left; margin-left: 0; }

/* ---- Mono meta print ---- */

.meta-mono {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    color: var(--smoke);
}

/* ---- Cards: 14px radius, hairline, flat ---- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}
.card {
    border: 1px solid var(--drift);
    border-radius: var(--radius-card);
    padding: 28px 24px;
    background: transparent;
    transition: border-color .15s;
}
.card:hover { border-color: var(--corten); }
a.card, .card a { text-decoration: none; color: inherit; display: block; height: 100%; }
a.card { height: auto; }
.card-ico { margin-bottom: 16px; }
.card-ico svg { display: block; }
.card h3, .card .card-title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 21px;
    letter-spacing: .01em;
    color: var(--bordeaux);
    color: var(--corten);
    margin: 6px 0 10px;
    line-height: 1.25;
}
.card p { color: var(--smoke); font-size: 15.5px; margin: 0 0 16px; }
.card-cta {
    font-family: var(--font-serif);
    font-size: 13px;
    letter-spacing: var(--track-label);
    text-transform: uppercase;
    color: var(--corten);
}
.card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0; /* photos keep natural edges (DESIGN) */
    margin-bottom: 16px;
}

/* ---- Two-column pairing (illustration + text) ---- */

.pair {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: center;
    margin-top: 48px;
}
.pair-art { padding: 12px; }
.pair-art svg { display: block; margin: 0 auto; width: min(300px, 100%); }

.check-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}
.check-list li {
    padding: 14px 0 14px 34px;
    border-bottom: 1px solid var(--drift);
    position: relative;
    color: var(--espresso);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 24px;
    width: 14px;
    height: 8px;
    border-left: 3px solid var(--corten);
    border-bottom: 3px solid var(--corten);
    transform: rotate(-45deg);
}
.check-list b { font-family: var(--font-serif); color: var(--bordeaux); }

/* ---- Row heading with side action ---- */

.row-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* ---- Breadcrumbs (universal) ---- */

.breadcrumb { margin: 0 0 28px; }
.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    color: var(--ash);
}
.breadcrumb-list li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--drift); }
.breadcrumb-list a { color: var(--corten); text-decoration: none; }
.breadcrumb-list a:hover { text-decoration: underline; }
.breadcrumb-list [aria-current] { color: var(--smoke); }

/* ---- Prose (universal: articles, legal, autor) ---- */

.prose { font-size: 17px; line-height: 1.7; color: var(--espresso); }
.prose h2 {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--corten);
    margin: 1.7em 0 .6em;
}
.prose h3 { font-size: 21px; color: var(--bordeaux); margin: 1.5em 0 .5em; }
.prose h4 { font-size: 18px; color: var(--espresso); margin: 1.3em 0 .4em; }
.prose p { margin: 0 0 1.1em; }
.prose a { color: var(--corten); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 26px; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--corten); }
.prose img { display: block; margin: 28px auto; }
.prose figure { margin: 28px 0; }
.prose figcaption {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ash);
    margin-top: 8px;
}
.prose hr { border: 0; border-top: 1px solid var(--drift); margin: 40px 0; }
.prose code {
    font-family: var(--font-mono);
    font-size: .88em;
    background: rgba(184, 75, 48, .08);
    border-radius: 4px;
    padding: 1px 5px;
}

/* Disclaimer / callout boxes */
.prose blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    border: 1px solid var(--drift);
    border-left: 3px solid var(--corten);
    border-radius: var(--radius-card);
    color: var(--smoke);
    font-size: 15.5px;
}
.prose blockquote p:last-child { margin-bottom: 0; }

/* Tables scroll inside themselves on mobile */
.prose table {
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 15px;
}
.prose th, .prose td {
    border: 1px solid var(--drift);
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}
.prose th {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: var(--track-label);
    text-transform: uppercase;
    color: var(--corten);
    background: rgba(184, 75, 48, .05);
}

.legal-updated {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    color: var(--ash);
    margin: 0 0 24px;
}

/* ---- Article page ---- */

.article-head { margin: 0 0 32px; }
.article-eyebrow {
    font-family: var(--font-serif);
    font-size: 15px;
    letter-spacing: var(--track-eyebrow);
    text-transform: uppercase;
    color: var(--corten);
    margin: 0 0 14px;
}
.article-title {
    font-size: clamp(30px, 4.6vw, 42px);
    font-weight: 600;
    letter-spacing: .005em;
    color: var(--bordeaux);
    line-height: 1.14;
    margin: 0 0 16px;
    text-transform: none;
}
.article-lede { font-size: 19px; line-height: 1.55; color: var(--smoke); margin: 0 0 26px; }

.byline {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--drift);
    border-bottom: 1px solid var(--drift);
}
.byline-img { width: 44px; height: 44px; border-radius: 50%; }
.byline-col { display: flex; flex-direction: column; gap: 3px; }
.byline-a {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 16px;
    color: var(--bordeaux);
    text-decoration: none;
}
.byline-a:hover { color: var(--corten); text-decoration: underline; text-underline-offset: 3px; }

.article-cover { margin: 32px 0; }
.article-cover img { display: block; width: 100%; }
.article-cover figcaption { font-family: var(--font-mono); font-size: 12px; color: var(--ash); margin-top: 8px; }

/* TOC: contained card with Corten numerals */
.toc {
    border: 1px solid var(--drift);
    border-radius: var(--radius-card);
    padding: 24px 28px;
    margin: 32px 0 40px;
}
.toc-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 15px;
    letter-spacing: var(--track-eyebrow);
    text-transform: uppercase;
    color: var(--corten);
    margin: 0 0 14px;
}
.toc-list {
    list-style: none;
    counter-reset: toc;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 36px;
}
.toc-list li {
    counter-increment: toc;
    margin-bottom: 9px;
    break-inside: avoid;
    padding-left: 30px;
    position: relative;
}
.toc-list li::before {
    content: counter(toc, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 2px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--corten);
}
.toc-list a { color: var(--espresso); text-decoration: none; font-size: 15.5px; }
.toc-list a:hover { color: var(--corten); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Newsletter band (Corten field) ---- */

.nl-band {
    background: var(--corten);
    color: var(--sand);
    margin-top: var(--section-gap);
    padding: 72px 0;
    text-align: center;
}
.nl-band .eyebrow { color: var(--sand); opacity: .9; }
.nl-band h2 {
    color: var(--sand);
    font-weight: 600;
    font-size: clamp(24px, 3.4vw, 32px);
    letter-spacing: var(--track-display);
    text-transform: uppercase;
    max-width: 24ch;
    margin: 0 auto 14px;
}
.nl-band .nl-note { color: var(--sand); opacity: .92; max-width: 52ch; margin: 0 auto 30px; }

.nl-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 560px;
    margin: 0 auto;
}
.nl-form input[type="email"] {
    flex: 1 1 260px;
    font-family: var(--font-mono);
    font-size: 15px;
    letter-spacing: -0.025em;
    color: var(--charcoal);
    background: var(--sand);
    border: 1px solid var(--drift);
    border-radius: var(--radius-pill);
    padding: 13px 24px;
}
.nl-form input[type="email"]::placeholder { color: var(--ash); }
.nl-micro {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: -0.025em;
    color: var(--sand);
    opacity: .8;
    margin: 18px 0 0;
}
.nl-micro a { color: var(--sand); }
.newsletter-ok { font-family: var(--font-serif); font-size: 17px; color: var(--sand); margin: 8px 0; }

/* ---- Footer (cream, hairlines, serif + mono) ---- */

.foot {
    border-top: 1px solid var(--drift);
    margin-top: 0;
    padding: 56px 0 40px;
}
.foot-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}
.foot-mark {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--corten);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.foot-mark b { font-weight: 600; }
.foot-tag { color: var(--smoke); font-size: 15px; max-width: 34ch; margin: 12px 0 0; }
.foot h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 14px;
    letter-spacing: var(--track-eyebrow);
    text-transform: uppercase;
    color: var(--corten);
    margin: 0 0 14px;
}
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-col a { color: var(--espresso); text-decoration: none; font-size: 15px; }
.foot-col a:hover { color: var(--corten); text-decoration: underline; text-underline-offset: 3px; }
.foot-base {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    color: var(--ash);
    border-top: 1px solid var(--drift);
    margin-top: 44px;
    padding-top: 20px;
}

/* ---- Cookie banner (AEPD: equal buttons) ---- */

.cookiebox {
    position: fixed;
    inset: auto 16px 16px;
    z-index: 60;
    display: none;
}
.cookiebox.is-visible { display: block; }
.cookiebox-in {
    max-width: 680px;
    margin: 0 auto;
    background: var(--sand);
    border: 1.5px solid var(--corten);
    border-radius: var(--radius-card);
    padding: 20px 24px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.cookiebox p { margin: 0; flex: 1 1 300px; font-size: 14.5px; color: var(--espresso); }
.cookiebox a { color: var(--corten); }
.cookiebox-actions { display: flex; gap: 10px; }

/* ---- Empty states ---- */

.empty-note {
    border: 1px solid var(--drift);
    border-radius: var(--radius-card);
    text-align: center;
    padding: 56px 28px;
    margin-top: 48px;
}
.empty-note .display { font-size: 24px; }
.empty-note p { color: var(--smoke); max-width: 54ch; margin: 0 auto; }

/* ---- Mobile nav + responsive ---- */

body.nav-locked { overflow: hidden; }

@media (max-width: 860px) {
    :root { --section-gap: 56px; }

    .top-in { padding: 16px 20px; }
    .wordmark { font-size: 22px; }
    .top-side .top-link { display: none; }

    .card-grid { grid-template-columns: 1fr; }
    .pair { grid-template-columns: 1fr; gap: 24px; }
    .pair-art { order: -1; }
    .toc-list { columns: 1; }
    .foot-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero { min-height: 86vh; padding-top: 96px; }
}

@media (max-width: 480px) {
    body { font-size: 16px; }
    .hero h1 { letter-spacing: .06em; }
    .nl-form input[type="email"] { flex-basis: 100%; }
}
