/*
Theme Name: Robinskis
Theme URI: https://example.com/robinskis
Author: Nick (for Robinski the cat)
Author URI: https://example.com
Description: A minimal, editorial WordPress theme for Robinskis — home recipes and restaurant recommendations, named after Robinski the cat. Near-neutral palette with a single teal accent, generous whitespace, and clean typography. Includes custom Recipe and Restaurant post types.
Version: 2.9.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: robinskis
Tags: food-and-drink, blog, custom-menu, featured-images, two-columns, right-sidebar, custom-post-types, minimal, editorial
*/

/* ============================================================
   Robinskis — Minimal editorial theme
   Neutral + single teal accent
   ============================================================ */

:root {
    --bg:        #ffffff;
    --surface:   #f7f7f5;
    --ink:       #17181b;
    --muted:     #70747a;
    --faint:     #9a9ea3;
    --line:      #e8e8e5;
    --line-2:    #dcdcd8;
    --accent:    #0e8b80;
    --accent-deep:#0a615a;
    --accent-pink:#d16a93;
    --accent-pink-deep:#b04f78;
    --accent-amber:#b8863b;
    --accent-amber-deep:#8a6326;

    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

    --wrap: 1120px;
    --narrow: 720px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }

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

.eyebrow {
    font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
    margin: 0 0 12px;
}

.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 8px; top: 8px; }

/* remove any leftover diner ornaments */
.checkerboard, .diner-topbar { display: none !important; }

/* ============================================================
   Header
   ============================================================ */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; padding: 22px 28px; max-width: var(--wrap); margin: 0 auto; flex-wrap: wrap;
}
.site-branding { display: flex; align-items: baseline; gap: 12px; }
.diner-badge { display: none; }
.custom-logo-link img { max-height: 40px; width: auto; }

.site-title {
    margin: 0; font-family: var(--serif); font-weight: 600;
    font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1;
}
.site-title a { color: var(--ink); }
.site-title a:hover { color: var(--accent-deep); }
.site-description {
    margin: 0; font-family: var(--sans); font-size: 0.78rem; color: var(--faint);
    letter-spacing: 0.04em;
}

