/*
Theme Name: LaptopOwners
Theme URI: https://laptopowners.com/
Author: LaptopOwners
Description: The rating-plate theme for laptopowners.com: graphite frame, bone and white readings, one caution-yellow ink. Built from DESIGN.md (Oct 2026).
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: laptopowners
*/

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
	font-family: "Archivo";
	src: url("assets/fonts/archivo-latin-wght.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "JetBrains Mono";
	src: url("assets/fonts/jetbrains-mono-latin-wght.woff2") format("woff2");
	font-weight: 100 800;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	--lo-graphite: #2B2F36;
	--lo-bone: #ECE8DF;
	--lo-yellow: #F2B705;
	--lo-paper: #FFFFFF;
	--lo-text-2: #4A505A;
	--lo-hairline: #C9C4B8;
	--lo-grid: #E2DED4;
	--lo-slot: #F6F4EF;
	--lo-ph: #5E646E;
	--lo-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--lo-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--lo-frame: 1200px;
	--lo-guide: 880px;
	--lo-tool: 1000px;
	--lo-gutter: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-color: var(--lo-graphite) var(--lo-bone); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--lo-paper);
	color: var(--lo-graphite);
	font-family: var(--lo-sans);
	font-size: 18px;
	line-height: 1.6;
	font-variant-numeric: tabular-nums;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3, h4 { text-wrap: balance; color: var(--lo-graphite); }
a {
	color: var(--lo-graphite);
	text-decoration: underline;
	text-decoration-color: var(--lo-yellow);
	text-decoration-thickness: 3px;
	text-underline-offset: 4px;
}
a:hover { color: #000; text-decoration-color: var(--lo-graphite); }
::selection { background: var(--lo-yellow); color: var(--lo-graphite); }
:focus-visible { outline: 3px solid var(--lo-yellow); outline-offset: 2px; }
input, select, textarea, button { font: inherit; color: inherit; caret-color: var(--lo-graphite); accent-color: var(--lo-yellow); }
::placeholder { color: var(--lo-ph); opacity: 1; }
strong, b { font-weight: 700; }
hr { border: 0; border-top: 2px solid var(--lo-graphite); margin: 40px 0; }

.screen-reader-text, .lo-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.lo-skip {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--lo-yellow); color: var(--lo-graphite); border: 2px solid var(--lo-graphite);
	border-radius: 6px; padding: 10px 16px; font-weight: 800; text-decoration: none;
}
.lo-skip:focus { top: 12px; }

.lo-label {
	font-family: var(--lo-mono);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.5;
}
.lo-source {
	margin: 0;
	font-family: var(--lo-mono);
	font-size: 13px;
	line-height: 1.5;
	color: var(--lo-text-2);
}

