:root {
  --paper: #fbfaf6;
  --surface: #fffefb;
  --ink: #172e2e;
  --muted: #4c6260;
  --edge: #c8d5cd;
  --accent: #006653;
  --soft: #e2efe8;
  --field: #d2e6dc;
  --heading: Georgia,'Times New Roman',serif;
  --body: Arial,Helvetica,sans-serif;
  --measure: 70ch;
  color-scheme: light;
  scroll-padding-top:1.25rem;
}

* {
  box-sizing:border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height:1.55;
}

img {
  display: block;
  max-width: 100%;
  height:auto;
}

a {
  color:inherit;
}

a:focus-visible,summary:focus-visible,input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset:5px;
}

a:hover {
  color:var(--accent);
}

button,summary,input {
  font:inherit;
}

h1,h2,h3,p,figure {
  margin:0;
}

h1,h2,h3 {
  font-family: var(--heading);
  line-height: 1.05;
  text-wrap:balance;
}

h1 {
  font-size: clamp(2.65rem,6vw,6rem);
  font-weight: 500;
  letter-spacing:-.065em;
}

h2 {
  font-size: clamp(1.8rem,3.7vw,3.15rem);
  font-weight: 500;
  letter-spacing:-.045em;
}

h3 {
  font-size: clamp(1.37rem,2vw,1.95rem);
  font-weight: 500;
  letter-spacing:-.025em;
}

ul,ol {
  padding-inline-start:1.4em;
}

[hidden] {
  display:none!important;
}

.wrap {
  width: min(100% - 3rem,84rem);
  margin-inline:auto;
}

.skip {
  position: absolute;
  top: .5rem;
  left: .75rem;
  z-index: 10;
  background: var(--surface);
  padding: .6rem .9rem;
  transform:translateY(-150%);
}

.skip:focus {
  transform:none;
}

.masthead {
  border-top: 5px solid var(--accent);
  border-bottom: 1px solid var(--edge);
  background: var(--paper);
  position: relative;
  z-index:2;
}

.head-inner {
  display: flex;
  align-items: center;
  min-height: 76px;
  gap:1.45rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  flex: none;
  text-decoration:none;
}

.brand img {
  width: 128px;
  height:39px;
}

.edition-label {
  color: var(--accent);
  font-size: .78rem;
  line-height: 1;
  letter-spacing: .08em;
  font-weight: 700;
  padding-left: .72rem;
  border-left: 1px solid var(--edge);
  text-transform:uppercase;
}

.desktop-topics {
  display: flex;
  justify-content: center;
  gap: clamp(1rem,2vw,2.1rem);
  flex:1;
}

.desktop-topics a,.archive-link,.mobile-topics a {
  font-size: .87rem;
  font-weight: 700;
  text-decoration: none;
  white-space:nowrap;
}

.desktop-topics a[aria-current],.mobile-topics a[aria-current] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset:5px;
}

.archive-link {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap:.5rem;
}

.search-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
  position: relative;
  margin-right:4px;
}

.search-icon::after {
  content: '';
  width: 6px;
  height: 1.6px;
  background: currentColor;
  position: absolute;
  top: 8px;
  left: 8px;
  transform: rotate(47deg);
  transform-origin:left;
}

.mobile-topics {
  display:none;
}

.cover {
  display: block;
  background: var(--soft);
  overflow: hidden;
  border-radius:var(--radius,4px);
}

.cover img {
  width: 100%;
  aspect-ratio: 8/5;
  object-fit:cover;
}

.card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap:.7rem;
}

.card-link {
  text-decoration: none;
  display: grid;
  gap:.75rem;
}

.card-link:hover .card-title {
  text-decoration: underline;
  text-decoration-thickness: .055em;
  text-underline-offset:.15em;
}

.meta {
  font-size: .72rem;
  letter-spacing: .08em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  gap: .7rem;
  align-items:center;
}

