/* OutStandard News — restored static site
   Self-contained: no external fonts, scripts, or CDNs. */

/* ---------- tokens ---------- */
:root {
	--bg: #ffffff;
	--surface: #f6f7f9;
	--surface-2: #eef0f4;
	--text: #14161b;
	--muted: #5c6371;
	--border: #e2e5ea;
	--accent: #c1121f;
	--accent-hover: #9d0e19;
	--accent-contrast: #ffffff;
	--focus: #2563eb;

	--maxw: 1180px;
	--measure: 68ch;
	--radius: 10px;
	--shadow: 0 1px 2px rgba(16, 18, 24, .06), 0 6px 20px rgba(16, 18, 24, .06);

	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
		Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
	--font-display: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0e1014;
		--surface: #161920;
		--surface-2: #1e222b;
		--text: #e7eaef;
		--muted: #a2a9b6;
		--border: #272c36;
		--accent: #ff6b74;
		--accent-hover: #ff8f96;
		--accent-contrast: #16181d;
		--focus: #7aa2ff;
		--shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 6px 20px rgba(0, 0, 0, .35);
	}
}

:root[data-theme="dark"] {
	--bg: #0e1014;
	--surface: #161920;
	--surface-2: #1e222b;
	--text: #e7eaef;
	--muted: #a2a9b6;
	--border: #272c36;
	--accent: #ff6b74;
	--accent-hover: #ff8f96;
	--accent-contrast: #16181d;
	--focus: #7aa2ff;
	--shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 6px 20px rgba(0, 0, 0, .35);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
	border-radius: 3px;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

/* Titles here are often bare domains ("www.iamrestaurant.com") — single tokens
   long enough to blow out a 320px viewport unless they may break. */
h1, h2, h3, .postnav strong, .breadcrumb { overflow-wrap: break-word; }

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: var(--accent); color: var(--accent-contrast);
	padding: 10px 16px; border-radius: 0 0 var(--radius) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

.visually-hidden {
	position: absolute !important; width: 1px; height: 1px;
	margin: -1px; padding: 0; overflow: hidden;
	clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--border);
}
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 20px; min-height: 66px;
}
.brand {
	display: inline-flex; align-items: baseline; gap: .5ch;
	font-family: var(--font-display);
	font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em;
	text-decoration: none; color: var(--text);
}
.brand__mark { color: var(--accent); }
.brand:hover { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
	display: inline-block; padding: 8px 12px; border-radius: 6px;
	text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--muted);
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.nav-toggle {
	display: none; background: none; border: 1px solid var(--border);
	border-radius: 8px; padding: 7px 9px; cursor: pointer; color: var(--text);
}

@media (max-width: 640px) {
	.nav-toggle { display: inline-flex; }
	.nav {
		display: none; position: absolute; inset-inline: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--bg); border-bottom: 1px solid var(--border);
		padding: 8px 20px 14px; box-shadow: var(--shadow);
	}
	.nav[data-open="true"] { display: flex; }
	.nav a { padding: 11px 8px; font-size: 1rem; }
	.site-header__inner { position: relative; }
}

/* ---------- page furniture ---------- */
.page-head { padding: 44px 0 8px; }
.page-head h1 {
	font-family: var(--font-display);
	font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
	line-height: 1.1; letter-spacing: -.025em; margin: 0 0 10px;
}
.page-head p { color: var(--muted); margin: 0; font-size: 1.075rem; max-width: 60ch; }

.eyebrow {
	display: inline-block; font-size: .75rem; font-weight: 700;
	letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
	margin: 0 0 10px;
}

.badge {
	display: inline-block; font-size: .7rem; font-weight: 700;
	letter-spacing: .08em; text-transform: uppercase;
	color: var(--accent); text-decoration: none;
}
.badge:hover { color: var(--accent-hover); text-decoration: underline; }

