/* valtu shared stylesheet
   Used by every standalone page in public/ (About, blog listing, blog posts).
   Change a style here once and it changes on all of those pages. */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(/dm-sans-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(/dm-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --navy: #0A1628;
  --card: #111f34;
  --line: #22354f;
  --gold: #C9A84C;
  --gold-soft: #e4cd86;
  --ink: #e8edf4;
  --muted: #8fa2ba;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 660px; margin: 0 auto; padding: 0 22px; }

/* ---------- Top of page: logo and main links ---------- */

header.site {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin-bottom: 44px;
}
.nav-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
header.site .brand {
  color: var(--gold);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { margin: 0; }
.nav-links a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* ---------- Article text ---------- */

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

h1 {
  font-size: 33px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.byline {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 40px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

h2 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 42px 0 14px;
}

p { margin: 0 0 20px; }

ul { margin: 0 0 20px; padding-left: 22px; }
li { margin-bottom: 7px; }

strong { font-weight: 600; }

.portrait {
  display: block;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  margin: 0 0 26px;
}

.worked {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: 20px 22px;
  margin: 28px 0;
}
.worked p { margin: 0 0 10px; }
.worked p:last-child { margin: 0; }
.worked .lead { color: var(--gold-soft); font-weight: 600; }

a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Blog listing page ---------- */

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li {
  margin: 0;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.post-list li:first-child { padding-top: 0; }
.post-list h2 { margin: 0 0 6px; font-size: 21px; }
.post-list h2 a { color: var(--ink); text-decoration: none; }
.post-list h2 a:hover { color: var(--gold-soft); }
.post-list time { display: block; color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.post-list p { margin: 0; }

/* ---------- Bottom of page: links and small print ---------- */

footer.post {
  margin: 52px 0 0;
  padding: 26px 0 60px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
footer.post p { margin: 0 0 14px; }
footer.post p:last-child { margin: 0; }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.foot-links li { margin: 0; }
.foot-links a { color: var(--ink); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--gold-soft); text-decoration: underline; }

/* ---------- Phones ---------- */

@media (max-width: 520px) {
  body { font-size: 16.5px; }
  h1 { font-size: 27px; }
  h2 { font-size: 20px; }
  header.site { margin-bottom: 32px; }
  .nav-links { gap: 6px 18px; }
  .portrait { width: 112px; height: 112px; }
}
/* No divider under the last post, so it does not double up with the footer line */
.post-list li:last-child { border-bottom: 0; }