/* ─────────────────────────────────────────────────────────
   SIZE GUIDE PAGE · /size-guide/
   Reuses style.css + drop.css for the brand frame.
   Adds the page-specific surfaces · SVG diagrams +
   centimetre tables + how-to-measure block.
───────────────────────────────────────────────────────── */

/* Body bg is acid so the strip above the hero (under the fixed nav · created
   by .content { padding-top: calc(var(--nav-h) + 14px) } in style.css) reads
   as part of the hero canvas rather than as a white gap. The sections below
   the hero paint their own paper/ink backgrounds and cover the body bg. */
.sg-body { background: var(--acid); color: var(--ink); }


/* ─── HERO · acid green canvas · matches homepage hero rhythm ─── */
.sg-hero {
	padding: 200px var(--frame) 80px;
	background: var(--acid);
	color: var(--ink);
	border-bottom: 1px solid var(--ink);
}
.sg-hero-grid {
	max-width: 1300px;
	margin: 0 auto 64px;
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 64px;
	align-items: start;
}
.sg-hero-meta {
	padding-top: 24px;
}
.sg-eyebrow {
	color: var(--ink);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	display: block;
	margin-bottom: 22px;
	opacity: 0.78;
}
.sg-stage {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	padding: 8px 14px;
	border: 1px solid var(--ink);
	border-radius: 999px;
	margin-bottom: 28px;
	letter-spacing: 0.04em;
	background: rgba(14, 13, 10, 0.04);
}
.sg-dot {
	width: 8px; height: 8px;
	background: var(--ink);
	border-radius: 50%;
	animation: sg-pulse 1.8s ease-in-out infinite;
}
@keyframes sg-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.45; transform: scale(0.72); }
}
.sg-coords {
	color: var(--ink-2);
	line-height: 1.85;
	letter-spacing: 0.04em;
	opacity: 0.78;
}

.sg-h {
	font-family: var(--f-display);
	font-weight: 900;
	font-size: clamp(72px, 11vw, 180px);
	line-height: 0.86;
	letter-spacing: -0.05em;
	text-transform: lowercase;
	margin: 0 0 22px;
	color: var(--ink);
}
.sg-h em {
	font-style: italic;
	color: var(--ink);
}
.sg-h-num {
	font-family: var(--f-display);
	font-weight: 700;
	font-size: clamp(28px, 3.6vw, 52px);
	line-height: 1;
	letter-spacing: -0.02em;
	text-transform: lowercase;
	margin: 0 0 36px;
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0;
	color: var(--ink);
}
.sg-h-num-l {
	padding: 6px 14px 6px 0;
	color: var(--ink);
}
.sg-h-num-x {
	padding: 6px 16px;
	color: var(--ink);
	background: var(--paper);
	font-weight: 900;
	letter-spacing: -0.025em;
}
.sg-lede {
	font-family: var(--f-sans);
	font-size: clamp(15px, 1.3vw, 19px);
	line-height: 1.6;
	color: var(--ink-2);
	max-width: 68ch;
	margin: 0;
}
.sg-lede em { color: var(--ink); font-style: italic; font-weight: 600; }
.sg-lede a {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: var(--ink);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	font-weight: 600;
}
.sg-lede a:hover { background: var(--ink); color: var(--acid); text-decoration-color: var(--ink); }


/* ─── FORMAT PILLS · ink-on-acid ─────────────────────────── */
.sg-pills {
	max-width: 1300px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 0 var(--frame);
}
.sg-pills a {
	display: inline-flex;
	align-items: baseline;
	gap: 10px;
	padding: 14px 22px;
	border: 1px solid var(--ink);
	border-radius: 999px;
	font-family: var(--f-display);
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ink);
	text-decoration: none;
	background: transparent;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.sg-pills a:hover {
	background: var(--ink);
	color: var(--acid);
	border-color: var(--ink);
	transform: translate(-2px, -3px);
}
.sg-pill-n {
	font-family: var(--f-mono);
	font-weight: 400;
	font-size: 11px;
	color: var(--ink);
	letter-spacing: 0.04em;
	opacity: 0.7;
}
.sg-pills a:hover .sg-pill-n { color: var(--acid); opacity: 1; }


