/* debtofdays.ca: one dark stylesheet, no script, fonts served by the site itself. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0d0e12;
  --bg-2: #15171d;
  --line: #2a2d36;
  --text: #e6e1d6;
  --muted: #a7a196;
  --gold: #d6b46a;
  --gold-2: #f0d595;
  --violet: #9b86d9;
  --wrap: 72rem;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-underline-offset: 0.18em; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: #000; padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 700px) { .wrap { padding: 0 2rem; } }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 1rem; color: var(--gold-2); }
h3 { font-size: 1.5rem; margin: 0 0 0.4rem; }

/* Header */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  background: linear-gradient(to bottom, rgba(0,0,0,0.75), rgba(0,0,0,0));
}
.site-header.solid { position: static; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.brand img { width: 40px; height: 40px; border-radius: 6px; }
.nav { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: 0.95rem; }
.nav a { color: var(--text); text-decoration: none; }
@media (max-width: 640px) { .nav .sec { display: none; } .nav { gap: 0.9rem; } }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-2); text-decoration: underline; }

/* Hero */
.hero {
  position: relative; min-height: min(92vh, 52rem);
  display: flex; align-items: flex-end;
  background: #000 url("/images/key-anchor.webp") center 30% / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 2%, rgba(13,14,18,0.55) 45%, rgba(13,14,18,0.25) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-bottom: 4rem; padding-top: 8rem; }
.hero h1 { font-size: clamp(3rem, 10vw, 6.5rem); margin: 0; color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,0.8); }
.tagline { font-family: var(--serif); font-size: clamp(1.35rem, 3vw, 2rem); font-style: italic; color: var(--gold-2); margin: 0.2rem 0 1.2rem; }
.lead { max-width: 40rem; font-size: 1.15rem; color: #efe9dc; margin: 0 0 1.6rem; }
.facts { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 1.8rem; }
.facts li { border: 1px solid rgba(214,180,106,0.55); background: rgba(0,0,0,0.45); color: var(--gold-2); padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.88rem; }
.cta { display: inline-block; border: 1px solid var(--gold); background: rgba(13,14,18,0.6); color: var(--gold-2); font-family: var(--serif); font-size: 1.3rem; font-weight: 600; padding: 0.5rem 1.2rem; border-radius: 6px; }
.cta-note { display: block; margin-top: 0.6rem; font-size: 0.9rem; color: var(--muted); }

/* Sections */
section { padding: 4.5rem 0; border-top: 1px solid var(--line); }
section.alt { background: var(--bg-2); }
.intro { max-width: 46rem; font-size: 1.12rem; }
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.1fr 1fr; gap: 3rem; } .split.flip > :first-child { order: 2; } }
figure { margin: 0; }
figure img { border-radius: 8px; border: 1px solid var(--line); width: 100%; }
figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }

.eras { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 860px) { .eras { grid-template-columns: repeat(3, 1fr); } }
.era { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.era img { border: 0; border-radius: 0; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.era div { padding: 1.1rem 1.25rem 1.4rem; }
.era .year { color: var(--violet); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 0.3rem; }
.era p { margin: 0.3rem 0 0; color: #d9d3c6; }

.features { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
.features li { border-left: 3px solid var(--gold); padding: 0.2rem 0 0.2rem 1rem; }
.features strong { display: block; font-family: var(--serif); font-size: 1.35rem; color: #fff; font-weight: 600; }

.gallery { display: grid; gap: 1rem; margin-top: 2rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } .gallery .wide { grid-column: span 2; } }
.gallery img { height: 100%; object-fit: cover; }

.notice { color: var(--muted); font-size: 0.9rem; }

/* Legal pages */
.legal { padding: 3rem 0 4rem; }
.legal .wrap { max-width: 50rem; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); margin: 0 0 0.4rem; color: #fff; }
.legal h2 { font-size: 1.8rem; margin-top: 2.6rem; }
.legal h3 { font-size: 1.3rem; margin-top: 1.6rem; color: #fff; }
.updated { color: var(--muted); margin-top: 0; }
.summary { background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 8px; padding: 0.5rem 1.4rem 0.8rem; margin: 1.8rem 0; }
.summary h2 { margin-top: 0.8rem; font-size: 1.5rem; }
table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.95rem; }
th, td { border: 1px solid var(--line); padding: 0.55rem 0.7rem; text-align: left; vertical-align: top; }
th { background: var(--bg-2); color: var(--gold-2); font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #08090c; padding: 2.2rem 0; font-size: 0.9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-footer a { color: var(--text); }
.site-footer p { margin: 0; max-width: 40rem; }

/* Not found */
.nf { min-height: 60vh; display: flex; align-items: center; }
.nf h1 { font-size: 3rem; color: #fff; margin: 0 0 0.5rem; }
