:root {
  --paper: #f8f8f1;
  --ink: #19382e;
  --body: #42574c;
  --green: #224e3c;
  --line: #c8d0c2;
  --display: Baskerville, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, figure, fieldset { margin: 0; }
body { font-size: 17px; line-height: 1.6; }
img { display: block; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible, input:focus-visible + label { outline: 3px solid #aa561d; outline-offset: 5px; }
.wrap { width: min(1240px, 90%); margin-inline: auto; }
.skip, .sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; padding: .7em 1em; background: white; z-index: 5; }
.mast, .mast nav, .foot, .foot nav { display: flex; align-items: center; }
.mast { min-height: 84px; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 35px/1 var(--display); letter-spacing: -.055em; text-decoration: none; }
.brand img { background: var(--ink); border-radius: 11px; }
.mast nav, .foot nav { gap: clamp(14px, 3vw, 38px); }
.mast nav a { font-size: 14px; font-weight: 600; text-decoration: none; }
.mast nav a:hover, .brand:hover, .foot a:hover { text-decoration: underline; }
.nav-get { border: 1px solid #91a295; border-radius: 100px; padding: 8px 19px; }
.cover { display: grid; grid-template-columns: 47% 53%; align-items: center; padding-block: clamp(30px, 4vw, 66px); }
.intro { padding: 14px 18px 32px 0; }
.category { font-size: 15px; font-weight: 600; color: #536c59; margin-bottom: 20px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(70px, 7.9vw, 120px); line-height: .94; letter-spacing: -.062em; }
.lead { margin: 27px 0 30px; max-width: 34ch; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.52; color: var(--body); }
.install { display: inline-flex; align-items: center; gap: 12px; padding: 14px 23px; background: var(--green); color: white; font-size: 16px; font-weight: 650; text-decoration: none; border-radius: 9px; }
.install:hover { background: #153b2d; text-decoration: underline; }
.play { display: inline-block; width: 15px; height: 17px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.art { position: relative; isolation: isolate; aspect-ratio: 1.42; }
.medallion { position: absolute; inset: 5% 1% 1% 4%; background: #dce8d1; border-radius: 51% 49% 44% 54% / 64% 58% 37% 36%; transform: rotate(-5deg); }
.medallion::before { content: ""; position: absolute; inset: 3.2%; border: 1px solid #a1b496; border-radius: inherit; }
.rabbit { position: absolute; width: 43%; height: auto; bottom: 3%; left: 4%; transform: rotate(-5deg); mix-blend-mode: multiply; }
.phone { position: absolute; right: 11%; bottom: 2.5%; width: 37%; padding: 2.7% 1.35% 3%; border-radius: 12% / 6%; background: #24392f; border: 2px solid #67806c; box-shadow: 5px 8px 0 #9eae95, 13px 17px 19px #19382e28; transform: rotate(7deg); }
.phone::before { content: ""; position: absolute; top: 1.5%; height: 3px; width: 15%; left: 42.5%; border-radius: 8px; background: #101d17; }
.phone img { width: 100%; height: auto; border-radius: 7% / 3%; }
figcaption { margin-top: 23px; font: 15px/1.5 var(--display); text-align: center; color: var(--body); }
figcaption span { display: block; font: 11px/1.5 system-ui,sans-serif; }
.inside { padding: 64px 0 72px; background: #e8eee4; scroll-margin-top: 10px; }
h2 { font-size: clamp(38px, 4.2vw, 64px); letter-spacing: -.045em; line-height: 1.1; }
.gallery { border: 0; padding: 0; min-width: 0; margin-top: 23px; }
.gallery label { display: inline-block; cursor: pointer; border: 1px solid #afbeaf; border-radius: 30px; font-size: 14px; padding: 8px 18px; margin: 0 5px 8px 0; }
.gallery label:hover { background: #d4e0cf; }
.gallery input:checked + label { background: var(--ink); border-color: var(--ink); color: white; }
.panels { margin-top: 16px; }
.panel { display: none; grid-template-columns: 38% 62%; background: #fafbf5; overflow: hidden; border-radius: 15px; }
#layout:checked ~ .panels .layouts, #math:checked ~ .panels .maths, #recap:checked ~ .panels .recaps { display: grid; }
.panel-text { align-self: center; padding: clamp(25px, 4.2vw, 60px); }
h3 { font-size: clamp(32px, 3.2vw, 48px); letter-spacing: -.045em; line-height: 1.05; }
.panel p, .end p { color: var(--body); margin-top: 17px; }
.stage { position: relative; height: clamp(320px, 34vw, 460px); overflow: hidden; background: #c3d3b8; display: grid; place-items: center; }
.tablet { width: 88%; height: auto; max-height: 90%; object-fit: contain; background: white; border: 9px solid #30463b; border-radius: 16px; box-shadow: 5px 10px 16px #223c302c; }
.detail { width: min(76%, 325px); height: auto; align-self: start; margin-top: 27px; border: 6px solid #30463b; border-radius: 18px; box-shadow: 3px 7px 15px #223c302d; }
.maths .stage { background: #d9d9eb; }
.recaps .stage { background: #ebd9bf; }
.end { display: grid; grid-template-columns: 1fr .8fr; gap: 8%; align-items: center; padding-block: clamp(55px, 7vw, 100px); }
.end p { max-width: 43ch; }
.end .install { margin-top: 24px; }
.notes details { border-top: 1px solid var(--line); padding: 17px 0; }
.notes details:last-child { border-bottom: 1px solid var(--line); }
.notes summary { cursor: pointer; font-weight: 600; }
.notes details p { margin: 12px 0 0; }
footer { background: var(--ink); color: #f1f4e9; }
.foot { justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 24px 0; font-size: 14px; }
.foot nav { flex-wrap: wrap; }
@media (max-width: 760px) {
  .mast { min-height: 68px; }
  .cover { grid-template-columns: 1fr; padding-block: 36px 30px; }
  .intro { padding: 0; }
  h1 { font-size: clamp(65px, 13vw, 90px); }
  .category { margin-bottom: 13px; }
  .lead { margin: 17px 0 20px; }
  .frontispiece { width: min(100%, 480px); margin: 24px auto 0; }
  figcaption { margin-top: 14px; }
  .inside { padding: 38px 0 45px; }
  .panel { grid-template-columns: 1fr; }
  .panel-text { padding: 24px; }
  .stage { height: clamp(235px, 54vw, 365px); }
  .end { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 440px) {
  .brand { font-size: 30px; }
  .brand img { width: 32px; height: 32px; }
  .mast nav a { font-size: 13px; }
  .nav-get { padding: 7px 13px; }
  .gallery label { font-size: 12px; padding: 8px 10px; margin-right: 2px; }
  .foot { align-items: flex-start; flex-direction: column; }
}
