:root {
  --bg: #f6f6f4;
  --card: #ffffff;
  --ink: #16161a;
  --ink-2: #55555c;
  --muted: #9a9aa1;
  --line: #e9e9ec;
  --red: #e0301e;
  --red-dark: #c4250f;
  --red-soft: #fdecea;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(22, 22, 26, .04), 0 8px 24px -12px rgba(22, 22, 26, .12);
  --shadow-up: 0 1px 2px rgba(22, 22, 26, .05), 0 18px 36px -14px rgba(22, 22, 26, .2);
  --ease: cubic-bezier(.22, .8, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--red); color: #fff; }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* top bar */
.top { display: flex; align-items: center; gap: 36px; padding-top: 34px; padding-bottom: 30px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 22px/1 var(--serif); letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.top nav { display: flex; gap: 26px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
.top .elsewhere { margin-left: auto; display: flex; gap: 8px; }
.top .elsewhere a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--ink-2); transition: background .2s, color .2s; }
.top .elsewhere a:hover { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.top .elsewhere svg { width: 17px; height: 17px; }

/* first screen: who I am + the signup */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; align-items: center; padding: 40px 0 72px; }
.me { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-size: 14.5px; color: var(--ink-2); }
.me img { width: 40px; height: 40px; border-radius: 10px; }
.me b { display: block; color: var(--ink); font-size: 16px; }
.hero h1 { margin: 0 0 18px; font: 400 clamp(30px, 4.2vw, 50px)/1.12 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.hero h1 em { color: var(--red); }
.hero .lead { margin: 0 0 26px; max-width: 34em; font-size: 18px; color: var(--ink-2); }
.hero form.nl { max-width: 520px; }
.hero .nl input[type=email], .hero .nl button { height: 54px; font-size: 16.5px; }
.hero .nl button { padding: 0 24px; }
.hero .msg { max-width: 520px; }
.gets { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--ink-2); }
.gets li { display: flex; align-items: center; gap: 8px; }
.gets li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* the bonus: two stacked covers */
.bonus { position: relative; height: 430px; }
.bonus .report { position: absolute; width: 270px; min-height: 360px; }
.bonus .report.light { right: 0; top: 0; transform: rotate(4deg); }
.bonus .report.red { left: 10px; top: 46px; transform: rotate(-3deg); z-index: 1; }
.bonus .report.red:hover { transform: rotate(-1deg) translateY(-6px); }
.bonus .report.light h4 { visibility: hidden; }
.bonus .tag { position: absolute; z-index: 2; left: 0; bottom: 0; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-up); }

