/* PM-2 info page. One world with the 3D page: black studio, the case's warm grey, orange as the only accent,
   the display's pale blue-green only for the display. Fonts are self-hosted; nothing is fetched from outside. */

@font-face { font-family: "Inter Display"; src: url("fonts/InterDisplay-Thin.woff") format("woff"); font-weight: 100; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("fonts/InterDisplay-ExtraLight.woff") format("woff"); font-weight: 200; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("fonts/InterDisplay-Light.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #000;
  --case: #d2cfc7;      /* the lid in the key light: headings and numerals */
  --text: #b3b0a8;      /* running text */
  --dim: #8e8b84;       /* labels and captions */
  --line: #2b2a27;      /* hairlines */
  --orange: #ff6a1f;    /* the buttons and the plug rings */
  --oled: #c2f6f9;      /* the display, and nothing else */
  --glass: #040606;
  --gut: clamp(20px, 4.4vw, 64px);
  --gap: clamp(16px, 2.2vw, 32px);
  --sans: "Inter Display", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --k: 2;               /* screen pixels per display pixel: always a whole number, so the pages stay crisp */
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 300 1.0625rem/1.55 var(--sans); letter-spacing: .005em;
       -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--orange); outline-offset: 4px; }
::selection { background: var(--case); color: #000; }

.wrap { padding-inline: var(--gut); max-width: 1680px; margin-inline: auto; }
figcaption, .sec-head, .strip, .bar { font-family: var(--mono); font-variant-ligatures: none; }
.nw { white-space: nowrap; }
.k { font: 400 .875em var(--mono); font-variant-ligatures: none; color: var(--case); white-space: nowrap; }

/* ------------------------------------------------------------------ first view */
.hero { position: relative; }
.bar { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 22px var(--gut) 14px;
       font-size: .8125rem; font-weight: 300; letter-spacing: .02em; position: relative; z-index: 2; }
.mark { color: var(--case); font-weight: 400; white-space: nowrap; }
.bar a { color: var(--case); text-decoration: none; white-space: nowrap; padding-bottom: 3px; border-bottom: 1px solid var(--dim); }
.bar a:hover { border-color: var(--orange); }
.bar a i, .back i { font-style: normal; color: var(--orange); }
.hero-img { width: 100%; height: min(106vw, 62vh); height: min(106vw, 62svh); object-fit: cover; object-position: 50.5% 50%; margin-top: -46px; }
.hero-copy { padding: 6px var(--gut) 0; }
h1 { font: 200 clamp(2.25rem, 10.2vw, 4rem)/1.03 var(--sans); letter-spacing: -.024em; color: var(--case); max-width: 9.2em; text-wrap: balance; }
.strip { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 26px; font-size: .75rem; font-weight: 300; letter-spacing: .04em; color: var(--dim); }
.strip li { white-space: nowrap; }
.lb { display: none; }                                  /* the headline's own line breaks: on a phone and over the picture */
@media (max-width: 599px) { .lb { display: revert; } }

@media (min-width: 900px) and (min-aspect-ratio: 3/2) {
  .hero { height: 100vh; height: 100svh; min-height: 560px; max-height: 1240px; overflow: hidden; }
  .bar { padding-top: 24px; }
  .hero-img { position: absolute; inset: 0; height: 100%; object-position: 24% 50%; margin-top: 0; }
  .hero-copy { position: absolute; left: 0; bottom: 0; padding: 0 var(--gut) 30px; }
  h1 { font-size: min(3.7vw, 7.4vh); max-width: none; }
  .lb { display: revert; }
  .strip { margin-top: min(4.2vh, 40px); }
}

/* ------------------------------------------------------------------ sections */
.sec { padding-top: clamp(88px, 13vw, 190px); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 24px; flex-wrap: wrap; border-top: 1px solid var(--line);
            padding-top: 14px; font-size: .75rem; font-weight: 300; letter-spacing: .04em; color: var(--dim); }
.sec-head b { font-weight: 400; color: var(--orange); margin-right: .15em; }
.sec-head h2 { font: inherit; letter-spacing: inherit; }
.sec-head > :first-child { color: var(--case); white-space: nowrap; }
@media (min-width: 700px) { .sec-head > :last-child:not(:first-child) { text-align: right; } }
@media (max-width: 699px) { .sec-head { display: block; } .sec-head > * + * { margin-top: 6px; } }
.sec-head .k { font-size: 1em; }
.intro { padding-top: clamp(56px, 9vw, 130px); }
.intro .grid { margin-top: 0; }

.lede { font: 200 clamp(1.75rem, 5.6vw, 3.25rem)/1.1 var(--sans); letter-spacing: -.022em; color: var(--case); max-width: 15em; text-wrap: balance; }
.body { max-width: 31em; text-wrap: pretty; }
.lede + .body, .stack > * + * { margin-top: clamp(20px, 2.4vw, 30px); }

.grid { margin-top: clamp(32px, 5vw, 72px); }
.grid > * + * { margin-top: 40px; }
@media (min-width: 900px) {
  .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .grid > * + * { margin-top: 0; }
  .c1-5 { grid-column: 1 / 6; }   .c1-6 { grid-column: 1 / 7; }   .c1-7 { grid-column: 1 / 8; }
  .c7-12 { grid-column: 7 / 13; } .c8-12 { grid-column: 8 / 13; }
  .end { align-self: end; margin-top: clamp(44px, 5vw, 80px); }
  .r2 { grid-row: 1 / span 2; }
}

/* the status line: body size, full contrast, said once */
.facts { border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: clamp(4.2em, 14vw, 6.4em) minmax(0, 1fr); gap: 0 16px; padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.facts dt { font: 300 .75rem/1.9 var(--mono); letter-spacing: .04em; color: var(--dim); padding-top: .12em; }
.facts dd { color: var(--case); max-width: 30em; }

/* ------------------------------------------------------------------ numerals */
.num { font: 100 clamp(5rem, 25vw, 12.5rem)/.86 var(--sans); letter-spacing: -.045em; color: var(--case); white-space: nowrap; font-variant-numeric: lining-nums; }
.num small { font-size: .34em; font-weight: 200; letter-spacing: 0; margin-left: .14em; }
.num-note { margin-top: 18px; font: 300 .8125rem/1.5 var(--mono); letter-spacing: .03em; color: var(--dim); font-variant-ligatures: none; }
@media (min-width: 900px) { .num { font-size: clamp(6rem, 12.4vw, 13.5rem); } }

/* ------------------------------------------------------------------ pictures */
figure { position: relative; }
figcaption { margin-top: 12px; font-size: .75rem; font-weight: 300; line-height: 1.55; letter-spacing: .03em; color: var(--dim); max-width: 46em; }
figcaption b { font-weight: 400; color: var(--case); margin-right: .9em; white-space: nowrap; }
.bleed { margin-top: clamp(40px, 6vw, 96px); }
.bleed img { width: 100%; }
.bleed figcaption { padding-inline: var(--gut); }
.bleed-x { margin-inline: calc(-1 * var(--gut)); }
.bleed-x figcaption { padding-inline: var(--gut); }
/* on a phone the two wide studio pictures are cut closer, so the box stays large */
@media (max-width: 699px) {
  .crop-x img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 45% 50%; }
  .crop-a img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 80% 50%; }
}
@media (min-width: 900px) {
  .bleed-l { margin-inline: calc(-1 * var(--gut)) 0; }
  .bleed-l figcaption { padding-inline: var(--gut) 0; }
}

