/* =========================================================================
   books.hamcodes.com
   Two colours: maroon and off-white. The room is maroon from the header to
   the footer, the covers drift through it, and the blog is the one page of
   paper. Type follows Bro 2 Bro: Fraunces to say it, Newsreader to read it,
   IBM Plex Mono for every label.
   ========================================================================= */

:root {
  /* the room */
  --ink-0:    #100409;
  --ink-1:    #1a0710;
  --maroon:   #43101f;
  --maroon-2: #6b1526;
  --red:      #c0384a;
  --rose:     #e0687a;
  --rose-lit: #f0a3ad;

  /* the paper */
  --paper:    #f4ebdc;
  --paper-2:  #ece0cd;
  --paper-3:  #e2d3ba;
  --ink:      #2b1a19;
  --ink-mid:  #6d5348;
  --ink-thin: rgba(43, 26, 25, .14);

  /* paper on the dark room */
  --on-dark:      #f4ebdc;
  --on-dark-mute: rgba(244, 235, 220, .70);
  --on-dark-faint:rgba(244, 235, 220, .46);
  --on-dark-line: rgba(244, 235, 220, .14);

  --lift:     0 34px 70px -28px rgba(0, 0, 0, .85), 0 6px 18px -8px rgba(0, 0, 0, .6);
  --lift-sm:  0 18px 40px -22px rgba(0, 0, 0, .8);
  --glow:     0 0 40px -6px rgba(224, 104, 122, .45);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Newsreader", Georgia, serif;
  --mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  --t-body:  clamp(16px, 1.05vw + 13px, 19px);
  --t-mono:  clamp(10px, .4vw + 9px, 12px);

  --radius:    10px;
  --radius-sm: 6px;
  --maxw:      1140px;
  --bar-h:     62px;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Sideways is not a direction on this site. Without this a diagonal swipe
     on a phone rubber-bands the whole page left and right while you are
     trying to scroll down, which reads as the page wobbling. `clip` is the
     one to use rather than `hidden`: hidden would turn the element into a
     scroll container and break the sticky header. The `hidden` line before
     it is the fallback for browsers that predate `clip`. */
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
  scroll-padding-top: calc(var(--bar-h) + 16px);
}

body {
  margin: 0;
  background: var(--ink-0);
  color: var(--on-dark);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.62;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(192, 56, 74, .38); color: #fff; }

img { max-width: 100%; display: block; }

/* -------------------------------------------------------------------------
   The room: a fixed maroon glow, the drifting covers, grain on top
   ------------------------------------------------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: -10vh -10vw;
  z-index: -3;
  background:
    radial-gradient(70% 48% at 50% 0%,  rgba(150, 30, 55, .40) 0%, transparent 62%),
    radial-gradient(52% 42% at 84% 22%, rgba(105, 21, 38, .34) 0%, transparent 60%),
    radial-gradient(60% 50% at 12% 70%, rgba(67, 16, 31, .42) 0%, transparent 64%),
    linear-gradient(180deg, var(--ink-1) 0%, var(--ink-0) 55%, #0b0307 100%);
}

/* vignette, so the middle of the page is always the brightest thing */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(120% 80% at 50% 45%, transparent 38%, rgba(6, 2, 4, .74) 100%);
}

/* the covers, drifting. bg.js fills this. */
#drift {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.cover-ghost {
  position: absolute;
  width: var(--w, 170px);
  aspect-ratio: var(--ar, 3 / 4);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: var(--op, .16);
  /* every cover is pulled onto the one maroon, then pushed back behind the
     page: the art should be felt as paper moving, never read as a cover */
  /* the art is transparent now, so depth comes from drop-shadow: a
     box-shadow would print the rectangle of the box behind each cover */
  filter: grayscale(1) sepia(1) saturate(7) hue-rotate(-38deg)
          brightness(.34) contrast(1.3) blur(2px)
          drop-shadow(0 30px 50px rgba(0, 0, 0, .8));
  transform: translate3d(0, 0, 0) rotate(var(--rot, 0deg));
  will-change: transform;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: .28;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* -------------------------------------------------------------------------
   Shared furniture
   ------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; padding: clamp(66px, 9vw, 122px) 0; }
.center { text-align: center; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.018em;
  margin: 0 0 .38em;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.6rem, 7.4vw, 5.4rem); font-weight: 600; letter-spacing: -.028em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p  { margin: 0 0 1.05rem; }
a  { color: var(--rose); }

.label {
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rose);
  display: inline-block;
  margin-bottom: 1.35rem;
}
.label.mute { color: var(--on-dark-faint); }

