/* Intelligence Intelligence's paper, ink and one red (~/Work/intelligence-intelligence/DESIGN.md),
   the new solarise.dev's Fraunces for display, and the playful part: Fraunces' wonky and soft axes,
   a seeded mark per post that spins when poked, one handwritten line. No cards; monospace only where columns have to line up, in code blocks. */
:root {
  --paper: #FFFBF2; --ink: #161514; --red: #E03131; --blue: #1971C2;
  --grey: #6F695E; --rule: #E2DACA; --wash: #F3EBDA; --hi: #F5D38C;
  --display: "Fraunces", Georgia, serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --hand: "Caveat", cursive;
  --gutter: clamp(22px, 4.4vw, 64px);
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--body); -webkit-text-size-adjust: 100%; }
body { margin: 0; }
.frame { max-width: 1320px; margin: 0 auto; padding-inline: var(--gutter); }

a { color: inherit; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
strong { font-weight: 600; padding: 0 .08em; background: linear-gradient(transparent 56%, var(--hi) 56%, var(--hi) 92%, transparent 92%); }
em { font-style: italic; }

.top { display: flex; justify-content: space-between; align-items: baseline; padding-block: 28px; }
.wordmark { font: 600 22px/1 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; text-decoration: none; letter-spacing: -.02em; }
.wordmark span { color: var(--red); }
.top nav a { font-size: 15px; color: var(--grey); text-decoration: none; margin-left: 20px; }
.top nav a:hover { color: var(--ink); }

h1, h2, h3 { font-family: var(--display); font-variation-settings: "SOFT" 50, "WONK" 1; font-weight: 600; letter-spacing: -.03em; }

/* home: a statement, then the split */
.statement { padding-block: 80px 90px; }
.statement p.big { font: 500 clamp(34px, 5.2vw, 76px)/1.02 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; letter-spacing: -.035em; margin: 0; max-width: 17ch; }
.statement .hand { font: 600 clamp(24px, 2.4vw, 32px)/1.1 var(--hand); color: var(--red); margin: 26px 0 0 clamp(0px, 18vw, 320px); transform: rotate(-2.5deg); transform-origin: left; display: inline-block; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; border-top: 1px solid var(--rule); padding-block: 0 110px; }
.split h2 { font-size: clamp(30px, 3.4vw, 50px); line-height: .98; margin: 34px 0 0; max-width: 11ch; }
.split .right { padding-top: 34px; }

.entry-list { list-style: none; margin: 0; padding: 0; }
.entry-list li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 18px 0 20px; border-bottom: 1px solid var(--rule); }
.entry-list li:first-child { padding-top: 0; }
.entry-list a.t { font: 600 clamp(22px, 2vw, 28px)/1.12 var(--display); font-variation-settings: "SOFT" 50, "WONK" 1; letter-spacing: -.02em; text-decoration: none; }
.entry-list a.t:hover { color: var(--red); }
.entry-list p { margin: 6px 0 0; max-width: 46ch; }
.meta { font-size: 14px; color: var(--grey); font-variant-numeric: tabular-nums; }
.entry-list .meta { margin-top: 6px; }

/* the seeded mark: shape and rings from the post's slug, drawn at build time */
.mark { display: block; cursor: pointer; transition: transform .7s cubic-bezier(.2, 1.4, .4, 1); }
.mark.spun { transform: rotate(var(--turn, 120deg)) scale(1.04); }
.entry-list .mark { width: 56px; height: 56px; }
@media (prefers-reduced-motion: reduce) { .mark { transition: none; } }

/* articles: one column, 68 characters */
article { max-width: 68ch; padding-block: 60px 90px; }
article header { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; margin-bottom: 40px; }
article h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1; margin: 0 0 14px; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
article header .mark { width: clamp(72px, 9vw, 112px); height: clamp(72px, 9vw, 112px); }
article h2 { font-size: 30px; line-height: 1.1; margin: 52px 0 12px; }
article h3 { font-size: 22px; margin: 36px 0 8px; }
article p, article li { max-width: 64ch; }
article p { margin: 0 0 20px; }
article ul, article ol { padding-left: 1.2em; margin: 0 0 20px; }
article li { margin-bottom: 6px; }
article blockquote { margin: 28px 0; padding: 0 0 0 22px; border-left: 3px solid var(--red); font: 500 22px/1.35 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; }
article img, article video { max-width: 100%; height: auto; display: block; margin: 28px 0 8px; border: 1px solid var(--rule); }
article figcaption { font-size: 14px; color: var(--grey); margin-bottom: 28px; }
code { font: 500 .88em/1.4 var(--body); background: var(--wash); padding: .08em .3em; }
pre { font-family: "IBM Plex Mono", ui-monospace, monospace; background: var(--ink); color: var(--paper); padding: 18px 20px; overflow-x: auto; margin: 0 0 24px; font-size: 15px; line-height: 1.55; }
pre code { font: inherit; background: none; padding: 0; color: inherit; white-space: pre; }
table { border-collapse: collapse; margin: 8px 0 28px; font-size: 16px; width: 100%; }
th, td { text-align: left; padding: 8px 14px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 500; color: var(--grey); font-size: 14px; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 40px 0; }

.draft { background: var(--red); color: var(--paper); padding: 10px var(--gutter); font-size: 15px; margin: 0; }

.foot { border-top: 1px solid var(--rule); padding-block: 34px 60px; display: flex; flex-wrap: wrap; gap: 12px 40px; font-size: 15px; color: var(--grey); }
.foot a { color: var(--grey); }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split h2 { max-width: none; }
  .statement .hand { margin-left: 0; }
}
@media (max-width: 560px) {
  .entry-list li { grid-template-columns: 40px 1fr; gap: 14px; }
  .entry-list .mark { width: 40px; height: 40px; }
  article header { grid-template-columns: 1fr; }
  article header .mark { order: -1; width: 64px; height: 64px; }
  pre { margin-inline: calc(var(--gutter) * -1); }
}