.meta { color: var(--muted); font-size: .875rem; }
.meta > * + *::before { content: "·"; margin: 0 .6ch; }

.rule { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }

/* ---------- hero (latest post) ---------- */
.hero { display: grid; gap: 28px; padding: 28px 0 8px; }
@media (min-width: 860px) {
	.hero { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 44px; }
}
/* Grid/flex items default to min-width:auto, so a wide replaced child can force
   the track past the container. Reset it or narrow viewports overflow. */
.hero > * { min-width: 0; }
.hero__media {
	margin: 0; border-radius: var(--radius); overflow: hidden;
	background: var(--surface-2); box-shadow: var(--shadow);
}
.hero__media a, .card__media a { display: block; }
.hero__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero__title {
	font-family: var(--font-display);
	font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.4rem);
	line-height: 1.15; letter-spacing: -.02em; margin: 10px 0 12px;
}
.hero__title a { text-decoration: none; }
.hero__title a:hover { color: var(--accent); }
.hero__excerpt { color: var(--muted); margin: 0 0 16px; font-size: 1.05rem; }

/* ---------- card grid ---------- */
.grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: 34px 28px;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.card { display: flex; flex-direction: column; min-width: 0; }
.card__media {
	margin: 0 0 14px; border-radius: var(--radius); overflow: hidden;
	background: var(--surface-2);
}
.card__media img {
	width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
	transition: transform .35s ease;
}
.card:hover .card__media img { transform: scale(1.035); }
.card__title {
	font-family: var(--font-display);
	font-size: 1.22rem; line-height: 1.25; letter-spacing: -.015em;
	margin: 8px 0 8px;
}
.card__title a { text-decoration: none; }
.card__title a:hover { color: var(--accent); }
.card__excerpt { color: var(--muted); font-size: .95rem; margin: 0 0 12px; }
.card .meta { margin-top: auto; }

/* ---------- article ---------- */
.article { padding-top: 30px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5ch; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .5ch; color: var(--border); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.article__header { max-width: var(--measure); margin: 0 auto 26px; }
.article__title {
	font-family: var(--font-display);
	font-size: clamp(1.9rem, 1.3rem + 2.8vw, 2.9rem);
	line-height: 1.12; letter-spacing: -.025em; margin: 8px 0 14px;
}
.article__standfirst { font-size: 1.15rem; color: var(--muted); margin: 0 0 16px; }

.article__hero {
	margin: 0 0 34px; border-radius: var(--radius); overflow: hidden;
	background: var(--surface-2); box-shadow: var(--shadow);
}
.article__hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.prose { max-width: var(--measure); margin-inline: auto; }
/* Flow spacing: reset direct children, then space each from its predecessor.
   Both rules are specificity 0-1-0 so the later one wins; element-specific
   overrides below (h2/h3/blockquote/figure) are 0-1-1 and beat both. Do NOT
   add `margin` to a `.prose p`/`.prose ul` rule — it would kill this spacing. */
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 {
	font-family: var(--font-display);
	font-size: 1.65rem; line-height: 1.2; letter-spacing: -.02em;
	margin-top: 2em; margin-bottom: .55em;
	padding-bottom: .3em; border-bottom: 1px solid var(--border);
	scroll-margin-top: 84px;
}
.prose h3 {
	font-size: 1.22rem; line-height: 1.3; font-weight: 700;
	margin-top: 1.7em; margin-bottom: .45em; scroll-margin-top: 84px;
}
.prose h2 strong, .prose h3 strong { font-weight: inherit; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--accent-hover); }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: .45em; }
.prose li > ul, .prose li > ol { margin-top: .45em; margin-bottom: 0; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
	margin: 1.6em 0; padding: 4px 0 4px 20px;
	border-left: 3px solid var(--accent); color: var(--muted); font-style: italic;
}
.prose blockquote p + p { margin-top: .8em; }
.prose figure { margin: 1.8em 0; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }
.prose code {
	background: var(--surface-2); padding: .15em .4em;
	border-radius: 4px; font-size: .9em;
}
.prose strong { font-weight: 700; }

