/* ============================================================
   My Outliner — app styles.
   Theme variables below; brand name lives in js/app.js.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Public+Sans:wght@400;500;600;700&display=swap");

/* Light "literary" theme by default — matches the marketing page.
   Dark mode below is the original "midnight romance" look,
   switched by the moon button in the header, remembered per device. */

:root {
  color-scheme: light;
  --paper: #faf8f4;        /* warm cream page background */
  --card: #fffdf9;
  --input-bg: #f4f0e8;
  --ink: #211d18;          /* warm near-black text */
  --ink-soft: #6f6a60;
  --accent: #77546b;       /* plum — primary brand color */
  --accent-hover: #5e4154;
  --accent-soft: rgba(119, 84, 107, 0.12);
  --btn-text: #fffdf9;     /* cream text on plum buttons */
  --line: #e7e1d6;
  --good: #44735a;
  --good-soft: #e6efe9;
  --warn-soft: #f7efdd;
  --radius: 12px;
  --shadow: 0 18px 40px -30px rgba(33, 29, 24, 0.35), 0 1px 3px rgba(33, 29, 24, 0.06);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141a26;        /* deep navy page background */
  --card: #1d2534;         /* charcoal-navy cards */
  --input-bg: #161d2b;
  --ink: #eae7ef;          /* soft off-white text */
  --ink-soft: #a8a3b6;
  --accent: #e8a0b4;       /* blush pink */
  --accent-hover: #f2bcca;
  --accent-soft: #322837;
  --btn-text: #141a26;     /* dark text on blush buttons */
  --line: #2e3547;
  --good: #7fc79a;
  --good-soft: #1e3229;
  --warn-soft: #332e1e;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }

/* Template-specific content: romance books vs general-fiction books.
   Default (no attribute) behaves as romance. */
.general-only { display: none; }
:root[data-template="general"] .general-only { display: revert; }
:root[data-template="general"] .romance-only { display: none; }

html { font-size: 16.5px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
}

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

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo { display: flex; flex-shrink: 0; }

.brand-logo svg {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 9px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.theme-toggle {
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  flex-shrink: 0;
}

.theme-toggle:hover { border-color: var(--accent); }

/* plan / trial note on the dashboard */
.plan-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}

.plan-note a { color: var(--accent); }

/* locked mode: trial ended, writing fields closed (reading stays) */
:root[data-locked="true"] main input:disabled,
:root[data-locked="true"] main textarea:disabled,
:root[data-locked="true"] main select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--ink);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-name em {
  font-style: italic;
  font-weight: normal;
  color: var(--accent);
  margin-right: 0.18rem;
}

.site-header .inner { flex-wrap: wrap; row-gap: 0.35rem; }

.header-nav {
  display: flex;
  gap: 1rem;
  margin-left: 1.3rem;
}

.header-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.header-nav a:hover { text-decoration: underline; }
.header-nav a[aria-current="page"] { color: var(--ink-soft); }

.save-status {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.save-status.saved { color: var(--good); }

/* ---------- Layout ---------- */

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.25rem 5rem;
}

.page.wide { max-width: 980px; }

h1 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0.5rem 0 0.4rem;
}

h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2.2rem 0 0.5rem;
}

h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.6rem 0 0.4rem;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0;
}

.lede { font-size: 1.06rem; color: var(--ink-soft); margin-top: 0; }

/* ---------- Cards & notes ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem;
  margin: 1.2rem 0;
}

.note {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.85rem 1.1rem;
  margin: 1.2rem 0;
  font-size: 0.95rem;
}

.note.gentle {
  background: var(--warn-soft);
  border-left-color: #d9a441;
}

details.tip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 1.1rem;
  margin: 0.9rem 0;
}

details.tip summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
}

details.tip[open] summary { margin-bottom: 0.5rem; }

/* ---------- Form fields ---------- */

.field { margin: 1.25rem 0; }

.field label,
.field .group-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.field .hint {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: -0.2rem 0 0.5rem;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
textarea,
select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--input-bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
}

textarea { min-height: 6.5rem; resize: vertical; }

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.radio-list { display: flex; flex-direction: column; gap: 0.45rem; }

.radio-list label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: normal;
  background: var(--input-bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
}

.radio-list label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.radio-list input { margin-top: 0.3rem; flex-shrink: 0; }

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

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  background: var(--accent);
  color: var(--btn-text);
}

.btn:hover { background: var(--accent-hover); }

.btn.secondary {
  background: var(--card);
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn.secondary:hover { background: var(--accent-soft); }

.btn.quiet {
  background: transparent;
  color: var(--ink-soft);
  border: 1.5px solid var(--line);
  font-weight: normal;
}

.btn.quiet:hover { color: var(--ink); border-color: var(--ink-soft); }

.btn-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  align-items: center;
}

/* ---------- Progress ---------- */