.meta time,.meta .duration {
  color: var(--muted);
  letter-spacing:.035em;
}

.card p,.lede,.opening p,.shelf-heading p {
  color:var(--muted);
}

.card p {
  font-size: .91rem;
  line-height:1.5;
}

.opening {
  padding: clamp(2.2rem,6vw,5.7rem) 0 clamp(2rem,4vw,3.9rem);
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(12ch,1fr);
  gap: 1.5rem;
  align-items:end;
}

.opening h1 {
  max-width:17ch;
}

.opening p {
  font-size: clamp(1.04rem,1.3vw,1.25rem);
  max-width: 34ch;
  padding-bottom:.3rem;
}

.front {
  --front-gap: clamp(2.8rem, 7vw, 6.4rem);
  display: grid;
  gap: var(--front-gap);
  padding-bottom:5rem;
}

.focus {
  background: var(--field);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(1.15rem,3.4vw,3rem);
  padding: clamp(1rem,4vw,3.1rem);
  align-items:center;
}

.focus .card .card-title {
  font-size: clamp(2rem,4.5vw,4.4rem);
  letter-spacing:-.06em;
}

.focus .card p {
  font-size: 1rem;
  max-width:47ch;
}

.focus .card {
  order: 2;
  align-content:center;
}

.focus>.cover {
  order:1;
}

.focus .card .cover {
  display:none;
}

.shelf {
  border-top: 1px solid var(--edge);
  padding-top: 1.25rem;
  min-width:0;
}

.shelf-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom:1.3rem;
}

.shelf-link {
  color: var(--accent);
  font-size: .86rem;
  font-weight: 700;
  text-decoration:none;
}

.shelf-link:hover,.archive-link:hover {
  text-decoration: underline;
  text-underline-offset:.2em;
}

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap:clamp(1rem,2.5vw,2.1rem);
}

.layout-lanes .shelf:nth-of-type(odd) .shelf-grid {
  grid-template-columns:1.27fr 1fr 1fr;
}

.layout-lanes .shelf:nth-of-type(even) {
  display: grid;
  grid-template-columns: minmax(12rem,1fr) 3fr;
  gap:1.6rem;
}

.layout-lanes .shelf:nth-of-type(even) .shelf-heading {
  display: grid;
  align-content: start;
  justify-content:start;
}

.archive-banner {
  padding: clamp(1.5rem,4vw,3.4rem);
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap:1.2rem;
}

.archive-banner p {
  margin-top: .6rem;
  color:var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: max-content;
  padding: .57rem 1rem;
  text-decoration: none;
  background: var(--accent);
  color: var(--surface);
  font-weight: 700;
  font-size:.88rem;
}

.button:hover {
  color: var(--surface);
  text-decoration:underline;
}

.footer {
  border-top: 1px solid var(--edge);
  background: var(--soft);
  padding:2.4rem 0;
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  flex-wrap:wrap;
}

.foot-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap:.5rem 1.15rem;
}

.foot-inner nav a {
  font-size: .87rem;
  text-underline-offset:4px;
}

.foot-end {
  margin-top: 1rem;
  color: var(--muted);
  font-size:.8rem;
}

.page-intro {
  padding:clamp(2.4rem,6vw,5rem) 0 2.2rem;
}

.page-intro h1 {
  max-width:17ch;
}

.page-intro p {
  max-width: 58ch;
  margin-top: 1.05rem;
  color: var(--muted);
  font-size:1.12rem;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 2.4rem 1.5rem;
  margin-bottom:5rem;
}

.breadcrumb {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .86rem;
  padding:1.2rem 0;
}

.breadcrumb a {
  text-underline-offset:.16em;
}

.story {
  margin-bottom:4rem;
}

.story-head {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr);
  gap: clamp(1.5rem,4vw,4rem);
  align-items: center;
  padding:1.65rem 0 3.6rem;
}

.story-head h1 {
  font-size: clamp(2.65rem,5.4vw,5.35rem);
  margin: .6rem 0 1rem;
  max-width:19ch;
}