.lead {
  font-size: clamp(1.06rem, 1.5vw, 1.28rem);
  color: var(--on-dark-mute);
  max-width: 58ch;
  line-height: 1.66;
}
.center .lead { margin-left: auto; margin-right: auto; }

.sec-head { max-width: 760px; }
.sec-head.center { margin: 0 auto 8px; }

.rule-note {
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}

/* -------------------------------------------------------------------------
   Buttons. Off-white is the loud one, ghost is the quiet one.
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--mono);
  font-size: clamp(11px, .38vw + 9.6px, 13px);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.08em 1.9em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1;
  transition: opacity .18s ease, transform .18s ease, background-color .18s ease,
              color .18s ease, border-color .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn .ic { width: 1.25em; height: 1.25em; fill: currentColor; flex: 0 0 auto; }

.btn-paper {
  background: var(--paper);
  color: #1b0810;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .9);
}
.btn-paper:hover { background: #fff; transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(244, 235, 220, .34);
}
.btn-ghost:hover { border-color: var(--rose); color: var(--rose-lit); transform: translateY(-2px); }

/* the one on the paper section */
.btn-maroon {
  background: var(--maroon-2);
  color: var(--paper);
  box-shadow: 0 16px 34px -18px rgba(107, 21, 38, .8);
}
.btn-maroon:hover { background: var(--maroon); transform: translateY(-2px); }

.btn:active { transform: translateY(0) scale(.985); opacity: .7; }

/* -------------------------------------------------------------------------
   Header. Words, not buttons. They dim on hover and on the way down.
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 4, 9, .72);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.site-header.is-stuck {
  background: rgba(16, 4, 9, .92);
  border-bottom-color: var(--on-dark-line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  min-height: var(--bar-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  text-decoration: none;
  color: var(--on-dark);
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  flex: 0 0 auto;
  transition: opacity .18s ease;
}
.brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  /* the mark carries the same glow the favicon does */
  box-shadow: 0 0 0 1px rgba(255, 159, 174, .4), 0 0 18px -2px rgba(224, 104, 122, .75);
}
.brand b { font-weight: 500; color: var(--rose); }
.brand:hover { opacity: .55; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 1.9vw, 1.9rem);
  margin-left: auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-dark);
  white-space: nowrap;
  padding: .35rem 0;
  opacity: .82;
  transition: opacity .18s ease, color .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.nav-links a:hover,
.nav-links a:focus-visible { opacity: .38; }
.nav-links a:active { opacity: .28; }
.nav-links a.out::after { content: " \2197"; color: var(--rose); }

@media (max-width: 900px) {
  /* block only: a padding shorthand here would wipe .wrap's side gutter and
     put the bar flush against the edge of the screen */
  .nav { flex-wrap: wrap; row-gap: .1rem; padding-top: .55rem; padding-bottom: .45rem; }
  .brand { flex: 1 1 auto; }
  .nav-links {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 1.05rem;
    padding-top: .5rem;
    border-top: 1px solid var(--on-dark-line);
    -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent);
            mask-image: linear-gradient(90deg, #000 90%, transparent);
  }
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  padding-top: clamp(64px, 10vw, 128px);
  padding-bottom: clamp(56px, 8vw, 96px);
  text-align: center;
}
.hero h1 {
  max-width: 16ch;
  margin: 0 auto .5rem;
  color: #fff;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--rose-lit);
}
.hero .lead {
  max-width: 52ch;
  margin: 0 auto 2.2rem;
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  justify-content: center;
  margin-bottom: 2.6rem;
}
.hero-meta {
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.1rem;
  justify-content: center;
}
.hero-meta span::before { content: "\00b7\00a0\00a0"; color: rgba(224, 104, 122, .6); }
.hero-meta span:first-child::before { content: none; }

/* Ham, under the words. The covers live in their own sections now, so the
   hero ends on the mascot rather than on a shelf of four books. */
