/* letacad.com - one stylesheet for every page.
   Brand: Pine #326850, Sand #D8C2A9, Graphite #40403E. Light only, as Leta is.
   The type is the system's: Segoe UI on Windows, where Leta runs. */

:root {
  color-scheme: light;
  --pine: #326850;
  --pine-strong: #285540;
  --pine-deep: #1e4131;
  --pine-tint: #e7efeb;
  --sand: #d8c2a9;
  --sand-strong: #c7ac8d;
  --sand-soft: #efe4d6;
  --sand-wash: #f7f1e9;
  --paper: #fdfbf8;
  --white: #ffffff;
  --graphite: #40403e;
  --ink: #2b2b29;
  --ink-soft: #57564f;
  --ink-muted: #6b6962;
  --line: #e4dacd;
  --line-strong: #cfc1af;
  --datum: #86672a;
  --viewport: #e4e8ed;
  --grid: rgba(64, 64, 62, 0.055);
  --radius: 12px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(43, 43, 41, 0.06), 0 10px 28px rgba(43, 43, 41, 0.08);
  --shadow-lg: 0 2px 6px rgba(43, 43, 41, 0.07), 0 28px 70px rgba(43, 43, 41, 0.17);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1160px;
  --gutter: 24px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pine-strong); }
:focus-visible { outline: 3px solid rgba(50, 104, 80, 0.45); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 650; letter-spacing: -0.012em; line-height: 1.3; }
p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }
strong { font-weight: 650; color: var(--ink); }
code, kbd, .mono { font-family: var(--mono); font-size: 0.9em; }
kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--white);
  font-size: 0.82em;
}

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(780px + 2 * var(--gutter)); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--pine); color: var(--white); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; color: var(--white); }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(233, 219, 202, 0.92);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line-strong);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font: 700 1.35rem/1 var(--font-display); letter-spacing: -0.02em;
}
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) {
  color: var(--graphite); text-decoration: none; font-weight: 550; font-size: 0.97rem;
  padding: 8px 12px; border-radius: 8px;
}
.site-nav a:not(.btn):hover { background: rgba(255, 255, 255, 0.55); color: var(--pine-deep); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--pine-deep); box-shadow: inset 0 -2px 0 var(--pine); border-radius: 8px 8px 0 0; }
.site-nav .btn { margin-left: 8px; }
.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: rgba(255, 255, 255, 0.6); color: var(--graphite); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gutter) 18px; background: var(--sand-soft);
    border-bottom: 1px solid var(--line-strong); box-shadow: 0 16px 30px rgba(43, 43, 41, 0.12);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px; }
  .site-nav a[aria-current="page"]:not(.btn) { box-shadow: inset 3px 0 0 var(--pine); border-radius: 0 8px 8px 0; }
  .site-nav .btn { margin: 8px 0 0; }
}

/* ---------------------------------------------------------------- buttons, tags */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 9px; border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--pine); color: var(--white); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 6px 16px rgba(50, 104, 80, 0.22); }
.btn-primary:hover { background: var(--pine-strong); color: var(--white); }
.btn-secondary { background: rgba(255, 255, 255, 0.7); color: var(--graphite); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--white); color: var(--ink); border-color: var(--sand-strong); }
.btn-sm { padding: 9px 15px; font-size: 0.94rem; }

/* The eyebrow over a section: drawn like the datum tags on Leta's planes. */
.tag {
  display: inline-block;
  font: 650 0.74rem/1 var(--font); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--datum); background: #fffaf0;
  border: 1px solid currentColor; border-radius: 2px;
  padding: 5px 8px 4px; margin-bottom: 18px;
}
.tag-pine { color: var(--pine); background: var(--pine-tint); }

.lead { font-size: clamp(1.1rem, 1.7vw, 1.27rem); color: var(--ink-soft); line-height: 1.55; }
.lead-wide { max-width: none; }
.muted { color: var(--ink-muted); }
.small { font-size: 0.9rem; }
.m-0 { margin: 0; }
.mt-16 { margin-top: 16px; }
.h2-sm { font-size: 1.6rem; }

/* ---------------------------------------------------------------- hero */