/* nav */
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; flex-wrap: wrap; }
.main-nav a {
    font-family: var(--sans); font-size: 0.8rem; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
    padding: 4px 0; border-bottom: 1.5px solid transparent;
}
.main-nav a:hover,
.main-nav .current-menu-item > a { color: var(--ink); border-bottom-color: var(--accent); }
.menu-toggle {
    display: none; background: none; border: 1px solid var(--line-2); border-radius: 4px;
    padding: 8px 14px; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.06em;
    text-transform: uppercase; cursor: pointer; color: var(--ink);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-block; font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
    letter-spacing: 0.04em; padding: 12px 22px; border-radius: 4px;
    border: 1px solid var(--ink); color: var(--ink); background: transparent;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    cursor: pointer;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-pink, .btn-mustard { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-pink:hover, .btn-mustard:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn-cream { background: transparent; }

/* ============================================================
   Hero (home + archive headers)
   ============================================================ */
.diner-hero {
    background: var(--bg); color: var(--ink); text-align: left;
    padding: 72px 28px 60px; max-width: var(--wrap); margin: 0 auto;
    border-bottom: 1px solid var(--line);
}
.diner-hero .kicker {
    display: inline-block; font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
    background: none; padding: 0; margin: 0 0 16px; box-shadow: none;
}
.diner-hero h2 {
    font-family: var(--serif); font-weight: 500; color: var(--ink);
    font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0 0 16px; text-shadow: none; letter-spacing: -0.02em;
}
.diner-hero p { max-width: 560px; margin: 0 0 26px; color: var(--muted); font-size: 1.1rem; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); }
.section-head { text-align: left; margin-bottom: 36px; max-width: var(--wrap); }
.section-head h2 {
    display: block; background: none; padding: 0; color: var(--ink);
    font-size: clamp(1.6rem, 3vw, 2.2rem); position: relative;
}
.section-head h2::before, .section-head h2::after { content: none; }
.section-head p { color: var(--muted); margin: 8px 0 0; font-weight: 400; }
.section-head::after {
    content: ""; display: block; width: 40px; height: 2px; background: var(--accent); margin-top: 18px;
}

/* ============================================================
   Card grid
   ============================================================ */
.card-grid {
    display: grid; gap: 48px 40px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.diner-card {
    background: none; border: 0; border-radius: 0; box-shadow: none;
    display: flex; flex-direction: column; overflow: visible;
}
.diner-card:hover { transform: none; box-shadow: none; }
.diner-card .thumb {
    aspect-ratio: 4/3; overflow: hidden; border-radius: 6px; background: var(--surface);
    position: relative; margin-bottom: 16px;
}
.diner-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.diner-card:hover .thumb img { transform: scale(1.04); }
.diner-card .thumb .no-img {
    width: 100%; height: 100%; display: grid; place-items: center;
    font-family: var(--serif); color: var(--faint); font-size: 2.4rem; background: var(--surface);
}
.card-badge {
    position: static; display: inline-block; margin: 0 0 8px;
    font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em;
    text-transform: uppercase; padding: 0; border: 0; box-shadow: none;
    background: none !important; color: var(--accent);
}
/* content-type accents: teal = recipes, pink = restaurants */
.badge-restaurant { color: var(--accent-pink); }
.diner-card:has(.badge-restaurant) .card-more { color: var(--accent-pink-deep); }
.diner-card:has(.badge-restaurant) .card-more:hover { color: var(--ink); border-bottom-color: var(--ink); }
.diner-card:has(.badge-restaurant) h3 a:hover { color: var(--accent-pink-deep); }
/* ingredients = muted amber */
.badge-ingredient { color: var(--accent-amber); }
.diner-card:has(.badge-ingredient) .card-more { color: var(--accent-amber-deep); }
.diner-card:has(.badge-ingredient) .card-more:hover { color: var(--ink); border-bottom-color: var(--ink); }
.diner-card:has(.badge-ingredient) h3 a:hover { color: var(--accent-amber-deep); }

.diner-card .card-body { padding: 0; gap: 8px; }
.diner-card h3 { margin: 0; font-size: 1.32rem; font-weight: 500; }
.diner-card h3 a { color: var(--ink); }
.diner-card h3 a:hover { color: var(--accent-deep); }
.diner-card .excerpt { margin: 6px 0 0; font-size: 0.96rem; color: var(--muted); }

.meta-row {
    display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center;
    font-size: 0.8rem; color: var(--faint); font-weight: 400; margin-top: 4px;
}
.meta-row .chip {
    background: none; border: 0; border-radius: 0; padding: 0; color: var(--faint); letter-spacing: 0.02em;
}
.meta-row .chip + .chip::before { content: "·"; margin-right: 10px; color: var(--line-2); }

.stars { color: var(--ink); letter-spacing: 1px; font-size: 0.85rem; }
.stars .off { color: var(--line-2); }

.card-more {
    align-self: flex-start; margin-top: 10px; font-family: var(--sans);
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: none;
    color: var(--accent-deep); background: none; border: 0; padding: 0; box-shadow: none;
    border-bottom: 1px solid var(--line-2);
}
.card-more:hover { background: none; color: var(--ink); border-bottom-color: var(--ink); }

/* ============================================================
   Two-column layout (blog/archive + sidebar)
   ============================================================ */
.content-area { padding: 56px 0; }
.layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 64px; align-items: start; }
.layout.full { grid-template-columns: 1fr; max-width: var(--narrow); margin: 0 auto; }

/* article (blog post / page) */
.article-card { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.article-hero { margin-bottom: 32px; }
.article-hero img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 8px; }
.article-inner { padding: 0; }
.entry-title { margin: 0 0 12px; }
.entry-meta {
    display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center;
    margin: 0 0 28px; font-size: 0.82rem; color: var(--faint); font-weight: 400;
}
.entry-meta a { color: var(--muted); }
.entry-content { font-size: 1.06rem; }
.entry-content h2, .entry-content h3 { color: var(--ink); margin: 1.8em 0 .6em; }
.entry-content a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.entry-content img { border-radius: 8px; margin: 1.6em 0; }
.entry-content blockquote {
    margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--accent);
    color: var(--muted); font-style: italic; font-size: 1.1rem;
}
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.entry-content li { margin-bottom: .4em; }

