/* HeatPeek — the app's own idiom on the web: dark ground, blueprint corner
   marks, hairlines, no rounded corners, condensed labels, mono numbers.
   Colour follows the system. Nothing is loaded from anywhere else. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/Barlow-Regular.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/BarlowCondensed-Medium.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/BarlowCondensed-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/IBMPlexMono-Regular.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --bg: #F4F5F7;
  --bg-2: #FFFFFF;
  --panel: rgba(255, 255, 255, .78);
  --text: #14181E;
  --text-2: #4E5661;
  --label: #6B737C;
  --hair: rgba(0, 0, 0, .10);
  --hair-2: rgba(0, 0, 0, .16);
  --accent: #3B6A99;
  --line: #2F5F8F;
  --bright: #1F4E7A;
  --tint: rgba(59, 106, 153, .10);
  --on-accent: #FFFFFF;
  --grid: rgba(47, 95, 143, .09);
  --shot-bg: #0F1115;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1115;
    --bg-2: #0B0D10;
    --panel: rgba(13, 16, 20, .72);
    --text: #E8EAED;
    --text-2: #8B939C;
    --label: #6B737C;
    --hair: rgba(255, 255, 255, .10);
    --hair-2: rgba(255, 255, 255, .13);
    --accent: #5980A6;
    --line: #749DC4;
    --bright: #94BCE3;
    --tint: rgba(116, 157, 196, .14);
    --on-accent: #0F1115;
    --grid: rgba(116, 157, 196, .07);
    --shot-bg: #0B0D10;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Barlow", -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--line); text-decoration: none; }
a:hover { color: var(--bright); }
:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; }
code { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: .92em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.narrow { max-width: 680px; }

/* Blueprint frame: hairline plus four corner marks, drawn without extra elements. */
.marks {
  --mark: 10px;
  border: 1px solid var(--hair);
  background-image:
    linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line)),
    linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line)),
    linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line)),
    linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line));
  background-repeat: no-repeat;
  background-size:
    var(--mark) 1px, 1px var(--mark),
    var(--mark) 1px, 1px var(--mark),
    var(--mark) 1px, 1px var(--mark),
    var(--mark) 1px, 1px var(--mark);
  background-position:
    -1px -1px, -1px -1px,
    calc(100% + 1px) -1px, calc(100% + 1px) -1px,
    -1px calc(100% + 1px), -1px calc(100% + 1px),
    calc(100% + 1px) calc(100% + 1px), calc(100% + 1px) calc(100% + 1px);
}