.hero { position: relative; padding: 72px 0 40px; overflow: hidden; background: var(--sand-wash); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 20%, #000 35%, transparent 80%);
  mask-image: radial-gradient(ellipse 85% 70% at 50% 20%, #000 35%, transparent 80%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero-copy { max-width: 780px; }
.hero h1 { margin-bottom: 0.35em; }
.hero .lead { max-width: 690px; }
/* Words picked out in Pine in a heading: the hero's and Who it's for. */
.accent { color: var(--pine); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 28px 0 14px; }
.cta-note { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-muted); font-size: 0.92rem; margin: 0; padding: 0; list-style: none; }
.cta-note li { display: inline-flex; align-items: center; gap: 7px; }
.cta-note svg { width: 16px; height: 16px; color: var(--pine); }
.hero-shot { margin-top: 48px; }

.page-hero { padding: 64px 0 28px; background: var(--sand-wash); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 95%);
  mask-image: linear-gradient(to bottom, #000, transparent 95%);
  pointer-events: none;
}
.page-hero > * { position: relative; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }

/* ---------------------------------------------------------------- screenshots */

.shot {
  margin: 0;
  border-radius: var(--radius);
  background: var(--viewport);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(43, 43, 41, 0.12);
  overflow: hidden;
}
.shot a { display: block; cursor: zoom-in; }
.shot img { width: 100%; }
.shot figcaption {
  background: var(--white); border-top: 1px solid var(--line);
  padding: 10px 14px; font-size: 0.88rem; color: var(--ink-muted); line-height: 1.45;
}
.shot-flat { box-shadow: var(--shadow); }
.shot-paper { background: var(--white); }

/* ---------------------------------------------------------------- sections */

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-sand { background: var(--sand-wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Four facts under the hero, set like a spec sheet. */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--white); overflow: hidden;
}
.fact { padding: 20px 22px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact .k { display: block; font: 650 0.72rem/1 var(--font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px; }
.fact .v { display: block; font: 650 1.16rem/1.25 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
.fact .d { display: block; font-size: 0.92rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.45; }
@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .fact { border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
}

/* Cards: Leta's ribbon groups are rounded cards; so are these. */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px 22px; box-shadow: 0 1px 2px rgba(43, 43, 41, 0.04);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }
.card p + p { margin-top: 0.7em; }
.icon {
  width: 42px; height: 42px; border-radius: 10px; margin-bottom: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pine-tint); color: var(--pine);
}
.icon svg { width: 24px; height: 24px; }
@media (max-width: 1000px) { .cards, .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards, .cards-3, .cards-2 { grid-template-columns: 1fr; } }

/* A feature: words on one side, a screenshot on the other. */
.feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px; align-items: center; padding: 56px 0;
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip > :first-child { order: 2; }
.feature h2 { font-size: clamp(1.65rem, 2.8vw, 2.2rem); }
.feature p { color: var(--ink-soft); }
.feature .shots-pair { display: grid; gap: 16px; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .feature.flip > :first-child { order: 0; }
}

.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.3em;
  width: 16px; height: 16px; border-radius: 4px;
  background: var(--pine-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.4' fill='none' stroke='%23326850' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.ticks.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
/* Planned, not built: an open box, not a tick. */
.ticks.plan li::before { background: var(--white); border: 1.5px dashed var(--datum); }
@media (max-width: 700px) { .ticks.cols { grid-template-columns: 1fr; } }

.more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; margin-top: 20px; }
.more-link svg { width: 16px; height: 16px; transition: transform 0.15s; }
.more-link:hover svg { transform: translateX(3px); }

/* A band in Pine: the call to action at the foot of a page. */
.band {
  background: var(--pine-deep); color: #e9f0ec; border-radius: 18px;
  padding: 52px 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center;
  position: relative; overflow: hidden;
}
.band::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%);
  mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.band > * { position: relative; }
.band h2 { color: var(--white); margin-bottom: 0.3em; }
.band p { color: #cfe0d7; margin: 0; max-width: 620px; }
.band .btn-primary { background: var(--sand); color: var(--ink); box-shadow: none; }
.band .btn-primary:hover { background: #e6d4bf; color: var(--ink); }
.band .btn-secondary { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.35); }
.band .btn-secondary:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }
.band .cta-row { margin: 0; }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; padding: 40px 28px; } }

