/* Brand accents match browserbox.io/css/style.css. */
:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #475569;
  --fluoro: #dfff00;
  --aqua: #7fffd4;
  --blue: #1e90ff;
  --link: #0066cc;
  --paper: #faf9f4;
  --rule: #d4d8dc;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-family: 'Avenir Next', Avenir, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}
* { box-sizing: border-box; }
body { margin: 0; }
body::before { content: ''; display: block; height: 6px; background: linear-gradient(90deg, var(--fluoro) 0% 45%, var(--aqua) 72%, var(--blue)); }
::selection { background: var(--fluoro); color: var(--ink); }
a { color: var(--link); text-underline-offset: .22em; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 5px; }
.skip { position: absolute; top: -100px; left: 1rem; padding: .5rem 1rem; background: var(--fluoro); z-index: 2; }
.skip:focus { top: 1rem; }
header { max-width: 1280px; margin: auto; padding: 1.5rem 3rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 2px solid var(--ink); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.25rem; letter-spacing: -.04em; }
.brand img { flex-shrink: 0; }
.brand > span { margin-left: .45rem; padding: .1rem .4rem; font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 500; background: var(--fluoro); }
.home-link { font-size: .82rem; color: var(--ink); text-decoration: none; }
.home-link span { margin-left: .45rem; color: var(--link); }
.home-link:hover { text-decoration: underline; }
.layout { max-width: 1280px; margin: auto; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
nav { padding: 2.8rem 1.7rem 2rem 3rem; border-right: 1px solid var(--rule); }
nav > a { display: flex; align-items: center; gap: .85rem; padding: .7rem .55rem; margin: 0 -.55rem; text-decoration: none; color: var(--ink); font-size: .85rem; }
nav > a > span { font-family: var(--mono); font-size: .65rem; color: var(--link); }
nav > a:hover { background: #e6f6ef; box-shadow: inset 3px 0 var(--blue); }
.eyebrow, .number, .note-label { font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
nav .eyebrow { padding-bottom: .6rem; border-bottom: 1px solid var(--rule); color: var(--muted); }
.sidenote { margin-top: 3.5rem; }
.note-label { display: block; font-size: .57rem; letter-spacing: .04em; color: var(--muted); }
.sidenote p { margin: .7rem 0 1.2rem; font-family: Georgia, serif; font-size: .95rem; font-style: italic; }
.swatches { display: flex; gap: 4px; }
.swatches i { display: block; width: 22px; height: 7px; background: var(--fluoro); }
.swatches i:nth-child(2) { background: var(--aqua); }
.swatches i:nth-child(3) { background: var(--blue); }
main { padding: 2.9rem 4rem 1.7rem; min-width: 0; }
.opening { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 2.5rem; align-items: center; padding-bottom: 2.5rem; }
.opening .eyebrow { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.3rem; font-size: .61rem; }
.edition-mark { padding: .15rem .4rem; color: var(--fluoro); background: var(--ink); font-weight: 700; }
h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(3.8rem, 6.1vw, 5.4rem); letter-spacing: -.055em; line-height: .99; margin: 0 0 1.65rem; }
h1 em { font-weight: 400; position: relative; background: linear-gradient(transparent 68%, var(--fluoro) 68% 94%, transparent 94%); padding-right: .09em; }
.intro { font-size: 1.13rem; max-width: 30rem; color: var(--muted); margin: 0; line-height: 1.65; }
.bookplate { display: grid; justify-items: center; padding: 1.2rem 0 0; }
.book { width: 150px; min-height: 193px; padding: 18px 14px 17px 23px; position: relative; transform: rotate(8deg); color: var(--ink); background: var(--fluoro); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--paper), 5px 5px 0 var(--ink), 8px 8px 0 #dce1e2; }
.book::before { content: ''; position: absolute; inset: 0 auto 0 9px; border-left: 1px solid var(--ink); }
.book::after { content: ''; position: absolute; width: 10px; height: 34px; right: -12px; top: 28px; background: var(--blue); border: 2px solid var(--ink); border-left: 0; box-shadow: 0 39px 0 -1px var(--aqua); }
.book-brand { display: block; font-family: var(--mono); font-size: .53rem; letter-spacing: .04em; }
.book-title { display: block; margin: 15px 0 10px; font-size: 1.6rem; font-weight: 850; line-height: .98; letter-spacing: -.05em; }
.book-title > span { display: inline-block; padding-left: .2rem; }
.book-rule { display: block; height: 5px; margin-bottom: 10px; background: var(--ink); }
.book-foot { display: block; font-family: var(--mono); font-size: .43rem; line-height: 1.5; letter-spacing: .015em; }
.plate-caption { margin-top: 1.6rem; font-family: var(--mono); font-size: .46rem; letter-spacing: .035em; color: var(--muted); }
section { scroll-margin-top: 1.5rem; padding: 1.7rem 0 2.1rem; border-top: 2px solid var(--ink); }
.number { display: flex; align-items: center; gap: .65rem; margin: 0 0 1.2rem; }
.number > span { padding: .1rem .4rem; background: var(--fluoro); font-weight: 700; }
#resources .number > span { background: var(--aqua); }
h2 { font-size: 1.9rem; letter-spacing: -.025em; margin: 0 0 1rem; }
h3 { font-size: 1.26rem; letter-spacing: -.015em; margin: .7rem 0 .55rem; }
section > p:not(.number) { max-width: 41rem; }
.button { display: inline-flex; gap: 2rem; align-items: center; margin-top: .65rem; padding: .8rem 1.2rem; background: var(--fluoro); color: var(--ink); text-decoration: none; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font-size: .95rem; font-weight: 700; }
.button:hover { background: var(--aqua); color: var(--ink); box-shadow: 1px 1px 0 var(--ink); }
.button span { font-family: var(--mono); font-size: .7rem; font-weight: 500; }
.caption { font-size: .76rem; color: var(--muted); margin-top: 1.1rem; }
.contents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; margin: 2.3rem 0 0; }
.contents > div { border-top: 1px solid var(--rule); padding-top: 1rem; }
.chapter-mark { display: inline-grid; place-items: center; font-family: var(--mono); font-size: .63rem; width: 23px; height: 23px; background: var(--fluoro); border: 1px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.contents > div:nth-child(2) .chapter-mark { background: var(--aqua); }
.contents > div:nth-child(3) .chapter-mark { background: var(--blue); }
.contents p { font-size: .85rem; margin: 0; color: var(--muted); }
.resources { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.resources li { border-bottom: 1px solid var(--rule); }
.resources a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem .5rem; margin: 0 -.5rem; text-decoration: none; font-size: .95rem; font-weight: 600; }
.resources a:hover { background: #e6f6ef; }
.resources span { font-size: .76rem; color: var(--muted); text-align: right; font-weight: 400; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .72rem; color: var(--muted); }
.colophon { font-family: Georgia, serif; font-style: italic; font-size: .9rem; color: var(--ink); }
.colophon > span { color: var(--link); padding-left: .3rem; }
@media (max-width: 1100px) {
  .layout { grid-template-columns: 220px minmax(0, 1fr); }
  header { padding-inline: 2rem; }
  nav { padding-left: 2rem; padding-right: 1.3rem; }
  main { padding-inline: 2.5rem; }
  .opening { grid-template-columns: minmax(0, 1fr) 140px; gap: 1.5rem; }
  .book { width: 128px; min-height: 179px; padding-left: 20px; }
  .book-title { font-size: 1.35rem; }
  .plate-caption { font-size: .38rem; }
}
@media (max-width: 800px) {
  header { padding: 1.15rem 1.5rem; }
  .brand { flex-wrap: wrap; column-gap: .4rem; row-gap: .15rem; font-size: 1.1rem; max-width: 220px; }
  .brand > span { font-size: .55rem; margin-left: 0; }
  .brand img { width: 24px; height: 24px; }
  .home-link { font-size: .73rem; flex-shrink: 0; }
  .home-link span { margin-left: .1rem; }
  .layout { grid-template-columns: 1fr; }
  nav { border-right: 0; border-bottom: 1px solid var(--rule); padding: .6rem 1.5rem; display: flex; flex-wrap: wrap; gap: .2rem 1.7rem; }
  nav > a { gap: .4rem; font-size: .8rem; }
  nav .eyebrow, .sidenote { display: none; }
  main { padding: 2.3rem 1.5rem 1.5rem; }
  .opening { grid-template-columns: minmax(0, 1fr) 140px; gap: 1.5rem; }
  h1 { font-size: 4.5rem; }
  .contents { gap: 1.2rem; }
}
@media (max-width: 540px) {
  .brand { max-width: 155px; }
  .brand > span { margin-left: 29px; }
  nav { column-gap: 1.3rem; }
  nav > a { font-size: .73rem; }
  nav > a > span { font-size: .55rem; }
  .opening { grid-template-columns: 1fr; gap: 0; padding-bottom: 2rem; }
  .bookplate { display: none; }
  .opening .eyebrow { font-size: .58rem; }
  h1 { font-size: 4.5rem; }
  .intro { font-size: 1.05rem; }
  h2 { font-size: 1.7rem; }
  .contents { grid-template-columns: 1fr; gap: 1.5rem; }
  .contents > div { display: grid; grid-template-columns: 28px 1fr; gap: .3rem .7rem; }
  .contents h3 { margin: 0; }
  .contents p { grid-column: 2; }
  .resources a { flex-direction: column; gap: .2rem; }
  .resources span { text-align: left; }
  .button { gap: 1rem; padding: .8rem 1rem; font-size: .87rem; }
  footer { font-size: .67rem; }
}
@media print {
  body::before, nav, .bookplate, .skip, .home-link { display: none; }
  :root { background: white; }
  header, main { padding: 1rem 0; }
  .layout, .opening { display: block; }
  h1 { font-size: 3rem; }
  h1 br { display: none; }
  .button { box-shadow: none; }
  section { break-inside: avoid; }
}