/* a display page, pixel for pixel: black glass, a hairline round it */
.oled .glass { display: inline-block; padding: 9px; background: var(--glass); border: 1px solid var(--line); line-height: 0; }
.oled img { width: calc(128px * var(--k)); height: calc(64px * var(--k)); max-width: none; }
@media (min-width: 460px) and (max-width: 899px), (min-width: 1100px) { .oled.big { --k: 3; } }
@media (min-width: 1420px) { :root { --k: 3; } .oled.big { --k: 4; } }

/* ------------------------------------------------------------------ 02 cable test: three verdicts */
.verdicts { margin-top: clamp(40px, 6vw, 96px); display: grid; gap: 56px var(--gap); }
.verdict h3 { font: 300 .75rem var(--mono); letter-spacing: .04em; color: var(--dim); padding-bottom: 14px; }
.verdict h3 b { font-weight: 400; color: var(--case); margin-right: .9em; }
.verdict .num { font-size: clamp(4.25rem, 19vw, 6.5rem); margin-top: 30px; }
.verdict .num-note { margin-top: 12px; }
.spec { margin-top: 20px; border-top: 1px solid var(--line); max-width: calc(128px * var(--k) + 20px); }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0 10px; border-bottom: 1px solid var(--line);
            font: 300 .8125rem var(--mono); letter-spacing: .02em; font-variant-ligatures: none; }
.spec dt { color: var(--dim); }
.spec dd { color: var(--case); white-space: nowrap; }
@media (min-width: 620px) and (max-width: 959px) {      /* a wide phone or a tablet: the page on the left, its numbers beside it */
  .verdict { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: clamp(28px, 6vw, 64px); align-items: start; }
  .verdict h3 { grid-column: 1 / -1; }
  .verdict .oled { grid-row: 2 / span 3; }
  .verdict .num, .verdict .num-note, .verdict .spec { grid-column: 2; }
  .verdict .num { margin-top: -4px; }
  .verdict .spec { max-width: 22em; }
}
@media (min-width: 960px) {
  .verdicts { grid-template-columns: repeat(3, max-content); justify-content: space-between; }
  .verdict .num { font-size: clamp(4.5rem, 7.2vw, 7.5rem); }
}
.note { margin-top: 28px; font: 300 .8125rem/1.6 var(--mono); letter-spacing: .02em; color: var(--dim); max-width: 70em; font-variant-ligatures: none; }
.pair { margin-top: clamp(56px, 8vw, 120px); }
.pair > * + * { margin-top: 28px; }
@media (min-width: 900px) {
  .pair { display: flex; align-items: flex-end; gap: clamp(32px, 5vw, 80px); }
  .pair > * + * { margin-top: 0; }
}