/* ---------------------------------------------------------------- content pages */

.prose { max-width: 760px; }
.prose h2 { font-size: 1.7rem; margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--ink-soft); }
.prose li { margin: 0.35em 0; }
.prose p { color: var(--ink-soft); }

/* The features page: a table of contents beside the lists. */
.toc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 96px; }
.toc p { font: 650 0.72rem/1 var(--font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-strong); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; }
.toc a:hover { color: var(--pine-deep); border-left-color: var(--sand-strong); }
.toc a.active { color: var(--pine-deep); border-left-color: var(--pine); font-weight: 600; }
@media (max-width: 900px) { .toc-layout { grid-template-columns: 1fr; } .toc { position: static; } }

.area { padding: 8px 0 44px; }
.area + .area { border-top: 1px solid var(--line); padding-top: 44px; }
.area-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 8px; }
.area-head h2 { font-size: 1.75rem; margin: 0; }
.area > p { color: var(--ink-soft); max-width: 720px; }
.area .shot { margin: 24px 0 8px; }

.group-title { font: 650 0.78rem/1.2 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin: 26px 0 4px; }

.callout {
  border: 1px solid var(--line-strong); border-left: 4px solid var(--datum);
  background: #fffaf0; border-radius: 8px; padding: 18px 20px; color: var(--ink-soft);
}
.callout h3 { margin-bottom: 6px; font-size: 1.05rem; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout ul { margin: 8px 0 0; padding-left: 1.2em; }

/* Spec tables: requirements, release facts. */
.spec { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 13px 18px; border-top: 1px solid var(--line); font-size: 0.97rem; }
.spec tr:first-child th, .spec tr:first-child td { border-top: 0; }
.spec th { width: 34%; font: 650 0.74rem/1.5 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); background: var(--sand-wash); }
.spec td { color: var(--ink-soft); }
@media (max-width: 560px) {
  .spec th, .spec td { display: block; width: 100%; }
  .spec td { border-top: 0; padding-top: 0; }
}

/* Numbered steps. */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding: 16px 18px 16px 62px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-soft); }
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--pine); color: var(--white); font-weight: 700; font-size: 0.95rem;
}
.steps strong { display: block; margin-bottom: 2px; }

/* The evaluation page's form. */
.eval-form { display: grid; gap: 12px; margin-bottom: 18px; }
.eval-form label { font-weight: 620; color: var(--ink); }
.eval-form textarea {
  width: 100%; min-height: 120px; resize: vertical; padding: 12px 14px;
  font: 0.9rem/1.45 var(--mono); color: var(--ink); word-break: break-all;
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.eval-form textarea:focus { outline: 2px solid var(--pine); outline-offset: 1px; }
.eval-form .cta-row { margin: 0; }
.eval-result { margin: 0; padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--line); color: var(--ink-soft); background: var(--white); }
.eval-result.good { border-color: var(--pine); background: var(--pine-tint); color: var(--pine-deep); }
.eval-result.bad { border-color: #c0392b; background: #fbeceb; color: #8c2a1f; }
.eval-result[hidden] { display: none; }

/* About the maker, at the foot of the home page. */
.about p { font-size: 1.08rem; line-height: 1.65; }
.about .signed { color: var(--ink); font-weight: 620; }

/* FAQ. */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 30px 17px 0; position: relative;
  font-weight: 620; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--pine); border-bottom: 2px solid var(--pine); transform: rotate(45deg);
  transition: transform 0.15s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details > div { padding: 0 0 18px; color: var(--ink-soft); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Release notes. */
.release { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; padding: 40px 0; }
.release + .release { border-top: 1px solid var(--line); }
.release-meta { position: sticky; top: 96px; align-self: start; }
.release-meta .ver { font: 700 1.6rem/1.1 var(--font-display); color: var(--ink); letter-spacing: -0.02em; }
.release-meta time { display: block; color: var(--ink-muted); font-size: 0.92rem; margin-top: 6px; }
.release-meta .tag { margin: 12px 0 0; }
.release h3 { font-size: 1.02rem; margin: 22px 0 6px; color: var(--pine-deep); }
.release h3:first-child { margin-top: 0; }
.release ul { margin: 0; padding-left: 1.2em; color: var(--ink-soft); }
.release li { margin: 4px 0; }
.release .summary { color: var(--ink-soft); margin-bottom: 4px; }
@media (max-width: 760px) { .release { grid-template-columns: 1fr; gap: 12px; } .release-meta { position: static; } }

/* Terms, set out like the cells of a spec sheet. */
.terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.term { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.term .k { display: block; font: 650 0.72rem/1 var(--font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--datum); margin-bottom: 10px; }
.term h3 { font-size: 1.3rem; margin-bottom: 6px; }
.term p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }
@media (max-width: 700px) { .terms { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.release-card {
  background: var(--white); border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: var(--shadow); padding: 30px;
}
.release-card .ver { font: 700 2.2rem/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink); }
.release-card .ver span { font-size: 0.9rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--datum); margin-left: 10px; vertical-align: middle; }
.release-card dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 20px 0 24px; font-size: 0.95rem; }
.release-card dt { color: var(--ink-muted); }
.release-card dd { margin: 0; color: var(--ink); }