.story-head .lede {
  font-size: clamp(1.08rem,1.55vw,1.36rem);
  max-width:52ch;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(11rem,17rem) minmax(0,1fr);
  align-items: start;
  gap: clamp(1.5rem,5vw,5rem);
  max-width: 73rem;
  margin-inline:auto;
}

.contents {
  border-top: 3px solid var(--accent);
  padding-top: .85rem;
  position: sticky;
  top:1.25rem;
}

.contents summary {
  font-weight: 700;
  cursor:pointer;
}

.contents ol {
  font-size: .88rem;
  margin: .55rem 0 0;
  padding-left:1.2rem;
}

.contents li {
  margin:.45rem 0;
}

.contents a {
  text-decoration-color: var(--edge);
  text-underline-offset:.19em;
}

.prose {
  max-width: var(--measure);
  font-size: 1.075rem;
  line-height: 1.74;
  overflow-wrap:anywhere;
}

.prose p,.prose li {
  margin-bottom:.95em;
}

.prose h2 {
  font-size: clamp(1.7rem,3.1vw,2.5rem);
  margin-bottom:.56em;
}

.prose section+section,.prose .references {
  margin-top:2.6rem;
}

.prose a {
  color: var(--accent);
  text-decoration-thickness: .07em;
  text-underline-offset:.18em;
}

.quick {
  background: var(--soft);
  border-left: 4px solid var(--accent);
  padding: 1.2rem 1.45rem;
  margin:1.6rem 0 2.1rem;
}

.quick p:last-child {
  margin:0;
}

.related {
  border-top: 1px solid var(--edge);
  padding:1.7rem 0 4.3rem;
}

.related h2 {
  margin-bottom:1.25rem;
}

.long-page {
  padding-bottom:5rem;
}

.long-page .prose {
  margin-inline:auto;
}

.long-page .page-intro {
  max-width: var(--measure);
  margin-inline:auto;
}

.search {
  margin: 0 0 1.5rem;
  display: grid;
  gap: .55rem;
  max-width:36rem;
}

.search input {
  border: 1px solid var(--muted);
  padding: .66rem .85rem;
  min-height: 44px;
  background: var(--surface);
  color: var(--ink);
  width:100%;
}

.search label {
  font-weight:700;
}

.result-count {
  color: var(--muted);
  margin:0 0 1.1rem;
}

.edition-byte {
  --paper: #f2f5fa;
  --surface: #fff;
  --ink: #1d294e;
  --muted: #495779;
  --edge: #c6d0e3;
  --accent: #2946a7;
  --soft: #e4ebf9;
  --field: #dce6ff;
  --heading: 'Segoe UI',Arial,sans-serif;
  --radius:1rem;
}

.edition-byte h1,.edition-byte h2,.edition-byte h3 {
  font-weight:680;
}

.edition-byte .opening {
  display: block;
  padding-bottom:2.35rem;
}

.edition-byte .opening h1 {
  max-width:16ch;
}

.edition-byte .opening p {
  margin-top:1rem;
}

.edition-byte .front {
  --front-gap: 3.2rem;
}

.edition-byte .focus {
  grid-template-columns: 1fr 1fr;
  border-radius:1.4rem;
}

.edition-byte .shelf-grid {
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.edition-byte .shelf-grid .card {
  background: var(--surface);
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--edge);
  padding:0 0 .95rem;
}

.edition-byte .shelf-grid .card .meta,.edition-byte .shelf-grid .card .card-title,.edition-byte .shelf-grid .card p {
  margin-inline:.95rem;
}

.edition-byte .shelf-grid .cover {
  border-radius:0;
}

.edition-byte .archive-banner {
  border-radius:1.4rem;
}