.progress-track {
  background: var(--line);
  border-radius: 99px;
  height: 12px;
  overflow: hidden;
}

.progress-fill {
  background: var(--accent);
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s ease;
}

/* ---------- Dashboard ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.9rem;
  margin: 1.2rem 0;
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}

.stat .label { font-size: 0.8rem; color: var(--ink-soft); }

.stat .value {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-top: 0.15rem;
}

.module-list { list-style: none; margin: 0; padding: 0; }

.module-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  margin: 0.55rem 0;
}

.module-list li.row-link { cursor: pointer; transition: border-color 150ms ease, box-shadow 150ms ease; }
.module-list li.row-link:hover { border-color: var(--accent); box-shadow: var(--shadow); }

.module-list .num {
  font-family: var(--serif);
  font-weight: bold;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 8px;
  width: 2.1rem;
  height: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.module-list .m-title { flex: 1 1 12rem; }

.module-list .m-title a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.module-list .m-title a:hover { color: var(--accent); text-decoration: underline; }

.pill {
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 99px;
  padding: 0.2rem 0.7rem;
  white-space: nowrap;
}

.pill.done { background: var(--good-soft); color: var(--good); }
.pill.progress { background: var(--accent-soft); color: var(--accent); }
.pill.todo { background: var(--paper); color: var(--ink-soft); border: 1px solid var(--line); }
.pill.soon { background: var(--paper); color: var(--ink-soft); border: 1px dashed var(--line); }

.mini-track {
  width: 88px;
  flex-shrink: 0;
}

/* ---------- Trope picker (Module 3) ---------- */

.trope-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.trope-grid label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--input-bg);
  border: 1.5px solid var(--line);
  border-radius: 99px;
  padding: 0.35rem 0.9rem 0.35rem 0.7rem;
  cursor: pointer;
  font-size: 0.92rem;
}

.trope-grid label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- Chapter calculator (Module 4) ---------- */

.calc-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 0.7rem 0;
}

.calc-row:first-child { border-top: none; }
.calc-row.mine { background: var(--accent-soft); border-radius: 10px; padding: 0.7rem 0.8rem; border-top: none; }
.calc-len { flex: 1 1 12rem; }
.calc-count { flex: 0 1 auto; }
.calc-row .btn { padding: 0.35rem 0.9rem; font-size: 0.88rem; }

/* ---------- Character builder (Module 5) ---------- */

.char-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.char-actions .btn { padding: 0.35rem 0.9rem; font-size: 0.88rem; }

.section-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  margin: 0.8rem 0;
}

.section-block summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: bold;
}

.section-block summary .sec-state {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-left: 0.5rem;
}

.section-block summary .sec-state.answered { color: var(--good); }

.section-block .sec-intro { color: var(--ink-soft); font-size: 0.92rem; margin: 0.4rem 0 0; }

/* ---------- Three-act plot board (Module 9) ---------- */

.act-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin: 1.2rem 0;
}

@media (max-width: 760px) {
  .act-board { grid-template-columns: 1fr; }
}

.act-col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem;
}

.act-col h3 { margin: 0 0 0.2rem; }
.act-col .act-blurb { font-size: 0.82rem; color: var(--ink-soft); margin: 0 0 0.8rem; }

.event-card {
  background: var(--input-bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  margin-bottom: 0.6rem;
}

.event-card input[type="text"] {
  border: none;
  background: transparent;
  padding: 0.15rem 0;
  font-weight: 600;
  border-radius: 0;
}

.event-card .beat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.45rem 0;
}

.event-card .beat-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.15rem 0.6rem;
  cursor: pointer;
  color: var(--ink-soft);
}

.event-card .beat-row label:has(input:checked) {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--accent-soft);
}

.event-card .beat-row input { margin: 0; width: 0.85rem; height: 0.85rem; }

.event-card details { margin: 0.35rem 0 0.2rem; }
.event-card details summary { font-size: 0.8rem; color: var(--ink-soft); cursor: pointer; }
.event-card details textarea { min-height: 3.5rem; margin-top: 0.4rem; font-size: 0.9rem; }

.event-controls {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.45rem;
}

.event-controls button {
  font: inherit;
  font-size: 0.8rem;
  background: var(--card);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.15rem 0.55rem;
  cursor: pointer;
}

.event-controls button:hover { color: var(--ink); border-color: var(--ink-soft); }
.event-controls .ev-delete { margin-left: auto; }

.add-event { display: flex; gap: 0.4rem; margin-top: 0.5rem; }
.add-event input { flex: 1; }
.add-event .btn { padding: 0.4rem 0.9rem; font-size: 0.88rem; flex-shrink: 0; }

/* ---------- Chapter prep view (Module 11) ---------- */

.prep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.prep-item {
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
}

.prep-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.prep-value { font-size: 0.95rem; white-space: pre-wrap; }

