:root {
  color-scheme: light;
  --paper: #f8f6ee;
  --white: #fff;
  --ink: #1c271e;
  --muted: #4c554a;
  --dark: #203328;
  --lime: #e4ec93;
  --line: #cfcec0;
  --sage: #ebefda;
  --serif: "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.6 var(--sans); }
h1, h2, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: .21em; }
:focus-visible { outline: 3px solid #6f8638; outline-offset: 4px; }
.skip { position: absolute; top: .8rem; left: .8rem; transform: translateY(-200%); background: #fff; padding: .8rem; z-index: 2; }
.skip:focus { transform: none; }
.wrap { width: min(91%, 75rem); margin-inline: auto; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: 5.2rem; }
.masthead p, .footer p { color: var(--muted); font-weight: 720; }
.masthead p { text-align: right; text-wrap: balance; }
.wordmark { font: 820 clamp(2.4rem, 5vw, 4.2rem)/1 var(--sans); letter-spacing: -.105em; text-decoration: none; padding-right: .08em; }
.wordmark span { color: #647d39; }
.navigation { border-block: 1px solid var(--line); display: flex; gap: .35rem 1.6rem; flex-wrap: wrap; padding-block: .65rem; }
.navigation a { text-decoration: none; font-weight: 690; }
.navigation a:hover { text-decoration: underline; }
.issue-date { margin-top: 1rem; padding: .65rem 1rem; background: var(--lime); text-align: center; }
.issue-date time, .next-issue time { font-weight: 750; }
.cover { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); background: var(--dark); color: var(--paper); }
.cover-copy { padding: clamp(1.15rem, 3.65vw, 3.5rem); align-self: center; }
.cover-kicker { color: var(--lime); font-weight: 750; }
h1, h2 { font-family: var(--serif); font-weight: 520; line-height: 1.06; letter-spacing: -.048em; text-wrap: balance; }
.cover h1 { font-size: clamp(2.3rem, 4.6vw, 4.85rem); margin-block: .48rem .7rem; }
.cover-lead { max-width: 39ch; color: #eceee4; font-size: clamp(1rem, 1.55vw, 1.125rem); }
.button { display: inline-flex; min-height: 2.85rem; align-items: center; justify-content: center; margin-top: 1.25rem; padding: .55rem 1rem; background: var(--lime); color: var(--ink); text-decoration: none; font-weight: 760; }
.button:hover { background: #f0f3b2; }
.cover-visual { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 2px; min-width: 0; }
.cover-photo { position: relative; overflow: hidden; width: 100%; aspect-ratio: 3 / 1; }
.cover-photo img { display: block; position: absolute; top: 0; width: 100%; height: 200%; object-fit: fill; }
.cover-photo-after img { inset: auto 0 0; }
.cover-photo span { position: absolute; left: .65rem; bottom: .55rem; background: var(--paper); color: var(--ink); padding: .15rem .5rem; font-size: .875rem; font-weight: 750; }
.cover-visual figcaption { color: #eceee4; font-size: .875rem; padding: .32rem .65rem .55rem; }
.contents { padding-block: clamp(1.8rem, 4.8vw, 3.9rem); }
.contents h2 { font-size: clamp(2.2rem, 4.5vw, 3.7rem); margin-bottom: .9rem; }
.magazine-intro { max-width: 64ch; margin-bottom: 1.15rem; }
.magazine-intro a, .reading-next a { font-weight: 750; }
.topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.topics > div { padding: 1rem 1.05rem 1rem 0; scroll-margin-top: 1.25rem; }
.topics > div + div { border-left: 1px solid var(--line); padding-left: 1rem; }
.topics dt { font-weight: 760; margin-bottom: .35rem; }
.topics dd { color: var(--muted); }
.topics > div:target { background: var(--sage); }
.eyebrow { color: #3e5229; font-weight: 760; font-size: .9rem; }
.small { font-size: .86rem; color: var(--muted); margin-top: .5rem; }
.footer { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; border-top: 1px solid var(--line); padding-block: 1rem 1.7rem; }
.footer .wordmark { font-size: 1.9rem; }
.story { max-width: 60rem; padding-block: 1.5rem 2.5rem; border-top: 1px solid var(--line); }
.story-heading { margin-block: 1.4rem 1.45rem; max-width: 49rem; }
.story h1 { font-size: clamp(2.7rem, 6vw, 5.35rem); margin-block: 1.2rem .85rem; }
.story-heading > p:not(.eyebrow) { max-width: 58ch; }
.story-heading > p + p, .guide-copy > p + p:not(.small) { margin-top: .65rem; }
.back, .partner a { font-weight: 750; }
.guide-copy { max-width: 43rem; margin-block: 1.8rem; }
.guide-copy h2 { font-size: clamp(1.7rem, 3.1vw, 2.45rem); margin-block: 1.35rem .55rem; }
.next-issue { max-width: 43rem; margin-block: 2rem 1.25rem; padding: 1rem 1.25rem; background: var(--sage); }
.next-issue h2, .partner h2 { font-size: clamp(1.4rem, 2.35vw, 1.85rem); line-height: 1.16; text-wrap: pretty; margin-bottom: .45rem; }
.partner { max-width: 43rem; padding: 1rem 1.25rem; border: 1px solid var(--line); }
.partner h2 { margin-top: .4rem; }
.partner a { display: inline-block; margin-top: .55rem; }
.tech-intro { margin-block: 1.15rem 2rem; padding: clamp(1.25rem, 5vw, 3.75rem); background: var(--dark); color: var(--paper); }
.tech-intro h1 { font-size: clamp(3.2rem, 8.5vw, 7rem); }
.tech-intro p { margin-top: .65rem; max-width: 48ch; font-size: clamp(1rem, 2.2vw, 1.35rem); }
.tech-dossier > h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); margin-bottom: 1.1rem; text-align: left; }
.tech-dossier { margin-bottom: 2.5rem; }
.tech-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.tech-card { border: 1px solid var(--line); }
.tech-card a { display: block; height: 100%; text-decoration: none; }
.tech-card a:hover h3 { text-decoration: underline; }
.tech-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.tech-card img.portrait-crop { object-position: center 19%; }
.tech-card div { padding: clamp(1rem, 2.8vw, 1.7rem); }
.tech-card h3 { margin: .35rem 0 .45rem; font: 520 clamp(1.6rem, 3vw, 2.6rem)/1.08 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
.tech-card div > p:last-child { color: var(--muted); }
.tech-story-photo { max-width: 43rem; }
.tech-story-photo img { display: block; max-width: 100%; width: auto; height: auto; max-height: 28rem; object-fit: contain; }
.reading-next { border-top: 1px solid var(--line); padding-top: 1rem; }
.reading-next h2 { margin-bottom: .6rem; font-size: 1.85rem; }
.reading-next ul { margin: 0; padding-left: 1.25rem; }
.reading-next li + li { margin-top: .4rem; }
@media (max-width: 720px) {
  .masthead { min-height: 4.25rem; }
  .masthead p, .navigation { font-size: .86rem; }
  .navigation { gap: .25rem .8rem; }
  .issue-date { margin-top: .65rem; padding-block: .45rem; }
  .cover { grid-template-columns: 1fr; }
  .topics { grid-template-columns: 1fr 1fr; }
  .topics > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .topics > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .tech-grid { grid-template-columns: 1fr; }
}

.comparison { --position: 50%; --frame-aspect: 3 / 1; }
.comparison-scene {
  position: relative;
  aspect-ratio: var(--frame-aspect);
  background: #383633;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: pan-y;
}
.comparison-frame, .comparison-frame img { position: absolute; display: block; width: 100%; }
.comparison-frame { inset: 0; overflow: hidden; }
.comparison-frame img { height: 200%; object-fit: fill; pointer-events: none; }
.comparison-before { clip-path: inset(0 var(--position) 0 0); }
.comparison-before img { top: 0; }
.comparison-after img { bottom: 0; }
.comparison-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(100% - var(--position));
  width: 2px;
  background: white;
  box-shadow: 0 0 5px #211d19;
  transform: translateX(-50%);
  pointer-events: none;
}
.comparison-divider::after {
  content: '↔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  background: var(--white);
  color: var(--ink);
  border-radius: 50%;
  font-weight: 800;
}
.comparison-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem;
  background: var(--sage);
  padding: .45rem .65rem;
}
.comparison-controls button {
  color: var(--ink);
  background: none;
  border: 0;
  padding: .4rem;
  min-height: 2.6rem;
  font-weight: 700;
}
.comparison-controls button:hover { text-decoration: underline; }
.comparison-controls input { min-width: 0; width: 100%; height: 2.6rem; margin: 0; cursor: ew-resize; accent-color: #537336; }
.comparison figcaption { color: var(--muted); font-size: .875rem; margin-top: .45rem; }
@media (max-width: 780px) {
  .navigation { justify-content: center; }
  .comparison-scene { min-height: 9.5rem; }
  .comparison-frame img { object-fit: cover; }
  .comparison-before img { object-position: center top; }
  .comparison-after img { object-position: center bottom; }
}
.comparison-controls input { direction: rtl; }

@media (max-width: 720px) { .comparison-scene { --frame-aspect: 2.35 / 1; min-height: 0; } }