.edition-geek {
  --paper: #202622;
  --surface: #293129;
  --ink: #f0f0de;
  --muted: #b9c6b1;
  --edge: #526151;
  --accent: #c4ec94;
  --soft: #2f3a2d;
  --field: #334730;
  --heading: 'Trebuchet MS',Arial,sans-serif;
  --radius: 0;
  color-scheme:dark;
}

.edition-geek h1,.edition-geek h2,.edition-geek h3 {
  font-weight:700;
}

.edition-geek .meta,.edition-geek .shelf-link,.edition-geek .edition-label {
  font-family:Consolas,monospace;
}

.edition-geek .opening {
  align-items:center;
}

.edition-geek .focus {
  border: 1px solid var(--edge);
  grid-template-columns:1fr 1.16fr;
}

.edition-geek .focus>.cover {
  order:2;
}

.edition-geek .focus .card {
  order:1;
}

.edition-geek .shelf-grid .card {
  padding-right: 1.2rem;
  border-right:1px solid var(--edge);
}

.edition-geek .shelf-grid .card:last-child {
  border-right: 0;
  padding-right:0;
}

.edition-geek .button {
  color:#1a2f16;
}

.edition-nova {
  --paper: #fff8f2;
  --surface: #fffdfa;
  --ink: #382432;
  --muted: #695265;
  --edge: #deccd8;
  --accent: #7d264f;
  --soft: #f4e5ef;
  --field: #f1d6e7;
  --heading: 'Palatino Linotype',Georgia,serif;
  --radius:25px;
}

.edition-nova .opening {
  align-items:center;
}

.edition-nova .opening h1 {
  max-width:16ch;
}

.edition-nova .focus {
  grid-template-columns: .9fr 1.25fr;
  border-radius:0 3rem 0 3rem;
}

.edition-nova .focus>.cover {
  order:2;
}

.edition-nova .focus .card {
  order:1;
}

.edition-nova .shelf-grid {
  grid-template-columns:1.1fr 1.1fr .8fr;
}

.edition-nova .shelf:nth-of-type(even) .shelf-grid {
  grid-template-columns:.8fr 1.1fr 1.1fr;
}

.edition-nova .shelf:nth-of-type(even) .shelf-heading {
  justify-content:flex-end;
}

.edition-nova .archive-banner {
  border-radius:0 2rem 0 2rem;
}

.edition-flux {
  --paper: #f8f2e7;
  --surface: #fffaf0;
  --ink: #36291b;
  --muted: #695641;
  --edge: #d6c2a7;
  --accent: #8c391a;
  --soft: #f1e1c8;
  --field: #f1ddbc;
  --heading: Georgia,serif;
  --radius:2px;
}

.edition-flux .opening {
  text-align: center;
  justify-items: center;
  display: grid;
  grid-template-columns: 1fr;
  gap:.85rem;
}

.edition-flux .opening h1 {
  max-width:21ch;
}

.edition-flux .opening p {
  max-width:54ch;
}

.edition-flux .focus {
  padding: 0;
  grid-template-columns:1.15fr 1fr;
}

.edition-flux .focus .card {
  padding:1.4rem 1.4rem 1.4rem 0;
}

.edition-flux .shelf {
  display: grid;
  grid-template-columns: minmax(9.8rem,1fr) 3.2fr;
  gap:1.3rem;
}

.edition-flux .shelf-heading {
  display: grid;
  align-content: start;
  justify-content:start;
}

