/* ==========================================================================
   Self-hosted fonts (no external CDN — avoids sending visitor IPs to
   Google Fonts, per GDPR guidance for EU-facing sites)
   ========================================================================== */

@font-face {
    font-family: "Fraunces";
    src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Fraunces";
    src: url("../fonts/fraunces-latin-600-italic.woff2") format("woff2");
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Work Sans";
    src: url("../fonts/work-sans-latin-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "IBM Plex Mono";
    src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   Vagn & Marie's Landhandel — design tokens
   Palette grounded in the produce itself: strawberry, potato soil, leaf,
   and harvest-crate paper. Deliberately not the cream+terracotta default.
   ========================================================================== */

:root {
    --paper: #F1E8D6;
    --paper-deep: #E4D6B8;
    --ink: #2A1F16;
    --ink-soft: #6B5847;
    --berry: #B23A3A;
    --berry-deep: #8C2C2C;
    --leaf: #4B6B3A;
    --leaf-deep: #38512A;
    --soil: #7C5230;
    --gold: #C89B3C;
    --line: rgba(42, 31, 22, 0.14);
    --paper-rgb: 241, 232, 214;

    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, monospace;

    --wrap: 1100px;
    --radius: 14px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--berry-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--berry); }

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.5em;
    color: var(--ink);
}

em { font-style: italic; color: var(--berry-deep); }

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

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--soil);
    margin-bottom: 10px;
}

.section { padding: 72px 0; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 13px 24px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--berry);
    color: var(--paper);
}
.btn-primary:hover { background: var(--berry-deep); color: var(--paper); }

.btn-ghost {
    background: transparent;
    border-color: var(--ink);
    color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ==========================================================================
   Header / nav
   ========================================================================== */

.site-header {
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 18px;
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}
.wordmark-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.logo-mark {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}
.wordmark-main {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
}
.wordmark-sub {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--soil);
    margin-top: 3px;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}
.site-nav a {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 3px;
}
.site-nav a:hover { border-color: var(--berry); color: var(--ink); }

/* ==========================================================================
   Hero + signature stamp badge
   ========================================================================== */

.hero {
    padding: 88px 0 96px;
    background:
        radial-gradient(ellipse at top right, rgba(75,107,58,0.10), transparent 55%),
        var(--paper);
    border-bottom: 1px solid var(--line);
}

.hero-inner {
    max-width: 760px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stamp-wrap { margin-bottom: 28px; }

.stamp {
    width: 110px;
    height: 110px;
    animation: stamp-in 0.5s ease-out;
}
@keyframes stamp-in {
    from { opacity: 0; transform: scale(0.85) rotate(-8deg); }
    to { opacity: 1; transform: scale(1) rotate(-8deg); }
}
.stamp-ring {
    fill: none;
    stroke: var(--berry-deep);
}
.stamp-ring-outer { stroke-width: 2; }
.stamp-ring-inner { stroke-width: 1; opacity: 0.55; }
.stamp-text {
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 1.5px;
    fill: var(--berry-deep);
}
.stamp-center { font-size: 26px; }

.hero-title {
    font-size: clamp(38px, 6vw, 60px);
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}

.hero-lede {
    font-size: 18px;
    color: var(--ink-soft);
    max-width: 52ch;
    margin: 0 0 32px;
}

/* ==========================================================================
   Section head
   ========================================================================== */

.section-head {
    text-align: center;
    max-width: 520px;
    margin: 0 auto 44px;
}
.section-head h2 { font-size: 32px; }

/* ==========================================================================
   Product grid
   ========================================================================== */

.products-section { background: var(--paper-deep); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--ink);
}

.product-media {
    display: block;
    aspect-ratio: 4 / 3;
    background-color: var(--paper-deep);
    background-size: cover;
    background-position: center;
}

.placeholder-media {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    width: 100%;
    height: 100%;
    color: var(--ink-soft);
}

.product-card h3 { font-size: 20px; margin: 18px 20px 6px; }
.product-card h3 a { color: var(--ink); text-decoration: none; }
.product-card p { margin: 0 20px 18px; color: var(--ink-soft); font-size: 15px; }

.product-card .price {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--soil);
    margin: 0 20px 20px;
}

.ribbon {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--gold);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
}

