@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
}

:root {
  color-scheme: light;
  --paper: #fbf9f6;
  --ink: #292430;
  --accent: #67459a;
  --line: #ded5ea;
  --panel: #f0e8f6;
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.55;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { background: var(--paper); color: var(--ink); margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p { margin: 0; }
.frame { width: min(100% - 3rem, 67rem); margin-inline: auto; }
.skip { position: absolute; transform: translateY(-120%); background: white; padding: .6rem; z-index: 3; }
.skip:focus { transform: none; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; padding-block: 1.15rem; border-bottom: 1px solid var(--line); }
.wordmark { text-decoration: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 24rem); align-items: center; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(2.5rem, 7vw, 5.2rem); }
.hero h1 { font-size: clamp(2.45rem, 6vw, 4.65rem); line-height: 1.04; letter-spacing: -.052em; font-weight: 750; text-wrap: balance; }
.subtitle { margin-top: .85rem; font-size: 1.12rem; }
.authors { margin-top: 1rem; color: var(--accent); font-weight: 650; }
.cover { width: 100%; max-width: 19rem; justify-self: center; box-shadow: 0 1.1rem 2.5rem #38233320; }
.image-action { display: block; width: min(100%, 21rem); margin-top: 1.5rem; border: 1px solid var(--line); }
.image-action:hover { border-color: var(--accent); }
.image-action img { width: 100%; }
summary { cursor: pointer; font-weight: 650; }
footer { background: var(--panel); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding-block: 1.65rem; }
.footer-inner address { font-style: normal; }
.footer-links { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; align-items: center; }
.cookie-settings { font: inherit; padding: 0; color: inherit; cursor: pointer; background: none; border: 0; text-decoration: underline; text-underline-offset: .2em; }
.cookie-panel { position: fixed; bottom: 1rem; right: 1rem; z-index: 4; width: min(100% - 2rem, 28rem); max-height: calc(100dvh - 2rem); overflow: auto; background: white; padding: 1.2rem; border: 1px solid var(--line); box-shadow: 0 .4rem 1.8rem #38233324; }
.cookie-panel h2 { font-size: 1.23rem; margin-bottom: .35rem; }
.cookie-panel p, .cookie-panel details { margin-bottom: .75rem; }
.cookie-panel details p { margin-top: .45rem; overflow-wrap: anywhere; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-actions button { padding: .55rem .7rem; font: inherit; font-weight: 650; color: var(--ink); background: white; cursor: pointer; border: 1px solid currentColor; }
.cookie-actions button:hover { background: var(--panel); }

.button { display: inline-block; margin-top: .85rem; padding: .55rem .85rem; color: white; background: var(--accent); font-weight: 650; }
.button:hover { color: white; background: var(--ink); }
.book-details { padding-bottom: 2rem; }
.book-details h2 { font-size: clamp(1.55rem, 3vw, 2.4rem); line-height: 1.15; margin-block: 1.2rem .65rem; }
.book-details p { max-width: 74ch; margin-top: .7rem; }
.separator { margin-bottom: 1.4rem; }
.classroom { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: center; gap: clamp(1.25rem, 3.8vw, 3rem); padding-block: 1rem 4rem; }
.classroom img { width: 100%; }

@media (max-width: 44rem) {
  .frame { width: min(100% - 2rem, 67rem); }
  .hero { grid-template-columns: 1fr; }
  .cover { max-width: min(100%, 19rem); }
}
