/* diskplot site. White sheet, black line, one blue, the same as the app's Grid theme. */

@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: oklch(1 0 0);
  --panel: oklch(0.972 0.008 268);
  --ink: oklch(0.18 0.005 268);
  --ink-2: oklch(0.42 0.012 268);
  --line: oklch(0.9 0.03 270);
  --line-strong: oklch(0.66 0.07 270);
  --t1: oklch(0.935 0.032 270);
  --t2: oklch(0.85 0.07 270);
  --t3: oklch(0.73 0.115 269);
  --t4: oklch(0.5 0.2 266);
  --t5: oklch(0.4 0.21 265);
  --on-weak: oklch(0.22 0.06 268);
  --on-strong: oklch(0.985 0.005 268);
  --plane: oklch(0.45 0.21 265);
  --on-plane: oklch(0.99 0.004 268);
  --red: oklch(0.56 0.21 28);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --text: "Barlow", "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  --display: "Barlow Semi Condensed", "Barlow", "Bahnschrift", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: oklch(0.17 0.012 268);
    --panel: oklch(0.21 0.016 268);
    --ink: oklch(0.95 0.006 268);
    --ink-2: oklch(0.74 0.02 268);
    --line: oklch(0.25 0.03 268);
    --line-strong: oklch(0.45 0.06 268);
    --t1: oklch(0.27 0.05 268);
    --t2: oklch(0.35 0.09 267);
    --t3: oklch(0.44 0.14 266);
    --t4: oklch(0.68 0.13 268);
    --t5: oklch(0.84 0.075 270);
    --on-weak: oklch(0.94 0.02 268);
    --on-strong: oklch(0.17 0.04 268);
    --plane: oklch(0.42 0.19 265);
    --on-plane: oklch(0.99 0.004 268);
    --red: oklch(0.7 0.18 30);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.5 var(--text);
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--t4);
  color: var(--on-strong);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
ul,
dl,
dd,
figure {
  margin: 0;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
}
h3 {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.25;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Top bar ---------------------------------------------------------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line-strong);
}
.top .wrap {
  display: flex;
  align-items: center;
  height: 56px;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.12rem;
  text-decoration: none;
  margin-right: auto;
}
.top nav {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
}
.top nav a {
  text-decoration: none;
  color: var(--ink-2);
}
.top nav a:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 20px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 140ms var(--ease),
    color 140ms var(--ease);
}
.btn:hover {
  background: var(--plane);
  border-color: var(--plane);
  color: var(--on-plane);
}
.btn.line {
  background: none;
  color: var(--ink);
}
.btn.line:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.btn.small {
  height: 36px;
  padding: 0 14px;
  font-size: 0.95rem;
}

.lang {
  display: flex;
  border: 1px solid var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang > * {
  display: grid;
  place-items: center;
  width: 36px;
  height: 30px;
  text-decoration: none;
  color: var(--ink-2);
}
.lang > * + * {
  border-left: 1px solid var(--ink);
}
.lang a:hover {
  background: var(--t1);
  color: var(--on-weak);
}
.lang [aria-current] {
  background: var(--ink);
  color: var(--paper);
}

/* Downloads -------------------------------------------------------------- */

.downloads {
  padding-top: clamp(32px, 5vw, 64px);
  min-height: 70vh;
}
.latest {
  margin-top: clamp(24px, 3vw, 40px);
  border: 2px solid var(--ink);
}
.latest-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--panel);
}
.latest-head strong {
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1.1;
}
.latest-head span {
  color: var(--ink-2);
}
.files {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.file {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px 18px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  margin: 0 -1px -1px 0;
}
.file .what {
  font-weight: 600;
}
.file .meta {
  color: var(--ink-2);
  font-size: 0.92rem;
  flex: 1;
}
.file .btn {
  margin-top: 10px;
  align-self: flex-start;
}
.notes {
  padding: 16px 18px 20px;
  max-width: 76ch;
}
.notes h3 {
  margin: 14px 0 4px;
}
.notes h3:first-child {
  margin-top: 0;
}
.notes ul {
  padding-left: 1.1em;
}
.notes li {
  margin: 2px 0;
}
.notes code {
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 0.92em;
  background: var(--t1);
  color: var(--on-weak);
  padding: 0 4px;
}
.versions-title {
  margin-top: clamp(40px, 6vw, 72px);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}
.version {
  border-bottom: 1px solid var(--line-strong);
}
.version:first-of-type {
  border-top: 2px solid var(--ink);
  margin-top: 16px;
}
.version summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  font-weight: 600;
}
.version summary::-webkit-details-marker {
  display: none;
}
.version summary span {
  font-weight: 400;
  color: var(--ink-2);
}
.version .notes {
  padding-left: 0;
}
.version .assets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding: 0 0 16px;
  font-size: 0.95rem;
}
.empty {
  padding: 20px 18px;
  color: var(--ink-2);
  max-width: 60ch;
}

