/* =========================================================================
   Plum Tomatoes — a food journal
   Palette: terracotta / cream / forest green. Serif display + clean sans.
   ========================================================================= */

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:root {
    --cream: #f7f1e6;
    --cream-2: #efe6d2;
    --paper: #fffaf1;
    --ink: #2a2320;
    --ink-2: #4b3f39;
    --muted: #7a6e64;
    --line: #e5d9c2;
    --brick: #a43224;
    --brick-dark: #7f2317;
    --tomato: #c0392b;
    --basil: #3b7a3b;
    --olive: #6d7a3b;
    --shadow-sm: 0 1px 2px rgba(42, 35, 32, 0.06), 0 1px 1px rgba(42, 35, 32, 0.04);
    --shadow-md: 0 8px 24px rgba(42, 35, 32, 0.12), 0 2px 6px rgba(42, 35, 32, 0.06);
    --radius: 10px;
    --radius-lg: 16px;
}

html { font-size: 17px; }
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .brand-name, .hero-title {
    font-family: 'Fraunces', 'Georgia', serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: var(--ink);
}

h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); margin: 0 0 0.6em; }
h3 { font-size: 1.25rem; margin: 0 0 0.4em; }
h4 { font-size: 1rem; margin: 0 0 0.4em; }
p  { margin: 0 0 1em; }

a { text-decoration: none; }
.content a, .prose a { color: var(--brick); border-bottom: 1px solid rgba(164,50,36,0.3); transition: border-color 0.15s, color 0.15s; }
.content a:hover, .prose a:hover { color: var(--brick-dark); border-bottom-color: var(--brick-dark); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }

.skip {
    position: absolute; left: -9999px; top: auto;
    background: var(--ink); color: var(--cream); padding: 0.6rem 1rem; border-radius: 6px;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 999; }

/* ---------- Header ---------- */
.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: saturate(140%) blur(6px);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.85rem 1.5rem; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand-mark { flex: 0 0 auto; display: inline-flex; }
.brand-text { display: inline-flex; flex-direction: column; line-height: 1.1; }
.brand-name {
    font-family: 'Fraunces', serif; font-size: 1.35rem; font-weight: 600;
    color: var(--ink);
}
.brand-tagline {
    font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em;
    margin-top: 0.1rem;
}

.site-nav ul { display: flex; align-items: center; gap: 1.25rem; }
.site-nav a {
    font-size: 0.93rem; color: var(--ink-2); font-weight: 500;
    padding: 0.4rem 0.2rem; border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.site-nav a:hover, .site-nav a.is-current {
    color: var(--brick); border-bottom-color: var(--brick);
}
.has-sub { position: relative; }
.has-sub .sub {
    position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
    background: var(--paper); border: 1px solid var(--line);
    padding: 0.5rem 0; min-width: 220px; border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-4px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
    display: block;
}
.has-sub .sub li { display: block; }
.has-sub .sub a {
    display: block; padding: 0.5rem 1rem; border-bottom: none;
    font-size: 0.9rem; color: var(--ink-2);
}
.has-sub .sub a:hover { background: var(--cream-2); color: var(--brick); }
.has-sub:hover .sub, .has-sub:focus-within .sub {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}

.nav-toggle {
    display: none; width: 44px; height: 44px; background: transparent;
    border: 1px solid var(--line); border-radius: 8px; padding: 0;
    cursor: pointer;
}
.nav-toggle span {
    display: block; width: 18px; height: 2px; background: var(--ink);
    margin: 4px auto; border-radius: 2px;
}

@media (max-width: 860px) {
    .header-inner { flex-wrap: wrap; }
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; flex-direction: column; }
    .site-nav {
        flex-basis: 100%; display: none; order: 3;
        padding: 0.5rem 0 1rem;
    }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
    .has-sub .sub {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: none; padding-left: 1rem;
        background: transparent;
    }
}

/* ---------- Hero ---------- */
.hero {
    padding: clamp(3rem, 2rem + 5vw, 6rem) 0 clamp(2rem, 1.5rem + 3vw, 4rem);
    background:
        radial-gradient(circle at 80% 20%, rgba(192,57,43,0.1), transparent 40%),
        linear-gradient(180deg, var(--paper), var(--cream));
    position: relative;
}
.hero-eyebrow {
    display: inline-block; font-size: 0.8rem; letter-spacing: 0.12em;
    color: var(--brick); text-transform: uppercase; font-weight: 600;
    margin-bottom: 1.1rem;
}
.hero-title {
    font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4rem);
    margin-bottom: 1.2rem;
    max-width: 18ch;
}
.hero-title em {
    font-style: italic; color: var(--brick); font-weight: 500;
}
.hero-lede {
    font-size: clamp(1.05rem, 0.95rem + 0.3vw, 1.2rem);
    color: var(--ink-2); max-width: 58ch; margin-bottom: 1.8rem;
}
.hero-actions { display: inline-flex; gap: 0.7rem; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.8rem 1.4rem; border-radius: 8px;
    font-weight: 500; font-size: 0.95rem;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.08s;
    border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--brick); color: var(--paper); }
