:root {
  --paper: #dce1d8;
  --paper-2: #cdd4c8;
  --ink: #17201b;
  --muted: #4f5a4c;
  --rust: #933a17;
  --line: #b4bdae;
  --serif: "Gloock", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Schibsted Grotesk", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  /* Meter: Fair Web tokens (light). Full = slate, lite = commons blue; never swapped. */
  --m-ink: #0b2540;
  --m-meta: #4a5560;
  --m-rule: #d5dee6;
  --m-wash: #e8f5fc;
  --m-slate: #5b6670;
  --m-blue: #009edb;
  --m-blue-text: #006ba6;
  --m-sys: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.55 var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, #e8ede3 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 40%, #cdd5c8 0%, transparent 55%),
    var(--paper);
  overflow-x: hidden;
}
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--paper-2); padding: 1px 5px; border-radius: 3px; }

/* ---------- Meter ---------- */
/* System fonts only: the meter must not add a web font to either version. */
.meter {
  --v: var(--m-slate); --v-text: var(--m-slate); --o: var(--m-blue);
  position: sticky; top: 0; z-index: 20;
  background: #fff; color: var(--m-ink);
  font: 13px/18px var(--m-sys); font-variant-numeric: tabular-nums;
  border-top: 4px solid var(--v); border-bottom: 1px solid var(--m-rule);
  box-shadow: 0 6px 18px rgba(11, 37, 64, 0.08);
}
html[data-variant="lite"] .meter { --v: var(--m-blue); --v-text: var(--m-blue-text); --o: var(--m-slate); }
.meter p, .meter dl, .meter dd { margin: 0; }
.meter a { color: var(--m-blue-text); }
.meter :focus-visible { outline: 3px solid var(--m-blue-text); outline-offset: 2px; }
.meter ::selection { background: var(--m-blue); color: var(--m-ink); }

