:root {
  color-scheme: light;
  --paper: #f8f6ee;
  --white: #fffdf8;
  --ink: #192b25;
  --muted: #4e5e55;
  --pine: #163c33;
  --teal: #dcece3;
  --gold: #e5c57e;
  --line: #d9dacf;
  --body: Montserrat, sans-serif;
  --display: Newsreader, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 500 1rem/1.65 var(--body); }
a { color: inherit; }
a:focus-visible { outline: 3px solid #31816d; outline-offset: 5px; }
.wrap { width: min(100% - 5rem, 1180px); margin-inline: auto; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.brand-icon svg, .tool-icon svg, .card-link svg, .button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  min-height: 88px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font: 600 1.37rem/1 var(--display); }
.brand small { display: block; margin-top: .38rem; font: 700 .53rem/1.3 var(--body); letter-spacing: .14em; }
.brand-icon, .tool-icon { display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; }
.brand-icon { width: 43px; height: 43px; background: var(--pine); color: var(--gold); }
.header-link { font-size: .76rem; font-weight: 700; text-decoration: none; padding: .48rem .85rem; border: 1px solid var(--line); border-radius: 2rem; white-space: nowrap; }
.header-link:hover { background: var(--teal); }
.header-link span { margin-left: .35rem; }

.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(2.75rem, 6vw, 5.75rem); }
.hero-copy { padding-block: .55rem; }
.eyebrow, .category, .tool-count, .card-number { font-size: .66rem; font-weight: 700; letter-spacing: .16em; }
.eyebrow { margin: 0; color: var(--pine); }
.eyebrow > span { display: inline-block; width: .65rem; height: .65rem; margin-right: .35rem; border-radius: 50%; background: var(--gold); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; }
h1 { margin-top: 1.05rem; font-size: clamp(3.25rem, 6.65vw, 6.35rem); line-height: .91; letter-spacing: -.058em; }
h1 em { color: #346454; font-weight: 500; white-space: nowrap; }
.intro { max-width: 32rem; margin: 1.2rem 0 1.75rem; font-size: .97rem; color: var(--muted); }
.button { display: inline-flex; align-items: center; gap: .9rem; background: var(--pine); color: var(--white); padding: .75rem 1.1rem; border-radius: .35rem; text-decoration: none; font-size: .8rem; font-weight: 700; }
.button:hover { background: #275648; }
.button svg, .card-link svg { width: 18px; height: 18px; transition: transform .2s ease; }
.button:hover svg, .tool-card:hover .card-link svg { transform: translateX(4px); }

.hero-art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  aspect-ratio: 1.27;
  border-radius: .65rem;
  overflow: hidden;
  background: radial-gradient(ellipse at 45% 38%, #356858, #163b32 72%);
  color: #f2d498;
  container-type: inline-size;
}
.hero-art::before { content: ""; position: absolute; inset: 13px; border: 1px solid #e5c57e42; border-radius: .35rem; z-index: -1; }
.orbit { position: absolute; inset: 0; width: 100%; height: 100%; stroke: #efce8d90; stroke-width: 1; z-index: -1; }
.art-label, .art-index { position: absolute; font-size: clamp(.48rem, 1.8cqw, .62rem); font-weight: 700; letter-spacing: .16em; }
.art-label { top: 25px; left: 25px; }
.art-index { right: 25px; bottom: 23px; }
.art-index span { padding-inline: .2em; }
.cover {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 46%;
  aspect-ratio: .73;
  transform: rotate(-9deg);
  border-radius: 3px 7px 7px 3px;
  background: linear-gradient(90deg, #ad8740, #e2c181 6%, #b99650 7%, #f2d9a4 10%, #ebca8a);
  box-shadow: 6px 6px 0 #d0b27b, 12px 16px 25px #071f19aa;
  color: var(--pine);
  text-align: center;
}
.cover::before { content: ""; position: absolute; inset: 6% 7% 6% 11%; border: 1px solid #64502772; }
.cover-author { font-size: 1.7cqw; font-weight: 700; letter-spacing: .12em; }
.cover-year { margin-top: 7%; font: 600 14cqw/.87 var(--display); letter-spacing: -.075em; }
.cover-title { margin-top: 3%; font: italic 500 4.6cqw/1 var(--display); }
.cover-mark { margin-top: 5%; font-size: 4.6cqw; line-height: 1; }

.library { padding: 1.7rem 0 4rem; border-top: 1px solid var(--line); scroll-margin-top: 1.25rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.25rem; }
h2 { margin-top: .5rem; font-size: clamp(2.1rem, 4.4vw, 3.7rem); line-height: .98; letter-spacing: -.035em; }
.tool-count { color: var(--muted); white-space: nowrap; padding-bottom: .45rem; }
.tool-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .95rem; }
.feature { grid-column: span 2; }
.tool-card { display: flex; flex-direction: column; min-height: 255px; height: 100%; padding: 1.3rem 1.45rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--white); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.feature .tool-card { background: var(--teal); border-color: #c4d9ce; }
.finale .tool-card { background: #f4ebd5; border-color: #e3d4af; }
.tool-card:hover { transform: translateY(-3px); border-color: #659180; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.tool-icon { width: 42px; height: 42px; background: #edf2e9; color: var(--pine); }
.feature .tool-icon { background: var(--pine); color: var(--white); }
.card-number, .category { color: var(--muted); }
.category { margin: .9rem 0 .3rem; }
h3 { font-size: clamp(1.52rem, 2.35vw, 2rem); line-height: 1.02; letter-spacing: -.025em; }
.description { margin: .45rem 0 1rem; max-width: 36rem; color: var(--muted); font-size: .81rem; line-height: 1.55; }
.card-link { display: inline-flex; align-items: center; gap: .45rem; margin-top: auto; color: var(--pine); font-size: .76rem; font-weight: 700; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .65rem 2rem; border-top: 1px solid var(--line); padding: 1.35rem 0 1.7rem; color: var(--muted); font-size: .73rem; }

@media (max-width: 950px) {
  .hero { gap: 1.75rem; grid-template-columns: 1fr 1fr; }
  h1 { font-size: clamp(3rem, 6.5vw, 5rem); }
  .wrap { width: calc(100% - 3rem); }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 2rem); }
  .hero { grid-template-columns: 1fr; }
  h1 { font-size: clamp(3.2rem, 10.5vw, 5.4rem); }
  .hero-art { max-width: 500px; width: 100%; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finale { grid-column: auto; }
}

@media (max-width: 480px) {
  .site-header { min-height: 72px; }
  .brand { font-size: 1.13rem; gap: .45rem; }
  .brand small { font-size: .44rem; }
  .brand-icon { width: 33px; height: 33px; }
  .brand-icon svg { width: 19px; height: 19px; }
  .header-link { padding-inline: .58rem; font-size: .65rem; }
  .tool-grid { grid-template-columns: 1fr; }
  .feature { grid-column: auto; }
  .tool-card { min-height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
