/* Tiki Head Linux: a nautical chart on paper. Colours come from the distro's
   artwork (deep sea, cream bezel, the spec's #e0661f accent). Every token pair
   used for text is listed in scripts/check-contrast.mjs and checked against
   WCAG AA in both schemes. */

:root {
  color-scheme: light dark;

  --paper: #f5efe0;
  --paper-raised: #fbf8ef;
  --paper-sunk: #ece4cd;
  --ink: #132a33;
  --ink-muted: #4b5d62;
  --rule: #d6caa8;
  --link: #1a5f75;
  --link-hover: #0e4253;
  --accent: #b4481f;
  --on-accent: #fffaf0;
  --accent-text: #a8431b;
  --focus: #b4481f;

  --sea: #0d3346;
  --sea-raised: #134457;
  --on-sea: #f3ead2;
  --on-sea-muted: #b6cbcf;
  --on-sea-link: #f6c08f;
  --on-sea-accent: #f0a36c;
  --on-sea-rule: rgba(243, 234, 210, 0.28);

  --code-bg: #0f2a35;
  --code-ink: #ebe3cb;
  --code-muted: #9fb6bc;

  --shadow: 0 1px 2px rgba(19, 42, 51, 0.08), 0 10px 28px rgba(19, 42, 51, 0.1);
  --radius: 10px;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: clamp(16px, 4vw, 32px);
  --measure: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b2230;
    --paper-raised: #102c3b;
    --paper-sunk: #081b26;
    --ink: #ece4cc;
    --ink-muted: #a9bcc0;
    --rule: #24485a;
    --link: #8fd0e0;
    --link-hover: #c4e8f1;
    --accent: #e0661f;
    --on-accent: #1a0d05;
    --accent-text: #f0a36c;
    --focus: #f0a36c;

    --sea: #061821;
    --sea-raised: #0d3346;

    --code-bg: #05141c;
    --code-ink: #ebe3cb;
    --code-muted: #9fb6bc;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.3);
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
}

h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.3rem);
}

h3 {
  font-size: 1.3rem;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* No ligatures: in a command, "-f" and "->" must look like what you type. */
code,
kbd,
pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
}

:not(pre) > code {
  background: var(--paper-sunk);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
}

kbd {
  display: inline-block;
  min-width: 2.2em;
  padding: 0.1em 0.45em;
  border: 1px solid var(--rule);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: var(--paper-raised);
  color: var(--ink);
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

strong {
  font-weight: 650;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 0.75rem;
}

.eyebrow--on-sea {
  color: var(--on-sea-accent);
}

/* ---------- Header ---------- */

.site-header {
  background: var(--sea);
  color: var(--on-sea);
  border-bottom: 1px solid var(--on-sea-rule);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--on-sea);
  text-decoration: none;
}

.brand:hover {
  color: var(--on-sea);
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand__sub {
  color: var(--on-sea-muted);
  font-weight: 400;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--on-sea);
  font-weight: 550;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--sea-raised);
  color: var(--on-sea);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -3px 0 var(--on-sea-accent);
  border-radius: 8px 8px 2px 2px;
}

@media (max-width: 559px) {
  .site-nav {
    width: 100%;
  }

  .site-nav ul {
    justify-content: space-between;
  }

  .site-nav a {
    padding: 8px 6px;
    font-size: 0.97rem;
  }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.button--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}

.button--primary:hover {
  color: var(--on-accent);
  filter: brightness(1.06);
}

.button--ghost {
  border-color: var(--on-sea-rule);
  color: var(--on-sea);
}

.button--ghost:hover {
  background: var(--sea-raised);
  color: var(--on-sea);
  border-color: var(--on-sea);
}

.button--ghost-ink {
  border-color: var(--ink);
  color: var(--ink);
}

.button--ghost-ink:hover {
  background: var(--paper-raised);
  color: var(--ink);
}

.button__note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.9;
}

.stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.stack--row {
  flex-direction: row;
  flex-wrap: wrap;
}

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--sea);
  color: var(--on-sea);
}