.m-band {
  max-width: 1400px; margin: 0 auto; padding: 10px 20px;
  display: grid; align-items: start; gap: 4px 22px;
  grid-template-columns: minmax(170px, 1fr) minmax(300px, 1.9fr) auto minmax(230px, 1.15fr) auto;
  grid-template-areas: "id dl cells times act" "chg dl cells times act";
}
.m-id { grid-area: id; display: flex; flex-direction: column; gap: 6px; }
.m-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.m-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; font: 700 11px/1 var(--m-sys); letter-spacing: 0.08em; background: var(--m-slate); color: #fff; }
.m-badge::before { content: ""; width: 7px; height: 7px; border: 2px solid #fff; box-sizing: border-box; }
html[data-variant="lite"] .m-badge { background: var(--m-blue); color: var(--m-ink); }
html[data-variant="lite"] .m-badge::before { background: var(--m-ink); border: 0; }
.m-as { color: var(--m-meta); font-size: 12px; }
.m-why { font-size: 13px; line-height: 17px; }

.m-dl { grid-area: dl; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.m-k { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; line-height: 15px; color: var(--m-meta); }
.m-k { white-space: nowrap; }
.m-k > span:first-child { font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.m-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; }
.m-big [data-m="bytes"] { font: 300 42px/44px var(--m-sys); letter-spacing: -0.02em; color: var(--v-text); white-space: nowrap; }
.m-big { flex-wrap: nowrap; align-items: center; }
.m-refs { display: flex; flex-direction: column; font-size: 12px; line-height: 15px; white-space: nowrap; }
.m-own { color: var(--m-ink); }
.m-other { font-weight: 600; color: var(--m-blue-text); white-space: nowrap; }
html[data-variant="lite"] .m-other { color: var(--m-slate); }
.m-scale { position: relative; height: 18px; margin-top: 2px; }
.m-scale i { position: absolute; left: 0; display: block; width: 0; transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.m-this { top: 0; height: 8px; background: var(--v); min-width: 2px; }
.m-that { top: 9px; height: 4px; background: var(--o); min-width: 2px; }
.m-scale .m-whole { top: -3px; height: 15px; width: 2px; background: var(--m-ink); transform: translateX(-1px); transition: none; }
.m-ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; border-bottom: 1px solid var(--m-ink);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='4'%3E%3Crect width='1' height='4' fill='%230b2540'/%3E%3C/svg%3E") left bottom / 10% 4px repeat-x; }
.m-axis { display: flex; justify-content: space-between; font-size: 10px; line-height: 12px; color: var(--m-meta); }
.m-note { font-size: 11px; line-height: 15px; color: var(--m-meta); }
.m-note:empty { display: none; }

.m-cells { grid-area: cells; display: grid; grid-template-columns: repeat(3, auto); gap: 0 16px; }
.m-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.m-cell dt { font-size: 11px; line-height: 15px; color: var(--m-meta); }
.m-cell dt span, .m-cell dt b { display: block; }
.m-cell dt b { font-weight: 700; }
.m-cell dd { font: 300 24px/28px var(--m-sys); white-space: nowrap; }
.m-cell dd.m-s { display: none; }

.m-times { grid-area: times; display: grid; grid-template-columns: 1fr; gap: 4px; }
.m-times div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; min-width: 0; }
.m-times dt { white-space: nowrap; }
.m-times dt { font-size: 11px; line-height: 15px; color: var(--m-meta); }
.m-times abbr { text-decoration: none; margin-left: 2px; }
.m-times dd { font-size: 13px; line-height: 17px; font-weight: 500; white-space: nowrap; }
.m-wait { color: var(--m-meta); font-weight: 400; }
.m-r { font-size: 11px; font-weight: 400; color: var(--m-meta); }
.m-times [data-r="good"] + .m-r::before, .m-times [data-r="needs-improvement"] + .m-r::before, .m-times [data-r="poor"] + .m-r::before { content: "· "; }

.m-act { grid-area: act; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.m-sim { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer; text-align: left; font: 600 13px/17px var(--m-sys); color: var(--m-ink); }
.m-sim small { display: none; }
.m-track { position: relative; width: 52px; height: 30px; flex: none; border: 2px solid var(--m-ink); border-radius: 15px; background: #fff; box-sizing: border-box; transition: background-color 0.2s; }
.m-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--m-ink); transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s; }
.m-sim[aria-checked="true"] .m-track { background: var(--m-blue-text); border-color: var(--m-blue-text); }
.m-sim[aria-checked="true"] .m-track::after { transform: translateX(22px); background: #fff; }
.m-sim:disabled { cursor: progress; }
.m-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; font: 700 14px/1 var(--m-sys); text-decoration: none; white-space: nowrap; color: #fff; background: var(--m-blue-text); transition: background-color 0.15s; }
html[data-variant="lite"] .m-btn { background: var(--m-slate); }
.meter .m-btn { color: #fff; }
.m-btn:hover { background: #00578a; }
html[data-variant="lite"] .m-btn:hover { background: #47515a; }

/* Details sit in the band and drop below it, so the sticky band itself stays under 120 px. */
.m-changes { grid-area: chg; align-self: end; }
.m-changes summary { cursor: pointer; font-size: 12px; line-height: 16px; color: var(--m-blue-text); width: max-content; max-width: 100%; padding: 2px 0; }
.m-changes-body { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--m-rule); border-bottom: 1px solid var(--m-rule); box-shadow: 0 10px 24px rgba(11, 37, 64, 0.12); padding: 14px 20px 16px; }
.m-changes-body ul { max-width: 1360px; margin: 0 auto 10px; padding-left: 18px; columns: 2 320px; column-gap: 32px; }
.m-changes-body li { margin-bottom: 4px; break-inside: avoid; }
.m-changes-body li::marker { color: var(--m-blue-text); }
.m-changes-body p { max-width: 1360px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.m-changes-body a { display: inline-flex; align-items: center; min-height: 32px; }

.m-cmp { border-top: 1px solid var(--m-rule); padding: 10px 20px 14px; max-width: 1400px; margin: 0 auto; overflow-x: auto; animation: drop 0.35s ease-out; }
.m-cmp table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.m-cmp summary { color: var(--m-meta); cursor: pointer; padding-bottom: 6px; }
.m-cmp th, .m-cmp td { text-align: right; padding: 3px 14px 3px 0; white-space: nowrap; }
.m-cmp thead th { color: var(--m-meta); font-weight: 400; }
.m-cmp tbody th { text-align: left; color: var(--m-meta); font-weight: 400; }
.m-cmp td:last-child { color: var(--m-blue-text); font-weight: 600; }
.m-clear { margin-top: 8px; font: 12px var(--m-sys); background: none; color: var(--m-ink); border: 1px solid var(--m-rule); padding: 8px 12px; cursor: pointer; }
html.embedded .m-act, html.embedded .m-cmp, html.embedded .m-changes { display: none !important; }
/* Inside the side-by-side phones the meter is one line, so the shop stays in view and nothing truncates.
   Timings and their ratings stay on the real shop: on one shared connection they are only indicative. */
html.embedded .meter .m-band { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px 16px; padding: 10px 16px; }
html.embedded .m-why, html.embedded .m-as, html.embedded .m-live, html.embedded .m-refs, html.embedded .m-scale,
html.embedded .m-axis, html.embedded .m-note, html.embedded .m-times, html.embedded .m-cell:not(.m-c-mbps), html.embedded .m-cell dd.m-s { display: none !important; }
html.embedded .m-dl { flex-direction: row; align-items: baseline; gap: 8px; }
html.embedded .m-k { font-size: 11px; }
html.embedded .meter .m-big [data-m="bytes"] { font-size: 26px; line-height: 30px; }
html.embedded .m-cells { display: block; border: 0; }
html.embedded .m-cell { flex-direction: row; align-items: baseline; gap: 8px; padding: 0 !important; border: 0 !important; }
html.embedded .m-cell dt { font-size: 11px; } html.embedded .m-cell dt b { display: inline; }
html.embedded .meter .m-cell dd { font-size: 20px; line-height: 24px; }

/* Mid widths: plain names only, so the band stays one line of columns under 120 px. */
@media (max-width: 1180px) and (min-width: 861px) {
  .m-band { grid-template-columns: minmax(130px, 1fr) minmax(170px, 1.3fr) auto minmax(170px, 1.2fr) auto; gap: 4px 14px; padding: 10px 16px; }
  .m-big [data-m="bytes"] { font-size: 30px; line-height: 32px; }
  .m-big { flex-wrap: wrap; }
  .m-refs { flex-basis: 100%; font-size: 11px; line-height: 14px; }
  .m-axis { display: none; }
  .m-other, .m-live { display: none; }
  .m-cell dt span, .m-times abbr, .m-as, .m-r { display: none; }
  .m-times { grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .m-times div { flex-direction: column; justify-content: flex-start; gap: 0; }
  .m-times dt { white-space: normal; }
  .m-sim { gap: 8px; }
  .m-cells { grid-template-columns: repeat(3, auto); gap: 0 12px; }
  .m-cell dt { white-space: nowrap; }
  .m-cell dd { font-size: 20px; line-height: 24px; }
  .m-act { max-width: 170px; }
  .m-sim { white-space: normal; }
  .m-why { font-size: 12px; line-height: 16px; }
  .m-sim { font-size: 12px; } .m-btn { padding: 0 12px; }
}

@media (max-width: 1180px) and (min-width: 861px) { .m-band { padding-top: 8px; padding-bottom: 8px; } }
/* Narrow desktops: the three readings become a compact list so nothing collides. */
@media (max-width: 1023px) and (min-width: 861px) {
  .m-cells { grid-template-columns: auto; gap: 2px; }
  .m-cell { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 10px; }
  .m-cell dt b { display: inline; }
  .m-cell dd { font-size: 15px; line-height: 20px; font-weight: 500; }
}

/* Phone: the D5 instrument, stacked and not sticky (a sticky meter would take most of the screen). */
@media (max-width: 860px) {
  .meter { position: relative; border-top-width: 5px; box-shadow: none; }
  .m-band { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 14px 16px 16px; }
  .m-id { gap: 8px; }
  .m-head { gap: 10px; }
  .m-badge { height: 28px; padding: 0 10px; font-size: 12px; }
  .m-as { font-size: 12px; }
  .m-cell dt, .m-note { font-size: 12px; line-height: 16px; }
  .m-why { font-size: 14px; line-height: 19px; padding-top: 4px; }
  .m-dl { gap: 4px; }
  .m-k { font-size: 12px; line-height: 16px; }
  .m-k span:last-child { font-size: 12px; }
  .m-big [data-m="bytes"] { font-size: 56px; line-height: 58px; }
  .m-other { font-size: 13px; }
  .m-scale { height: 30px; margin-top: 6px; }
  .m-this { height: 10px; } .m-that { top: 12px; height: 6px; }
  .m-ticks { height: 7px; }
  .m-cells { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--m-rule); border-bottom: 1px solid var(--m-rule); }
  .m-cell { padding: 10px 10px 10px 0; }
  .m-cell + .m-cell { padding-left: 10px; border-left: 1px solid var(--m-rule); }
  .m-cell dd { font-size: 28px; line-height: 32px; }
  .m-cell dd.m-s { display: block; font: 12px/16px var(--m-sys); color: var(--m-meta); white-space: normal; }
  .m-times { grid-template-columns: 1fr; gap: 7px; }
  .m-times div { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 0; padding-top: 0; }
  .m-times dt { font-size: 14px; line-height: 19px; color: var(--m-ink); }
  .m-times abbr { color: var(--m-meta); margin-left: 4px; }
  .m-times dd { font-size: 14px; text-align: right; }
  .m-act { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  .m-sim small { display: block; font-weight: 400; font-size: 12px; color: var(--m-meta); margin-top: 2px; }
  .m-btn { font-size: 15px; padding: 0 18px; flex: none; }
  .m-changes { align-self: stretch; border-top: 1px solid var(--m-rule); padding-top: 8px; }
  .m-changes summary { padding: 8px 0; font-size: 13px; }
  .m-changes-body { position: static; box-shadow: none; border: 0; padding: 8px 0 0; }
  .m-cmp { padding: 10px 16px 14px; }
}

/* ---------- Shop ---------- */
.site { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1240px; margin: 0 auto; padding: 22px 16px; }
.wordmark { font: italic 400 30px/1 var(--serif); text-decoration: none; letter-spacing: -0.01em; }
.site nav { display: flex; gap: 20px; font-size: 14px; flex-wrap: wrap; }
.site nav a { text-decoration: none; border-bottom: 1px solid transparent; }
.site nav a:hover { border-color: currentColor; }
.cart { color: var(--rust); font-weight: 600; }

.hero { position: relative; max-width: 1240px; margin: 0 auto; aspect-ratio: 16 / 9; max-height: 78vh; overflow: hidden; background: #2b2722; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(15, 12, 8, 0.72)); }
.hero-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; color: #fbf6ec; padding: clamp(16px, 4vw, 48px); max-width: 720px; }
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; margin: 0 0 10px; color: #f2c58a; }
.hero h1 { font: 400 clamp(42px, 9vw, 112px)/0.92 var(--serif); letter-spacing: -0.03em; margin: 0 0 12px; }
@media (max-width: 860px) { .hero { aspect-ratio: 4 / 5; max-height: 70vh; } }
.hero-copy p:last-child { margin: 0; max-width: 46ch; font-size: clamp(14px, 1.6vw, 17px); opacity: 0.9; }

.why { max-width: 1240px; margin: 0 auto; padding: 56px 16px 24px; }
.why h2, .prints h2 { font: 400 clamp(28px, 4vw, 44px)/1.05 var(--serif); letter-spacing: -0.02em; margin: 0 0 28px; max-width: 22ch; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; border-top: 1px solid var(--ink); padding-top: 20px; }
.why-grid p { margin: 0; color: #2c3529; animation: rise 0.6s ease-out both; }
.why-grid p:nth-child(2) { animation-delay: 0.1s; }
.why-grid p:nth-child(3) { animation-delay: 0.2s; }
.why-grid strong { display: block; font: 600 12px/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--rust); margin-bottom: 10px; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }

.prints { max-width: 1240px; margin: 0 auto; padding: 40px 16px 64px; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 36px 22px; }
.card-link { display: block; text-decoration: none; }
.card-link h3 { padding-top: 12px; }
.card-link:hover h3 { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); }
.card-body { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 10px; padding-top: 4px; }
.card h3 { font: 400 22px/1.1 var(--serif); margin: 0; }
.price { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.by { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); }
.by a { text-decoration-color: var(--line); }
.add { grid-column: 1 / -1; margin-top: 10px; font: 600 13px/1 var(--sans); letter-spacing: 0.04em; padding: 12px; background: transparent; color: var(--ink); border: 1px solid var(--ink); cursor: pointer; transition: background 0.15s, color 0.15s; }
.add:hover, .add:focus-visible { background: var(--ink); color: var(--paper); }

.site-foot { border-top: 1px solid var(--line); max-width: 1240px; margin: 0 auto; padding: 24px 16px 48px; font-size: 13px; color: var(--muted); }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- On-request media (lite) ---------- */
.media-btn {
  position: absolute; z-index: 2; right: 16px; top: 16px;
  font: 600 13px/1 var(--sans); letter-spacing: 0.02em; color: var(--ink); background: rgba(244, 247, 241, 0.92);
  border: 1px solid var(--ink); padding: 11px 14px; border-radius: 2px; cursor: pointer;
}
.media-btn:hover, .media-btn:focus-visible { background: var(--ink); color: var(--paper); }

/* ---------- Product page ---------- */
.pdp { max-width: 1240px; margin: 0 auto; padding: 8px 16px 0; }
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: inherit; }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.pdp-media { position: relative; margin: 0; background: var(--paper-2); }
.pdp-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.pdp-info { position: sticky; top: 120px; max-width: 46ch; }
.pdp-info h1 { font: 400 clamp(44px, 6vw, 80px)/0.95 var(--serif); letter-spacing: -0.02em; margin: 0 0 10px; }
.pdp-info .eyebrow { color: var(--rust); }
.pdp-info .price { font-size: 22px; margin: 14px 0; }
.pdp-info .add { width: 100%; margin-top: 8px; }
.related { padding-left: 0; padding-right: 0; }
@media (max-width: 860px) {
  .pdp-grid { grid-template-columns: 1fr; gap: 20px; }
  .pdp-info { position: static; }
}