.btn-primary:hover { background: var(--brick-dark); }
.btn-ghost {
    background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brick); color: var(--brick); }
.btn:active { transform: translateY(1px); }

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 2rem + 2.5vw, 4.5rem) 0; }
.section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 1rem; margin-bottom: 1.8rem;
    border-bottom: 1px solid var(--line); padding-bottom: 0.8rem;
}
.section-head h2 { margin: 0; }
.link {
    font-size: 0.92rem; color: var(--brick); font-weight: 500;
    border-bottom: 1px solid rgba(164,50,36,0.3);
    transition: color 0.15s, border-color 0.15s;
}
.link:hover { color: var(--brick-dark); border-bottom-color: var(--brick-dark); }

/* ---------- Featured + grid cards ---------- */
.featured {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem;
    align-items: center;
}
.featured-image {
    display: block; aspect-ratio: 4/3; overflow: hidden;
    border-radius: var(--radius-lg); background: var(--cream-2);
}
.featured-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.featured-image:hover img { transform: scale(1.04); }
.featured h3 { font-size: clamp(1.4rem, 1rem + 1.1vw, 2rem); margin: 0.4rem 0 0.8rem; }
.featured h3 a { color: var(--ink); }
.featured h3 a:hover { color: var(--brick); }
@media (max-width: 760px) {
    .featured { grid-template-columns: 1fr; gap: 1.5rem; }
}

.grid-posts {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.card {
    display: flex; flex-direction: column; gap: 0.8rem;
}
.card-media {
    aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius);
    background: var(--cream-2);
}
.card-media img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.card-media:hover img { transform: scale(1.04); }
.card h3 { font-size: 1.2rem; margin: 0.1rem 0 0.3rem; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--brick); }
.card p { color: var(--ink-2); font-size: 0.95rem; }

