@import url('https://fonts.googleapis.com/css2?family=Anonymous+Pro:wght@400;700&family=Unbounded:wght@400;500;600&family=Zen+Maru+Gothic:wght@400;500;600;700&display=swap');

:root {
  --ink: #303236;
  --ink-soft: #52555A;
  --paper: #F5F5F5;
  --paper-warm: #D8D6C9;
  --line: rgba(77, 79, 84, .12);
  --muted: #6F7378;
  --orange: #E85416;
  --orange-mid: #F06B33;
  --orange-light: #F68352;
  --heading: 'Unbounded', sans-serif;
  --body: 'Zen Maru Gothic', sans-serif;
  --mono: 'Anonymous Pro', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 31px,
    var(--line) 32px
  );
  font: 16px/1.55 var(--body);
}
a { color: inherit; }
.site-header, main, .site-footer { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.site-header {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: var(--paper);
  font: 600 18px var(--heading);
}
.brand-name { font: 500 13px/1.35 var(--heading); letter-spacing: -.04em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); font-size: 14px; }
.main-nav a { text-decoration: none; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--orange); }
.nav-note { color: var(--muted); font: 14px var(--mono); }
.intro { position: relative; padding: clamp(58px, 9vw, 108px) 0 clamp(58px, 8vw, 88px); }
.eyebrow { margin: 0; color: var(--muted); font: 700 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.intro .eyebrow { display: flex; align-items: center; gap: 9px; color: var(--orange); }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 820px;
  margin: 20px 0 19px;
  font: 500 clamp(42px, 7.5vw, 82px)/1.13 var(--heading);
  letter-spacing: -.065em;
}
h1 span { color: var(--orange); }
.intro-copy { max-width: 510px; margin-bottom: 28px; color: var(--ink-soft); font-size: clamp(16px, 2vw, 19px); }
.scroll-cue { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font: 700 13px var(--mono); text-decoration: none; }
.scroll-cue span { color: var(--orange); font-size: 20px; }
.library { padding-bottom: 32px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-heading h2 { margin: 9px 0 0; font: 500 clamp(25px, 4vw, 38px)/1.2 var(--heading); letter-spacing: -.055em; }
.shelf-count, .shelf-caption { color: var(--muted); font: 14px var(--mono); }
.shelf-section { margin: 0 0 34px; scroll-margin-top: 20px; }
.shelf-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.shelf-heading .eyebrow { margin-bottom: 3px; }
.shelf-index {
  display: grid; flex: 0 0 42px; height: 42px; place-items: center;
  border: 1px solid var(--ink-soft); border-radius: 50%; color: var(--orange);
  font: 700 14px var(--mono);
}
.shelf-heading h3 { margin: 0; font: 500 clamp(21px, 3vw, 28px)/1.25 var(--heading); letter-spacing: -.045em; }
.shelf-caption { margin-left: auto; align-self: end; padding-bottom: 3px; }
.bookshelf {
  position: relative;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 13px;
  padding: 8px 13px 17px;
  border-bottom: 12px solid #b7a98d;
  border-radius: 3px 3px 8px 8px;
  background: linear-gradient(180deg, rgba(216,214,201,.2), rgba(216,214,201,.06));
  box-shadow: 0 12px 18px -17px rgba(48,50,54,.75), 0 5px 0 -2px #ded8c9;
}
.book {
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 0 1 160px;
  min-width: 128px;
  min-height: 174px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 15px 14px 12px 17px;
  border-left: 5px solid rgba(255,255,255,.22);
  border-radius: 4px 7px 2px 2px;
  background: var(--book-bg);
  color: var(--book-fg);
  text-decoration: none;
  box-shadow: 4px 3px 5px rgba(48,50,54,.18), inset -7px 0 10px rgba(0,0,0,.08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.book::before {
  position: absolute; z-index: -1; top: 0; right: 10px; bottom: 0; width: 1px;
  background: rgba(255,255,255,.17); content: "";
}
.book:hover, .book:focus-visible { transform: translateY(-7px) rotate(-1deg); box-shadow: 6px 10px 10px rgba(48,50,54,.2); }
.book:focus-visible, .main-nav a:focus-visible, .scroll-cue:focus-visible { outline: 3px solid var(--orange-light); outline-offset: 4px; }
.book-top { font: 700 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .82; }
.book-title { max-width: 12ch; font: 500 16px/1.35 var(--heading); letter-spacing: -.04em; }
.book-bottom { display: flex; justify-content: space-between; align-items: center; font: 700 12px var(--mono); opacity: .82; }
.book-bottom span { font-size: 18px; }
.book-review { --book-bg: #E85416; --book-fg: #fff; }
.book-tool { --book-bg: #D8D6C9; --book-fg: #303236; }
.book-trainer { --book-bg: #303236; --book-fg: #F5F5F5; }
.book-reference { --book-bg: #6F7378; --book-fg: #fff; }
.book-quest { --book-bg: #F06B33; --book-fg: #fff; }
.future-note { display: flex; align-items: center; gap: 12px; min-height: 90px; padding: 12px 16px; color: var(--muted); font-size: 14px; }
.future-note b { color: var(--ink-soft); font-weight: 500; }
.future-plus { color: var(--orange); font-size: 25px; }
.about { display: grid; grid-template-columns: minmax(220px, .8fr) 1.6fr; gap: clamp(24px, 5vw, 64px); align-items: start; margin: 52px 0 62px; padding: 28px 0; }
.about .eyebrow { padding-top: 4px; color: var(--orange); }
.about-intro h2 { margin: 11px 0 12px; font: 500 clamp(22px, 3vw, 30px)/1.2 var(--heading); letter-spacing: -.05em; }
.about-copy { max-width: 370px; margin: 0; color: var(--ink-soft); }
.format-list { display: grid; gap: 13px; margin: 0; padding: 3px 8px 10px 0; list-style: none; }
.format-book { display: grid; grid-template-columns: minmax(135px, 180px) 1fr; align-items: center; gap: 20px; }
.format-book-spine {
  position: relative;
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 0 15px 1px 19px;
  border-left: 7px solid rgba(255,255,255,.26);
  border-radius: 4px 5px 3px 3px;
  background: linear-gradient(105deg, rgba(0,0,0,.12), transparent 32%), var(--book-spine);
  color: var(--book-title-color, #fff);
  font: 500 11px var(--heading);
  letter-spacing: .03em;
  box-shadow: 0 2px 0 #d8d6c9, 0 4px 0 #f5f5f5, 0 7px 6px rgba(48,50,54,.2), inset 0 -2px 0 rgba(0,0,0,.12);
}
.format-book-spine::before { position: absolute; top: 2px; right: 0; left: 0; height: 2px; background: rgba(255,255,255,.3); content: ""; }
.format-book:nth-child(2) .format-book-spine { width: calc(100% - 10px); margin-left: 5px; }
.format-book:nth-child(3) .format-book-spine { width: calc(100% - 4px); margin-left: 2px; }
.format-book:nth-child(4) .format-book-spine { width: calc(100% - 14px); margin-left: 7px; }
.format-book:nth-child(5) .format-book-spine { width: calc(100% - 7px); margin-left: 3px; }
.format-book--review { --book-spine: #E85416; }
.format-book--tool { --book-spine: #D8D6C9; --book-title-color: #303236; }
.format-book--trainer { --book-spine: #303236; }
.format-book--reference { --book-spine: #6F7378; }
.format-book--quest { --book-spine: #F06B33; }
.format-description { color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0 28px; color: var(--muted); font: 14px var(--mono); }
.footer-links { display: flex; align-items: center; gap: 20px; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--orange); }
.footer-links a:focus-visible { outline: 2px solid var(--orange-light); outline-offset: 4px; }
.footer-links a span { color: var(--orange); }
.footer-mark { color: var(--ink); font-weight: 700; }
.footer-mark span { color: var(--orange); }

@media (max-width: 680px) {
  .site-header, main, .site-footer { width: min(100% - 32px, 520px); }
  .site-header { min-height: 76px; }
  .main-nav { gap: 15px; }
  .nav-note { display: none; }
  .intro { padding: 57px 0 63px; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; margin-bottom: 27px; }
  .shelf-heading { gap: 11px; }
  .shelf-index { flex-basis: 36px; height: 36px; }
  .shelf-caption { font-size: 12px; }
  .bookshelf { gap: 10px; padding-inline: 9px; }
  .book { flex: 1 1 132px; min-width: 0; min-height: 158px; padding: 12px 11px 10px 14px; }
  .book-title { font-size: 14px; }
  .about { grid-template-columns: 1fr; gap: 22px; margin: 40px 0; }
  .format-book { grid-template-columns: minmax(120px, 42%) 1fr; gap: 12px; }
  .format-book-spine { min-height: 40px; padding-inline: 12px; font-size: 12px; }
  .format-description { font-size: 12px; }
}
@media (max-width: 390px) {
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 11px; }
  .main-nav { gap: 11px; font-size: 12px; }
  .book { flex-basis: calc(50% - 5px); min-height: 145px; }
  .site-footer { gap: 8px; font-size: 11px; }
  .footer-links { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