.hero__chart {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 0%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 31, 43, 0.9) 0%, rgba(8, 31, 43, 0.82) 55%, rgba(8, 31, 43, 0.94) 100%);
}

/* The wallpaper has its own compass and "TIKI HEAD" lettering at bottom left;
   the bottom fade keeps them from showing through behind the buttons. */
@media (min-width: 960px) {
  .hero::before {
    background:
      linear-gradient(0deg, rgba(8, 31, 43, 0.98) 0%, rgba(8, 31, 43, 0.8) 30%, rgba(8, 31, 43, 0) 60%),
      linear-gradient(90deg, rgba(8, 31, 43, 0.95) 0%, rgba(8, 31, 43, 0.86) 48%, rgba(8, 31, 43, 0.5) 100%);
  }
}

.hero__inner {
  display: grid;
  gap: 40px;
  align-items: center;
  padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 112px);
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: 5fr 6fr;
    gap: 56px;
  }
}

.hero h1 {
  color: var(--on-sea);
  max-width: 14ch;
}

.hero__lead {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  max-width: 40ch;
  color: var(--on-sea);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__shot {
  margin: 0;
}

.hero__shot img {
  border-radius: var(--radius);
  border: 1px solid var(--on-sea-rule);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hero__shot figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
}

.hero__shot a,
.section--sea a:not(.button) {
  color: var(--on-sea-link);
}

.hero__shot a:hover,
.section--sea a:not(.button):hover {
  color: var(--on-sea);
}

.hero__coords {
  position: absolute;
  right: var(--gutter);
  bottom: 12px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--on-sea-muted);
}

/* ---------- Page heads (inner pages) ---------- */

.page-head {
  position: relative;
  background: var(--sea);
  background-image:
    linear-gradient(90deg, rgba(8, 31, 43, 0.94) 0%, rgba(8, 31, 43, 0.86) 60%, rgba(8, 31, 43, 0.74) 100%),
    url("/img/chart-1280.jpg");
  background-size: cover;
  background-position: 70% 40%;
  color: var(--on-sea);
  padding-block: clamp(40px, 6vw, 72px);
}

/* On a narrow, short box "cover" shows the whole chart, wallpaper lettering
   included; zoom in on Maui and the Big Island instead. */
@media (max-width: 700px) {
  .page-head {
    background-size: auto, auto 260%;
    background-position: 0 0, 72% 18%;
  }
}

.page-head h1 {
  color: var(--on-sea);
}

.page-head__lead {
  max-width: 52ch;
  font-size: 1.15rem;
  margin: 0;
}

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

.section {
  padding-block: clamp(48px, 7vw, 88px);
}

.section--sunk {
  background: var(--paper-sunk);
}

.section--sea {
  background: var(--sea);
  color: var(--on-sea);
}

.section--sea h2,
.section--sea h3 {
  color: var(--on-sea);
}

.section--sea .eyebrow {
  color: var(--on-sea-accent);
}

.section-head {
  max-width: var(--measure);
  margin-bottom: 28px;
}

.section-head h2 {
  margin-bottom: 0.35em;
}

.section-head__intro {
  color: var(--ink-muted);
  font-size: 1.1rem;
  margin: 0;
}

.section--sea .section-head__intro {
  color: var(--on-sea-muted);
}

.section__more {
  margin: 28px 0 0;
  font-weight: 600;
}

.section__more a::after,
.bench__card h3 a::after {
  content: " →";
}

.split {
  display: grid;
  gap: 32px 56px;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split--center {
    align-items: center;
  }
}

.split p {
  max-width: var(--measure);
}

/* ---------- Facts strip ---------- */

.facts {
  background: var(--paper-raised);
  border-bottom: 1px solid var(--rule);
}

.facts__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  list-style: none;
  margin: 0;
  padding-block: 24px;
}

@media (min-width: 860px) {
  .facts__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.facts__list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}