/* restaurant detail strip -> minimal facts row */
.detail-strip {
    display: flex; flex-wrap: wrap; gap: 0; background: none; border: 0; border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line); border-radius: 0; overflow: visible; margin: 8px 0 32px;
}
.detail-strip .cell { background: none; padding: 16px 28px 16px 0; text-align: left; }
.detail-strip .cell .label {
    display: block; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--faint); font-weight: 600; margin-bottom: 4px;
}
.detail-strip .cell .val { font-family: var(--sans); color: var(--ink); font-size: 1rem; font-weight: 500; }

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar .widget {
    background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; margin-bottom: 40px;
}
.sidebar .widget-title {
    font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--faint); margin: 0 0 14px; padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); font-weight: 400; }
.sidebar a:hover { color: var(--accent-deep); }

.cat-card { text-align: left; }
.cat-card img {
    width: 92px; height: 92px; border-radius: 50%; margin: 0 0 12px; object-fit: cover;
    border: 0; box-shadow: none; filter: grayscale(1); opacity: 0.95;
}
.cat-card .cat-name { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); font-weight: 500; }

/* ============================================================
   Pagination
   ============================================================ */
.diner-pagination { margin: 56px 0 0; }
.diner-pagination .page-numbers {
    display: inline-block; min-width: auto; padding: 8px 12px; margin: 0 2px;
    font-family: var(--sans); font-size: 0.85rem; background: none; color: var(--muted);
    border: 1px solid var(--line); border-radius: 4px; box-shadow: none;
}
.diner-pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.diner-pagination a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }

/* ============================================================
   Recipe (minimal single)
   ============================================================ */
.recipe { padding: 56px 0 40px; }
.recipe-head { max-width: var(--narrow); margin: 0 auto 40px; padding: 0 28px; }
.recipe-title { margin: 0 0 16px; font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.recipe-lede { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; color: var(--muted); font-style: italic; margin: 0 0 28px; }
.recipe-facts {
    list-style: none; margin: 0; padding: 20px 0; display: flex; flex-wrap: wrap; gap: 28px 44px;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.recipe-facts li { display: flex; flex-direction: column; gap: 4px; }
.recipe-facts .k { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.recipe-facts .v { font-size: 1.05rem; font-weight: 500; color: var(--ink); }

.recipe-media { max-width: 960px; margin: 0 auto 52px; padding: 0 28px; }
.recipe-media img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 10px; }

.recipe-body {
    max-width: var(--wrap); margin: 0 auto; padding: 0 28px;
    display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: start;
}
.recipe-ingredients { position: sticky; top: 28px; }
.recipe-ingredients h2, .recipe-method h2 {
    font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--faint); margin: 0 0 18px; padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.recipe-ingredients ul { list-style: none; margin: 0; padding: 0; }
.recipe-ingredients li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.recipe-ingredients li:last-child { border-bottom: 0; }
.recipe-ingredients p { font-size: 0.98rem; color: var(--muted); }

.recipe-method .method-source { counter-reset: step; }
.recipe-method .method-source ol { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.recipe-method .method-source ol > li {
    position: relative; padding: 0 0 26px 56px; margin: 0; font-size: 1.06rem; line-height: 1.7;
}
.recipe-method .method-source ol > li::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: 0; width: 34px; height: 34px;
    font-family: var(--serif); font-size: 1.05rem; color: var(--accent-deep);
    display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 50%;
}
.recipe-method .method-source p { font-size: 1.06rem; margin-bottom: 1em; }
.recipe-method .method-source h2, .recipe-method .method-source h3 {
    font-family: var(--serif); text-transform: none; letter-spacing: -0.01em; color: var(--ink);
    border: 0; padding: 0; font-size: 1.3rem; margin: 1.4em 0 .6em;
}

/* structured ingredient list (with amounts) */
.ingredient-list { list-style: none; margin: 0; padding: 0; }
.ingredient-list li {
    padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; line-height: 1.5;
}
.ingredient-list li:last-child { border-bottom: 0; }
.ingredient-list .ing-amt {
    font-family: var(--sans); font-weight: 600; color: var(--accent-deep);
    font-variant-numeric: tabular-nums; margin-right: 2px;
}
.ingredient-list .ing-note { display: block; font-size: 0.82rem; color: var(--faint); }

/* ingredient sources ("Where to find it") */
.ingredient-sources {
    margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line);
}
.ingredient-sources h2 {
    font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--faint); margin: 0 0 16px;
}
.source-list { list-style: none; margin: 0; padding: 0; }
.source-item {
    padding: 14px 0; border-bottom: 1px solid var(--line);
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
}
.source-item:last-child { border-bottom: 0; }
.source-name {
    font-family: var(--serif); font-size: 1.12rem; color: var(--ink);
}
a.source-name { color: var(--accent-amber-deep); }
a.source-name:hover { color: var(--ink); }
.source-arrow { font-family: var(--sans); font-size: 0.85em; }
.source-note { font-size: 0.9rem; color: var(--faint); }