/* Type */
.kicker, .nav-link, .lang, .button, .ghost, th, .steps li::before, .source dt {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  text-transform: uppercase;
}
.kicker { font-weight: 500; font-size: .76rem; letter-spacing: .2em; color: var(--label); margin: 0 0 .9rem; }
h1, h2, h3 { font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 600; margin: 0; line-height: 1.05; letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.lead { font-size: 1.15rem; color: var(--text-2); margin: 1.2rem 0 0; }
.note { color: var(--text-2); margin-top: 1.2rem; }
.req { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: .78rem; color: var(--label); margin: .9rem 0 0; }

/* Header */
.skip { position: absolute; left: -999px; top: 0; padding: .5rem .8rem; background: var(--accent); color: var(--on-accent); }
.skip:focus { left: 12px; top: 12px; z-index: 10; }
.top {
  position: sticky; top: 0; z-index: 5;
  background: var(--panel);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--hair);
}
.top-row { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
/* The bar must not overflow when a translation runs long or a fallback face
   is wider than the one that has not loaded yet. */
.top nav { flex: 0 1 auto; min-width: 0; }
.wordmark { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wordmark {
  font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 1.15rem;
  letter-spacing: .14em; color: var(--text);
}
.wordmark:hover { color: var(--bright); }
.top nav { display: flex; align-items: center; gap: 22px; }
.nav-link { font-weight: 500; font-size: .8rem; letter-spacing: .12em; color: var(--text-2); }
.nav-link:hover { color: var(--bright); }
.coffee {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: "Barlow Condensed", sans-serif; font-weight: 500; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--line);
  padding: .3rem .6rem; border: 1px solid var(--hair-2);
}
.coffee:hover { border-color: var(--line); color: var(--bright); background: var(--tint); }
.coffee svg { flex: none; }

.lang {
  font-weight: 600; font-size: .74rem; letter-spacing: .14em; color: var(--line);
  padding: .3rem .55rem; border: 1px solid var(--hair-2);
}
.lang:hover { border-color: var(--line); color: var(--bright); }

/* Buttons */
.button, .ghost {
  display: inline-block; font-weight: 600; font-size: .86rem; letter-spacing: .14em;
  padding: .85rem 1.5rem; --mark: 6px;
}
.button { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.button:hover { background: var(--line); color: var(--on-accent); }
.button.is-soon { background: var(--tint); color: var(--text-2); border-color: var(--hair-2); cursor: default; }
.ghost { color: var(--line); background: transparent; }
.ghost:hover { color: var(--bright); border-color: var(--line); }
.cta-row { margin: 1.8rem 0 0; }
.buttons { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Hero */
.hero { position: relative; padding: 5.5rem 0 4.5rem; }
/* The blueprint grid lives on its own layer, so fading it out towards the
   bottom leaves the text and the button untouched. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 85% 100% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 100% at 50% 0%, #000 40%, transparent 100%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.5rem; align-items: center; }
.shot { margin: 0; padding: 8px; background: var(--shot-bg); --mark: 12px; }
.shot img { width: 100%; }

/* Sections */
.block { padding: 4.5rem 0; border-top: 1px solid var(--hair); }
.grid {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--hair);
}
.cell { background: var(--bg); padding: 1.6rem 1.5rem 1.7rem; margin: 0; }
.cell p { margin: 0; color: var(--text-2); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; margin-top: 2.2rem; }
.split-top { margin-top: 3rem; }
/* The thanks sit in the footer, on their own line above the note. */
.foot-note { display: flex; flex-direction: column; gap: .35rem; }
.thanks { color: var(--text-2); }
.heart { color: #C2444B; }
@media (prefers-color-scheme: dark) { .heart { color: #FF6B72; } }
.sub { margin-top: 0; }
.sources { margin: 1rem 0 0; }
.source { padding: 1.1rem 1.25rem; margin: 0 0 1rem; --mark: 8px; }
.source dt { font-weight: 600; font-size: 1rem; letter-spacing: .1em; display: flex; align-items: center; gap: .6rem; }
.source dd { margin: .4rem 0 0; color: var(--text-2); }
.dot { width: 7px; height: 7px; background: var(--bright); display: inline-block; }

.hw { width: 100%; max-width: 640px; border-collapse: collapse; margin-top: 1.8rem; --mark: 8px; }
.hw th, .hw td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--hair); }
.hw th { font-weight: 500; font-size: .74rem; letter-spacing: .16em; color: var(--label); }
.hw tbody tr:last-child td { border-bottom: 0; }
.hw code { color: var(--text-2); }

.steps { list-style: none; counter-reset: step; margin: 1.6rem 0 0; padding: 0; max-width: 680px; }
.steps li { position: relative; padding: .9rem 0 .9rem 3.4rem; border-top: 1px solid var(--hair); counter-increment: step; }
.steps li:last-child { border-bottom: 1px solid var(--hair); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: .95rem;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: .95rem; color: var(--line);
}

.download { background: var(--bg-2); }
.download h2 { margin-bottom: 0; }

/* Footer */
.foot { border-top: 1px solid var(--hair); padding: 2rem 0 2.6rem; font-size: .9rem; color: var(--text-2); }
/* The sentence leads into the list, so it stands beside it rather than above:
   one measure of running text, then the projects as a set of ruled columns.
   The rules are what hold the three apart; without them the short names drift
   in the width and the row reads as loose scraps. */
.foot-projects { display: grid; grid-template-columns: minmax(14rem, 18rem) 1fr;
  gap: 1.6rem 3rem; align-items: start; margin-bottom: 2rem; }
/* A full sentence, so it reads as running text rather than as a kicker in
   wide capitals. */
.projects-label { margin: 0; color: var(--text-2); max-width: 34ch; }
.projects { list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.projects li { display: flex; flex-direction: column; gap: .15rem;
  border-left: 1px solid var(--hair); padding-left: 1rem; }
.projects li a { font-weight: 600; }
.projects span { color: var(--label); line-height: 1.45; }
.foot-legal { border-top: 1px solid var(--hair); padding-top: 1.5rem; }
.foot-row { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.foot p { margin: 0; }
.foot-links { display: flex; gap: 1.4rem; }

/* Legal */
.legal { max-width: 720px; padding-top: 4rem; padding-bottom: 4rem; }
.legal h2 { font-size: 1.5rem; margin: 2.2rem 0 .6rem; }
.legal p { margin: 0 0 .9rem; }
.card { font-style: normal; padding: 1.1rem 1.3rem; margin: 1.4rem 0; display: inline-block; --mark: 8px; line-height: 1.5; }
.pairs { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.4rem; margin: 0; }
.pairs dt { color: var(--label); }
.pairs dd { margin: 0; }
.back { margin-top: 3rem; }

/* Small screens */
@media (max-width: 900px) {
  .hero { padding: 3.5rem 0 3rem; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 2.2rem; }
  .grid { grid-template-columns: 1fr 1fr; }
  .nav-link:not(.nav-download) { display: none; }
  .coffee span { display: none; }
  .coffee { padding: .3rem .45rem; }
  .foot-projects { grid-template-columns: 1fr; gap: 1.2rem; }
}
@media (max-width: 560px) {
  html { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .top nav { gap: 14px; }
  .foot-row { flex-direction: column; }
  .projects { grid-template-columns: 1fr; gap: 1rem; }
}
