@import url("https://fonts.bunny.net/css?family=fraunces:400,400i,600,600i|jetbrains-mono:400,500&display=swap");

/* ============================================================
   MakeClear — "Strikethrough"  (candidate)
   Clarity is what survives the edit. Watch the waffle get cut.
   Editor white / ink / delete-red / margin-blue.
   ============================================================ */

:root {
	--paper:  #FCFCFA;
	--ink:    #16181D;
	--red:    #D02E2E;
	--blue:   #2F5FCC;
	--mute:   #6B6F76;
	--rule:   #E6E5E1;
	--card:   #FFFFFF;
	--font-display: "Fraunces", Georgia, serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--wrap: min(60rem, 92vw);
	--gutter: clamp(1.25rem, 5vw, 3rem);
	--ease: cubic-bezier(.2,.7,.2,1);
}

/* ---- neutralise the inherited Attention chrome; the content row IS the page ----
   (a) hide PM chrome; (b) make PM's OUTER containers full-bleed.
   NEVER include 'main' here — that is the bespoke content wrapper. */
#header, #nav, #footer, .column-sidebar, .bar, .menu { display: none !important; }
#content, .container, .container.columns, .columns, .column-content, .page-content, .page, body > .container {
	max-width: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; float: none !important;
}
#page-1, .page-container, .page-container.text { max-width: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; float: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0; background: var(--paper); color: var(--ink);
	font-family: var(--font-mono); font-size: clamp(1rem, .96rem + .25vw, 1.0625rem); line-height: 1.65;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
::selection { background: var(--red); color: var(--paper); }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0; }

/* the bespoke wrapper: every section is contained + gutter-padded, never flush */
.st-wrap { width: 100%; }
.st-wrap > section,
.st-foot {
	padding-inline: var(--gutter);
}
.inner { width: var(--wrap); margin-inline: auto; }

/* ---------- header bar ---------- */
.st-bar { position: fixed; inset: 0 0 auto 0; z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.1) blur(8px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.st-bar.is-stuck { border-bottom-color: var(--rule); }
.st-bar .row { width: var(--wrap); margin-inline: auto; padding-block: 1rem; display: flex; justify-content: space-between; align-items: center; }
.wordmark { font-family: var(--font-mono); font-weight: 500; letter-spacing: -.01em; text-decoration: none; color: var(--ink); font-size: 1.05rem; }
.wordmark b { color: var(--red); font-weight: 500; }
.st-nav { display: flex; gap: clamp(.9rem, 2.5vw, 1.6rem); font-size: .74rem; }
.st-nav a { color: var(--mute); text-decoration: none; text-transform: uppercase; letter-spacing: .14em; transition: color .25s; }
.st-nav a:hover { color: var(--ink); }
.st-nav a[aria-current="true"] { color: var(--red); }

/* ---------- hero: the live edit ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(8rem, 18vh, 12rem) clamp(4rem, 9vh, 7rem); }
.hero .inner { width: var(--wrap); margin-inline: auto; }
.eyebrow { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .22em; color: var(--mute); margin: 0 0 2.2rem; display: flex; align-items: center; gap: .8rem; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--red); }
.tally { color: var(--red); font-weight: 500; }
.ms {
	font-family: var(--font-display); font-weight: 400;
	font-size: clamp(2.4rem, 1.4rem + 4.6vw, 5rem); line-height: 1.1; letter-spacing: -.022em;
	margin: 0; color: var(--ink); max-width: 18ch;
}
.keep { transition: color .3s var(--ease); }
.cut {
	position: relative; color: var(--ink); white-space: normal;
	transition: max-width .5s var(--ease), opacity .45s var(--ease), color .3s var(--ease), margin .5s var(--ease);
}
/* the red deletion stroke, drawn left-to-right */
.cut::after {
	content: ""; position: absolute; left: -.05em; right: -.05em; top: 52%; height: .075em;
	background: var(--red); transform: scaleX(0); transform-origin: left center; transition: transform .4s var(--ease);
}
.cut.struck::after { transform: scaleX(1); }
.cut.gone { color: var(--mute); opacity: 0; font-size: 0; margin: 0; }
.hero-controls { margin-top: clamp(2.5rem, 5vh, 3.5rem); display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.btn {
	font-family: var(--font-mono); font-size: .9rem; font-weight: 500; cursor: pointer; letter-spacing: .01em;
	border-radius: 6px; padding: .75rem 1.4rem; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
	transition: transform .08s, background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--red); border-color: var(--red); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { color: var(--red); background: transparent; }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.hero-sub { margin: clamp(2rem, 4vh, 3rem) 0 0; color: var(--mute); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.6; max-width: 38ch; font-family: var(--font-mono); }

/* ---------- sections ---------- */
.st-wrap > section { padding-block: clamp(5rem, 12vh, 9rem); border-top: 1px solid var(--rule); }
.kicker { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .22em; color: var(--red); margin: 0 0 1.8rem; display: flex; align-items: center; gap: .8rem; }
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--red); }
.lead { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.2rem); line-height: 1.14; letter-spacing: -.02em; margin: 0; max-width: 18ch; }
.lead em { font-style: italic; color: var(--red); }

