/* ChangeWarden — site styles */
:root {
  --paper: #ECF0EC;      /* pale mineral grey-green */
  --ink: #17282D;        /* deep harbour teal */
  --teal: #0E5A5F;       /* links, emphasis */
  --muted: #56686B;      /* secondary text */
  --lamp: #E3A21A;       /* the warden's light: marks only, never text on paper */
  --panel: #142328;      /* watch log background */
  --panel-text: #D6E2DE;
  --rule: #C9D3CE;

  --wide: "Archivo", system-ui, sans-serif;
  --measure: 34rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--wide);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
}

a { color: var(--teal); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(72rem, 100% - 3rem); margin-inline: auto; }

/* Header */
.site-header { padding: 1.5rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em;
  font-variation-settings: "wdth" 125;
  color: var(--ink); text-decoration: none;
}
.wordmark .light {
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 0 4px rgba(227, 162, 26, 0.22);
}
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-header nav a:hover { color: var(--teal); text-decoration: underline; }

/* Hero */
.hero { padding: 3.5rem 0 5rem; }
.hero .wrap {
  display: grid; gap: 3.5rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
}
.hero h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  max-width: 12ch;
}
.hero .lede { margin: 0 0 2rem; max-width: var(--measure); font-size: 1.2rem; color: var(--ink); }
.button {
  display: inline-block;
  background: var(--ink); color: var(--paper);
  padding: 0.85rem 1.4rem; border-radius: 6px;
  font-weight: 600; text-decoration: none;
}
.button:hover { background: var(--teal); color: #fff; }
.hero .aside { margin: 1rem 0 0; color: var(--muted); font-size: 0.95rem; }

/* The watch log: the one memorable thing */
.watchlog {
  background: var(--panel); color: var(--panel-text);
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 30px 60px -30px rgba(20, 35, 40, 0.55);
}
.watchlog-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 1rem; padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(214, 226, 222, 0.14);
  font-size: 0.9rem;
}
.watchlog-head strong { font-weight: 600; color: #fff; }
.watchlog-head .live { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--lamp); }
.watchlog-head .live::before {
  content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--lamp);
}
.watchlog ol { list-style: none; margin: 0; padding: 0; }
.watchlog li {
  display: grid; grid-template-columns: 3.4rem 1fr; gap: 0.25rem 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(214, 226, 222, 0.08);
  font-size: 0.95rem; line-height: 1.45;
}
.watchlog li:last-child { border-bottom: 0; }
.watchlog time { color: var(--lamp); font-variant-numeric: tabular-nums; font-weight: 500; }
.watchlog .what { color: #fff; }
.watchlog .result { grid-column: 2; color: #9FB4AE; font-size: 0.875rem; }
.watchlog .result.flag { color: var(--lamp); }

@media (prefers-reduced-motion: no-preference) {
  .watchlog.animate li { opacity: 0; transform: translateY(6px); animation: logIn 0.5s ease-out forwards; }
  .watchlog.animate li:nth-child(1) { animation-delay: 0.3s; }
  .watchlog.animate li:nth-child(2) { animation-delay: 1.0s; }
  .watchlog.animate li:nth-child(3) { animation-delay: 1.7s; }
  .watchlog.animate li:nth-child(4) { animation-delay: 2.4s; }
  .watchlog.animate li:nth-child(5) { animation-delay: 3.1s; }
  @keyframes logIn { to { opacity: 1; transform: none; } }
}

/* Sections */
.band { padding: 4.5rem 0; border-top: 1px solid var(--rule); }
.band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15; letter-spacing: -0.015em;
  font-weight: 750;
  font-variation-settings: "wdth" 118;
  max-width: 22ch;
}
.band .intro { margin: 0 0 2.75rem; max-width: var(--measure); color: var(--muted); }

/* Lifecycle stages: a real sequence, so numbered */
.stages {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem;
  counter-reset: stage;
}
.stages li { counter-increment: stage; position: relative; padding-top: 3.25rem; }
.stages li::before {
  content: counter(stage);
  position: absolute; top: 0; left: 0;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  font-weight: 700; font-size: 0.95rem;
}
.stages li:not(:last-child)::after {
  content: ""; position: absolute; top: 1.1rem; left: 2.75rem; right: -1.5rem;
  height: 2px; background: var(--lamp);
}
.stages h3 {
  margin: 0 0 0.4rem; font-size: 1.3rem; font-weight: 750;
  font-variation-settings: "wdth" 118; letter-spacing: -0.01em;
}
.stages p { margin: 0; }

.watches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem; margin: 0; }
.watches div { padding-left: 1.25rem; border-left: 3px solid var(--lamp); }
.watches dt { font-weight: 650; font-size: 1.15rem; margin-bottom: 0.35rem; }
.watches dd { margin: 0; max-width: 30rem; color: var(--ink); }

/* Ownership: dark band */
.yours { background: var(--ink); color: var(--paper); border-top: 0; }
.yours h2 { color: #fff; }
.yours .intro { color: #A9BCB6; }
.promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 4rem; }
.promises li {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(236, 240, 236, 0.14);
  font-size: 1.1rem;
}
.promises strong { display: block; color: #fff; font-weight: 650; margin-bottom: 0.2rem; }
.promises span { color: #B8C8C3; font-size: 1rem; }

.status p { max-width: var(--measure); margin: 0 0 1.5rem; }

/* Footer */
.site-footer { padding: 2rem 0 3rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* Legal pages */
.legal { padding: 2.5rem 0 5rem; }
.legal article { max-width: 42rem; }
.legal h1 {
  font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; letter-spacing: -0.02em;
  font-weight: 800; font-variation-settings: "wdth" 120; margin: 0 0 0.5rem;
}
.legal .updated { color: var(--muted); margin: 0 0 2.5rem; }
.legal h2 { font-size: 1.25rem; font-weight: 650; margin: 2.25rem 0 0.5rem; }
.legal p, .legal li { max-width: 40rem; }
.legal ul { padding-left: 1.25rem; }

/* Responsive */
@media (max-width: 860px) {
  .hero { padding-top: 1.5rem; }
  .hero .wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .watches, .promises { grid-template-columns: 1fr; }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
  .stages li::after { display: none; }
  .watches { gap: 2rem; }
}
@media (max-width: 420px) {
  .watchlog { padding: 1.1rem; }
  .watchlog li { grid-template-columns: 2.9rem 1fr; gap: 0.2rem 0.75rem; font-size: 0.9rem; }
}