/* ─── SECTION GENERIC ──────────────────────────────────── */
.sg-section {
	padding: 130px var(--frame);
	border-bottom: 1px solid rgba(14, 13, 10, 0.12);
}
.sg-section--paper {
	background: var(--paper);
	color: var(--ink);
}
.sg-section--ink {
	background: var(--ink);
	color: var(--paper);
	border-top: 1px solid rgba(244, 239, 230, 0.12);
	border-bottom: 1px solid rgba(244, 239, 230, 0.12);
}
.sg-section-head {
	max-width: 1200px;
	margin: 0 auto 72px;
}
.sg-section-eyebrow {
	color: var(--acid-d);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	display: block;
	margin-bottom: 24px;
}
.sg-section--ink .sg-section-eyebrow { color: var(--acid); }
.sg-section-h {
	font-family: var(--f-display);
	font-weight: 900;
	font-size: clamp(56px, 8vw, 140px);
	line-height: 0.88;
	letter-spacing: -0.04em;
	text-transform: lowercase;
	margin: 0 0 28px;
}
.sg-section-h em {
	font-style: normal;
	color: var(--acid-d);
}
.sg-section--ink .sg-section-h em { color: var(--acid); }
.sg-section-lede {
	font-family: var(--f-sans);
	font-size: clamp(15px, 1.2vw, 18px);
	line-height: 1.65;
	color: var(--smoke);
	max-width: 70ch;
	margin: 0;
}
.sg-section--ink .sg-section-lede { color: var(--bone); }
.sg-section-lede strong { font-weight: 700; }
.sg-section-lede em { font-style: italic; }
.sg-section-lede a {
	color: var(--acid-d);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.sg-section--ink .sg-section-lede a { color: var(--acid); }


/* ─── DIAGRAM + TABLE GRID ─────────────────────────────── */
.sg-grid {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 360px 1fr;
	gap: 64px;
	align-items: start;
}
.sg-diagram {
	margin: 0;
	padding: 28px;
	background: rgba(14, 13, 10, 0.04);
	border: 1px solid rgba(14, 13, 10, 0.12);
	border-radius: 6px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}
.sg-section--ink .sg-diagram {
	background: rgba(244, 239, 230, 0.04);
	border-color: rgba(244, 239, 230, 0.12);
}
.sg-diagram svg {
	width: 100%;
	height: auto;
	max-width: 280px;
	color: var(--ink);
}
.sg-section--ink .sg-diagram svg { color: var(--paper); }
.sg-diagram figcaption {
	color: var(--smoke);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.sg-section--ink .sg-diagram figcaption { color: var(--bone); }
.sg-diagram-label {
	font-family: var(--f-mono);
	font-weight: 500;
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}


/* ─── TABLE ─────────────────────────────────────────────── */
.sg-table-wrap {
	min-width: 0;
}
.sg-table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--f-sans);
	font-size: clamp(13px, 1vw, 16px);
}
.sg-table thead th {
	text-align: left;
	font-family: var(--f-mono);
	font-weight: 500;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--acid-d);
	padding: 14px 12px;
	border-bottom: 1px solid currentColor;
}
.sg-section--ink .sg-table thead th { color: var(--acid); }
.sg-table tbody td {
	padding: 16px 12px;
	border-bottom: 1px solid rgba(14, 13, 10, 0.12);
	color: inherit;
}
.sg-section--ink .sg-table tbody td {
	border-bottom-color: rgba(244, 239, 230, 0.12);
}
.sg-table tbody tr {
	transition: background-color .2s ease;
}
.sg-table tbody tr:hover {
	background: rgba(203, 242, 36, 0.08);
}
.sg-section--ink .sg-table tbody tr:hover {
	background: rgba(203, 242, 36, 0.10);
}
.sg-size {
	font-family: var(--f-display);
	font-weight: 800;
	font-size: clamp(17px, 1.5vw, 22px);
	letter-spacing: 0.04em;
	color: var(--ink);
}
.sg-section--ink .sg-size { color: var(--paper); }
.sg-mock {
	margin-top: 22px;
	color: var(--acid-d);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	border-top: 1px dashed rgba(168, 204, 21, 0.5);
	padding-top: 14px;
}
.sg-section--ink .sg-mock {
	color: var(--acid);
	border-top-color: rgba(203, 242, 36, 0.4);
}