/* ============================================================
   Moments — polaroid photo feed
   ============================================================ */
.moments-hero { border-bottom: 1px solid var(--line); }
.moments-feed {
    max-width: var(--wrap); margin: 0 auto; padding: 52px 24px 28px;
    display: grid; grid-template-columns: repeat( 3, 1fr );
    gap: 60px 34px; align-items: start;
}
@media ( max-width: 900px ) {
    .moments-feed { grid-template-columns: repeat( 2, 1fr ); gap: 52px 28px; }
}
@media ( max-width: 600px ) {
    .moments-feed { grid-template-columns: 1fr; gap: 48px; }
}

/* the polaroid: white frame, thick bottom border, soft drop shadow */
.moments-feed .moment {
    background: #fffdf9;
    margin: 0;
    padding: 15px 15px 14px;
    border: 1px solid #efece4;
    border-radius: 3px;
    box-shadow: 0 1px 1px rgba(20,20,25,.05), 0 14px 30px -12px rgba(20,20,25,.28);
    transition: transform .28s ease, box-shadow .28s ease;
    will-change: transform;
}
/* a lightly scattered, on-the-table tilt */
.moments-feed .moment:nth-child(4n+1) { transform: rotate(-1.8deg); }
.moments-feed .moment:nth-child(4n+2) { transform: rotate(1.3deg); }
.moments-feed .moment:nth-child(4n+3) { transform: rotate(-0.7deg); }
.moments-feed .moment:nth-child(4n+4) { transform: rotate(2deg); }
.moments-feed .moment:hover {
    transform: rotate(0) translateY(-4px);
    box-shadow: 0 2px 3px rgba(20,20,25,.06), 0 22px 42px -12px rgba(20,20,25,.32);
    z-index: 2; position: relative;
}