/* ---------------------------------------------------------------- footer: a title block */

.site-footer { margin-top: 96px; padding: 0 0 40px; }
.titleblock {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  border: 1.5px solid var(--graphite);
  background: var(--white);
}
.tb-cell { position: relative; padding: 22px 18px 16px; border-left: 1px solid var(--graphite); min-width: 0; }
.tb-cell:first-child { border-left: 0; }
.tb-row2 { grid-column: 1 / -1; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; border-top: 1px solid var(--graphite); }
.tb-row2 .tb-cell { padding-top: 18px; padding-bottom: 10px; font-size: 0.86rem; color: var(--ink-soft); }
.tb-label {
  position: absolute; left: 6px; top: 4px;
  font: 600 0.62rem/1 var(--font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted);
}
.tb-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.5rem/1 var(--font-display); letter-spacing: -0.02em; }
.tb-brand img { width: 34px; height: 34px; }
.tb-brand:hover { color: var(--ink); }
.tb-cell p { margin: 8px 0 0; color: var(--ink-soft); font-size: 0.94rem; }
.tb-cell ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tb-cell ul a, .tb-cell > a:not(.tb-brand) { color: var(--graphite); text-decoration: none; font-size: 0.95rem; }
.tb-cell ul a:hover, .tb-cell > a:not(.tb-brand):hover { color: var(--pine); text-decoration: underline; }
.tb-proj { display: inline-flex; align-items: center; gap: 8px; }
.tb-proj svg { width: 34px; height: 17px; color: var(--graphite); }
@media (max-width: 860px) {
  .titleblock, .tb-row2 { grid-template-columns: 1fr 1fr; }
  .tb-cell:nth-child(3) { border-left: 0; }
  .tb-cell:nth-child(n+3) { border-top: 1px solid var(--graphite); }
  .tb-row2 .tb-cell:nth-child(3) { border-left: 0; }
}
@media (max-width: 480px) {
  .titleblock, .tb-row2 { grid-template-columns: 1fr; }
  .tb-cell { border-left: 0; }
  .tb-cell + .tb-cell { border-top: 1px solid var(--graphite); }
}

/* ---------------------------------------------------------------- lightbox */

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(22, 24, 23, 0.86); }
.lightbox img { max-width: 96vw; max-height: 88vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); background: var(--white); }
.lightbox p { color: #e6e6e3; text-align: center; font-size: 0.92rem; margin: 12px auto 0; max-width: 900px; }
.lightbox button {
  position: fixed; top: 14px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(0, 0, 0, 0.35); color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}

/* ---------------------------------------------------------------- the not-found page */

.notfound { padding: 96px 0 40px; }
.notfound .code { font: 700 0.8rem/1 var(--mono); color: #b3261e; border: 1px solid currentColor; padding: 5px 8px; border-radius: 2px; display: inline-block; margin-bottom: 20px; background: #fff5f4; }
