* { box-sizing: border-box; }

:root {
  color-scheme: light;
  --sans: "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "Cascadia Mono", Consolas, monospace;
}

body {
  --page: #f5f5f3;
  --ink: #1b1b1b;
  --muted: #565653;
  --line: #c9c9c4;
  --paper: #fff;
  --accent: #181818;
  --accent-ink: #fff;
  --title: var(--sans);
  --label: var(--mono);
  --gutter: clamp(18px, 4.2vw, 64px);
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
}

a { color: inherit; }
a:focus-visible { outline: 3px solid #ff9d43; outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }

.preview-bar {
  position: relative;
  z-index: 2;
  color: #f4f3f2;
  background: #1b1a19;
  border-bottom: 1px solid #373635;
  font: 12px/1.2 var(--sans);
}

.preview-inner {
  max-width: 1510px;
  margin: auto;
  padding: 7px var(--gutter);
  min-height: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 19px;
}

.preview-label, .reference-link { white-space: nowrap; }
.preview-label { font: 10px/1.2 var(--mono); letter-spacing: .08em; color: #c6c4c0; }
.reference-link { margin-inline-start: auto; text-underline-offset: 3px; }
.theme-switch { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }

.theme-link {
  display: block;
  border-radius: 3px;
  padding: 6px 9px;
  text-decoration: none;
  white-space: nowrap;
}

.theme-link:hover { background: #393735; }
.theme-link[aria-current="page"] { background: #f4f3f2; color: #1b1a19; font-weight: 650; }

.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner, .footer-inner {
  max-width: 1510px;
  margin: auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .2em;
  flex: none;
  font: 750 27px/1 var(--title);
  letter-spacing: -.08em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark-dot { margin-inline-start: -.2em; }
.brand-mark { font: 17px/1 var(--sans); margin-inline-end: .12em; }
.site-nav { display: flex; gap: clamp(12px, 2.7vw, 36px); flex-wrap: wrap; align-items: center; }
.site-nav a { font-size: 13px; font-weight: 650; text-decoration: none; }
.site-nav a:hover, .secondary-cta:hover, .history-link:hover { text-decoration-thickness: 2px; }
.site-nav a:hover { text-decoration-line: underline; text-underline-offset: 4px; }
.edition, .eyebrow, .section-kicker, .media-index, .media-caption {
  font: 600 11px/1.35 var(--label);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.edition { white-space: nowrap; }
main { max-width: 1510px; padding: 0 var(--gutter); margin: 0 auto; }
.hero, .details { display: grid; min-width: 0; }
.hero { margin: clamp(24px, 3.3vw, 50px) 0; grid-template-columns: 1.04fr .96fr; }
.hero-copy { min-width: 0; padding: clamp(28px, 5.1vw, 80px); align-content: center; }

.hero-media {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  isolation: isolate;
  min-width: 0;
  min-height: clamp(360px, 47vw, 655px);
  padding: 45px 25px;
  background: #e8e4e0;
  overflow: hidden;
}

.hero-media img {
  width: min(87%, 480px);
  height: clamp(290px, 37vw, 520px);
  object-fit: contain;
  filter: drop-shadow(8px 25px 25px rgb(30 20 10 / 14%));
}

.media-index, .media-caption { position: absolute; z-index: 1; margin: 0; }
.media-index { top: 18px; left: 20px; }
.media-caption { right: 20px; bottom: 18px; text-align: right; }
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; }
.tag { display: inline-block; padding: 6px 9px; color: var(--accent-ink); background: var(--accent); }

h1, h2 { font-family: var(--title); }
h1 {
  margin-block-start: 18px;
  font-size: clamp(39px, 4.7vw, 76px);
  line-height: .97;
  letter-spacing: -.072em;
  text-wrap: balance;
}

.product-name { margin-top: 19px; font-size: clamp(15px, 1.5vw, 21px); font-weight: 690; }
.lede { margin-top: 10px; max-width: 49ch; color: var(--muted); }

.specs {
  list-style: none;
  padding: 0;
  margin: 26px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.specs li { padding: 10px 8px 0 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.specs strong, .specs span { display: block; }
.specs strong { font: 700 clamp(14px, 1.5vw, 19px)/1.2 var(--title); letter-spacing: -.025em; }
.specs span { margin-top: 4px; font-size: 12px; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.primary-cta, .secondary-cta, .history-link {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: .24em;
}

.primary-cta {
  padding: 10px 15px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid transparent;
  text-decoration: none;
}

.primary-cta:hover { filter: brightness(.9); }
.disclosure, .methodology { color: var(--muted); font-size: 12px; line-height: 1.5; }
.disclosure { margin-top: 12px; }
.details { grid-template-columns: 1.65fr 1fr; margin-bottom: clamp(30px, 6vw, 85px); gap: 16px; }
.review-panel, .price-panel { min-width: 0; padding: clamp(24px, 3.9vw, 58px); background: var(--paper); }
.section-kicker { margin-bottom: 12px; }
h2 { margin-bottom: 17px; font-size: clamp(29px, 3.4vw, 52px); letter-spacing: -.06em; line-height: 1.05; }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.notes h3 { margin-bottom: 5px; font-size: 15px; line-height: 1.3; }
.notes p, .price-panel > p:not(.section-kicker) { color: var(--muted); font-size: 14px; }
.methodology { margin-top: 21px; padding-top: 13px; border-top: 1px solid var(--line); }
.history-link { margin-top: 13px; }
.footer { border-top: 1px solid var(--line); }
.footer-inner > span { font: 700 23px/1 var(--title); letter-spacing: -.05em; }
.footer-inner > p { color: var(--muted); font-size: 12px; }

/* Dropbox Brand — offset color tiles on a steady blue grid. */
[data-theme="dropbox"] {
  --page: #f2f6fe;
  --ink: #16284b;
  --muted: #344368;
  --line: #b9c9ea;
  --accent: #123fc7;
  --paper: #fff;
  background-image: linear-gradient(#4673d615 1px, transparent 1px),
                    linear-gradient(90deg, #4673d615 1px, transparent 1px);
  background-size: 36px 36px;
}

[data-theme="dropbox"] .masthead { background: #fff; }
[data-theme="dropbox"] .brand-mark { color: #1858e1; }
[data-theme="dropbox"] .hero {
  grid-template-columns: 1.06fr .94fr;
  gap: 14px;
  align-items: start;
}

[data-theme="dropbox"] .hero-media {
  background: #4bcde2;
  min-height: clamp(380px, 44vw, 590px);
  margin-block-start: 28px;
  margin-inline-end: 7%;
}

[data-theme="dropbox"] .hero-media::before {
  content: "";
  position: absolute;
  z-index: -1;
  background: #86dfed;
  width: 62%;
  aspect-ratio: 1;
  transform: rotate(-13deg);
}

[data-theme="dropbox"] .hero-copy { background: #ffd45a; padding: clamp(25px, 3.75vw, 62px); }
[data-theme="dropbox"] h1 { font-size: clamp(40px, 5.25vw, 80px); }
[data-theme="dropbox"] .specs li { border-color: #947b2e; }
[data-theme="dropbox"] .details { grid-template-columns: 1fr .76fr; }
[data-theme="dropbox"] .review-panel { background: #d9c5f9; margin-right: 7%; }
[data-theme="dropbox"] .price-panel { background: #c9ec67; align-self: start; }

/* Temper archive — material tones, split photography, quiet retail typography. */
[data-theme="temper"] {
  --page: #f5efe5;
  --ink: #33271e;
  --muted: #5f4f42;
  --line: #bcad9d;
  --paper: #ede4d7;
  --accent: #413226;
  --title: var(--serif);
}

[data-theme="temper"] .wordmark { font-weight: 400; letter-spacing: -.05em; }
[data-theme="temper"] .masthead { background: #ece0d1; }
[data-theme="temper"] .hero {
  position: relative;
  margin: 0 calc(-1 * var(--gutter));
  grid-template-columns: 1.12fr .88fr;
  min-height: 620px;
}

[data-theme="temper"] .hero-media {
  background:
    radial-gradient(ellipse at 63% 42%, #e5c7a5 0, transparent 48%),
    linear-gradient(106deg, #34231b 0 43%, #a77b5b 43.2%, #d7af8a 71%, #b98d6b 100%);
  min-height: 100%;
  color: #fff8ec;
}

[data-theme="temper"] .hero-media img {
  margin-inline-start: 10%;
  transform: rotate(-5deg);
  filter: drop-shadow(20px 32px 24px rgb(44 24 15 / 37%));
}

[data-theme="temper"] .media-caption {
  background: #3d2c21;
  padding: 6px 9px;
}

[data-theme="temper"] .hero-copy { padding-inline: clamp(35px, 5vw, 85px); }
[data-theme="temper"] :is(h1, h2) { font-weight: 400; letter-spacing: -.058em; }
[data-theme="temper"] h1 { font-size: clamp(41px, 5vw, 76px); }
[data-theme="temper"] .specs strong { font: 700 16px/1.2 var(--sans); }
[data-theme="temper"] .details { grid-template-columns: 1.36fr .85fr; margin-top: 45px; gap: 30px; }
[data-theme="temper"] .review-panel { background: transparent; padding-inline: 0; }
[data-theme="temper"] .price-panel { align-self: center; border: 1px solid #cbbba8; }

/* i-D — high-contrast cover lines and a print-style reading spread. */
[data-theme="id"] {
  --page: #edf5f5;
  --ink: #0e191e;
  --muted: #324750;
  --line: #a4b9bc;
  --paper: #f7faf9;
  --accent: #0d2026;
  --title: Arial, sans-serif;
}

[data-theme="id"] .masthead { border-bottom: 2px solid var(--ink); background: #a3eff3; }
[data-theme="id"] .wordmark { font-size: 34px; font-weight: 900; }
[data-theme="id"] .brand-mark { font-size: 18px; }
[data-theme="id"] .hero {
  grid-template-columns: 1.18fr .82fr;
  position: relative;
  gap: 0;
  margin-top: 18px;
}

[data-theme="id"] .hero-media {
  background:
    radial-gradient(ellipse at 34% 44%, #e5f6f6 0, transparent 56%),
    linear-gradient(138deg, #bdcacf 1%, #45565c 67%, #253539 100%);
  min-height: clamp(450px, 48vw, 690px);
}

[data-theme="id"] .hero-media img {
  width: min(92%, 600px);
  height: clamp(360px, 43vw, 625px);
  transform: translateX(-10%) rotate(-11deg);
  filter: drop-shadow(22px 30px 32px rgb(0 0 0 / 23%));
}

[data-theme="id"] .media-caption { color: #fff; }
[data-theme="id"] .hero-copy {
  position: relative;
  z-index: 1;
  padding-left: 0;
  padding-right: clamp(15px, 2vw, 32px);
}

[data-theme="id"] h1 {
  width: calc(100% + clamp(42px, 8.6vw, 132px));
  margin-inline-start: calc(-1 * clamp(42px, 8.6vw, 132px));
  padding: 17px 10px 20px 16px;
  background: #a3eff3;
  text-transform: uppercase;
  font-size: clamp(33px, 4.4vw, 73px);
  font-weight: 900;
  text-wrap: pretty;
}

[data-theme="id"] .lede { font: clamp(16px, 1.5vw, 22px)/1.45 var(--serif); }
[data-theme="id"] .details { grid-template-columns: 1.25fr .75fr; border-top: 2px solid var(--ink); gap: 0; }
[data-theme="id"] .review-panel { background: transparent; }
[data-theme="id"] .price-panel { background: #a3eff3; }
[data-theme="id"] .review-panel h2 { font: 400 clamp(33px, 4vw, 60px)/1 var(--serif); letter-spacing: -.055em; }

/* Astral — pixel geometry, instrument labels, and a foreground price panel. */
[data-theme="astral"] {
  --page: #f1f1eb;
  --ink: #25152c;
  --muted: #574762;
  --line: #bdb3c0;
  --paper: #fbfbf4;
  --accent: #291835;
  --title: var(--mono);
}

[data-theme="astral"] .masthead { border-top: 7px solid var(--ink); }
[data-theme="astral"] .wordmark { text-transform: uppercase; font-size: 25px; letter-spacing: -.07em; }
[data-theme="astral"] .brand-mark { background: #d3fa62; padding: 4px; }
[data-theme="astral"] .hero { grid-template-columns: 1.18fr .82fr; gap: 2px; }
[data-theme="astral"] .hero-copy {
  grid-column: 1;
  grid-row: 1;
  background: #eae8e9;
  border: 1px solid var(--line);
  padding-inline: clamp(27px, 4.3vw, 66px);
}

[data-theme="astral"] .hero-media {
  grid-column: 2;
  grid-row: 1;
  min-height: clamp(390px, 44vw, 630px);
  border: 1px solid var(--line);
  background:
    linear-gradient(#3f28561d 1px, transparent 1px),
    linear-gradient(90deg, #3f28561d 1px, transparent 1px), #f8f8f0;
  background-size: 24px 24px;
}

[data-theme="astral"] .hero-media::before {
  content: "";
  width: 83%;
  height: 73%;
  position: absolute;
  z-index: -1;
  background: #d6fb68;
  clip-path: polygon(9% 0, 91% 0, 91% 9%, 100% 9%, 100% 82%, 89% 82%, 89% 100%, 0 100%, 0 11%, 9% 11%);
}

[data-theme="astral"] .hero-media img { width: 89%; }
[data-theme="astral"] h1 { font-size: clamp(33px, 4.6vw, 68px); letter-spacing: -.084em; }
[data-theme="astral"] .tag { color: var(--ink); background: #d6fb68; border: 1px solid var(--ink); }
[data-theme="astral"] .specs { gap: 1px; border: 1px solid var(--line); background: var(--line); }
[data-theme="astral"] .specs li { background: #f4f2f5; border: 0; padding: 10px; }
[data-theme="astral"] .details { grid-template-columns: 1fr 1fr; gap: 2px; }
[data-theme="astral"] .review-panel { border: 1px solid var(--line); }
[data-theme="astral"] .price-panel { background: #d6fb68; border: 1px solid #687d27; }
[data-theme="astral"] .history-link { font-family: var(--mono); }

/* Nothing — a nearly black product stage and a quieter white catalog. */
[data-theme="nothing"] {
  --page: #f7f7f5;
  --ink: #161616;
  --muted: #555;
  --line: #bfbfb8;
  --paper: #fff;
  --accent: #e8e8e4;
  --accent-ink: #1c1c1c;
  --title: var(--sans);
}

[data-theme="nothing"] .wordmark { text-transform: lowercase; font-family: var(--mono); letter-spacing: -.1em; }
[data-theme="nothing"] .brand-mark { color: #d51924; }
[data-theme="nothing"] .masthead { background: #f4f4f2; }
[data-theme="nothing"] .hero {
  --ink: #fafaf9;
  --muted: #cccac7;
  --line: #5b5b59;
  color: var(--ink);
  margin: 0 calc(-1 * var(--gutter));
  background: #141414;
  grid-template-columns: .86fr 1.14fr;
}

[data-theme="nothing"] .hero-copy {
  grid-column: 1;
  grid-row: 1;
  z-index: 1;
  padding-left: max(var(--gutter), 8vw);
  padding-right: 4%;
}

[data-theme="nothing"] .hero-media {
  grid-column: 2;
  grid-row: 1;
  min-height: clamp(490px, 47vw, 690px);
  background:
    radial-gradient(ellipse at 51% 44%, #343434, #141414 65%),
    #141414;
}

[data-theme="nothing"] .hero-media::before {
  content: "";
  inset: 24px 24px 24px 0;
  position: absolute;
  z-index: -1;
  background: radial-gradient(circle, #adada73a 1px, transparent 1.6px) 0 0 / 24px 24px;
  mask-image: radial-gradient(ellipse, #000 20%, transparent 74%);
}

[data-theme="nothing"] .hero-media img {
  width: min(85%, 600px);
  height: clamp(370px, 40vw, 580px);
  filter: drop-shadow(25px 20px 34px #000a);
}

[data-theme="nothing"] .media-index { color: #c1bfbb; }
[data-theme="nothing"] .media-caption { color: #c1bfbb; }
[data-theme="nothing"] h1 { font-size: clamp(42px, 5.5vw, 84px); font-weight: 530; }
[data-theme="nothing"] .hero .tag { color: #fff; background: #a71621; }
[data-theme="nothing"] .primary-cta { border-radius: 3px; }
[data-theme="nothing"] .details { grid-template-columns: 1.6fr 1fr; gap: 1px; margin-top: 35px; background: #d1d1c8; border: 1px solid #d1d1c8; }
[data-theme="nothing"] .price-panel { background: #ededeb; }
[data-theme="nothing"] .details h2 { font-weight: 520; }

@media (max-width: 950px) {
  .masthead-inner { gap: 12px 18px; }
  .hero-copy { padding-inline: clamp(18px, 3.1vw, 32px); }
  [data-theme="temper"] .hero { min-height: 0; }
  [data-theme="temper"] .hero-copy { padding-inline: clamp(20px, 3vw, 35px); }
  [data-theme="id"] .hero-copy { padding-left: 0; }
  [data-theme="id"] .hero-media { min-height: 475px; }
  [data-theme="nothing"] .hero-copy { padding-left: var(--gutter); }
  .notes { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .preview-inner { column-gap: 8px; row-gap: 4px; }
  .preview-label { margin-right: auto; }
  .theme-switch { order: 2; width: 100%; gap: 3px; }
  .theme-link { padding: 5px 6px; }
  .masthead-inner { flex-wrap: wrap; padding-block: 13px; row-gap: 9px; }
  .site-nav { order: 2; width: 100%; gap: 9px 18px; }
  .site-nav a { padding: 4px 0; }

  .hero,
  [data-theme] .hero,
  [data-theme] .details { grid-template-columns: minmax(0, 1fr); }

  .hero { margin-top: 16px; }
  .hero-media,
  [data-theme] .hero-media { min-height: 0; padding: 36px 13px; grid-column: auto; grid-row: auto; }
  .hero-media img,
  [data-theme] .hero-media img { height: clamp(235px, 76vw, 380px); }
  .media-index { top: 12px; left: 12px; }
  .media-caption { bottom: 12px; right: 12px; }
  .hero-copy,
  [data-theme] .hero-copy { grid-column: auto; grid-row: auto; padding: 25px var(--gutter) 30px; }
  .hero h1,
  [data-theme] .hero h1 { font-size: clamp(34px, 10vw, 56px); text-wrap: balance; }
  .specs { margin: 21px 0; }
  .review-panel, .price-panel { padding: 22px var(--gutter); }
  .footer-inner { flex-wrap: wrap; }

  [data-theme="dropbox"] .hero-media { margin: 0 8px 0 0; }
  [data-theme="dropbox"] .hero-copy { margin-left: 8px; }
  [data-theme="dropbox"] .review-panel { margin-right: 8px; }
  [data-theme="dropbox"] .price-panel { margin-left: 8px; }
  [data-theme="temper"] .details { margin-top: 15px; gap: 7px; }
  [data-theme="id"] .hero-media img { transform: translateX(-6%) rotate(-8deg); }
  [data-theme="id"] .hero-copy { margin-top: -52px; padding-inline: 10px; }
  [data-theme="id"] .hero h1 {
    width: auto;
    margin-inline: -10px 8px;
    margin-block-start: 8px;
    padding: 13px 10px 13px 11px;
    font-size: clamp(29px, 8vw, 52px);
  }

  [data-theme="id"] .eyebrow { width: max-content; max-width: 100%; padding: 4px; background: #edf5f5; }
  [data-theme="id"] .media-caption { bottom: 55px; }
  [data-theme="astral"] .hero-media { order: -1; }
  [data-theme="astral"] .hero h1 { font-size: clamp(29px, 8.7vw, 49px); }
  [data-theme="nothing"] .hero-copy { padding-top: 8px; }
  [data-theme="nothing"] .hero-media { padding-block-end: 45px; }
}
