/* walterjay.fr — one stylesheet, no framework, system fonts only (zero font downloads).
   Colours are sampled from the WJ monogram: deep navy, steel, silver, off-white. */

:root {
  --bg: #f7f6f1;
  --bg-tint: #eeede7;
  --surface: #ffffff;
  --ink: #0e1a33;
  --ink-soft: #2c3a55;
  --muted: #4f5d73;
  --line: #dcdcd4;
  --accent: #1b3a66;       /* navy, 9:1 on --bg */
  --accent-soft: #e3e8f0;
  --on-accent: #ffffff;
  --silver: #758da3;
  --focus: #1a5fd6;
  --shadow: 0 1px 2px rgb(14 26 51 / 0.05), 0 6px 20px rgb(14 26 51 / 0.06);

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, ui-serif, serif;
  --radius: 12px;
  --wrap: 64rem;
  --prose: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1430;
    --bg-tint: #0e1a3a;
    --surface: #122046;
    --ink: #eef0f4;
    --ink-soft: #cdd4df;
    --muted: #a7b3c4;
    --line: #22325a;
    --accent: #c3cfdc;       /* silver */
    --accent-soft: #1a2a52;
    --on-accent: #0a1430;
    --silver: #9fb2c6;
    --focus: #8fb8ff;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.35), 0 6px 20px rgb(0 0 0 / 0.3);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem);
  margin-bottom: 0.6em;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4em;
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-color: var(--silver);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: currentColor;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.prose {
  max-width: var(--prose);
}

/* Narrow text column that still lines up with the page's left edge. */
.wrap.prose {
  max-width: var(--wrap);
}

.wrap.prose > * {
  max-width: var(--prose);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.lang-switch {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}

.lang-switch:hover {
  border-color: var(--silver);
}

/* ---------- Sections ---------- */

main > section {
  padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0;
}

main > section:nth-of-type(even) {
  background: var(--bg-tint);
}

.section-intro {
  color: var(--ink-soft);
  max-width: var(--prose);
  margin-bottom: 2.2rem;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(2rem, 1rem + 4vw, 4.5rem) !important;
}

.hero .wrap {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 52rem) {
  .hero .wrap {
    grid-template-columns: 1fr 13rem;
  }
}

.hero h1 {
  font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.6rem);
  margin-bottom: 0.5em;
}

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

.hero-mark {
  width: 13rem;
  height: 13rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  justify-self: start;
}

@media (max-width: 51.99rem) {
  .hero-mark {
    display: none;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.button-secondary {
  color: var(--accent);
  background: transparent;
}

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

/* ---------- Proof strip ---------- */

.proof {
  padding: 0 !important;
  background: transparent !important;
}

.proof ul {
  list-style: none;
  margin: 0;
  padding: 1.5rem 0;
  display: grid;
  gap: 1.25rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 48rem) {
  .proof ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

.proof li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.proof strong {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.2;
}

.proof span {
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Cards (offers, work) ---------- */

.cards {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 48rem) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card ul {
  padding-left: 1.1rem;
  margin: 0 0 1.1em;
  color: var(--ink-soft);
}

.card li + li {
  margin-top: 0.35rem;
}

.card .tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.card-link {
  font-weight: 600;
}

.note {
  margin-top: 1.8rem;
  color: var(--muted);
  font-size: 1rem;
  max-width: var(--prose);
}

/* ---------- Story timeline ---------- */

.chapter {
  margin-top: 2rem;
}

.chapter h3 {
  font-size: 1.1rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.4rem;
  border-left: 2px solid var(--line);
}

.timeline li {
  position: relative;
  padding: 0.55rem 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.4rem - 8px);
  top: 1.05rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--silver);
}

.timeline time,
.timeline .when {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
}

.story-end {
  margin-top: 2.5rem;
}

/* ---------- Links list (writing, contact) ---------- */

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.link-list a {
  font-weight: 600;
}

.link-list span {
  display: block;
  color: var(--muted);
  font-size: 1rem;
}

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

.site-footer {
  padding: 2.5rem 0 3rem;
  font-size: 0.95rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
}

.site-footer p {
  margin: 0;
}

/* ---------- Legal and 404 pages ---------- */

.page {
  padding: 2rem 0 4rem;
}

.page h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem);
  margin-bottom: 1rem;
}

.page h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

.page dl {
  margin: 0;
}

.page dt {
  font-weight: 600;
  margin-top: 0.8rem;
}

.page dd {
  margin: 0;
  color: var(--ink-soft);
}

.todo {
  background: #fff3c4;
  color: #4a3b00;
  padding: 0 0.3em;
  border-radius: 4px;
}