.edition-flux .shelf-grid {
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.edition-flux .shelf-grid .card:nth-child(3) {
  grid-column: 1/-1;
  border-top: 1px solid var(--edge);
  padding-top:.8rem;
}

.edition-flux .shelf-grid .card:nth-child(3) .card-link {
  display: grid;
  grid-template-columns: minmax(7rem,1fr) 3fr;
  grid-template-rows: auto auto;
  align-items:center;
}

.edition-flux .shelf-grid .card:nth-child(3) .cover {
  grid-row:span 2;
}

.edition-flux .shelf-grid .card:nth-child(3)>p {
  display:none;
}

@media(max-width:900px) {
  .desktop-topics {
    gap:.95rem;
  }
  .head-inner {
    gap:.85rem;
  }
  .desktop-topics a,.archive-link {
    font-size:.78rem;
  }
  .layout-lanes .shelf:nth-of-type(even),.edition-flux .shelf {
    display:block;
  }
  .layout-lanes .shelf:nth-of-type(even) .shelf-heading,.edition-flux .shelf-heading {
    display:flex;
  }
  .story-grid {
    grid-template-columns:minmax(10rem,.6fr) 2fr;
  }
}

@media(max-width:720px) {
  .wrap {
    width:calc(100% - 2rem);
  }
  .head-inner {
    min-height:65px;
  }
  .brand img {
    width: 104px;
    height:32px;
  }
  .brand {
    gap:.42rem;
  }
  .edition-label {
    font-size: .64rem;
    padding-left:.42rem;
  }
  .desktop-topics {
    display:none;
  }
  .mobile-topics {
    display: block;
    position: relative;
    margin-left:auto;
  }
  .mobile-topics summary {
    display: flex;
    gap: .32rem;
    align-items: center;
    cursor: pointer;
    font-size: .81rem;
    font-weight: 700;
    padding: .45rem .62rem;
    border: 1px solid var(--edge);
    border-radius: 3px;
    min-height:40px;
  }
  .mobile-topics summary::-webkit-details-marker {
    display:none;
  }
  .mobile-topics summary::after {
    content: '▾';
    font-size:.74rem;
  }
  .mobile-topics nav {
    display: grid;
    position: absolute;
    z-index: 5;
    right: 0;
    top: calc(100% + 8px);
    min-width: 11.3rem;
    background: var(--surface);
    border: 1px solid var(--edge);
    box-shadow: 0 10px 26px #0002;
    padding:.4rem;
  }
  .mobile-topics nav a {
    display: block;
    padding:.48rem .65rem;
  }
  .archive-link {
    margin-left: 0;
    min-width: 36px;
    min-height: 40px;
    justify-content:center;
  }
  .archive-link .archive-text {
    position: absolute;
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    overflow: hidden;
    white-space:nowrap;
  }
  .opening {
    grid-template-columns: 1fr;
    gap: .7rem;
    padding-top:2.55rem;
  }
  .opening p {
    line-height:1.5;
  }
  .front>.focus {
    grid-template-columns: 1fr;
    gap:1rem;
  }
  .front>.focus>.cover {
    order:0;
  }
  .front>.focus>.card {
    order:1;
  }
  .edition-flux .focus .card {
    padding:0 1rem 1.3rem;
  }
  .edition-nova .shelf:nth-of-type(even) .shelf-heading {
    justify-content:space-between;
  }
  .front .shelf .shelf-grid,.list-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap:1.35rem .85rem;
  }
  .front .shelf .shelf-grid .card:nth-child(3) {
    grid-column: 1/-1;
    border-top: 1px solid var(--edge);
    padding-top:.85rem;
  }
  .front .shelf .shelf-grid .card:nth-child(3) .card-link {
    display: grid;
    grid-template-columns: minmax(6rem,1fr) 2fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap:.25rem .7rem;
  }
  .front .shelf .shelf-grid .card:nth-child(3) .cover {
    grid-row:span 2;
  }
  .front .shelf .shelf-grid .card:nth-child(3)>p {
    display:none;
  }
  .edition-byte .shelf-grid .card:nth-child(3) {
    padding:.7rem;
  }
  .edition-byte .shelf-grid .card:nth-child(3) h3,.edition-byte .shelf-grid .card:nth-child(3) .meta {
    margin:0;
  }
  .edition-geek .shelf-grid .card {
    padding-right: 0;
    border-right:0;
  }
  .card p {
    font-size:.84rem;
  }
  .meta {
    font-size: .65rem;
    flex-wrap: wrap;
    gap:.25rem .5rem;
  }
  .shelf-heading {
    margin-bottom:1rem;
  }
  .shelf-heading h2 {
    font-size:clamp(1.5rem,6vw,2.1rem);
  }
  .shelf-link {
    white-space:nowrap;
  }
  .story-head {
    grid-template-columns: 1fr;
    padding: .75rem 0 2.15rem;
    gap:1.25rem;
  }
  .story-grid {
    display:block;
  }
  .contents {
    position: static;
    margin-bottom:1.7rem;
  }
  .contents ol {
    columns: 2;
    column-gap:1.8rem;
  }
  .contents li {
    break-inside:avoid;
  }
  .prose {
    font-size:1.03rem;
  }
  .related .shelf-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .related .card:last-child {
    display:none;
  }
  .archive-banner {
    align-items: flex-start;
    flex-direction:column;
  }
  .footer {
    padding:1.75rem 0;
  }
  .foot-inner {
    display:grid;
  }
  .list-grid .meta .duration {
    display:none;
  }
}