/* Hero ------------------------------------------------------------------- */

.hero-band {
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center top;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: clamp(32px, 5vw, 72px);
}
.hero {
  padding-top: clamp(28px, 5vw, 64px);
}
.hero-head h1,
.hero-head > div {
  background: var(--paper);
  padding: 12px 16px 16px;
  margin-left: -16px;
  width: fit-content;
}
.hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px 56px;
  align-items: end;
}
.hero-head p {
  font-size: 1.16rem;
  color: var(--ink-2);
  max-width: 44ch;
}
.hero-head p strong {
  color: var(--ink);
  font-weight: 500;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.fine {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--ink-2);
}

/* The live plan ---------------------------------------------------------- */

.sheet {
  margin-top: clamp(28px, 4vw, 48px);
  border: 2px solid var(--ink);
  background: var(--paper);
}
.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  min-height: 40px;
  padding: 4px 8px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--panel);
  font-size: 0.92rem;
}
.crumbs button {
  border: 0;
  background: none;
  font: inherit;
  color: var(--ink-2);
  padding: 4px 8px;
  cursor: pointer;
}
.crumbs button:hover {
  color: var(--ink);
  background: var(--t1);
}
.crumbs button[aria-current] {
  color: var(--ink);
  font-weight: 600;
}
.crumbs .sep {
  color: var(--line-strong);
}
.crumbs .hint {
  margin-left: auto;
  color: var(--ink-2);
  padding-right: 6px;
}

.plan {
  position: relative;
  height: clamp(320px, 52vh, 560px);
  overflow: hidden;
  margin: 6px;
}
.cell {
  position: absolute;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.25;
}
.cell.dir {
  border: 1px solid var(--ink);
  cursor: zoom-in;
}
.cell.dir.d1 {
  border-width: 2px;
}
.cell.dir.d3 {
  border-color: var(--line-strong);
}
.cell.dir > .label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  height: 18px;
  padding: 0 5px;
  font-weight: 600;
  white-space: nowrap;
}
.cell.dir > .label span:last-child {
  font-weight: 400;
  color: var(--ink-2);
}
.cell.dir:hover > .label {
  background: var(--ink);
  color: var(--paper);
}
.cell.dir:hover > .label span:last-child {
  color: inherit;
}
.cell.file {
  padding: 3px 5px;
  outline: 1px solid var(--paper);
  outline-offset: -1px;
  white-space: nowrap;
  cursor: default;
}
.cell.file small {
  display: block;
  font-size: inherit;
}
.cell.v1 {
  background: var(--t1);
  color: var(--on-weak);
}
.cell.v2 {
  background: var(--t2);
  color: var(--on-weak);
}
.cell.v3 {
  background: var(--t3);
  color: var(--on-weak);
}
.cell.v4 {
  background: var(--t4);
  color: var(--on-strong);
}
.cell.v5 {
  background: var(--t5);
  color: var(--on-strong);
}
.cell.tiny {
  font-size: 0;
}
.plan.zooming {
  animation: open 180ms var(--ease);
}
@keyframes open {
  from {
    clip-path: inset(var(--it) var(--ir) var(--ib) var(--il));
    opacity: 0.4;
  }
  to {
    clip-path: inset(0);
    opacity: 1;
  }
}