/* square photo window, like a real instant print */
.moment-photo { display: block; overflow: hidden; background: #e7e6e1; border-radius: 1px; }
.moment-photo img {
    width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
    transition: transform .6s ease;
}
a.moment-photo:hover img { transform: scale( 1.03 ); }

/* handwritten caption in the white border */
.moment-body { padding: 16px 8px 6px; text-align: center; }
.moment-title {
    font-family: "Caveat", var(--serif); font-weight: 700; font-size: 1.6rem;
    margin: 0 0 2px; letter-spacing: 0; line-height: 1.05; color: var(--ink);
}
.moment-title a { color: var(--ink); }
.moment-title a:hover { color: var(--accent-deep); }
.moment-caption {
    font-family: "Caveat", var(--serif); color: #34353b;
    font-size: 1.4rem; line-height: 1.3;
}
.moment-caption p { margin: 0 0 .15em; }
.moment-caption p:last-child { margin-bottom: 0; }
.moment-meta {
    margin-top: 9px; font-family: "Caveat", var(--serif); font-size: 1.12rem;
    font-weight: 600; letter-spacing: 0; text-transform: none; color: #a9a49a;
}

/* single moment: sit it straight and a touch larger, not in a grid */
.moments-single { display: block; max-width: 520px; padding-top: 28px; }
.moment-back { margin: 0 0 22px; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.04em; }
.moments-single .moment,
.moments-single .moment:hover { transform: none; max-width: 480px; margin: 0 auto; }
.moment-full .moment-title { font-size: 2rem; }
.moment-comments {
    margin-top: 32px; text-align: left; font-family: var(--sans);
}

.moments-pagination { grid-column: 1 / -1; margin-top: 12px; }
.moments-pagination .nav-links {
    display: flex; justify-content: space-between; gap: 16px;
    font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.04em;
}

@media ( max-width: 480px ) {
    .moments-feed { padding: 32px 14px 18px; }
}
@media ( prefers-reduced-motion: reduce ) {
    .moments-feed .moment { transform: none !important; }
}

/* ============================================================
   Cost breakdown
   ============================================================ */
.recipe-cost {
    max-width: var(--wrap); margin: 64px auto 0; padding: 40px 28px 0;
    border-top: 1px solid var(--line);
}
.recipe-cost .cost-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 20px; flex-wrap: wrap; margin-bottom: 22px;
}
.recipe-cost .cost-head h2 {
    font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--faint); margin: 0;
}
.recipe-cost .cost-figure { display: flex; align-items: baseline; gap: 8px; }
.recipe-cost .cost-amount {
    font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    color: var(--accent-deep); letter-spacing: -0.02em; line-height: 1;
}
.recipe-cost .cost-unit { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); }

.cost-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.cost-table th, .cost-table td { text-align: left; padding: 12px 0; }
.cost-table thead th {
    font-family: var(--sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line-2);
}
.cost-table tbody td { border-bottom: 1px solid var(--line); vertical-align: top; }
.cost-table .c-amt { color: var(--muted); white-space: nowrap; width: 130px; font-variant-numeric: tabular-nums; }
.cost-table .c-cost { text-align: right; white-space: nowrap; width: 90px; font-variant-numeric: tabular-nums; }
.cost-table .c-note { display: block; font-size: 0.82rem; color: var(--faint); }
.cost-table .c-na { color: var(--faint); cursor: help; }
.cost-table tfoot th, .cost-table tfoot td {
    font-family: var(--sans); border-top: 1px solid var(--line-2); border-bottom: 0;
    text-align: left; padding-top: 14px;
}
.cost-table tfoot .c-cost { text-align: right; font-variant-numeric: tabular-nums; }
.cost-table tfoot .cost-total th, .cost-table tfoot .cost-total td { color: var(--muted); font-weight: 600; }
.cost-table tfoot .cost-per th { color: var(--ink); font-weight: 700; }
.cost-table tfoot .cost-per td { color: var(--accent-deep); font-weight: 700; }
.cost-disclaimer { margin: 16px 0 0; font-size: 0.82rem; color: var(--faint); }
@media ( max-width: 640px ) {
    .cost-table .c-amt { width: auto; }
}

/* ============================================================
   Comments / forms
   ============================================================ */
.comments-area {
    background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none;
    padding: 40px 0 0; margin-top: 56px;
}
.comments-area h3 { color: var(--ink); }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment-body { border-bottom: 1px solid var(--line); padding: 18px 0; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 6px;
    font-family: var(--sans); margin-bottom: 14px; font-size: 0.98rem;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form input[type="submit"], button.submit {
    font-family: var(--sans); font-weight: 600; background: var(--ink); color: #fff;
    border: 1px solid var(--ink); border-radius: 4px; padding: 12px 24px; box-shadow: none;
    text-transform: none; cursor: pointer;
}
.comment-form input[type="submit"]:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
    flex: 1 1 120px; min-width: 0; padding: 10px 14px; border: 1px solid var(--line-2);
    border-radius: 6px; font-family: var(--sans);
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--accent); }
.search-form button, .search-submit {
    font-family: var(--sans); font-weight: 600; background: var(--ink); color: #fff;
    border: 1px solid var(--ink); border-radius: 4px; padding: 10px 18px; cursor: pointer;
}