/* tables inside articles */
.prose .wp-block-table, .prose figure.wp-block-table { overflow-x: auto; margin: 1.8em 0; }
.prose table {
	width: 100%; border-collapse: collapse; font-size: .93rem;
	min-width: 460px;
}
.prose th, .prose td {
	border: 1px solid var(--border); padding: 10px 12px;
	text-align: left; vertical-align: top;
}
.prose thead th, .prose tbody tr:first-child td { background: var(--surface); font-weight: 700; }
.prose tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface) 55%, transparent); }

/* ---------- table of contents ---------- */
.toc {
	max-width: var(--measure); margin: 0 auto 34px;
	background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius); padding: 4px 20px;
}
.toc > summary {
	cursor: pointer; font-weight: 700; font-size: .95rem;
	padding: 14px 0; list-style: none; display: flex;
	align-items: center; justify-content: space-between; gap: 10px;
}
.toc > summary::-webkit-details-marker { display: none; }
.toc > summary::after {
	content: "＋"; color: var(--accent); font-weight: 400; font-size: 1.1rem;
}
.toc[open] > summary::after { content: "－"; }
.toc nav { padding: 0 0 16px; border-top: 1px solid var(--border); margin-top: -1px; padding-top: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { margin: 0; }
.toc a {
	display: block; padding: 5px 0; font-size: .92rem;
	color: var(--muted); text-decoration: none;
}
.toc a:hover { color: var(--accent); text-decoration: underline; }
.toc .toc-h3 a { padding-left: 1.4em; font-size: .88rem; }

/* ---------- prev / next + related ---------- */
.postnav {
	display: grid; gap: 14px; max-width: var(--measure);
	margin: 46px auto 0; padding-top: 26px; border-top: 1px solid var(--border);
}
@media (min-width: 700px) { .postnav { grid-template-columns: 1fr 1fr; } }
.postnav a {
	display: block; padding: 16px 18px; border: 1px solid var(--border);
	border-radius: var(--radius); text-decoration: none; background: var(--surface);
}
.postnav a:hover { border-color: var(--accent); }
.postnav span { display: block; font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.postnav strong { font-weight: 600; font-size: .98rem; line-height: 1.3; display: block; }
.postnav .is-next { text-align: right; }

.related { margin-top: 56px; }
.related h2 {
	font-family: var(--font-display); font-size: 1.5rem;
	letter-spacing: -.02em; margin: 0 0 22px;
}

/* ---------- footer ---------- */
.site-footer {
	margin-top: 76px; border-top: 1px solid var(--border);
	background: var(--surface); padding: 46px 0 34px;
}
.site-footer__cols {
	display: grid; gap: 30px; margin-bottom: 34px;
	grid-template-columns: 1fr;
}
@media (min-width: 720px) { .site-footer__cols { grid-template-columns: 2fr 1fr 1fr; gap: 40px; } }
.site-footer h2 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 9px; }
.site-footer a { color: var(--text); text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer__about p { color: var(--muted); font-size: .95rem; margin: 10px 0 0; max-width: 46ch; }
.site-footer__bottom {
	display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
	padding-top: 24px; border-top: 1px solid var(--border);
	color: var(--muted); font-size: .85rem;
}
.site-footer__bottom p { margin: 0; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 90px 0 40px; }
.notfound__code {
	font-family: var(--font-display); font-size: clamp(4rem, 3rem + 9vw, 8rem);
	line-height: 1; color: var(--accent); margin: 0 0 10px; letter-spacing: -.04em;
}
.btn {
	display: inline-block; margin-top: 22px; padding: 12px 24px;
	background: var(--accent); color: var(--accent-contrast);
	border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem;
}
.btn:hover { background: var(--accent-hover); }