.hero-bot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: clamp(38px, 5vw, 62px);
  padding-bottom: 26px;
}
.hero-bot img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: clamp(200px, 26vw, 310px);
  height: auto;
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .6));
  animation: bot-walk 2.9s ease-in-out infinite;
  transform-origin: 50% 92%;
}
/* the maroon he stands in */
.hero-bot::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 4%;
  width: clamp(280px, 34vw, 440px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 56, 74, .30) 0%, rgba(107, 21, 38, .14) 44%, transparent 70%);
  filter: blur(12px);
}
.bot-floor {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 14px;
  width: clamp(120px, 16vw, 190px);
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0) 70%);
  transform: translateX(-50%);
  animation: bot-floor 2.9s ease-in-out infinite;
}
.bot-say {
  position: absolute;
  z-index: 3;
  top: 6px;
  left: 50%;
  margin-left: clamp(-190px, -17vw, -130px);
  white-space: nowrap;
  background: var(--paper);
  color: #1b0810;
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: .06em;
  padding: .7em 1em;
  border-radius: 8px;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .8);
  animation: bot-walk 2.9s ease-in-out infinite;
}
.bot-say::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -6px;
  border: 7px solid transparent;
  border-top-color: var(--paper);
  border-bottom: 0;
}
@keyframes bot-walk {
  0%, 100% { transform: translateY(0) rotate(-1.6deg); }
  25%      { transform: translateY(-12px) rotate(0deg); }
  50%      { transform: translateY(0) rotate(1.6deg); }
  75%      { transform: translateY(-12px) rotate(0deg); }
}
@keyframes bot-floor {
  0%, 50%, 100% { transform: translateX(-50%) scaleX(1);   opacity: .52; }
  25%, 75%      { transform: translateX(-50%) scaleX(.76); opacity: .26; }
}
@media (max-width: 640px) {
  .bot-say { left: 4%; margin-left: 0; font-size: 10px; }
}

/* -------------------------------------------------------------------------
   One section per book
   ------------------------------------------------------------------------- */
.book {
  padding: clamp(60px, 8vw, 108px) 0;
  border-top: 1px solid var(--on-dark-line);
}
.book-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
}
.book.flip .book-art { order: 2; }
/* a book section that has no cover yet: the text takes the whole row */
.book.no-art .book-grid { grid-template-columns: minmax(0, 1fr); }
.book.no-art .book-info { max-width: 62ch; }
.book-points b { color: #fff; font-weight: 600; }
/* the row of role cards under the game text */
.hits-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  margin-top: clamp(28px, 4vw, 44px);
  padding-bottom: 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.hits-strip img {
  flex: 0 0 auto;
  height: clamp(190px, 24vw, 280px);
  width: auto;
  border-radius: 8px;
  border: 1px solid var(--on-dark-line);
  scroll-snap-align: start;
}

.book-art {
  position: relative;
  display: flex;
  justify-content: center;
}
/* The cover art is a transparent PNG that carries its own soft shadow, so
   depth here is drop-shadow, which follows the book's silhouette. A
   box-shadow would draw the rectangle of the image box instead. */
.book-art img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 290px;
  height: auto;
  filter:
    drop-shadow(0 34px 44px rgba(0, 0, 0, .62))
    drop-shadow(0 6px 14px rgba(0, 0, 0, .45));
  animation: float 9s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
/* the maroon it floats over */
.book-art::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 46%;
  width: 118%;
  padding-bottom: 118%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(150, 30, 55, .42) 0%, rgba(107, 21, 38, .16) 42%, transparent 68%);
  filter: blur(14px);
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-.4deg); }
  50%      { transform: translateY(-16px) rotate(.4deg); }
}

.book-no {
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--rose);
  display: block;
  margin-bottom: 1.1rem;
}
.book-info h2 {
  color: #fff;
  margin-bottom: .18em;
}
.book-sub {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  color: var(--rose-lit);
  display: block;
  margin-bottom: 1.1rem;
}
.book-info p { color: var(--on-dark-mute); max-width: 46ch; }
.book-points {
  list-style: none;
  margin: 1.3rem 0 1.8rem;
  padding: 0;
  display: grid;
  gap: .55rem;
  max-width: 46ch;
}
.book-points li {
  display: flex;
  gap: .7rem;
  align-items: baseline;
  color: var(--on-dark-mute);
  font-size: .98rem;
}
.book-points li::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-top: .45em;
  border-radius: 50%;
  background: var(--rose);
}
.book-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.6rem;
}
.tag {
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .55em .95em;
  border-radius: 999px;
  color: var(--rose-lit);
  background: rgba(192, 56, 74, .13);
  border: 1px solid rgba(224, 104, 122, .28);
}

@media (max-width: 820px) {
  .book-grid { grid-template-columns: 1fr; gap: 34px; }
  .book.flip .book-art { order: 0; }
  .book-art img { max-width: 240px; }
  .book-info p, .book-points { max-width: none; }
}

/* -------------------------------------------------------------------------
   The free workbook
   ------------------------------------------------------------------------- */
