/*
  DiskX download page — standalone styles.

  Tokens mirror the Fall Day Software theme
  (../website/theme/falldaysoftware/src/input.css) so this page reads as part of
  the site while staying a plain static file: no Tailwind build, no WordPress.
  If the site's palette moves, update the block below to match.
*/

:root {
  --cream-50:  #FBF7EC;
  --cream-100: #F5EFDD;
  --cream-200: #ECE3CC;
  --paper:     #FFFFFF;
  --divider:   #E6DBC4;

  --ink-200: #BBB28C;
  --ink-300: #948A5C;
  --ink-500: #5E552F;
  --ink-600: #474220;
  --ink-700: #3A3519;
  --ink-900: #1E1B0E;

  --rust-50:  #FCEFE8;
  --rust-500: #B5482A;
  --rust-600: #973619;
  --rust-700: #7B2C13;

  --forest-50:  #EEF3EC;
  --forest-500: #3F633A;
  --forest-700: #243821;

  --ochre-50:  #FBF1DC;
  --ochre-300: #D9A84C;
  --ochre-700: #5D4316;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow-card: 0 1px 2px 0 rgb(31 26 20 / 0.04), 0 8px 24px -12px rgb(31 26 20 / 0.10);
}

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

html { font-feature-settings: "ss01", "cv11"; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream-50);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }

a { color: var(--rust-600); text-decoration: none; }
a:hover { color: var(--rust-700); text-decoration: underline; }

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

.site-header { border-bottom: 1px solid rgb(230 219 196 / 0.6); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.25rem; padding-bottom: 1.25rem;
}
.site-header img { height: 5rem; width: auto; display: block; }
.site-nav { display: flex; gap: 1.5rem; font-size: 0.9rem; }
.site-nav a { color: var(--ink-700); }
.site-nav a:hover { color: var(--rust-700); }

.site-footer { margin-top: 4rem; border-top: 1px solid rgb(230 219 196 / 0.7); }
.site-footer .wrap {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding-top: 2rem; padding-bottom: 2rem;
  font-size: 0.9rem; color: var(--ink-600);
}
@media (min-width: 640px) {
  .site-footer .wrap { flex-direction: row; align-items: baseline; justify-content: space-between; }
}
.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer a { color: var(--ink-600); }

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

.hero { padding: 3.5rem 0 2rem; }

/* Icon over the title on narrow screens, beside it once there is room.
   The PNG is rendered from the built app by Scripts/render_icon.swift. */
.hero-head {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.hero-head > div { min-width: 0; }
.app-icon {
  width: 3.5rem; height: 3.5rem;
  flex: none;
  /* The macOS icon already carries its own shading; no border or shadow here. */
}
@media (min-width: 640px) {
  .hero-head { flex-direction: row; align-items: center; gap: 1.25rem; }
  .app-icon { width: 4.5rem; height: 4.5rem; }
}
.hero-head .tagline { margin-bottom: 0; }

.badge {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ochre-700); background: var(--ochre-50);
  border: 1px solid var(--ochre-300);
  border-radius: 999px; padding: 0.2rem 0.7rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 1.1; font-weight: 700; letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  color: var(--ink-900);
}

.tagline {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: var(--ink-600);
  margin: 0 0 2rem;
  max-width: 34em;
}

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

.download {
  background: var(--paper);
  border: 1px solid var(--divider);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
}

.btn {
  display: inline-block;
  background: var(--rust-600); color: var(--paper);
  font-size: 1.05rem; font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  text-decoration: none;
}
.btn:hover { background: var(--rust-700); color: var(--paper); text-decoration: none; }

/* The system requirement is the single most important line on this page:
   a tester on an older macOS downloading a build that cannot run is the
   worst outcome the page can produce. It sits directly under the button. */
.requirement {
  margin: 0.9rem 0 0;
  font-weight: 600;
  color: var(--forest-700);
}
.requirement .not-supported { font-weight: 400; color: var(--ink-500); }

.meta {
  margin: 1.1rem 0 0; padding-top: 1.1rem;
  border-top: 1px solid var(--divider);
  font-size: 0.85rem; color: var(--ink-500);
  display: grid; gap: 0.35rem;
}
.meta div { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.meta dt { font-weight: 600; color: var(--ink-600); min-width: 7.5rem; }
.meta code, code.hash {
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--ink-700); word-break: break-all;
}

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

/* The gallery is the widest thing on the page — it deliberately breaks the
   42em measure the prose is held to. */
.shot-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .shot-grid { grid-template-columns: 1fr 1fr; }
}
.shot-grid figure { margin: 0; }
/* An odd number of shots would leave a hole in the last row; let the straggler
   run the full width instead. */
@media (min-width: 720px) {
  .shot-grid figure:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.shot-grid img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--divider);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  background: var(--ink-900);
}
.shot-grid a:hover img { border-color: var(--ink-200); }
.shot-grid figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem; line-height: 1.5; color: var(--ink-500);
}
.shot-note { margin-top: 1.25rem; font-size: 0.8rem; color: var(--ink-300); }

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

section { margin-top: 3rem; }

h2 {
  font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em;
  margin: 0 0 0.9rem; color: var(--ink-900);
}

p { margin: 0 0 1rem; max-width: 42em; }

ul { margin: 0 0 1rem; padding-left: 1.2rem; max-width: 42em; }
li { margin-bottom: 0.4rem; }

/* ---- Previous releases ----------------------------------------------- */

table { border-collapse: collapse; width: 100%; max-width: 42em; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--divider); }
th { font-weight: 600; color: var(--ink-600); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
td { color: var(--ink-700); }

.table-scroll { overflow-x: auto; }

.generated { margin-top: 2.5rem; font-size: 0.75rem; color: var(--ink-300); }