/* ---------- Buttons ---------- */
.lo-btn, .entry .wp-block-button__link, .entry .wp-element-button {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 0 18px;
	background: var(--lo-paper); color: var(--lo-graphite);
	border: 2px solid var(--lo-graphite); border-radius: 6px;
	font-family: var(--lo-sans); font-weight: 700; font-size: 16px; line-height: 1.2;
	text-decoration: none; white-space: nowrap; cursor: pointer;
}
.lo-btn:hover { color: var(--lo-graphite); background: var(--lo-bone); }
.lo-btn--primary, .entry .wp-block-button__link { background: var(--lo-yellow); font-weight: 800; }
.lo-btn--primary:hover, .entry .wp-block-button__link:hover { background: var(--lo-yellow); color: #000; box-shadow: inset 0 -3px 0 var(--lo-graphite); }
.lo-btn--large { min-height: 52px; padding: 0 28px; font-size: 18px; }

/* ---------- Masthead ---------- */
.lo-mast { background: var(--lo-graphite); color: var(--lo-bone); }
.lo-head {
	max-width: var(--lo-frame); margin: 0 auto; padding: 14px var(--lo-gutter);
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
}
.lo-brand {
	display: flex; align-items: center; gap: 12px; min-height: 44px;
	color: var(--lo-bone); text-decoration: none;
}
.lo-brand:hover { color: var(--lo-bone); }
.lo-brand svg { display: block; flex: 0 0 auto; }
.lo-word {
	font-weight: 800; font-size: 22px; letter-spacing: -0.02em; text-transform: uppercase; line-height: 1;
	color: var(--lo-bone);
}
.lo-word span { color: var(--lo-yellow); }
.lo-nav { flex: 1 1 auto; }
.lo-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.lo-nav a {
	display: inline-block; padding: 11px 0; color: var(--lo-bone); text-decoration: none;
	font-weight: 600; font-size: 16px; line-height: 22px; white-space: nowrap;
}
.lo-nav a:hover { color: var(--lo-paper); text-decoration: underline; text-decoration-color: var(--lo-bone); text-decoration-thickness: 2px; }
.lo-nav .current-menu-item > a,
.lo-nav .current-menu-ancestor > a,
.lo-nav .current-post-ancestor > a,
.lo-nav .current-menu-parent > a,
.lo-nav a[aria-current="page"] { color: var(--lo-yellow); }
.lo-search { display: flex; flex: 1 1 200px; max-width: 230px; margin: 0; }
.lo-search input {
	flex: 1 1 auto; min-width: 0; height: 44px;
	border: 2px solid var(--lo-bone); border-radius: 6px;
	background: var(--lo-graphite); color: var(--lo-bone);
	font-size: 16px; padding: 0 14px;
}
.lo-search input::placeholder { color: var(--lo-hairline); }
.lo-search input:focus-visible { outline-offset: 2px; }

.lo-disclosure { background: var(--lo-bone); border-bottom: 2px solid var(--lo-graphite); }
.lo-disclosure p { max-width: var(--lo-frame); margin: 0 auto; padding: 10px var(--lo-gutter); font-size: 15px; line-height: 1.5; }

/* ---------- Main columns ---------- */
.lo-main { max-width: var(--lo-guide); margin: 0 auto; padding: 32px var(--lo-gutter) 72px; }
.lo-main--wide { max-width: var(--lo-frame); }
.lo-main--tool { max-width: var(--lo-tool); }

.lo-crumbs { font-size: 15px; line-height: 1.5; margin: 0 0 20px; }
.lo-crumbs a { text-decoration-thickness: 2px; }
.lo-crumbs .separator, .lo-crumbs .lo-crumb-sep { padding: 0 6px; }
.lo-crumbs .last { font-weight: 400; }

.lo-h1, .entry-title {
	margin: 0; font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; line-height: 1.06; letter-spacing: -0.03em;
}
.lo-display {
	margin: 0; font-size: clamp(38px, 5.4vw, 66px); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; max-width: 17ch;
}
.lo-byline { margin: 16px 0 0; font-size: 16px; color: var(--lo-text-2); }
.lo-byline a { color: var(--lo-text-2); text-decoration-thickness: 2px; }
.lo-lede { margin: 20px 0 0; font-size: 20px; line-height: 1.6; max-width: 66ch; }
.lo-art-head { margin-bottom: 40px; }

/* ---------- Article content ---------- */
.entry { font-size: 18px; }
.entry > * { margin-top: 0; margin-bottom: 24px; }
.entry > *:last-child { margin-bottom: 0; }
.entry p, .entry ul, .entry ol, .entry blockquote { max-width: 68ch; }
.entry > p:first-child { font-size: 20px; line-height: 1.6; max-width: 66ch; }
.entry h2 {
	margin: 56px 0 24px; padding-top: 32px; border-top: 4px solid var(--lo-graphite);
	font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; line-height: 1.12; letter-spacing: -0.025em;
	scroll-margin-top: 16px;
}
.entry h3 { margin: 32px 0 12px; font-size: 20px; font-weight: 700; line-height: 1.3; scroll-margin-top: 16px; }
.entry h4 { margin: 24px 0 8px; font-size: 18px; font-weight: 700; line-height: 1.35; }
.entry ul, .entry ol { padding-left: 26px; }
.entry li { margin: 0 0 8px; }
.entry li::marker { color: var(--lo-graphite); font-weight: 700; }
.entry blockquote {
	margin-left: 0; margin-right: 0; padding: 18px 24px;
	background: var(--lo-bone); border: 2px solid var(--lo-graphite); border-radius: 8px;
}
.entry blockquote p { margin: 0 0 8px; }
.entry blockquote cite { font-family: var(--lo-mono); font-size: 13px; font-style: normal; color: var(--lo-text-2); }
.entry figure { margin-left: 0; margin-right: 0; }
.entry img { border-radius: 8px; }
.entry figcaption, .entry .wp-element-caption {
	margin-top: 8px; font-family: var(--lo-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--lo-text-2); text-align: left;
}
.entry code { font-family: var(--lo-mono); font-size: 0.88em; background: var(--lo-slot); border: 1px solid var(--lo-hairline); border-radius: 4px; padding: 1px 5px; }
.entry pre { font-family: var(--lo-mono); font-size: 14px; background: var(--lo-slot); border: 2px solid var(--lo-graphite); border-radius: 8px; padding: 16px; overflow-x: auto; }
.entry pre code { background: none; border: 0; padding: 0; }
.entry .wp-block-separator { border: 0; border-top: 2px solid var(--lo-graphite); margin: 40px 0; opacity: 1; }

/* Tables: keylined box, graphite header rule, hairline rows */
.entry .wp-block-table, .entry .lo-table-wrap { margin: 0 0 24px; overflow-x: auto; border: 2px solid var(--lo-graphite); border-radius: 8px; }
.entry .wp-block-table table, .entry .lo-table-wrap table, .entry > table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.45; }
.entry > table { border: 2px solid var(--lo-graphite); }
.entry th, .entry td { padding: 14px 16px; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--lo-hairline); }
.entry thead th, .entry thead td {
	background: var(--lo-bone); border-bottom: 2px solid var(--lo-graphite);
	font-family: var(--lo-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
}
.entry tbody th { font-weight: 700; }
.entry tbody tr:last-child th, .entry tbody tr:last-child td { border-bottom: 0; }
.entry .wp-block-table figcaption { margin: 0; padding: 10px 16px; border-top: 2px solid var(--lo-graphite); }

/* ---------- Article footer: more guides ---------- */
.lo-after { margin-top: 64px; display: flex; flex-direction: column; gap: 40px; }
.lo-more { border-top: 4px solid var(--lo-graphite); padding-top: 28px; }
.lo-more h2 { margin: 0 0 12px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.lo-howbox {
	background: var(--lo-bone); border: 2px solid var(--lo-graphite); border-radius: 8px; padding: 22px 24px;
	display: flex; flex-direction: column; gap: 10px;
}
.lo-howbox h2 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; }
.lo-howbox p { margin: 0; font-size: 16px; line-height: 1.55; max-width: 66ch; }

/* Guide list rows (archives, home columns, more guides) */
.lo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lo-list li { margin: 0; }
.lo-list a.lo-row { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--lo-hairline); text-decoration: none; }
.lo-list a.lo-row:hover .lo-row__title { text-decoration: underline; text-decoration-color: var(--lo-yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.lo-row__title { font-weight: 700; font-size: 19px; line-height: 1.35; }
.lo-row__meta { font-family: var(--lo-mono); font-size: 13px; line-height: 1.5; color: var(--lo-text-2); }
.lo-row__excerpt { font-size: 16px; line-height: 1.55; color: var(--lo-graphite); margin-top: 4px; max-width: 66ch; }

/* ---------- Archive / search ---------- */
.lo-archive-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.lo-archive-head .lo-lede { margin: 0; }
.lo-archive-desc p { margin: 0 0 12px; font-size: 20px; line-height: 1.6; max-width: 66ch; }
.lo-archive-list { border-top: 4px solid var(--lo-graphite); }
.lo-archive-list a.lo-row { padding: 18px 0; }
.lo-archive-list .lo-row__title { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.lo-empty { background: var(--lo-bone); border: 2px solid var(--lo-graphite); border-radius: 8px; padding: 22px 24px; }
.lo-empty p { margin: 0 0 10px; }
.lo-empty p:last-child { margin: 0; }
.lo-pager { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.lo-pager .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px;
	border: 2px solid var(--lo-graphite); border-radius: 6px; text-decoration: none; font-weight: 700;
}
.lo-pager .page-numbers.current { background: var(--lo-graphite); color: var(--lo-bone); }
.lo-searchform { display: flex; gap: 10px; flex-wrap: wrap; max-width: 560px; }
.lo-searchform input[type="search"] {
	flex: 1 1 240px; min-width: 0; height: 52px; border: 2px solid var(--lo-graphite); border-radius: 6px;
	background: var(--lo-paper); padding: 0 14px; font-size: 18px;
}

/* ---------- Home ---------- */
.lo-hero { max-width: var(--lo-frame); margin: 0 auto; padding: 64px var(--lo-gutter) 56px; display: flex; flex-direction: column; gap: 28px; }
.lo-hero .lo-lede { margin: 0; font-size: 21px; line-height: 1.55; max-width: 58ch; color: var(--lo-text-2); }
.lo-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 16px; }
.lo-quick .lo-label { color: var(--lo-text-2); font-size: 13px; }
.lo-band { border-top: 2px solid var(--lo-graphite); }
.lo-band--bone { background: var(--lo-bone); }
.lo-band__in { max-width: var(--lo-frame); margin: 0 auto; padding: 56px var(--lo-gutter); display: flex; flex-direction: column; gap: 32px; }
.lo-band h2 { margin: 0; font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.lo-band__lede { margin: 0; max-width: 62ch; font-size: 18px; }
.lo-needs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px 28px; }
.lo-need { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lo-need h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; line-height: 1.3; padding-bottom: 10px; border-bottom: 4px solid var(--lo-graphite); }
.lo-need h3 a { text-decoration: none; }
.lo-need h3 a:hover { text-decoration: underline; text-decoration-color: var(--lo-yellow); }
.lo-need__desc { margin: 4px 0 0; font-size: 16px; line-height: 1.55; color: var(--lo-text-2); }
.lo-need__all { margin-top: 10px; font-size: 16px; font-weight: 700; }
.lo-legend { margin: 0; border: 2px solid var(--lo-graphite); border-radius: 8px; overflow: hidden; background: var(--lo-paper); }
.lo-legend > div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 18px 22px; border-bottom: 2px solid var(--lo-graphite); }
.lo-legend > div:last-child { border-bottom: 0; }
.lo-legend dt { flex: 0 0 230px; }
.lo-legend dd { margin: 0; flex: 1 1 320px; font-size: 17px; }

/* Legend-size stamps (How we work, home) */
.lo-stamp-lg {
	display: inline-block; border: 3px solid var(--lo-graphite); background: var(--lo-paper); border-radius: 6px;
	padding: 4px 12px; font-family: var(--lo-sans); font-weight: 800; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4;
}
.lo-stamp-lg--owner { background: var(--lo-yellow); }
.lo-stamp-lg--spec { border-style: dashed; }
.lo-stamp-lg--withdrawn { text-decoration: line-through; text-decoration-thickness: 3px; }

/* ---------- Footer ---------- */
.lo-foot { background: var(--lo-graphite); color: var(--lo-bone); }
.lo-foot__in { max-width: var(--lo-frame); margin: 0 auto; padding: 48px var(--lo-gutter) 32px; display: flex; flex-direction: column; gap: 36px; }
.lo-foot__cols { display: flex; flex-wrap: wrap; gap: 36px 56px; }
.lo-foot__brand { flex: 1 1 280px; display: flex; flex-direction: column; gap: 14px; }
.lo-foot__brand .lo-word { font-size: 19px; }
.lo-foot__brand p { margin: 0; font-size: 16px; line-height: 1.55; max-width: 36ch; }
.lo-foot nav { flex: 1 1 160px; display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.lo-foot nav .lo-label { padding-bottom: 6px; color: var(--lo-bone); }
.lo-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.lo-foot a { display: inline-block; padding: 6px 0; color: var(--lo-bone); text-decoration: none; line-height: 1.4; }
.lo-foot a:hover { color: var(--lo-paper); text-decoration: underline; text-decoration-color: var(--lo-yellow); }
.lo-foot__legal { margin: 0; padding-top: 20px; border-top: 2px solid var(--lo-bone); font-size: 14px; line-height: 1.6; }

/* ---------- 404 ---------- */
.lo-404 { display: flex; flex-direction: column; gap: 24px; }

/* ---------- Narrow screens ---------- */
@media (max-width: 760px) {
	:root { --lo-gutter: 16px; }
	body { font-size: 17px; }
	.lo-head { column-gap: 12px; }
	.lo-word { font-size: 18px; }
	.lo-brand svg { width: 40px; height: 27px; }
	.lo-nav { order: 3; flex: 1 1 100%; }
	.lo-nav ul { gap: 0 20px; }
	.lo-search { order: 4; flex: 1 1 100%; max-width: none; }
	.lo-hero { padding-top: 40px; padding-bottom: 40px; }
	.lo-band__in { padding-top: 40px; padding-bottom: 40px; }
	.lo-legend dt { flex-basis: 100%; }
	.entry h2 { margin-top: 44px; padding-top: 24px; }
	/* tables restack: header hidden, each row a grid with mono labels (data-label added by lo-helpers) */
	.entry table.lo-stack thead { display: none; }
	.entry table.lo-stack, .entry table.lo-stack tbody { display: block; width: 100%; }
	.entry table.lo-stack tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--lo-hairline); padding: 6px 0; }
	.entry table.lo-stack tr:last-child { border-bottom: 0; }
	.entry table.lo-stack th, .entry table.lo-stack td { border: 0; padding: 6px 14px; }
	.entry table.lo-stack th:first-child, .entry table.lo-stack td:first-child { grid-column: 1 / -1; font-weight: 700; padding-top: 10px; }
	.entry table.lo-stack [data-label]::before {
		content: attr(data-label); display: block; font-family: var(--lo-mono); font-size: 11px; font-weight: 400;
		letter-spacing: 0.06em; text-transform: uppercase; color: var(--lo-text-2);
	}
	.entry table.lo-stack th:first-child[data-label]::before, .entry table.lo-stack td:first-child[data-label]::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