.workbook { border-top: 1px solid var(--on-dark-line); }
.wb-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
  margin-top: 46px;
}
.wb-art { position: relative; }
.wb-art > img {
  width: 100%;
  max-width: 330px;
  border-radius: 4px;
  box-shadow: var(--lift);
}
.wb-peek {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(224, 104, 122, .5) transparent;
}
.wb-peek img {
  height: 136px;
  width: auto;
  flex: 0 0 auto;
  border-radius: 4px;
  scroll-snap-align: start;
  box-shadow: var(--lift-sm);
  border: 1px solid var(--on-dark-line);
}
.wb-peek::-webkit-scrollbar { height: 6px; }
.wb-peek::-webkit-scrollbar-thumb { background: rgba(224, 104, 122, .5); border-radius: 999px; }

.wb-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
  display: grid;
  gap: .5rem;
}
.wb-list li {
  display: flex;
  gap: .7rem;
  align-items: baseline;
  color: var(--on-dark-mute);
  font-size: .98rem;
}
.wb-list li::before {
  content: "\2014";
  color: var(--rose);
  flex: 0 0 auto;
}

.gate {
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(67, 16, 31, .3);
  backdrop-filter: blur(4px);
}
.gate label {
  display: block;
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  margin-bottom: .7rem;
}
.gate input[type=email] {
  width: 100%;
  padding: .95em 1.1em;
  border-radius: 8px;
  border: 1px solid rgba(244, 235, 220, .22);
  background: rgba(16, 4, 9, .5);
  color: var(--on-dark);
  font-family: var(--body);
  font-size: 1.02rem;
  margin-bottom: .9rem;
  transition: border-color .18s ease;
}
.gate input[type=email]::placeholder { color: rgba(244, 235, 220, .34); }
.gate input[type=email]:focus { outline: none; border-color: var(--rose); }
.gate .btn { width: 100%; justify-content: center; }
.gate small {
  display: block;
  margin-top: .85rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}
.gate-done {
  display: none;
  margin-bottom: 1rem;
  padding: .8rem 1rem;
  border-radius: 8px;
  background: rgba(192, 56, 74, .18);
  border: 1px solid rgba(224, 104, 122, .34);
  color: var(--rose-lit);
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
}
.gate-done.show { display: block; }
.dl-rows { display: none; }
.dl-rows.show { display: block; animation: rise .4s ease; }
.dl-rows .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .72rem 0;
  border-bottom: 1px solid var(--on-dark-line);
  font-size: .96rem;
}
.dl-rows .row:last-child { border-bottom: none; }
.dl-rows a {
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--rose);
  white-space: nowrap;
  transition: opacity .18s ease;
}
.dl-rows a:hover { opacity: .5; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 820px) { .wb-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------
   Bro 2 Bro
   ------------------------------------------------------------------------- */
.puzzle-teaser { padding: 0 0 clamp(44px, 6vw, 80px); }
.bro { border-top: 1px solid var(--on-dark-line); }
.bro-grid {
  display: grid;
  gap: clamp(30px, 4vw, 58px);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 920px) { .bro-grid { grid-template-columns: 1fr 1.12fr; } }

.bro-points { list-style: none; margin: 1.3rem 0 1.9rem; padding: 0; display: grid; gap: .5rem; }
.bro-points li {
  display: flex;
  gap: .7rem;
  align-items: baseline;
  color: var(--on-dark-mute);
  font-size: .98rem;
}
.bro-points li::before { content: "\2014"; color: var(--rose); }

.bro-frame {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #150610;
  box-shadow: var(--lift), inset 0 0 0 1px var(--on-dark-line);
  transform: rotate(-.6deg);
  transition: transform .35s ease, box-shadow .35s ease;
}
.bro-frame:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 0 50px 90px -28px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(224, 104, 122, .4);
}
.bro-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: rgba(244, 235, 220, .06);
  border-bottom: 1px solid var(--on-dark-line);
}
.bro-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(244, 235, 220, .22); }
.bro-url {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--on-dark-faint);
}

/* -------------------------------------------------------------------------
   Mentorship
   ------------------------------------------------------------------------- */
.mentor { border-top: 1px solid var(--on-dark-line); }
.mentor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 66px);
  align-items: center;
}
.mentor-features { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 1.25rem; }
.mentor-features li { display: flex; gap: .95rem; align-items: flex-start; }
.mentor-features .n {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: .1em;
  color: var(--rose);
  padding-top: .35em;
}
.mentor-features b {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: .1em;
}
.mentor-features span:last-child { color: var(--on-dark-mute); font-size: .97rem; }