.facts__list strong {
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.facts__list span {
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

/* ---------- Bench cards (home) ---------- */

.bench {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bench__card {
  position: relative;
  padding: 22px 22px 18px;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}

.bench__card:hover {
  transform: translateY(-2px);
}

.bench__card h3 {
  margin-bottom: 0.4em;
}

.bench__card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.bench__card h3 a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.bench__card p {
  margin-bottom: 0.6em;
}

.bench__apps {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.ver {
  display: inline-block;
  padding: 0 0.45em;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-sunk);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  white-space: nowrap;
}

/* ---------- Compare (home) ---------- */

.compare {
  display: grid;
  gap: 16px;
}

@media (min-width: 860px) {
  .compare {
    grid-template-columns: 1fr 1fr;
  }
}

.compare__card {
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-raised);
}

.compare__card ul {
  margin: 0;
  padding-left: 1.2em;
}

.compare__card li + li {
  margin-top: 0.4em;
}

.cta {
  text-align: center;
}

.cta p {
  color: var(--ink-muted);
  max-width: 52ch;
  margin-inline: auto;
}

.cta--left {
  text-align: left;
}

.cta--left p {
  margin-inline: 0;
}

/* ---------- Code blocks ---------- */

.code {
  position: relative;
  margin: 0 0 16px;
  border-radius: var(--radius);
  background: var(--code-bg);
  color: var(--code-ink);
  box-shadow: var(--shadow);
}

.code__label {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 8px 84px 0 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--code-muted);
}

.code pre {
  margin: 0;
  padding: 4px 16px 16px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.55;
  tab-size: 4;
}

.code__copy,
.copy {
  font: 600 0.78rem/1 var(--font-sans);
  padding: 7px 10px;
  border-radius: 7px;
  cursor: pointer;
}

.code__copy {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1px solid rgba(235, 227, 203, 0.35);
  background: var(--code-bg);
  color: var(--code-ink);
}

.code__copy:hover {
  border-color: var(--code-ink);
}

.copy {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  vertical-align: middle;
}

.code .c {
  color: var(--code-muted);
}

.code-group {
  display: grid;
  gap: 0;
}

/* Grid items default to min-width: auto, so a long command would widen the
   whole column past the screen; let the <pre> scroll inside its box instead. */
.code,
.code-group > *,
.steps > *,
.howtos > *,
.split > *,
.release > *,
.compare > * {
  min-width: 0;
}

/* ---------- Download ---------- */

.release {
  display: grid;
  gap: 32px;
  padding: clamp(22px, 4vw, 40px);
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-top: 5px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .release {
    grid-template-columns: 2fr 3fr;
    align-items: start;
  }
}

.release h2 {
  margin-bottom: 0.25em;
}

.release__meta,
.release__hint {
  color: var(--ink-muted);
}

.release__meta {
  margin-bottom: 1.4em;
}

.release__hint {
  font-size: 0.9rem;
  margin: 14px 0 0;
}

.release__facts {
  display: grid;
  gap: 14px;
  margin: 0;
}

.release__facts div {
  display: grid;
  gap: 2px 16px;
}

@media (min-width: 560px) {
  .release__facts div {
    grid-template-columns: 8.5rem 1fr;
  }
}

.release__facts dt {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 0.2em;
}

.release__facts dd {
  margin: 0;
  min-width: 0;
}

.sha {
  word-break: break-all;
  overflow-wrap: anywhere;
}

.needs {
  display: grid;
  gap: 12px;
  max-width: var(--measure);
  padding-left: 1.2em;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.step {
  counter-increment: step;
  position: relative;
  padding: 24px 24px 12px 76px;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 18px;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent-text);
}

.step p,
.step ul {
  max-width: var(--measure);
}

@media (max-width: 559px) {
  .step {
    padding: 64px 18px 8px;
  }

  .step::before {
    left: 18px;
    top: 16px;
  }
}

.tools,
.keys {
  padding-left: 1.2em;
}

.keys {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

.keys kbd {
  margin-right: 4px;
}

.table-title {
  font-size: 1.15rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
}

thead th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom-width: 2px;
}

td.num,
th.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tests td.num {
  text-align: right;
}

.table-note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* ---------- Applications ---------- */

.toc {
  display: grid;
  gap: 6px 16px;
  padding-block: 24px;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 860px) {
  .toc {
    grid-template-columns: max-content 1fr;
    align-items: baseline;
  }
}

.toc__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.toc a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-raised);
  color: var(--ink);
  font-size: 0.92rem;
  text-decoration: none;
}