/* the edits — before/after pairs */
.pairs { list-style: none; margin: clamp(2.5rem, 5vh, 3.5rem) 0 0; padding: 0; display: grid; gap: 1.5rem; }
.pair { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.6rem, 3vw, 2.4rem); transition: border-color .25s, transform .25s; }
.pair:hover { border-color: color-mix(in srgb, var(--red) 35%, var(--rule)); transform: translateY(-2px); }
.pair .before { font-family: var(--font-mono); color: var(--mute); font-size: .95rem; line-height: 1.55; text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; }
.pair .after { font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); line-height: 1.2; letter-spacing: -.01em; color: var(--ink); margin-top: .9rem; }

/* how I work — three passes */
.passes { list-style: none; margin: clamp(2.5rem, 5vh, 3.5rem) 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.pass { display: grid; grid-template-columns: 3.5rem 1fr; gap: clamp(1.2rem, 3vw, 2.2rem); padding-block: clamp(1.8rem, 3.5vh, 2.6rem); border-bottom: 1px solid var(--rule); align-items: baseline; }
.pass .n { font-family: var(--font-mono); color: var(--red); font-weight: 500; font-size: .85rem; }
.pass h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); letter-spacing: -.015em; line-height: 1.1; margin: 0 0 .5rem; }
.pass p { margin: 0; color: var(--mute); max-width: 52ch; font-size: .98rem; line-height: 1.6; }

/* proof — inverted panel for contrast and rhythm */
.proof { background: var(--ink); color: var(--paper); border-top: 0 !important; }
.proof .kicker { color: color-mix(in srgb, var(--red) 88%, var(--paper)); }
.quotes { display: grid; gap: clamp(2.5rem, 6vh, 4rem); margin-top: clamp(2.5rem, 5vh, 3.5rem); }
.q blockquote { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 1.2rem + 2.4vw, 3rem); line-height: 1.18; letter-spacing: -.018em; margin: 0; max-width: 22ch; color: var(--paper); }
.q .src { margin-top: 1.2rem; font-family: var(--font-mono); font-size: .82rem; letter-spacing: .04em; color: color-mix(in srgb, var(--paper) 60%, transparent); }
.q .src s { color: var(--red); text-decoration-thickness: 1.5px; }

/* contact */
.contact .lead { max-width: 16ch; margin-bottom: clamp(1.6rem, 3vh, 2.4rem); }
.contact .big { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 1rem + 2vw, 2.6rem); letter-spacing: -.015em; color: var(--blue); text-decoration: none; border-bottom: 3px solid var(--blue); padding-bottom: .08em; transition: color .25s, border-color .25s; }
.contact .big:hover { color: var(--red); border-color: var(--red); }
.contact .meta { font-family: var(--font-mono); color: var(--mute); font-size: .9rem; line-height: 1.9; margin-top: clamp(2rem, 4vh, 2.8rem); }

/* footer */
.st-foot { border-top: 1px solid var(--rule); padding-block: clamp(3rem, 7vh, 5rem); color: var(--mute); font-size: .85rem; }
.st-foot .inner { display: grid; gap: 1.4rem; }
.st-foot .wordmark { font-size: 1.3rem; }
.st-foot p { margin: 0; max-width: 56ch; line-height: 1.7; }

@media (max-width: 640px) {
	.ms { max-width: none; }
	.lead { max-width: none; }
	.pass { grid-template-columns: 2.5rem 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.cut, .cut::after, .keep, .pair { transition: none; }
}