/* notes as a grid of cards, cover on top */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 20px; }
.section-head h2 { margin: 0; font: 700 30px/1.1 var(--serif); letter-spacing: -.03em; }
.section-head a { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.section-head a:hover { color: var(--red); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { display: flex; flex-direction: column; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.card .cover { height: 190px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #f1f1ef; }
.card .cover.red { background: var(--red); }
.card .body { padding: 20px 22px 22px; }
.card h3 { margin: 0 0 6px; font: 600 20px/1.3 var(--sans); letter-spacing: -.01em; transition: color .2s; }
.card:hover h3 { color: var(--red); }
.card p { margin: 0 0 12px; font-size: 15.5px; color: var(--ink-2); }
.card .when { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* the little illustration is drawn at 168x104 and scaled into the cover */
.cover .art { position: absolute; left: 50%; top: 50%; width: 168px; height: 104px; transform: translate(-50%, -50%) scale(1.55); }
.cover .art.win { background: #fff; border-radius: 6px; box-shadow: 0 0 0 1px var(--line), 0 6px 16px -8px rgba(22, 22, 26, .25); overflow: hidden; }

/* closing signup */
.again { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 32px; align-items: center; margin-top: 64px; padding: 34px 36px; background: var(--ink); color: #fff; border-radius: 12px; }
.again h2 { margin: 0 0 6px; font: 400 30px/1.15 var(--serif); letter-spacing: -.02em; }
.again p { margin: 0; color: rgba(255, 255, 255, .65); }
.again .nl input[type=email] { border-color: transparent; }
.again .msg.ok { background: rgba(255, 255, 255, .1); color: #fff; }

/* small covers: little product-like illustrations, drawn in HTML */
.cover { position: relative; height: 104px; border-radius: 6px; overflow: hidden; background: #fbfbfa; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.cover.red { background: var(--red); border-color: var(--red); }
.cover .chrome { display: flex; gap: 4px; padding: 7px 8px; border-bottom: 1px solid var(--line); background: #fff; }
.cover .chrome i { width: 5px; height: 5px; border-radius: 50%; background: #ddd; }
.cover .rows { padding: 7px 9px; display: grid; gap: 5px; }
.cover .row { display: flex; align-items: center; gap: 6px; font-size: 9.5px; color: var(--ink-2); }
.cover .row b { width: 11px; height: 11px; border-radius: 50%; display: grid; place-items: center; font-size: 7.5px; color: #fff; background: #2e9d63; flex: none; }
.cover .row b.no { background: var(--red); }
.cover .row span { flex: 1; height: 4px; border-radius: 2px; background: #ececee; }
.cover .chips { display: flex; flex-wrap: wrap; gap: 5px; padding: 12px; }
.cover .chips span { padding: 3px 7px; border-radius: 999px; font-size: 9.5px; font-weight: 600; background: rgba(255, 255, 255, .18); color: #fff; }
.cover .chips span.off { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); color: rgba(255, 255, 255, .75); }
.cover svg.full { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover .days { position: absolute; left: 12px; right: 12px; bottom: 16px; display: flex; justify-content: space-between; font-size: 9px; font-weight: 600; color: var(--muted); }

/* bonus cover */
.report { position: relative; display: flex; flex-direction: column; min-height: 340px; padding: 22px 20px 20px; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-up); transition: transform .35s var(--ease); }
.report:hover { transform: translateY(-4px) rotate(-.4deg); }
.report.red { background: linear-gradient(160deg, #ef4b33, #d82a17 70%); color: #fff; }
.report.light { background: linear-gradient(160deg, #ffffff, #f1f1f3); border: 1px solid var(--line); }
.report .brand { font: 700 12.5px/1 var(--serif); letter-spacing: -.01em; opacity: .85; }
.report.light .brand { color: var(--red); opacity: 1; }
.report h4 { margin: 14px 0 18px; font: 600 21px/1.22 var(--sans); letter-spacing: -.015em; }
.report .mini { display: grid; gap: 7px; margin-top: auto; margin-bottom: 18px; }
.report .mini div { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 6px; font-size: 11.5px; }
.report.red .mini div { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.report.light .mini div { background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.report .mini i { width: 14px; height: 14px; border-radius: 4px; flex: none; background: rgba(255, 255, 255, .5); }
.report.light .mini i { background: var(--red-soft); box-shadow: inset 0 0 0 1px #f6c9c3; }
.report .by { font-size: 11.5px; opacity: .75; }
.report .by b { display: block; font-size: 13px; opacity: 1; font-weight: 600; }

.subscribe { padding: 26px 26px 24px; }
.subscribe h2 { margin: 0 0 6px; font: 600 20px/1.3 var(--sans); letter-spacing: -.01em; }
.subscribe p { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }
form.nl { display: flex; gap: 8px; }
.nl input[type=email] { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid #dcdce0; border-radius: 6px; background: #fff; font: 400 15.5px var(--sans); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.nl input[type=email]:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22, 22, 26, .08); }
.nl button { height: 46px; padding: 0 18px; border: 0; border-radius: 6px; background: var(--red); color: #fff; font: 600 14.5px var(--sans); cursor: pointer; white-space: nowrap; transition: background .2s, transform .2s var(--ease); }
.nl button:hover { background: var(--red-dark); }
.nl button:active { transform: translateY(1px); }
.nl button:disabled { opacity: .6; cursor: default; }
.fine { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.msg { margin: 0; font-size: 15px; }
.msg:empty { display: none; }
.msg.ok { padding: 14px 16px; border-radius: 6px; background: var(--red-soft); color: var(--ink); }
.msg.err { margin-top: 10px; color: var(--red); }

.links { display: grid; gap: 2px; padding: 0 6px; }
.links a { display: flex; align-items: center; gap: 12px; padding: 7px 6px; border-radius: 6px; font-size: 15px; color: var(--ink-2); }
.links a:hover { color: var(--ink); background: rgba(22, 22, 26, .04); }
.links svg { width: 16px; height: 16px; color: var(--muted); }
.links small { margin-left: auto; font-size: 12px; color: var(--muted); }

/* blog index */
.page-head { margin: 10px 0 34px; }
.page-head h1 { margin: 0 0 8px; font: 700 clamp(40px, 6vw, 60px)/1 var(--serif); letter-spacing: -.04em; }
.page-head p { margin: 0; font-size: 18px; color: var(--ink-2); }

/* article */
.article { max-width: 760px; margin: 0 auto; padding: 48px 56px 44px; }
.article .when { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.article h1 { margin: 12px 0 16px; font: 700 clamp(34px, 5vw, 50px)/1.08 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
.article .dek { margin: 0 0 30px; font-size: 19px; color: var(--ink-2); }
.article .by { display: flex; align-items: center; gap: 10px; padding: 16px 0; margin-bottom: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.article .by img { width: 30px; height: 30px; border-radius: 6px; }
.prose { font: 400 19px/1.7 var(--serif); }
.prose p { margin: 0 0 1.1em; }
.prose h2 { margin: 1.8em 0 .45em; font: 600 24px/1.3 var(--sans); letter-spacing: -.015em; }
.prose ul { margin: 0 0 1.1em; padding-left: 1.2em; }
.prose li { margin: 0 0 .35em; }
.prose li::marker { color: var(--red); }
.prose code { font: 400 .78em ui-monospace, Menlo, monospace; background: #f2f2f4; padding: 2px 6px; border-radius: 4px; }
.prose blockquote { margin: 1.5em 0; padding: 16px 20px; border-radius: 6px; background: var(--red-soft); font-style: italic; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font: 400 15px/1.45 var(--sans); }
.prose th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); }
.prose td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose td:first-child { font-weight: 600; white-space: nowrap; }
.sign { color: var(--ink-2); }
.after { max-width: 760px; margin: 24px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.next { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 22px 24px; transition: transform .3s var(--ease), box-shadow .3s; }
.next:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
.next span { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.next strong { font-size: 17px; font-weight: 600; line-height: 1.35; }

/* footer */
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 72px; padding-top: 24px; padding-bottom: 40px; font-size: 13px; color: var(--muted); }
.foot a + a { margin-left: 18px; }
.foot a:hover { color: var(--ink); }

/* entrance, only once frames actually run (see head script) */
.anim .rise { animation: rise .7s var(--ease) backwards; }
.anim .d1 { animation-delay: .06s; }
.anim .d2 { animation-delay: .14s; }
.anim .d3 { animation-delay: .22s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-bottom: 56px; }
  .bonus { height: 400px; max-width: 420px; }
  .again { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top { gap: 18px; padding-top: 22px; padding-bottom: 18px; }
  .top nav { gap: 16px; }
  .top .elsewhere a { width: 32px; height: 32px; }
  .hero { padding: 14px 0 44px; gap: 30px; }
  .me { margin-bottom: 16px; }
  .hero h1 { font-size: 30px; margin-bottom: 12px; }
  .hero .lead { font-size: 16.5px; margin-bottom: 20px; }
  .gets { margin-top: 18px; gap: 6px 16px; font-size: 13.5px; }
  .bonus { height: 330px; }
  .bonus .report { width: 210px; min-height: 280px; padding: 18px 16px 16px; }
  .bonus .report h4 { font-size: 17px; }
  .bonus .report.red { left: 0; top: 34px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card .cover { height: 150px; }
  .cover .art { transform: translate(-50%, -50%) scale(1.25); }
  .again { margin-top: 44px; padding: 24px 18px; }
  .again h2 { font-size: 25px; }
  form.nl { flex-direction: column; }
  .nl input[type=email] { flex: none; width: 100%; }
  .article { padding: 28px 20px 26px; }
  .prose { font-size: 18px; }
  .prose h2 { font-size: 21px; }
  .after { grid-template-columns: 1fr; }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; }
  .prose thead { display: none; }
  .prose tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .prose td { border: 0; padding: 1px 0; white-space: normal; }
  .prose td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) {
  .anim .rise { animation: none; }
  .card, .report, .next { transition: none; }
}

/* header button, sections, guides, stack, tools */
.top .elsewhere a.sub-btn { width: auto; display: inline-flex; align-items: center; height: 36px; margin-left: 6px; padding: 0 14px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; transition: background .2s; }
.top .elsewhere a.sub-btn:hover { background: var(--red); }
.block { margin-top: 72px; }
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guides .report { min-height: 320px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card.tool:hover { transform: none; box-shadow: var(--shadow); }
.card.tool:hover h3 { color: inherit; }
.card.tool .cover { height: 150px; }
.card.tool .cover .art { transform: translate(-50%, -50%) scale(1.25); }
.badge { display: inline-block; margin-bottom: 10px; padding: 3px 9px; border-radius: 999px; background: var(--red-soft); color: var(--red-dark); font-size: 12px; font-weight: 600; }
.stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stack-group h3 { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tiles { display: grid; gap: 10px; }
.tile { display: flex; align-items: flex-start; gap: 14px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.tile .ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: #f1f1ef; font: 700 17px/1 var(--serif); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.tile b { display: block; font-size: 15.5px; font-weight: 600; }
.tile small { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 960px) {
  .guides, .cards.three, .stack { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .top { flex-wrap: wrap; row-gap: 14px; }
  .logo { font-size: 17px; gap: 8px; }
  .logo img { width: 26px; height: 26px; border-radius: 7px; }
  .top .elsewhere a.sub-btn { height: 34px; padding: 0 12px; font-size: 13px; }
  .top nav { order: 3; width: 100%; gap: 22px; padding-top: 12px; border-top: 1px solid var(--line); }
  .top .elsewhere a:not(.sub-btn) { display: none; }
  .block { margin-top: 52px; }
  .section-head h2 { font-size: 25px; }
  .guides, .cards.three, .stack { grid-template-columns: 1fr; gap: 14px; }
  .guides .report { min-height: 0; }
  .guides .report .mini { margin-top: 0; }
}

/* about me: one paragraph and the hats I've worn */
.about { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: start; padding: 36px 40px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.about h2 { margin: 0 0 14px; font: 700 30px/1.1 var(--serif); letter-spacing: -.03em; }
.about p { margin: 0 0 12px; font: 400 18.5px/1.6 var(--serif); color: var(--ink); }
.about p + p { color: var(--ink-2); }
.hats { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.hats li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.hats b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.hats li { text-align: right; }
@media (max-width: 960px) { .about { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 640px) {
  .about { padding: 24px 18px; }
  .about h2 { font-size: 25px; }
  .about p { font-size: 17px; }
  .hats li { flex-direction: column; gap: 2px; text-align: left; }
}

/* who it's for: right above the signup */
.hero p.for { margin: -8px 0 18px; max-width: 34em; padding-left: 12px; border-left: 2px solid var(--red); font-size: 15.5px; font-weight: 500; color: var(--ink); }
@media (max-width: 640px) { .hero p.for { margin: -6px 0 16px; font-size: 14.5px; } }
