/* Theo Marsh ----------------------------------------------------------------
   Personal-essay site: warm paper, ink black, one red, a highlighter yellow.
   Newsreader for reading and display, Inter Tight for UI.
   ------------------------------------------------------------------------- */
:root {
	--paper: #f8f5ef;
	--paper-2: #efe9de;
	--ink: #151413;
	--ink-2: #3d3a36;
	--muted: #7b756c;
	--line: #ddd5c7;
	--red: #d93a26;
	--mark: #ffe45c;
	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "Inter Tight", "Inter", system-ui, sans-serif;
	--container: 1200px;
	--gutter: clamp(18px, 4vw, 40px);
	--section: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 18px/1.6 var(--serif); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 .45em; }
h2 { font-size: clamp(34px, 4.4vw, 56px); }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.eyebrow, .cat { font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
.cat a { text-decoration: none; }
mark { background: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%); color: inherit; padding: 0 .05em; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 24px; background: var(--ink); color: var(--paper); border: 2px solid var(--ink); border-radius: 4px; font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; }
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn--sm { min-height: 40px; padding: 10px 16px; font-size: 14px; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { border-bottom: 2px solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 40; }
.site-header__inner { display: flex; align-items: center; gap: 36px; min-height: 74px; }
.brand { font: 700 28px/1 var(--serif); letter-spacing: -0.03em; text-decoration: none; }
.brand span { color: var(--red); }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { font: 500 15px var(--sans); text-decoration: none; }
.primary-nav a:hover { color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; padding: 6px; color: inherit; cursor: pointer; }

/* Intro */
.intro { padding-block: clamp(48px, 7vw, 96px); }
.intro__grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.intro__kicker { font: italic 500 26px/1.2 var(--serif); color: var(--red); margin-bottom: 18px; }
.intro h1 { font-size: clamp(48px, 7vw, 96px); font-weight: 700; letter-spacing: -0.04em; line-height: .98; margin-bottom: 28px; }
.intro__text { font-size: 22px; line-height: 1.5; color: var(--ink-2); max-width: 600px; margin-bottom: 32px; }
.signup { display: flex; gap: 8px; max-width: 560px; }
.signup input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 4px; background: #fff; font: 16px var(--sans); }
.signup input:focus { outline: none; border-color: var(--red); }
.thanks { font: 600 18px var(--sans); color: var(--red); }
.intro__proof { display: flex; align-items: center; gap: 12px; margin-top: 18px; font: 15px var(--sans); color: var(--muted); }
.intro__proof strong { color: var(--ink); }
.faces { display: flex; }
.faces i { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--paper); margin-left: -8px; background: #c9b9a2; }
.faces i:first-child { margin-left: 0; background: #8a6f55; }
.faces i:nth-child(3) { background: #5e5a52; }
.faces i:nth-child(4) { background: #d9a679; }
.intro__photo { margin: 0; position: relative; }
.intro__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.05); border-radius: 2px; box-shadow: 18px 18px 0 var(--mark); }
.intro__photo figcaption { position: absolute; left: -24px; bottom: 40px; background: var(--ink); color: var(--paper); font: italic 16px var(--serif); padding: 8px 14px; transform: rotate(-3deg); }

/* Press */
.press { border-block: 1px solid var(--line); }
.press__row { display: flex; align-items: center; justify-content: space-between; gap: 18px 36px; flex-wrap: wrap; padding-block: 22px; color: var(--muted); }
.press__row > span { font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.press__logo { font-weight: 700; color: #8c8579; font-size: 20px; letter-spacing: -0.02em; }
.press__logo--1 { font-family: var(--sans); font-style: italic; }
.press__logo--2 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .14em; font-size: 15px; }
.press__logo--3 { font-variant: small-caps; }
.press__logo--4 { font-family: var(--sans); font-weight: 800; }

/* Start here */
.head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 48px; }
.head h2 { margin: 0; }
.head p { color: var(--muted); margin: 0; font-style: italic; }
.start__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.start-card a { text-decoration: none; display: block; }
.start-card__img { position: relative; overflow: hidden; margin-bottom: 20px; }
.start-card__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s; }
.start-card:hover img { transform: scale(1.04); }
.start-card__img span { position: absolute; left: 0; bottom: 0; background: var(--paper); font: 700 34px/1 var(--serif); padding: 12px 16px 0 0; }
.start-card .cat { margin-bottom: 10px; }
.start-card h3 { font-size: 28px; line-height: 1.1; }
.start-card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.start-card p { color: var(--ink-2); font-size: 17px; }

/* Pull quote */
.pull { background: var(--ink); color: var(--paper); padding-block: clamp(72px, 10vw, 140px); }
.pull blockquote { margin: 0 auto; max-width: 980px; text-align: center; }
.pull p { font: italic 500 clamp(36px, 5vw, 68px)/1.1 var(--serif); letter-spacing: -0.02em; }
.pull p::before { content: "“"; display: block; font-size: 1.8em; line-height: .6; color: var(--mark); font-style: normal; }
.pull cite { font: 500 14px var(--sans); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: #a69f93; }

/* Essays */
.essays__grid { display: grid; grid-template-columns: 300px 1fr; gap: 64px; }
.essays__side { position: sticky; top: 110px; align-self: start; }
.essays__side p { color: var(--muted); }
.topics { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.topics a { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font: 500 16px var(--sans); text-decoration: none; }
.topics a:hover { color: var(--red); }
.topics small { color: var(--muted); }
.essay-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.essay-list li { border-bottom: 1px solid var(--line); }
.essay-list a { display: grid; grid-template-columns: 70px 1fr 120px 88px; gap: 24px; align-items: center; padding: 24px 0; text-decoration: none; }
.essay-list__date { font: 500 14px var(--sans); color: var(--muted); align-self: start; padding-top: 6px; }
.essay-list__main strong { display: block; font: 600 26px/1.15 var(--serif); letter-spacing: -0.015em; margin-bottom: 6px; }
.essay-list__main em { font-style: normal; color: var(--ink-2); font-size: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.essay-list__meta { font: 500 13px/1.5 var(--sans); color: var(--muted); }
.essay-list__thumb img { width: 88px; height: 88px; object-fit: cover; filter: grayscale(1); transition: filter .3s; }
.essay-list a:hover strong { color: var(--red); }
.essay-list a:hover img { filter: none; }

/* Book */
.book { background: var(--paper-2); padding-block: var(--section); border-block: 1px solid var(--line); }
.book__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.book__cover { perspective: 1200px; display: grid; place-items: center; }
.cover { position: relative; width: min(330px, 80%); aspect-ratio: 2 / 3; background: var(--red); color: #fff; padding: 34px 28px; display: flex; flex-direction: column; transform: rotateY(-16deg) rotateX(3deg); box-shadow: -2px 0 0 #a8281a inset, 30px 40px 60px -20px rgba(40, 20, 10, .45); border-radius: 2px 6px 6px 2px; }
.cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 14px; background: linear-gradient(90deg, rgba(0,0,0,.25), transparent); }
.cover strong { font: 700 40px/1 var(--serif); letter-spacing: -0.03em; margin-top: auto; }
.cover em { font: italic 18px/1.3 var(--serif); margin-top: 14px; opacity: .9; }
.cover__author { font: 600 14px var(--sans); letter-spacing: .2em; text-transform: uppercase; margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.5); }
.cover__badge { position: absolute; top: 22px; right: -18px; width: 96px; height: 96px; border-radius: 50%; background: var(--mark); color: var(--ink); font: 700 12px/1.2 var(--sans); text-transform: uppercase; display: grid; place-items: center; text-align: center; transform: rotate(12deg); }
.book__sub { font: italic 24px/1.3 var(--serif); color: var(--ink-2); }
.praise { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0 32px; }
.praise blockquote { margin: 0; padding-left: 16px; border-left: 3px solid var(--red); }
.praise p { font: italic 20px/1.35 var(--serif); margin-bottom: 6px; }
.praise cite { font: 500 13px var(--sans); font-style: normal; color: var(--muted); }

/* Newsletter */
.newsletter { padding-block: var(--section); }
.newsletter__card { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; background: var(--mark); padding: clamp(32px, 5vw, 64px); border: 2px solid var(--ink); box-shadow: 12px 12px 0 var(--ink); }
.newsletter__card .eyebrow { color: var(--ink); }
.newsletter__card h2 { font-size: clamp(44px, 5.5vw, 72px); }
.newsletter__card p { font-size: 20px; }
.newsletter__last { font: 15px var(--sans) !important; margin-top: 16px; color: var(--ink-2); }

/* Essay page */
.essay__head { max-width: 860px; text-align: center; padding-top: clamp(48px, 7vw, 88px); }
.essay__head h1 { font-size: clamp(42px, 6vw, 76px); font-weight: 700; letter-spacing: -0.035em; }
.essay__dek { font: italic 24px/1.4 var(--serif); color: var(--ink-2); }
.essay__by { font: 500 15px var(--sans); color: var(--muted); }
.essay__img { max-width: 1100px; margin: 40px auto; padding-inline: var(--gutter); }
.essay__img img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.essay__body { max-width: 680px; margin-inline: auto; }
.prose { font-size: 21px; line-height: 1.7; }
.prose > p:first-child::first-letter { float: left; font: 700 84px/.8 var(--serif); margin: 8px 12px 0 0; color: var(--red); }
.prose h2 { font-size: 34px; margin: 1.6em 0 .5em; }
.prose blockquote { margin: 1.6em -40px; padding: 0; font: italic 600 32px/1.25 var(--serif); text-align: center; color: var(--ink); }
.prose blockquote p::before, .prose blockquote p::after { color: var(--red); }
.prose blockquote p::before { content: "“"; }
.prose blockquote p::after { content: "”"; }
.prose .lead { font-size: 26px; line-height: 1.45; }
.author-box { max-width: 680px; margin: 56px auto 0; padding: 28px 0; border-block: 2px solid var(--ink); display: flex; gap: 20px; align-items: center; }
.author-box img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.author-box strong { font: 700 20px var(--serif); }
.author-box p { margin: 4px 0 6px; font-size: 16px; color: var(--ink-2); }
.author-box a { font: 600 15px var(--sans); color: var(--red); text-decoration: none; }
.more__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.more__item { text-decoration: none; }
.more__item img { aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 12px; }
.more__item span { font: 600 22px/1.2 var(--serif); }
.archive-head { margin-bottom: 32px; }
.archive-head h1 { font-size: clamp(44px, 6vw, 76px); }
.essay-list--full a { grid-template-columns: 70px 1fr 100px 88px; }
.page-content { padding-block: clamp(48px, 7vw, 96px); }
.page-content h1 { font-size: clamp(44px, 6vw, 76px); }
.page-content .prose > p:first-child::first-letter { float: none; font: inherit; margin: 0; color: inherit; }

/* Footer */
.site-footer { background: var(--ink); color: #c9c2b6; padding-block: 64px 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid #34312d; }
.brand--lg { font-size: clamp(48px, 7vw, 96px); color: var(--paper); }
.footer-top p { max-width: 360px; font-style: italic; margin: 0; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; font: 14px var(--sans); }
.footer-row ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-row a { text-decoration: none; color: var(--paper); }

@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; margin-left: auto; }
	.site-header .btn--sm { display: none; }
	.primary-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 2px solid var(--ink); display: none; margin: 0; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
	.primary-nav a { display: block; padding: 12px 0; font-size: 18px; }
	.intro__grid, .book__grid, .newsletter__card, .essays__grid { grid-template-columns: 1fr; }
	.intro__photo { max-width: 460px; }
	.essays__side { position: static; }
	.start__grid, .more__grid { grid-template-columns: 1fr; }
	.essay-list a, .essay-list--full a { grid-template-columns: 1fr 72px; }
	.essay-list__date, .essay-list__meta { display: none; }
	.essay-list__thumb img { width: 72px; height: 72px; }
	.praise { grid-template-columns: 1fr; }
	.prose blockquote { margin-inline: 0; }
}
@media (max-width: 560px) {
	.signup { flex-direction: column; }
	.intro__photo figcaption { left: 8px; }
}