.empty-note {
    background: none; border: 1px dashed var(--line-2); border-radius: 8px; padding: 48px;
    text-align: center; color: var(--muted); font-family: var(--sans);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--bg); color: var(--muted); border-top: 1px solid var(--line); margin-top: 40px; }
.footer-top { padding: 56px 0 36px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-cols h4 { font-family: var(--sans); color: var(--faint); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 14px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { padding: 6px 0; border: 0; }
.footer-cols a { color: var(--ink); }
.footer-cols a:hover { color: var(--accent-deep); }
.footer-brand .site-title { font-size: 1.4rem; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; font-size: 0.82rem; color: var(--faint); }
.footer-bottom .heart { color: var(--accent-pink); }

/* restaurant contexts get the pink accent */
.section-head--pink::after { background: var(--accent-pink); }
.post-type-archive-restaurant .diner-hero .kicker { color: var(--accent-pink); }
.single-restaurant .entry-content a { color: var(--accent-pink-deep); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; gap: 48px; }
    .sidebar { order: 2; }
    .recipe-body { grid-template-columns: 1fr; gap: 40px; }
    .recipe-ingredients { position: static; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .menu-toggle { display: inline-block; }
    .main-nav ul { display: none; flex-direction: column; width: 100%; gap: 0; margin-top: 14px; }
    .main-nav.open ul { display: flex; }
    .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .footer-cols { grid-template-columns: 1fr; }
    .header-inner { gap: 14px; }
}

/* ============================================================
   Cookbook — monthly dinner calendar
   ============================================================ */
.cookbook-calendar-wrap { max-width: var(--wrap); margin: 0 auto; padding: 30px 28px 8px; }
.meal-calendar { margin: 0; }
.cal-topbar { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 0 0 20px; }
.cal-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0; letter-spacing: -0.01em; }
.cal-nav {
    width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
    border: 1px solid var(--line-2); color: var(--muted); font-size: 1.1rem; text-decoration: none;
    transition: color .15s ease, border-color .15s ease;
}
.cal-nav:hover { color: var(--ink); border-color: var(--ink); }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.cal-dow {
    font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--faint); padding: 2px 6px 8px;
}
.cal-dow .dow-full { display: none; }
.cal-dow .dow-abbr { display: inline; }
@media ( min-width: 760px ) {
    .cal-dow .dow-full { display: inline; }
    .cal-dow .dow-abbr { display: none; }
}