.card-meta {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.8rem; color: var(--muted); font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.card-meta .cat {
    color: var(--brick); border-bottom: none;
    padding: 0.15rem 0.5rem; background: rgba(192,57,43,0.08);
    border-radius: 4px;
}
.card-meta .dot {
    width: 3px; height: 3px; background: var(--muted); border-radius: 50%;
}
.excerpt { color: var(--ink-2); }

/* ---------- Prose ---------- */
.prose { font-size: 1.05rem; line-height: 1.75; color: var(--ink); }
.prose .lede { font-size: 1.2rem; color: var(--ink-2); margin-bottom: 1.6em; font-style: italic; }
.prose h2 { margin-top: 2em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.6em; font-size: 1.25rem; }
.prose p  { margin-bottom: 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.3em 1.4em; padding: 0; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4em; padding-left: 0.3em; }
.prose blockquote {
    border-left: 3px solid var(--brick); padding: 0.3em 0 0.3em 1.3em;
    margin: 1.6em 0; font-style: italic; color: var(--ink-2);
}
.prose em { color: var(--brick-dark); font-style: italic; }
.prose strong { color: var(--ink); font-weight: 600; }

/* ---------- About strip ---------- */
.about-strip {
    background: var(--ink); color: var(--cream);
    padding: clamp(3rem, 2rem + 3vw, 5rem) 0;
}
.about-strip h2 { color: var(--cream); }
.about-strip p { color: #d7cdba; max-width: 60ch; }
.about-strip .btn-ghost {
    color: var(--cream); border-color: rgba(247,241,230,0.3);
}
.about-strip .btn-ghost:hover { color: var(--paper); border-color: var(--cream); background: rgba(247,241,230,0.08); }

/* ---------- Article page ---------- */
.article-header {
    padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0 1.5rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}
.article-eyebrow {
    font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--brick); font-weight: 600; margin-bottom: 1rem;
}
.article-title {
    font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
    margin-bottom: 0.9rem; letter-spacing: -0.01em;
}
.article-meta {
    display: flex; gap: 0.6rem; flex-wrap: wrap;
    font-size: 0.9rem; color: var(--muted);
}
.article-meta .by { color: var(--ink-2); font-weight: 500; }
.article-hero {
    aspect-ratio: 16/9; overflow: hidden; margin: 2rem 0 0;
    border-radius: var(--radius-lg);
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: clamp(2rem, 1.5rem + 2vw, 3.5rem) 0; }

/* ---------- Menu-style archive page ---------- */
.menu-intro { padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0 1rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.menu-section { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.menu-section:last-child { border-bottom: none; }
.menu-section h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.menu-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem 2.5rem; }
.menu-item {
    display: grid; grid-template-columns: 1fr auto; gap: 0.8rem;
    padding: 0.8rem 0; border-bottom: 1px dotted var(--line);
    align-items: baseline;
}
.menu-item h3 {
    font-family: 'Fraunces', serif; font-size: 1.08rem; font-weight: 600;
    margin: 0 0 0.25rem; color: var(--ink);
}
.menu-item p { font-size: 0.92rem; color: var(--ink-2); margin: 0; line-height: 1.5; }
.menu-item .price {
    font-family: 'Fraunces', serif; font-weight: 500; color: var(--brick);
    white-space: nowrap; font-size: 1rem; font-variant-numeric: tabular-nums;
}

.note-box {
    background: var(--cream-2); border-left: 3px solid var(--basil);
    padding: 1.2rem 1.4rem; border-radius: 0 var(--radius) var(--radius) 0;
    margin: 2rem 0; font-size: 0.95rem; color: var(--ink-2);
}
.note-box strong { color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem;
    padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0;
    align-items: start;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }
.contact-info dt { font-weight: 600; color: var(--muted); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 1.2rem; margin-bottom: 0.3rem; }
.contact-info dd { margin: 0 0 0.3rem; font-size: 1.05rem; }

.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.3rem; color: var(--ink-2); }
.form-field input,
.form-field textarea {
    width: 100%; font-family: inherit; font-size: 1rem;
    padding: 0.7rem 0.9rem; border: 1px solid var(--line);
    border-radius: 8px; background: var(--paper); color: var(--ink);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none; border-color: var(--brick);
    box-shadow: 0 0 0 3px rgba(164,50,36,0.15);
}
.form-field textarea { min-height: 150px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: var(--cream);
    margin-top: 4rem;
    padding: 3rem 0 1.5rem;
}
.site-footer h3, .site-footer h4 { color: var(--paper); }
.footer-grid {
    display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem;
    padding-bottom: 2rem; border-bottom: 1px solid #3a302a;
}
.footer-brand h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.site-footer .muted { color: #b7a99a; }
.site-footer h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.9rem; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a { color: #d7cdba; font-size: 0.92rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    padding-top: 1.5rem;
}
.small { font-size: 0.83rem; }
.site-footer .small { color: #9a8d80; }
.muted { color: var(--muted); }

@media (max-width: 760px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Guest reviews ---------- */
.review {
    background: var(--paper); padding: 1.5rem 1.6rem; border-radius: var(--radius);
    border: 1px solid var(--line); margin-bottom: 1.2rem;
    box-shadow: var(--shadow-sm);
}
.review-body { font-style: italic; color: var(--ink-2); font-size: 1.02rem; line-height: 1.65; }
.review-author { margin-top: 0.8rem; font-size: 0.88rem; color: var(--muted); font-weight: 500; }
.review-author strong { color: var(--ink); }

.stars { color: #d8a53a; font-size: 1.05rem; letter-spacing: 0.1em; margin-bottom: 0.6rem; }

/* ---------- Author bio block ---------- */
.author-bio {
    display: grid; grid-template-columns: 90px 1fr; gap: 1.2rem;
    padding: 1.5rem; background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); margin: 2rem 0;
    align-items: start;
}
.author-avatar {
    width: 90px; height: 90px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brick), var(--brick-dark));
    color: var(--paper); display: flex; align-items: center; justify-content: center;
    font-family: 'Fraunces', serif; font-size: 2.2rem; font-weight: 600;
}
.author-info h4 { margin: 0 0 0.3rem; font-size: 1.1rem; }
.author-info p { margin: 0; font-size: 0.95rem; color: var(--ink-2); }

/* ---------- 404 ---------- */
.notfound {
    text-align: center; padding: 6rem 1.5rem;
}
.notfound h1 { font-size: clamp(3rem, 2rem + 4vw, 5rem); color: var(--brick); margin-bottom: 0.5rem; }
.notfound p { color: var(--ink-2); font-size: 1.1rem; max-width: 50ch; margin: 0 auto 1.5rem; }

/* ---------- Utility ---------- */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