.mentor-card {
  border: 1px solid rgba(224, 104, 122, .28);
  border-radius: var(--radius);
  padding: 34px;
  text-align: center;
  background: rgba(67, 16, 31, .34);
  backdrop-filter: blur(4px);
  box-shadow: var(--lift-sm);
}
.mentor-card h3 { color: #fff; margin-bottom: .35em; }
.mentor-card p { color: var(--on-dark-mute); font-size: 1rem; }
.mentor-card .btn { width: 100%; justify-content: center; margin-top: .4rem; }
.mentor-card .note {
  margin: 1rem 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}
.mentor-seats {
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rose);
  display: block;
  margin-bottom: 1rem;
}

.mentor-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  margin-top: clamp(40px, 6vw, 68px);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(224, 104, 122, .5) rgba(244, 235, 220, .1);
}
.mentor-strip::-webkit-scrollbar { height: 8px; }
.mentor-strip::-webkit-scrollbar-track { background: rgba(244, 235, 220, .1); border-radius: 999px; }
.mentor-strip::-webkit-scrollbar-thumb { background: rgba(224, 104, 122, .5); border-radius: 999px; }
.mentor-strip img {
  height: clamp(250px, 34vw, 380px);
  width: auto;
  flex: 0 0 auto;
  border-radius: 8px;
  scroll-snap-align: center;
  box-shadow: var(--lift-sm);
  border: 1px solid var(--on-dark-line);
}
@media (max-width: 820px) { .mentor-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------
   The blog. The one page of paper on the site.
   ------------------------------------------------------------------------- */
.blog {
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid rgba(0, 0, 0, .1);
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}
.blog h2, .blog h3 { color: var(--ink); }
.blog .lead { color: var(--ink-mid); }
.blog .label { color: var(--maroon-2); }

.blog-feed { display: grid; gap: clamp(42px, 5vw, 64px); margin-top: 46px; }
.blog-row-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink-thin);
  margin-bottom: 26px;
}
.blog-row-head .kicker {
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--maroon-2);
}
.blog-row-head h3 { margin: .35em 0 0; font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.blog-row-head .see-all {
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--maroon-2);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .18s ease;
}
.blog-row-head .see-all:hover { opacity: .5; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--ink-thin);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post:hover {
  transform: translateY(-4px);
  border-color: rgba(107, 21, 38, .45);
  box-shadow: 0 20px 40px -24px rgba(43, 26, 25, .55);
}
.post:focus-visible { outline: 2px solid var(--maroon-2); outline-offset: 3px; }
.post-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-2);
  border-bottom: 1px solid var(--ink-thin);
  position: relative;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post:hover .post-thumb img { transform: scale(1.04); }
.post-latest {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--maroon);
  color: var(--paper);
  padding: .45em .7em;
  border-radius: 3px;
}
.post-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.post-date {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.post-body b {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.24;
  letter-spacing: -.012em;
}
.post-body p {
  color: var(--ink-mid);
  font-size: .95rem;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-go {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--maroon-2);
}
.blog-foot { margin-top: clamp(38px, 5vw, 52px); text-align: center; }
.blog-foot .note {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-row-head { flex-direction: column; align-items: flex-start; gap: .6rem; }
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--on-dark-line);
  padding: clamp(48px, 6vw, 72px) 0 40px;
}
.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}
.foot-mark {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--on-dark);
  text-decoration: none;
}
.foot-mark img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 159, 174, .4), 0 0 18px -2px rgba(224, 104, 122, .7);
}
.foot-mark b { font-weight: 500; color: var(--rose); }

.foot-nav { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.foot-nav a {
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-dark);
  opacity: .8;
  transition: opacity .18s ease;
}
.foot-nav a:hover { opacity: .38; }

.foot-sites {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 2rem;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--on-dark-line);
}
.foot-sites a {
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: .12em;
  text-decoration: none;
  color: var(--rose);
  opacity: .9;
  transition: opacity .18s ease;
}
.foot-sites a:hover { opacity: .45; }
.foot-sites a[aria-current] { color: var(--on-dark); opacity: .55; }

.foot-end {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}

/* -------------------------------------------------------------------------
   Reveal on arrival. Only ever applied when JS says so.
   ------------------------------------------------------------------------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.js-reveal [data-reveal].in { opacity: 1; transform: none; }

/* the footer counter takes the room's own colours */
#visitors { --brand: var(--rose); --muted: var(--on-dark-mute); }