.cal-cell {
    border: 1px solid var(--line); border-radius: 8px; min-height: 104px; padding: 8px;
    display: flex; flex-direction: column; gap: 6px; background: var(--bg);
}
.cal-cell.is-blank { border: 0; background: transparent; min-height: 0; }
.cal-daynum { font-family: var(--sans); font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-cell.has-dinner { background: var(--surface); }
.cal-cell.is-today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cal-cell.is-today .cal-daynum { color: var(--accent-deep); font-weight: 700; }

.cal-dinner { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.cal-thumb img { width: 100%; height: 62px; object-fit: cover; border-radius: 5px; display: block; }
.cal-dish { font-family: var(--serif); font-size: 0.95rem; line-height: 1.2; color: var(--ink); }
.cal-dinner:hover .cal-dish { color: var(--accent-deep); }

.cookbook-list { padding-top: 40px; }

@media ( max-width: 600px ) {
    .cookbook-calendar-wrap { padding: 20px 14px 6px; }
    .cal-grid { gap: 4px; }
    .cal-cell { min-height: 68px; padding: 5px; border-radius: 6px; }
    .cal-thumb { display: none; }
    .cal-dish { font-size: 0.78rem; }
    .cal-daynum { font-size: 0.7rem; }
}

/* ============================================================
   Stories — bubbles + full-screen viewer
   ============================================================ */
.stories { max-width: var(--wrap); margin: 8px auto 0; padding: 0 28px; }
.recipe .stories { padding: 0 28px; }
.stories-heading {
    font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--faint); margin: 0 0 16px;
}
.stories-strip { display: flex; gap: 16px; flex-wrap: wrap; }
.story-bubble {
    border: 0; background: none; padding: 0; cursor: pointer; line-height: 0;
    border-radius: 50%;
}
.bubble-ring {
    display: block; width: 76px; height: 76px; border-radius: 50%; padding: 3px;
    background: conic-gradient( from 210deg, var(--accent), var(--accent-pink), var(--accent-amber), var(--accent) );
}
.bubble-ring img {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
    border: 2px solid var(--bg); background: var(--surface);
    transition: transform .2s ease;
}
.story-bubble:hover .bubble-ring img { transform: scale( 0.94 ); }

/* viewer */
body.stories-open { overflow: hidden; }
.stories-viewer { position: fixed; inset: 0; z-index: 9999; display: none; }
.stories-viewer.is-open { display: block; }
.sv-backdrop { position: absolute; inset: 0; background: rgba(15,16,18,0.86); backdrop-filter: blur(2px); }
.sv-stage {
    position: relative; z-index: 1; height: 100%; display: flex; align-items: center; justify-content: center;
    padding: 44px 16px;
}
.sv-progress {
    position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 4px; width: min(420px, 82vw);
}
.sv-seg { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.3); }
.sv-seg.is-seen { background: rgba(255,255,255,0.6); }
.sv-seg.is-active { background: #fff; }
.sv-close {
    position: absolute; top: 12px; right: 16px; z-index: 3; background: none; border: 0;
    color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; opacity: 0.85;
}
.sv-close:hover { opacity: 1; }
.sv-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    background: rgba(255,255,255,0.12); color: #fff; border: 0; cursor: pointer;
    width: 44px; height: 44px; border-radius: 50%; font-size: 1.6rem; line-height: 1;
}
.sv-nav:hover { background: rgba(255,255,255,0.24); }
.sv-prev { left: max(12px, 3vw); }
.sv-next { right: max(12px, 3vw); }