/* ---------- Drafting workspace (Module 12) ---------- */

.ws-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.ws-stat { font-weight: 600; }
#ws-session { color: var(--good); font-weight: normal; }

.ws-goal-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.ws-goal-label input { width: 6rem; padding: 0.3rem 0.5rem; }

.ws-timer {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.ws-timer input { width: 4rem; padding: 0.3rem 0.5rem; }
.ws-timer .btn { padding: 0.3rem 0.8rem; font-size: 0.85rem; }
#ws-timer-display { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 3rem; text-align: center; }

.workspace {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.1rem;
  align-items: start;
}

@media (max-width: 860px) {
  .workspace { grid-template-columns: 1fr; }
  .ws-timer { margin-left: 0; }
}

.draft-area textarea {
  min-height: 62vh;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.8;
  padding: 1.2rem 1.4rem;
}

.ws-panels details { margin: 0 0 0.7rem; }

/* Focus mode: just the words. */
body.focus-mode .site-header,
body.focus-mode .site-footer,
body.focus-mode .ws-panels,
body.focus-mode .page.wide > *:not(.workspace):not(.ws-toolbar) {
  display: none;
}

body.focus-mode .ws-toolbar { position: sticky; top: 0.5rem; z-index: 5; }
body.focus-mode .workspace { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
body.focus-mode .draft-area textarea { min-height: 80vh; }

/* ---------- Landing page ---------- */

body.landing {
  background:
    radial-gradient(ellipse 60% 40% at 75% 8%, rgba(232, 160, 180, 0.09), transparent 70%),
    radial-gradient(ellipse 50% 35% at 15% 30%, rgba(94, 116, 171, 0.12), transparent 70%),
    var(--paper);
}

.hero {
  padding: 4rem 1.25rem 3.5rem;
  max-width: 1060px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-copy { text-align: center; }
  .hero-copy .btn-row { justify-content: center; }
}

.hero h1 {
  font-size: 2.7rem;
  margin: 0 0 1rem;
}

.hero .lede { font-size: 1.13rem; }

.hero .btn { padding: 0.85rem 1.9rem; font-size: 1.05rem; }

/* --- the fake writing-room window in the hero --- */

.hero-visual { position: relative; }

.glow {
  position: absolute;
  inset: -12% -8%;
  background: radial-gradient(ellipse at 50% 45%, rgba(232, 160, 180, 0.22), transparent 65%);
  filter: blur(6px);
  pointer-events: none;
}

.mock {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: rotate(0.6deg);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: var(--input-bg);
}

.mock-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--line);
}

.mock-dot:first-child { background: var(--accent); opacity: 0.7; }

.mock-title {
  margin-left: 0.6rem;
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.mock-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
}

.mock-page { padding: 1.1rem 1.2rem; }

.mock-line {
  height: 0.55rem;
  border-radius: 4px;
  background: var(--line);
  margin: 0.55rem 0;
  opacity: 0.85;
}

.mock-line.blank { background: transparent; }
.mock-line.accent { background: var(--accent); opacity: 0.55; }
.mock-line.w100 { width: 100%; }
.mock-line.w95 { width: 95%; }
.mock-line.w92 { width: 92%; }
.mock-line.w88 { width: 88%; }
.mock-line.w78 { width: 78%; }
.mock-line.w60 { width: 60%; }
.mock-line.w45 { width: 45%; }

.mock-side {
  border-left: 1px solid var(--line);
  padding: 0.9rem;
  background: var(--input-bg);
}

.mock-chip-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.mock-chip {
  font-size: 0.7rem;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.35rem 0.5rem;
  margin: 0.35rem 0;
  line-height: 1.35;
}

.mock-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.55rem 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--ink-soft);
  background: var(--input-bg);
}

.mock-saved { color: var(--good); }

@media (max-width: 480px) {
  .mock-side { display: none; }
  .mock-body { grid-template-columns: 1fr; }
}

/* --- feature icons & pull quote --- */

.f-icon {
  width: 30px;
  height: 30px;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.pullquote {
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.4;
  text-align: center;
  color: var(--accent);
  max-width: 640px;
  margin: 3.5rem auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}

.feature h3 { margin: 0 0 0.4rem; }
.feature p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

.steps { counter-reset: step; max-width: 640px; margin: 0 auto; }

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 1.4rem 0;
}

.step .num {
  font-family: var(--serif);
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ownership {
  background: var(--card);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  text-align: center;
  max-width: 640px;
  margin: 3rem auto;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 1.25rem 2.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.site-footer a { color: var(--ink-soft); text-decoration: underline; }
.site-footer a:hover { color: var(--accent); }

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

@media (max-width: 560px) {
  h1 { font-size: 1.6rem; }
  .page { padding: 1.3rem 1rem 4rem; }
  .brand-name { font-size: 1.15rem; }
  .mini-track { display: none; }
}