/* ------------------------------------------------------------------ 04 six sockets */
.plan { width: 100%; height: auto; overflow: visible; }
.plan .o, .plan .w, .plan .v { fill: none; stroke: var(--case); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.plan .v { stroke: var(--dim); }
.plan .s, .plan .r { fill: var(--case); }
.plan .d { fill: none; stroke: var(--oled); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.plan .b { fill: var(--orange); }
.plan text { font-family: var(--mono); font-weight: 400; font-size: 2.8px; fill: var(--case); font-variant-ligatures: none; }
.plan .m { text-anchor: middle; }
.plan .big { font-size: 7px; }

.rows { border-top: 1px solid var(--line); }
.rows > div { display: grid; grid-template-columns: clamp(3.3em, 11vw, 4.6em) clamp(3.3em, 11vw, 4.6em) minmax(0, 1fr); gap: 0 12px; padding: 12px 0 13px; border-bottom: 1px solid var(--line); align-items: baseline; }
.rows dt { font: 400 .875rem var(--mono); color: var(--case); font-variant-ligatures: none; }
.rows dd { font-size: 1rem; line-height: 1.4; }
.rows dd.t { font: 300 .75rem var(--mono); letter-spacing: .03em; color: var(--dim); }

/* ------------------------------------------------------------------ 05 the design in figures */
.figures { margin-top: clamp(40px, 6vw, 88px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); }
.figures > div { border-top: 1px solid var(--line); padding: 16px 0 clamp(30px, 4.5vw, 60px); display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.figures dt { margin-top: 14px; font: 300 .75rem/1.5 var(--mono); letter-spacing: .03em; color: var(--dim); max-width: 17em; font-variant-ligatures: none; }
.figures dd { font: 100 clamp(3.4rem, 17.5vw, 5.5rem)/.9 var(--sans); letter-spacing: -.04em; color: var(--case); white-space: nowrap; }
.figures dd small { font-size: .36em; font-weight: 200; letter-spacing: 0; margin-left: .14em; }
.figures .wide { grid-column: span 2; }
@media (min-width: 900px) {
  .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .figures dd { font-size: clamp(4rem, 7.6vw, 8.5rem); }
}

/* ------------------------------------------------------------------ 06 the 3D page */
.keys { border-top: 1px solid var(--line); }
.keys div { display: grid; grid-template-columns: 5.4em minmax(0, 1fr); gap: 0 14px; padding: 11px 0 12px; border-bottom: 1px solid var(--line); align-items: baseline; }
.keys dt { font: 300 .8125rem var(--mono); letter-spacing: .02em; color: var(--case); font-variant-ligatures: none; white-space: nowrap; }
.keys dd { font-size: 1rem; line-height: 1.4; }
kbd { display: inline-block; min-width: 1.9em; padding: 1px 5px 2px; border: 1px solid #55534e; font: 400 .75rem/1.4 var(--mono); color: var(--case); text-align: center; }

/* ------------------------------------------------------------------ 07 how it was made */
.made { margin-top: clamp(32px, 5vw, 72px); counter-reset: made; border-top: 1px solid var(--line); }
.made li { counter-increment: made; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0 12px; padding: clamp(18px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--line);
           font: 200 clamp(1.4rem, 3.1vw, 2.5rem)/1.16 var(--sans); letter-spacing: -.018em; color: var(--case); }
.made li::before { content: counter(made, decimal-leading-zero); font: 300 .75rem/2.6 var(--mono); letter-spacing: .04em; color: var(--dim); }
.made li > span { max-width: 27em; text-wrap: balance; }
@media (min-width: 900px) { .made li { grid-template-columns: calc((100% - 11 * var(--gap)) / 12 * 2 + 2 * var(--gap)) minmax(0, 1fr); gap: 0; } }

/* ------------------------------------------------------------------ the way back */
.foot { padding: clamp(96px, 14vw, 210px) 0 40px; }
.back { display: block; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(26px, 4vw, 56px) 0 clamp(30px, 4.4vw, 62px);
        font: 100 clamp(2.5rem, 9.6vw, 8.5rem)/1 var(--sans); letter-spacing: -.035em; color: var(--case); text-decoration: none; text-wrap: balance; }
.back i { display: inline-block; margin-right: .12em; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.back:hover i { transform: translateX(-.14em); }
.colophon { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: 22px; font: 300 .75rem/1.6 var(--mono); letter-spacing: .03em; color: var(--dim); font-variant-ligatures: none; }
.colophon b { font-weight: 400; color: var(--case); }
.colophon a:hover { color: var(--case); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