.sv-card {
    margin: 0; width: min(440px, 92vw); background: #fffdf9; border-radius: 12px; overflow: hidden;
    box-shadow: 0 24px 60px -18px rgba(0,0,0,0.6); display: flex; flex-direction: column;
}
.sv-imgwrap { background: #e7e6e1; }
.sv-img { width: 100%; max-height: 64vh; object-fit: cover; display: block; }
.sv-cap {
    font-family: var(--serif); font-size: 1.08rem; line-height: 1.4; color: var(--ink);
    padding: 16px 18px 4px;
}
.sv-actions { padding: 8px 18px 16px; }
.sv-like {
    display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer;
    font-family: var(--sans); font-size: 0.95rem; color: var(--muted); padding: 4px 0;
}
.sv-heart {
    width: 22px; height: 22px; display: inline-block;
    background: no-repeat center / contain;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2370747a' stroke-width='2'><path d='M12 21s-7.5-4.6-10-9.2C.6 8.8 2 5.5 5.2 5.5c2 0 3.3 1.2 3.9 2.2.6-1 1.9-2.2 3.9-2.2C16.2 5.5 17.6 8.8 16 11.8 13.5 16.4 12 21 12 21z'/></svg>");
    transition: transform .15s ease;
}
.sv-like.is-liked .sv-heart {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d16a93' stroke='%23d16a93' stroke-width='2'><path d='M12 21s-7.5-4.6-10-9.2C.6 8.8 2 5.5 5.2 5.5c2 0 3.3 1.2 3.9 2.2.6-1 1.9-2.2 3.9-2.2C16.2 5.5 17.6 8.8 16 11.8 13.5 16.4 12 21 12 21z'/></svg>");
    transform: scale( 1.12 );
}
.sv-like.is-liked { color: var(--accent-pink-deep); font-weight: 600; }
.sv-count { font-variant-numeric: tabular-nums; }

@media ( max-width: 600px ) {
    .stories { padding: 0 16px; }
    .bubble-ring { width: 66px; height: 66px; }
    .sv-nav { display: none; }
}

/* add-story bubble + upload modal (editors only) */
.story-add { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.story-add .add-ring {
    background: none; border: 2px dashed var(--line-2); display: grid; place-items: center;
    transition: border-color .15s ease;
}
.story-add .add-plus { font-size: 2rem; line-height: 1; color: var(--muted); font-weight: 300; }
.story-add:hover .add-ring { border-color: var(--accent); }
.story-add:hover .add-plus { color: var(--accent-deep); }
.story-add .add-label {
    font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint);
}

.stories-add-modal { position: fixed; inset: 0; z-index: 10000; display: none; }
.stories-add-modal.is-open { display: block; }
.sa-backdrop { position: absolute; inset: 0; background: rgba(15,16,18,0.7); }
.sa-stage { position: relative; z-index: 1; height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.sa-card {
    width: min(440px, 94vw); background: var(--bg); border-radius: 12px; padding: 22px;
    box-shadow: 0 24px 60px -18px rgba(0,0,0,0.5); display: flex; flex-direction: column; gap: 14px;
}
.sa-title { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; margin: 0; }
.sa-drop {
    position: relative; display: block; border: 1.5px dashed var(--line-2); border-radius: 8px;
    min-height: 150px; cursor: pointer; overflow: hidden; background: var(--surface);
    display: flex; align-items: center; justify-content: center;
}
.sa-drop:hover { border-color: var(--accent); }
.sa-drop .sa-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sa-drop-text { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); }
.sa-preview { display: none; width: 100%; max-height: 300px; object-fit: cover; }
.sa-caption {
    width: 100%; font-family: var(--sans); font-size: 0.98rem; padding: 10px 12px;
    border: 1px solid var(--line-2); border-radius: 6px; resize: vertical; color: var(--ink); background: var(--bg);
}
.sa-err { color: #b0341d; font-size: 0.85rem; margin: 0; min-height: 1em; }
.sa-buttons { display: flex; justify-content: flex-end; gap: 10px; }
.sa-buttons .btn { cursor: pointer; }
.sa-post[disabled] { opacity: 0.5; cursor: default; }

/* ============================================================
   Create button (FAB) + action sheet — editors only
   ============================================================ */
.rbk-fab {
    position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 9000; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--accent); color: #fff; font-size: 2rem; line-height: 1; font-weight: 300;
    box-shadow: 0 8px 22px -6px rgba(14,139,128,0.7); display: grid; place-items: center;
    transition: transform .15s ease, background .15s ease;
}
.rbk-fab:hover { background: var(--accent-deep); }
.rbk-fab:active { transform: scale( 0.94 ); }
body.stories-open .rbk-fab { display: none; }

.rbk-sheet { position: fixed; inset: 0; z-index: 10001; display: none; }
.rbk-sheet.is-open { display: block; }
.rbk-sheet-backdrop { position: absolute; inset: 0; background: rgba(15,16,18,0.5); }
.rbk-sheet-panel {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
    background: var(--bg); border-radius: 16px 16px 0 0; padding: 12px 14px calc(16px + env(safe-area-inset-bottom));
    max-width: 560px; margin: 0 auto; box-shadow: 0 -12px 40px -16px rgba(0,0,0,0.4);
}
.rbk-sheet-title {
    font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--faint); text-align: center; margin: 6px 0 12px;
}
.rbk-sheet-item {
    display: block; width: 100%; text-align: center; background: var(--surface); border: 0; cursor: pointer;
    font-family: var(--sans); font-size: 1.05rem; color: var(--ink); padding: 16px; border-radius: 10px; margin-bottom: 8px;
}
.rbk-sheet-item:hover { background: var(--line); }
.rbk-sheet-cancel { background: none; color: var(--muted); font-weight: 600; }

/* small screens: bump the FAB above any bottom bars */
@media ( max-width: 600px ) {
    .rbk-fab { width: 54px; height: 54px; font-size: 1.8rem; }
}