.toc a:hover {
  border-color: var(--ink);
}

.toc li[data-not-included] a::after {
  content: " · not included";
  color: var(--accent-text);
  font-size: 0.85em;
}

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}

.app {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  min-width: 0;
}

.app__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.app__name {
  margin: 0;
}

.app__start {
  font-size: 0.95rem;
}

.app__label {
  display: inline-block;
  margin-right: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.app .code {
  box-shadow: none;
}

.app .code pre {
  font-size: 0.84rem;
}

.app__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
}

.app__pkg {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
  overflow-wrap: anywhere;
}

.ver--flathub {
  font-family: var(--font-sans);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-raised);
}

.libs {
  min-width: 680px;
}

.libs th[scope="row"] {
  white-space: nowrap;
}

.libs tbody tr:last-child > * {
  border-bottom: 0;
}

.howtos-head {
  padding-bottom: 32px;
}

.howtos {
  display: grid;
  gap: 0;
  padding-block: 32px 72px;
}

.howto {
  max-width: 860px;
  padding-block: 32px;
  border-bottom: 1px solid var(--rule);
}

.howto:last-child {
  border-bottom: 0;
}

.howto h3 {
  font-size: 1.55rem;
}

.howto p,
.howto ul {
  max-width: var(--measure);
}

.issues {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.issue {
  min-width: 0;
  padding: 20px 22px 6px;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--paper-raised);
}

.issue h3 {
  font-size: 1.2rem;
}

.issue p {
  max-width: var(--measure);
}

.note {
  padding: 12px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--paper-raised);
}

.howto[data-not-included] h3::after {
  content: "Not included";
  display: inline-block;
  margin-left: 12px;
  padding: 2px 8px;
  border: 1px solid var(--accent-text);
  border-radius: 999px;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ---------- Screenshots ---------- */

.gallery {
  display: grid;
  gap: 48px;
}

.gallery .section-head {
  margin-bottom: -16px;
}

.gallery--art {
  padding-top: 0;
}

.gallery__pair {
  display: grid;
  gap: 48px 32px;
}

@media (min-width: 860px) {
  .gallery__pair {
    grid-template-columns: 1fr 1fr;
  }
}

.shot {
  margin: 0;
  min-width: 0;
}

.shot__frame {
  display: block;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--sea);
  box-shadow: var(--shadow);
}

/* Captures keep their own shape; the artwork pair (a 16:9 chart and a square
   logo) shares one frame shape so the row lines up. */
.gallery--art .gallery__pair .shot__frame {
  aspect-ratio: 16 / 9;
}

.gallery--art .gallery__pair .shot__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot[data-kind="artwork"]#logo .shot__frame img {
  object-fit: contain;
  padding: 6%;
}

.shot figcaption {
  margin-top: 16px;
  max-width: var(--measure);
}

.shot__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.3em;
}

.shot__source {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  vertical-align: middle;
}

.tag--capture {
  border-color: var(--accent-text);
  color: var(--accent-text);
}

/* ---------- 404 ---------- */

.lost {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--sea);
  color: var(--on-sea-muted);
  font-size: 0.95rem;
}

.site-footer__inner {
  display: grid;
  gap: 28px 40px;
  padding-block: 48px 40px;
}

@media (min-width: 860px) {
  .site-footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer a {
  color: var(--on-sea);
}

.site-footer a:hover {
  color: var(--on-sea-link);
}

.site-footer__brand,
.site-footer__heading {
  color: var(--on-sea);
  font-family: var(--font-serif);
  font-weight: 600;
  margin-bottom: 0.5em;
}

.site-footer__brand {
  font-size: 1.2rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.site-footer li a {
  display: inline-block;
  padding-block: 6px;
}

.site-footer__credits {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--on-sea-rule);
  font-size: 0.85rem;
}

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

@media print {
  .site-header,
  .site-footer,
  .hero__chart,
  .code__copy,
  .copy {
    display: none;
  }
}