.products-note {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--ink-soft);
    margin: 36px 0 0;
}
.products-note code {
    background: rgba(42,31,22,0.08);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ==========================================================================
   About teaser
   ========================================================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.about-media {
    aspect-ratio: 1 / 1;
    background: var(--paper-deep);
    border-radius: var(--radius);
    font-size: 48px;
}

.about-copy h2 { font-size: 30px; }
.about-copy p { color: var(--ink-soft); margin-bottom: 24px; }

/* ==========================================================================
   Hours strip
   ========================================================================== */

.hours-strip { background: var(--leaf); color: var(--paper); }
.hours-strip .eyebrow { color: rgba(241,232,214,0.75); }
.hours-strip .hours-text { color: var(--paper); margin: 0; font-size: 16px; }

.hours-inner {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 32px;
    align-items: center;
}

.hours-strip .btn-primary { background: var(--paper); color: var(--leaf-deep); }
.hours-strip .btn-primary:hover { background: var(--gold); color: var(--ink); }

/* ==========================================================================
   Page hero (About / Contact)
   ========================================================================== */

.page-hero {
    padding: 64px 0 40px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}
.page-hero h1 { font-size: 42px; }

.page-body { padding: 56px 0 88px; }

.page-feature-image {
    max-width: var(--wrap);
    margin: 32px auto 0;
    aspect-ratio: 21 / 9;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
}

.values-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 64px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--line);
}
.value { text-align: center; }
.value-mark { font-size: 30px; display: block; margin-bottom: 10px; }
.value h3 { font-size: 17px; margin-bottom: 6px; }
.value p { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* ==========================================================================
   Prose (Ghost editor content)
   ========================================================================== */

.prose { max-width: 68ch; margin: 0 auto; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose h3 { font-size: 20px; margin-top: 1.4em; }
.prose p { margin: 0 0 1.2em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote {
    margin: 1.6em 0;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--berry);
    color: var(--ink-soft);
    font-style: italic;
}
.prose img, .prose figure img {
    border-radius: var(--radius);
    margin: 1.6em 0;
}
.prose figcaption {
    text-align: center;
    font-size: 13px;
    color: var(--ink-soft);
    margin-top: -1.2em;
    margin-bottom: 1.6em;
}
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose a { color: var(--berry-deep); }

/* Koenig editor wide/full-bleed image cards */
.kg-width-wide {
    width: 100%;
    max-width: 1000px;
    margin-left: 50%;
    transform: translateX(-50%);
}
.kg-width-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}
.kg-width-full img { border-radius: 0; }

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 56px 0 88px;
    align-items: start;
}

.contact-card .prose { margin: 0 0 32px; max-width: none; }

.contact-details {
    display: grid;
    gap: 16px;
    margin: 0 0 32px;
    padding: 24px;
    background: var(--paper-deep);
    border-radius: var(--radius);
}
.contact-details dt {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--soil);
    margin-bottom: 2px;
}
.contact-details dd { margin: 0; font-size: 16px; }

.contact-map {
    position: sticky;
    top: 100px;
}
.contact-map iframe {
    width: 100%;
    height: 340px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.map-note {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-soft);
    margin-top: 10px;
}
.map-note code {
    background: rgba(42,31,22,0.08);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ==========================================================================
   Single post
   ========================================================================== */

.post-article { max-width: 760px; padding: 56px 24px 96px; }
.post-header { text-align: center; margin-bottom: 32px; }
.post-header h1 { font-size: 38px; }
.post-meta {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.post-feature-image {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    margin-bottom: 40px;
}
.post-footer { margin-top: 48px; text-align: center; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--ink);
    color: var(--paper);
    padding: 56px 0 24px;
}
.site-footer-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(241,232,214,0.15);
}
.site-footer .wordmark-main { color: var(--paper); font-size: 20px; }
.site-footer .wordmark-sub { color: var(--gold); }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-tagline { color: rgba(241,232,214,0.7); margin-top: 10px; font-size: 14px; }

.footer-contact p { margin: 0 0 8px; font-size: 14px; }
.footer-contact a { color: var(--paper); }
.footer-facebook {
    display: inline-block;
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--gold) !important;
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-nav a {
    color: var(--paper);
    text-decoration: none;
    font-size: 14px;
}
.footer-nav a:hover { color: var(--gold); }

.footer-copy {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(241,232,214,0.5);
    margin: 20px 0 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 860px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .about-media { max-width: 320px; margin: 0 auto; }
    .hours-inner { grid-template-columns: 1fr; text-align: center; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-map { position: static; }
    .site-footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 560px) {
    .section { padding: 52px 0; }
    .product-grid { grid-template-columns: 1fr; }
    .values-row { grid-template-columns: 1fr; gap: 32px; }
    .site-nav ul { gap: 16px; flex-wrap: wrap; }
    .hero { padding: 64px 0 72px; }
}