.titleblock {
  display: flex;
  border-top: 2px solid var(--ink);
}
.titleblock div {
  padding: 6px 16px 8px 10px;
  border-right: 1px solid var(--line-strong);
  min-width: 0;
}
.titleblock .grow {
  flex: 1;
}
.titleblock .k {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-2);
  white-space: nowrap;
}
.titleblock .v {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.titleblock .scale {
  display: flex;
  align-items: center;
  gap: 10px;
  border-right: 0;
}
.titleblock .scale i {
  width: 24px;
  height: 24px;
  background: var(--t3);
  border: 1px solid var(--ink);
  flex: none;
}

/* Sections --------------------------------------------------------------- */

section {
  padding-top: clamp(64px, 9vw, 128px);
}
.lede {
  font-size: 1.16rem;
  color: var(--ink-2);
  max-width: 58ch;
  margin-top: 16px;
}

.shot {
  margin-top: clamp(28px, 4vw, 48px);
  border: 2px solid var(--ink);
}
.shot figcaption {
  border-top: 1px solid var(--line-strong);
  padding: 8px 12px;
  font-size: 0.92rem;
  color: var(--ink-2);
  background: var(--panel);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
.split .shot {
  margin-top: 0;
}

/* What is new: a ruled schedule, not a row of cards. */
.schedule {
  margin-top: clamp(28px, 4vw, 48px);
  border-top: 2px solid var(--ink);
}
.schedule > div {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 4px 40px;
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--line-strong);
}
.schedule h3 {
  font-size: 1.12rem;
  line-height: 1.3;
}
.schedule p {
  max-width: 62ch;
  color: var(--ink-2);
}
.schedule p + p {
  margin-top: 8px;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-top: clamp(24px, 3vw, 40px);
  border: 2px solid var(--ink);
}
th,
td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--panel);
  border-bottom: 1px solid var(--line-strong);
}
td.num,
th.num {
  text-align: right;
  white-space: nowrap;
}
tr:last-child td {
  border-bottom: 0;
}
.note {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--ink-2);
  max-width: 72ch;
}

.compare {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line-strong);
}
.compare > div {
  padding: 20px 28px 26px 0;
}
.compare > div + div {
  border-left: 1px solid var(--line-strong);
  padding-left: 28px;
}
.compare p {
  margin-top: 8px;
  color: var(--ink-2);
}

.faq {
  margin-top: clamp(28px, 4vw, 48px);
  border-top: 2px solid var(--ink);
  max-width: 880px;
}
.faq details {
  border-bottom: 1px solid var(--line-strong);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-weight: 600;
  font-size: 1.08rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 160ms var(--ease);
}
.faq details[open] summary::after {
  transform: translateY(5px) rotate(225deg);
}
.faq details p {
  padding: 0 0 20px;
  max-width: 68ch;
  color: var(--ink-2);
}

/* Close ------------------------------------------------------------------ */

.close {
  margin-top: clamp(72px, 10vw, 140px);
  background: var(--plane);
  color: var(--on-plane);
  padding: clamp(48px, 7vw, 96px) 0;
}
.close .wrap {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.close h2 {
  max-width: 16ch;
}
.close .btn {
  background: var(--on-plane);
  border-color: var(--on-plane);
  color: oklch(0.18 0.005 268);
}
.close .btn:hover {
  background: oklch(0.18 0.005 268);
  border-color: oklch(0.18 0.005 268);
  color: var(--on-plane);
}
.close .btn.line {
  background: none;
  color: var(--on-plane);
}
.close .btn.line:hover {
  background: var(--on-plane);
  border-color: var(--on-plane);
  color: oklch(0.18 0.005 268);
}
.close :focus-visible {
  outline-color: var(--on-plane);
}
.close p {
  margin-top: 10px;
  opacity: 0.85;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding-top: 24px;
  padding-bottom: 32px;
  font-size: 0.92rem;
  color: var(--ink-2);
}
footer .wrap span:first-child {
  margin-right: auto;
}

/* Small screens ---------------------------------------------------------- */

@media (max-width: 860px) {
  .top nav {
    display: none;
  }
  .top .wrap {
    gap: 12px;
  }
  .hero-head,
  .split,
  .schedule > div {
    grid-template-columns: minmax(0, 1fr);
  }
  .compare {
    grid-template-columns: minmax(0, 1fr);
  }
  .compare > div {
    padding-right: 0;
  }
  .compare > div + div {
    border-left: 0;
    border-top: 1px solid var(--line-strong);
    padding-left: 0;
  }
  .crumbs .hint {
    display: none;
  }
  .titleblock .hide-s {
    display: none;
  }
  table {
    font-size: 0.92rem;
  }
  th,
  td {
    padding: 8px 10px;
  }
}

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