@media(max-width:360px) {
  .wrap {
    width:calc(100% - 1.3rem);
  }
  .head-inner {
    gap:.4rem;
  }
  .brand img {
    width:90px;
  }
  .contents ol {
    columns:1;
  }
  .card .card-title {
    font-size:1.18rem;
  }
  .edition-label {
    font-size:.57rem;
  }
}

.list-grid .card-title {
  font-size: clamp(1.37rem,2vw,1.95rem);
  letter-spacing: -.025em;
}

@media(max-width:360px) {
  .list-grid .card-title {
    font-size: 1.18rem;
  }
}

@media (min-width: 1100px) {
  .layout-lanes .front {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1.8rem, 4.5vw, 4.5rem);
  }

  .layout-lanes .front > .focus,
  .layout-lanes .front > .shelf:nth-of-type(2),
  .layout-lanes .front > .archive-banner {
    grid-column: 1 / -1;
  }

  .layout-lanes .front > .shelf:nth-of-type(n+3) {
    display: block;
  }

  .layout-lanes .front > .shelf:nth-of-type(n+3) .shelf-heading {
    display: flex;
  }

  .layout-lanes .front > .shelf:nth-of-type(n+3) .shelf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout-lanes .front > .shelf:nth-of-type(n+3) .card:last-child {
    grid-column: 1 / -1;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    border-top: 1px solid var(--edge);
    padding-top: .9rem;
  }

  .layout-lanes .front > .shelf:nth-of-type(n+3) .card:last-child .card-link {
    grid-template-columns: minmax(5.6rem, .8fr) minmax(0, 1.5fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: .85rem;
  }

  .layout-lanes .front > .shelf:nth-of-type(n+3) .card:last-child .cover {
    grid-row: span 2;
  }

  .edition-byte .focus {
    grid-template-columns: .85fr 1.15fr;
  }

  .edition-byte .focus > .cover {
    order: 2;
  }

  .edition-byte .focus > .card {
    order: 1;
  }

  .edition-nova .front {
    --front-gap: 4.75rem;
  }

  .edition-nova .shelf-grid {
    grid-template-columns: 1.35fr 1fr 1fr;
    align-items: start;
  }

  .edition-nova .shelf:nth-of-type(even) .shelf-grid {
    grid-template-columns: 1fr 1fr 1.35fr;
  }

  .edition-geek .shelf:nth-of-type(3n + 2) .shelf-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.contents {
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
}

@media (max-width: 720px) {
  .contents {
    max-height: none;
    overflow-y: visible;
  }
}

.ad-slot {
  display: grid;
  grid-template-columns: minmax(250px, 336px);
  justify-content: safe center;
  margin-block: 50px;
  overflow-x: auto;
  text-align: center;
}

.front > .ad-slot {
  grid-column: 1 / -1;
  /* The grid already contributes its row gap on both sides. */
  margin-block: calc(50px - var(--front-gap));
}

