/* One stylesheet, no framework, no JavaScript anywhere on the site.
   Page weight is a ranking input and the whole thing is text and two images. */

:root {
  /* Brand surfaces. Backgrounds, never text, and the same in both themes: the header, the
     hero and the footer are meant to be this navy whatever the phone is set to. Keeping them
     apart from --ink is the whole point — one token cannot be both the text colour, which has
     to invert in dark mode, and a dark surface, which must not. */
  --brand: #151936;
  --brand-deep: #0d1028;

  /* Text and page. These do invert. */
  --ink: #151936;
  --paper: #fcfcff;
  --muted: #5a5f7a;
  --muted-dark: #a7adcc;
  --accent: #3f6ede;
  --accent-warm: #e8a33d;
  --line: #e2e4f0;
  --measure: 38rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-wrap: pretty;
}

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem; }
.wide { max-width: 58rem; }

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

/* ---- header ---- */

header {
  background: var(--brand);
  color: #fff;
  padding: 1rem 0;
}
header .bar {
  display: flex;
  align-items: center;
  gap: .7rem;
}
header img { width: 34px; height: 34px; border-radius: 8px; display: block; }
header .name { font-weight: 650; letter-spacing: -.01em; }
header nav { margin-left: auto; display: flex; gap: 1.1rem; font-size: .9375rem; }
header nav a { color: #c3c9ee; text-decoration: none; }
header nav a:hover { color: #fff; text-decoration: underline; }

/* ---- hero ---- */

.hero {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  padding: 3.5rem 0 4rem;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
.hero p { color: #c3c9ee; font-size: 1.15rem; margin: 0 0 2rem; }
.hero .shot { margin-top: 2.5rem; }
.hero .shot img { width: 100%; height: auto; border-radius: 14px; display: block; }

.cta {
  display: inline-block;
  background: var(--accent-warm);
  color: #231703;
  font-weight: 650;
  text-decoration: none;
  padding: .8rem 1.4rem;
  border-radius: 10px;
}
.cta:hover { background: #f5bd63; }
.note { display: block; margin-top: .8rem; font-size: .9rem; color: #9aa1c8; }

/* ---- sections ---- */

main section { padding: 3rem 0; border-bottom: 1px solid var(--line); }
main section:last-of-type { border-bottom: 0; }

h2 {
  font-size: 1.55rem;
  letter-spacing: -.02em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
h3 { font-size: 1.1rem; margin: 2rem 0 .4rem; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.1rem; color: var(--muted); }

ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
ul.plain li:last-child { border-bottom: 0; }
ul.plain strong { display: block; }
ul.plain span { color: var(--muted); }

details {
  border-bottom: 1px solid var(--line);
  padding: .9rem 0;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "＋"; color: var(--accent); margin-right: .5rem; }
details[open] summary::before { content: "－"; }
details p { margin: .7rem 0 0; color: var(--muted); }

footer {
  background: var(--brand);
  color: var(--muted-dark);
  padding: 2.5rem 0;
  font-size: .9375rem;
}
footer a { color: #c3c9ee; }
footer .rows { display: flex; flex-wrap: wrap; gap: 1.25rem; }

@media (prefers-color-scheme: dark) {
  :root { --paper: #12131c; --ink: #eceefb; --muted: #9aa0be; --line: #262a41; }
  body { background: var(--paper); color: var(--ink); }
  .cta { background: var(--accent-warm); color: #231703; }
  a { color: #8fb0ff; }
}