/* ─── ARCHIVE PIECE NOTE ────────────────────────────────── */
.sg-arc-note {
	max-width: 980px;
	margin: 0 auto;
}
.sg-arc-card {
	padding: 48px 44px;
	background: var(--ink);
	color: var(--paper);
	border-radius: 6px;
	border-left: 3px solid var(--acid);
}
.sg-arc-tag {
	color: var(--acid);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	margin: 0 0 22px;
}
.sg-arc-h {
	font-family: var(--f-display);
	font-weight: 900;
	font-size: clamp(28px, 3vw, 44px);
	line-height: 1.05;
	letter-spacing: -0.025em;
	text-transform: lowercase;
	color: var(--paper);
	margin: 0 0 24px;
}
.sg-arc-h em {
	font-style: italic;
	color: var(--acid);
}
.sg-arc-p {
	font-family: var(--f-sans);
	font-size: clamp(14px, 1.05vw, 17px);
	line-height: 1.65;
	color: var(--bone);
	margin: 0 0 22px;
	max-width: 76ch;
}
.sg-arc-p em { color: var(--paper); font-style: italic; }
.sg-arc-link {
	color: var(--acid);
	letter-spacing: 0.12em;
	margin: 0;
}
.sg-arc-link a {
	color: var(--acid);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.sg-arc-link a:hover { color: var(--paper); }


/* ─── HOW TO MEASURE · 4-STEP GRID ──────────────────────── */
.sg-how {
	max-width: 1200px;
	margin: 0 auto 64px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	padding: 0;
	list-style: none;
}
.sg-how-step {
	padding: 32px 26px;
	background: rgba(244, 239, 230, 0.04);
	border: 1px solid rgba(244, 239, 230, 0.18);
	border-radius: 6px;
	transition: border-color .3s ease, transform .3s ease, background-color .3s ease;
}
.sg-how-step:hover {
	border-color: var(--acid);
	background: rgba(203, 242, 36, 0.06);
	transform: translateY(-3px);
}
.sg-how-n {
	display: block;
	font-size: 11px;
	letter-spacing: 0.18em;
	color: var(--acid);
	margin-bottom: 18px;
}
.sg-how-h {
	font-family: var(--f-display);
	font-weight: 800;
	font-size: clamp(22px, 2vw, 30px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-transform: lowercase;
	margin: 0 0 16px;
	color: var(--paper);
}
.sg-how-p {
	font-family: var(--f-sans);
	font-size: clamp(13px, 0.95vw, 15px);
	line-height: 1.6;
	color: var(--bone);
	margin: 0;
}

.sg-pair {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 32px;
	align-items: baseline;
	padding-top: 40px;
	border-top: 1px solid rgba(244, 239, 230, 0.18);
}
.sg-pair-l {
	font-family: var(--f-display);
	font-weight: 900;
	font-size: clamp(32px, 4vw, 56px);
	line-height: 1;
	letter-spacing: -0.025em;
	text-transform: lowercase;
	color: var(--acid);
	margin: 0;
}
.sg-pair-r {
	font-family: var(--f-sans);
	font-size: clamp(14px, 1.05vw, 17px);
	line-height: 1.65;
	color: var(--bone);
	margin: 0;
}
.sg-pair-r strong { color: var(--paper); font-weight: 700; }
.sg-pair-r a {
	color: var(--acid);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.sg-pair-r a:hover { color: var(--paper); }


/* ─── TAILCARD ─────────────────────────────────────────── */
.sg-tail-section { padding: 80px var(--frame) 100px; }
.sg-tailcard {
	max-width: 1000px;
	margin: 0 auto;
	padding: 40px 36px;
	background: var(--bone);
	color: var(--ink);
	border-radius: 4px;
}
.sg-tailcard-eyebrow {
	display: block;
	color: var(--ink);
	opacity: 0.55;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	margin: 0 0 14px;
}
.sg-tailcard-date {
	font-family: var(--f-display);
	font-weight: 900;
	font-size: clamp(26px, 3vw, 40px);
	letter-spacing: -0.02em;
	text-transform: lowercase;
	margin: 0 0 18px;
	color: var(--ink);
}
.sg-tailcard-note {
	font-family: var(--f-sans);
	font-size: clamp(13px, 1vw, 15px);
	line-height: 1.65;
	color: var(--ink);
	margin: 0 0 18px;
	max-width: 78ch;
}
.sg-tailcard-note strong { font-weight: 700; }
.sg-tailcard-note em { font-style: italic; }
.sg-tailcard-cta {
	color: var(--ink);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin: 0;
	padding-top: 14px;
	border-top: 1px solid rgba(14, 13, 10, 0.2);
}
.sg-tailcard-cta a {
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}


/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1100px) {
	.sg-hero-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.sg-hero-meta { padding-top: 0; }
	.sg-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.sg-diagram { max-width: 320px; margin: 0 auto; }
	.sg-how { grid-template-columns: repeat(2, 1fr); }
	.sg-pair { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 700px) {
	.sg-hero { padding: 160px var(--frame) 56px; }
	.sg-section { padding: 80px var(--frame); }
	.sg-section-head { margin-bottom: 48px; }
	.sg-how { grid-template-columns: 1fr; gap: 14px; }
	.sg-how-step { padding: 24px 22px; }
	.sg-arc-card { padding: 32px 24px; }
	.sg-tailcard { padding: 28px 22px; }
	.sg-pills a { padding: 10px 16px; font-size: 11px; }

	/* table → stacked card layout */
	.sg-table thead { display: none; }
	.sg-table tbody td {
		display: block;
		padding: 4px 0;
		border-bottom: none;
		font-size: 14px;
	}
	.sg-table tbody td::before {
		content: attr(data-label);
		display: inline-block;
		min-width: 90px;
		font-family: var(--f-mono);
		font-size: 10px;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		color: var(--acid-d);
		margin-right: 12px;
	}
	.sg-section--ink .sg-table tbody td::before { color: var(--acid); }
	.sg-table tbody tr {
		display: block;
		padding: 18px 0;
		border-bottom: 1px solid rgba(14, 13, 10, 0.12);
	}
	.sg-section--ink .sg-table tbody tr {
		border-bottom-color: rgba(244, 239, 230, 0.12);
	}
	.sg-table tbody td.sg-size {
		font-size: 22px;
		margin-bottom: 8px;
	}
	.sg-table tbody td.sg-size::before { display: none; }
}
