/* Howday on the web.
 *
 * One committed visual world, matching the app, which is dark-only by
 * design rather than dark-compatible: there is no light theme here either.
 * Every colour is painted explicitly so nothing borrows a browser default.
 *
 * The two accents are the app's own, lifted from MoodTheme: the brand gold
 * and the green that belongs to the 🙂 on its mood scale. The neutrals are
 * biased warm toward the gold rather than sitting on a dead grey. */

:root {
  --ground: #14110c;
  --panel: #1e1913;
  --line: #2e2619;
  --ink: #f3ebdb;
  --ink-soft: #cfc4ae;
  --muted: #a89b83;
  --faint: #6f654f;
  --gold: #ffc94a;
  --green: #6ce08a;
  /* What to write on top of a gold fill. White on this accent measures
   * 1.53:1 — the app had the same bug and it is worth not repeating. */
  --on-gold: #2f2208;

  --sans: "Nunito", ui-rounded, system-ui, -apple-system, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 7.5rem);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 70% 30% at 20% 0%, #3a2a0a66, transparent 70%),
    var(--ground);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.sans {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

a {
  color: var(--gold);
}

a:hover {
  color: #fff6e0;
}

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

/* ---- shell ---------------------------------------------------------- */

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem var(--gutter);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--faint);
  margin-top: 4rem;
  flex-wrap: wrap;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}

.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

/* The header links sit next to a 1.15rem/800 wordmark; at the shell's
 * 13px muted default they read as an afterthought. Larger, brighter,
 * further apart. The footer keeps the quiet default on purpose. */
.site-header nav {
  gap: 1.75rem;
  font-size: 0.9375rem;
}

.site-header nav a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a {
  color: var(--ink-soft);
}

.site-header nav a:hover,
.site-footer a:hover {
  color: var(--ink);
}

/* The one link in the header that is an action rather than a page: a
 * compact cousin of .cta, so it reads as the same button as the hero's. */
.site-header nav .pill {
  padding: 0.5rem 1rem;
  /* Absorb the padding so the header stays the same height as on the
   * landing page, which has no pill. */
  margin-block: -0.5rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 800;
  transition: transform 0.15s ease;
}

.site-header nav .pill:hover {
  color: var(--on-gold);
  transform: translateY(-1px);
}

main {
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---- landing -------------------------------------------------------- */

.hero {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  max-width: var(--measure);
  padding-block: clamp(3rem, 9vw, 6rem) 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 4rem);
  line-height: 1.05;
}

.hero p {
  margin: 0;
  font-size: 1.25rem;
  color: var(--ink-soft);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 3rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.cta:hover {
  color: var(--on-gold);
  transform: translateY(-1px);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin: clamp(3rem, 8vw, 5rem) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.6rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  color: var(--ink-soft);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #ffc94a29;
  border: 1px solid #ffc94a73;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 800;
}

/* ---- document ------------------------------------------------------- */

.doc {
  display: grid;
  grid-template-columns: minmax(0, var(--measure));
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(2.5rem, 7vw, 4.5rem) 0;
}

@media (min-width: 62rem) {
  .doc {
    grid-template-columns: 12rem minmax(0, var(--measure));
    justify-content: center;
  }
}

.doc-index {
  display: none;
  flex-direction: column;
  gap: 0.65rem;
  align-self: start;
  position: sticky;
  top: 2rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
}

@media (min-width: 62rem) {
  .doc-index {
    display: flex;
  }
}

.doc-index span {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.25rem;
}

.doc-index a {
  color: var(--muted);
  text-decoration: none;
}

.doc-index a:hover {
  color: var(--ink);
}

.doc-body {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  min-width: 0;
}

.doc-body h1 {
  margin: 0;
  font-size: clamp(2.125rem, 5.5vw, 3.25rem);
  line-height: 1.08;
}

.doc-body h2 {
  margin: 0;
  font-size: 1.5rem;
}

.doc-body p {
  margin: 0;
}

.doc-body section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  scroll-margin-top: 2rem;
}

.doc-body strong {
  color: var(--ink);
  font-weight: 600;
}

/* A plain list inside the running text, as opposed to the two panels of
 * .split, which carry their own markers. */
.doc-body section > ul {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.doc-body section > ul li::marker {
  color: var(--gold);
}

.lede {
  font-size: 1.25rem;
  color: var(--ink-soft);
}

.stamp {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--faint);
}

/* The two-panel answer to the only question anyone opens this page for. */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.split section {
  padding: 1.6rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  gap: 0.9rem;
}

.split h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}

.split svg {
  flex: none;
}

.split ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.stays h2 {
  color: var(--green);
}

.kept h2 {
  color: var(--gold);
}

.card {
  padding: 1.75rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  gap: 0.6rem;
}

/* Unfilled copy. Deliberately loud: this must not ship unnoticed. */
.todo {
  padding: 0.05em 0.35em;
  border: 1px dashed #ff8a8a;
  border-radius: 0.3em;
  color: #ff8a8a;
  font-family: var(--sans);
  font-size: 0.9em;
  font-weight: 700;
}
