/*
Theme Name: Reservation Outpost
Theme URI: https://www.reservationoutpost.com/
Author: GNTI
Description: Custom theme for Reservation Outpost. Works with the "Reservation Outpost Menu" plugin for menu items, prices, photos and lunch specials. Artwork is original, inspired by Northwest Coast design, and is a placeholder until the owner approves or supplies her own.
Version: 1.4.1
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: reservation-outpost
*/

:root {
	--cedar: #9b2a22;
	--cedar-dark: #7a1f19;
	--ink: #1c1714;
	--bone: #f4ecdf;
	--paper: #fbf7f0;
	--river: #2f6b6a;
	--ochre: #c98a2e;
	--muted: #6b5e55;
	--line: #e3d7c4;
	--radius: 10px;
	--wrap: 1120px;
	--head: "Barlow Condensed", "Arial Narrow", sans-serif;
	--body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
	/* trigon + ovoid border band (original pattern) */
	--band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 20'%3E%3Crect width='60' height='20' fill='%231c1714'/%3E%3Cpath d='M0 20 15 5 30 20Z' fill='%239b2a22'/%3E%3Cpath d='M30 0 45 15 60 0Z' fill='%239b2a22'/%3E%3Cellipse cx='15' cy='15.2' rx='4.2' ry='2.6' fill='%23f4ecdf'/%3E%3Cellipse cx='45' cy='4.8' rx='4.2' ry='2.6' fill='%23f4ecdf'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.6 var(--body);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cedar); }
a:hover { color: var(--cedar-dark); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: uppercase; }
h3 { font-size: 1.45rem; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 99; background: #fff; padding: 8px 12px; clip: auto; width: auto; height: auto; }

.band { height: 20px; background: var(--band) repeat-x left center / 60px 20px; }
.band--thin { height: 12px; background-size: 36px 12px; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--ink); color: var(--bone); font-size: .95rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: space-between; padding: 6px 0; }
.topbar a { color: var(--bone); text-decoration: none; font-weight: 600; }
.topbar .open { color: #f1c27d; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.site-header { background: var(--bone); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 56px; height: 56px; }
.brand .custom-logo { width: auto; height: 78px; max-width: 200px; object-fit: contain; }
@media (max-width: 760px) { .brand .custom-logo { height: 56px; } }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 1.7rem; text-transform: uppercase; line-height: 1; }
.brand-name small { display: block; font-size: .78rem; letter-spacing: .22em; color: var(--cedar); }

.nav-toggle { display: none; background: var(--ink); color: var(--bone); border: 0; border-radius: 6px; padding: 10px 14px; font: 700 1rem var(--head); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.primary-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: 8px 14px; font: 700 1.15rem var(--head); text-transform: uppercase; letter-spacing: .05em; color: var(--ink); text-decoration: none; border-radius: 6px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { background: var(--cedar); color: var(--bone); }

@media (max-width: 760px) {
	.nav-toggle { display: block; }
	.primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bone); border-bottom: 4px solid var(--cedar); z-index: 20; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; padding: 8px 16px 16px; }
	.site-header { position: relative; }
	.brand-name { font-size: 1.4rem; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 12px 22px; border-radius: 6px; font: 700 1.15rem var(--head); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; border: 2px solid transparent; }
.btn--red { background: var(--cedar); color: var(--bone); }
.btn--red:hover { background: var(--cedar-dark); color: #fff; }
.btn--ghost { border-color: var(--bone); color: var(--bone); }
.btn--ghost:hover { background: var(--bone); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--bone); }
.btn--dark:hover { background: #000; color: #fff; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--bone); position: relative; overflow: hidden; }
.hero--photo { background: linear-gradient(90deg, rgba(28,23,20,.94) 0%, rgba(28,23,20,.80) 50%, rgba(28,23,20,.45) 100%), var(--hero-img) center 40% / cover no-repeat, var(--ink); }
@media (max-width: 760px) { .hero--photo { background: linear-gradient(rgba(28,23,20,.80), rgba(28,23,20,.92)), var(--hero-img) center / cover no-repeat, var(--ink); } }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; padding: 56px 0; }
.hero p { font-size: 1.2rem; max-width: 36em; color: #e9dfcf; }
.hero .eyebrow { font: 700 1rem var(--head); letter-spacing: .28em; text-transform: uppercase; color: #f1c27d; margin: 0 0 8px; }
.hero h1 { color: var(--bone); }
.hero-logo { justify-self: center; width: min(460px, 86vw); height: auto; filter: drop-shadow(0 10px 28px rgba(0,0,0,.55)); }
.hero-emblem { justify-self: center; width: min(320px, 70vw); filter: drop-shadow(0 10px 30px rgba(0,0,0,.4)); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 760px) {
	.hero .wrap { grid-template-columns: 1fr; padding: 36px 0; }
	.hero-emblem { width: 180px; order: -1; }
	.hero-logo { width: 300px; order: -1; }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section--bone { background: var(--bone); }
.section--river { background: var(--river); color: #fff; }
.section--river h2 { color: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head h2::after { content: ""; display: block; width: 72px; height: 10px; margin-top: 10px; background: var(--band) repeat-x left center / 30px 10px; }
.lede { color: var(--muted); max-width: 40em; }

/* ---------- Today's special ---------- */
.today { display: grid; grid-template-columns: 220px 1fr; gap: 24px; background: #fff; border: 1px solid var(--line); border-left: 8px solid var(--cedar); border-radius: var(--radius); padding: 20px; align-items: center; }
.today img { border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.today .label { font: 700 .95rem var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--cedar); }
.today h3 { font-size: 2rem; margin: 4px 0; }
.today .price { font: 700 1.8rem var(--head); color: var(--river); }
@media (max-width: 600px) { .today { grid-template-columns: 1fr; } }

/* ---------- Menu cards ---------- */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.item-photo { aspect-ratio: 4/3; background: var(--bone); }
.item-photo img { width: 100%; height: 100%; object-fit: cover; }
.item-photo--empty { display: grid; place-items: center; background: var(--ink); }
.item-photo--empty svg { width: 38%; opacity: .9; }
.item-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.item-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.item h3 { font-size: 1.35rem; margin: 0; }
.item .price { font: 700 1.35rem var(--head); color: var(--cedar); white-space: nowrap; }
.item p { margin: 0; color: var(--muted); font-size: .98rem; }
.item.is-sold-out .item-photo { filter: grayscale(1) opacity(.6); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--ink); color: var(--bone); font: 700 .85rem var(--head); letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; }

.menu-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; position: sticky; top: 0; background: var(--paper); padding: 10px 0; z-index: 5; }
.menu-jump a { display: block; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px; font: 700 1rem var(--head); text-transform: uppercase; letter-spacing: .05em; color: var(--ink); text-decoration: none; }
.menu-jump a:hover { background: var(--ink); color: var(--bone); }
.menu-section { margin-bottom: 48px; scroll-margin-top: 70px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
.services li { background: var(--ink); color: var(--bone); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.services li img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.service-name { padding: 14px 16px; font: 700 1.25rem/1.15 var(--head); text-transform: uppercase; letter-spacing: .04em; display: flex; align-items: center; gap: 10px; flex: 1; }
@media (max-width: 760px) { .services { grid-template-columns: repeat(2, 1fr); } .service-name { font-size: 1.05rem; padding: 10px 12px; } }
.service-name::before { content: ""; flex: 0 0 22px; height: 14px; background: var(--cedar); clip-path: polygon(0 0, 100% 0, 50% 100%); }

/* ---------- Calendar ---------- */
.cal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cal-head h2 { margin: 0; }
.cal-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.calendar { width: 100%; border-collapse: collapse; table-layout: fixed; background: #fff; }
.calendar th { background: var(--ink); color: var(--bone); font: 700 1rem var(--head); letter-spacing: .1em; text-transform: uppercase; padding: 8px 4px; }
.calendar td { border: 1px solid var(--line); vertical-align: top; height: 120px; padding: 6px 8px; font-size: .95rem; }
.calendar td.empty { background: #f6f0e5; }
.calendar td.is-today { outline: 3px solid var(--cedar); outline-offset: -3px; }
.calendar .day { font: 700 1.15rem var(--head); color: var(--muted); }
.calendar .sp { margin-top: 4px; }
.calendar .sp strong { display: block; line-height: 1.25; }
.calendar .sp span { color: var(--cedar); font-weight: 700; }
.calendar .sp.is-sold-out strong { text-decoration: line-through; color: var(--muted); }
.calendar .sp small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.25; }
.calendar .sp + .sp { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 4px; }
.calendar .soup, .cal-list .soup { color: var(--river); font-size: .85rem; font-weight: 600; }
.calendar .soup { margin-top: 6px; }
.today .today-soup { margin: 6px 0 0; color: var(--river); font-weight: 600; }
.today + .today { margin-top: 14px; }
.cal-list { display: none; list-style: none; padding: 0; margin: 0; }
.cal-list li { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.cal-list li.is-today { border: 2px solid var(--cedar); }
.cal-list .d { font: 700 1rem/1.1 var(--head); text-transform: uppercase; color: var(--muted); }
.cal-list .d b { display: block; font-size: 1.6rem; color: var(--ink); }
.cal-list .p { font: 700 1.25rem var(--head); color: var(--cedar); }
@media (max-width: 760px) {
	.calendar { display: none; }
	.cal-list { display: block; }
}

/* ---------- Visit ---------- */
.visit { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; align-items: stretch; }
.visit dl { margin: 0 0 20px; }
.storefront { width: 100%; height: auto; border-radius: var(--radius); border: 3px solid var(--bone); margin: 4px 0 20px; display: block; }
.visit dt { font: 700 1rem var(--head); letter-spacing: .18em; text-transform: uppercase; color: #f1c27d; }
.visit dd { margin: 0 0 14px; font-size: 1.2rem; }
.visit dd a { color: #fff; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 480px; background: #e8e4dc; border: 3px solid var(--bone); }
.ro-pin { background: none; border: 0; }
.ro-pin img { display: block; width: 46px !important; height: 27px !important; max-width: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.55)); }
.ro-road { background: none; border: 0; }
.ro-road span { display: inline-block; transform: translate(-50%, -50%); white-space: nowrap; color: #fff; font: 700 13px/1 var(--head); letter-spacing: .05em; text-transform: uppercase; padding: 5px 8px; border-radius: 4px; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.leaflet-container { font-family: var(--body); }
.map-col { display: flex; flex-direction: column; gap: 14px; }
.map-buttons { display: grid; grid-template-columns: auto 1fr 1fr; gap: 12px; align-items: center; }
.map-buttons-label { font: 700 1rem var(--head); letter-spacing: .18em; text-transform: uppercase; color: #f1c27d; }
.map-buttons .btn { text-align: center; }
@media (max-width: 480px) { .map-buttons { grid-template-columns: 1fr 1fr; } .map-buttons-label { grid-column: 1 / -1; } .map-buttons .btn { padding: 12px 10px; white-space: nowrap; font-size: 1.05rem; } }
.ro-tiles { filter: grayscale(1) contrast(.85) brightness(1.08); } /* quiet base map */
@media (max-width: 760px) { .visit { grid-template-columns: 1fr; } }

.sister { display: grid; grid-template-columns: 280px 1fr auto; gap: 24px; align-items: center; background: var(--ink); color: var(--bone); border-radius: var(--radius); padding: 20px; }
.sister img { width: 100%; height: 100%; max-height: 180px; object-fit: cover; border-radius: 8px; }
@media (max-width: 900px) { .sister { grid-template-columns: 1fr; } .sister img { max-height: 220px; } }
.sister h3 { color: #f1c27d; font-size: 1.9rem; }
.sister p { margin: 0; color: #e9dfcf; }


/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card .body { padding: 16px 18px 20px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card time, .entry-meta { color: var(--muted); font-size: .92rem; }
.entry { max-width: 760px; margin-inline: auto; }
.entry-content { font-size: 1.12rem; }
.entry-content img { border-radius: 8px; }
.page-title { background: var(--ink); color: var(--bone); padding: 40px 0 34px; }
.page-title h1 { margin: 0; color: var(--bone); }
.page-title p { margin: 8px 0 0; color: #e9dfcf; }
.pagination { margin-top: 32px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 6px 12px; border: 2px solid var(--ink); border-radius: 6px; text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--ink); color: var(--bone); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9cdb9; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 22px 0; }
.site-footer .maker { width: 60px; height: 60px; display: block; } /* same tan as footer text (#d9cdb9) */
.site-footer .footer-right { justify-self: end; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; } .site-footer .footer-right { justify-self: center; } .site-footer .maker { order: 3; } }
.site-footer a { color: var(--bone); }

/* ---------- Print (lunch specials calendar replaces the monthly PDF) ---------- */
@media print {
	.topbar, .site-header, .site-footer, .band, .cal-nav, .no-print, .menu-jump { display: none !important; }
	body { background: #fff; font-size: 11pt; }
	.page-title { background: none; color: #000; padding: 0 0 8px; }
	.page-title h1, .page-title p { color: #000; }
	.section { padding: 0; }
	.calendar { display: table !important; }
	.cal-list { display: none !important; }
	.calendar td { height: 92px; }
	.calendar th { background: #000 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	@page { size: landscape; margin: 12mm; }
}
