@font-face {
  font-family: "Source Serif";
  src: url("/wp-content/themes/twentytwentytwo/assets/fonts/source-serif-pro/SourceSerif4Variable-Roman.ttf.woff") format("woff");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f1eee7;
  --text: #1d1f22;
  --muted: #5b6068;
  --border: #e2ddd2;
  --accent: #1f5f5b;
  --accent-ink: #ffffff;
  --serif: "Source Serif", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px;
  --read: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --surface: #1c1f23;
    --surface-2: #23272c;
    --text: #e9e6df;
    --muted: #a5a9b0;
    --border: #33373d;
    --accent: #7cc4bd;
    --accent-ink: #10201f;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin-top: 1.8em; }
h3 { font-size: 1.25rem; margin-top: 1.5em; }
p, ul, ol { margin: 0 0 1.1em; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink); padding: .5em 1em; z-index: 10;
}
.skip-link:focus { left: 16px; top: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.read { max-width: var(--read); }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding-top: 18px; padding-bottom: 18px;
}
.brand {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700;
  color: var(--text); text-decoration: none; letter-spacing: -.01em;
}
.brand span { color: var(--accent); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.site-nav a {
  display: block; padding: 6px 12px; border-radius: 999px;
  color: var(--text); text-decoration: none; font-size: .975rem;
}
.site-nav a:hover { background: var(--surface-2); }
.site-nav a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }

/* Sections */
main { display: block; }
.hero { padding: 64px 0 48px; border-bottom: 1px solid var(--border); }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.eyebrow {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); margin-bottom: .8em; font-weight: 600;
}
.section { padding: 24px 0 48px; }
.page-head { padding: 48px 0 8px; }
.page-head p.lead { font-size: 1.15rem; color: var(--muted); }

.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 10px 20px; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.btn:hover { opacity: .9; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px;
}
.card h3 { margin-top: 0; }
.card p { color: var(--muted); margin-bottom: .6em; }
.card .meta { font-size: .85rem; color: var(--muted); }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { border-top: 1px solid var(--border); padding: 22px 0; }
.post-list li:last-child { border-bottom: 1px solid var(--border); }
.post-list h3 { margin: .2em 0 .4em; }
.post-list h3 a { color: var(--text); text-decoration: none; }
.post-list h3 a:hover { color: var(--accent); }
.post-list p { color: var(--muted); margin: 0; }

.breadcrumb { font-size: .9rem; color: var(--muted); padding-top: 24px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--border); }
.breadcrumb a { color: var(--muted); }

.article-meta { color: var(--muted); font-size: .95rem; }
.note {
  background: var(--surface-2); border-left: 4px solid var(--accent);
  padding: 16px 20px; border-radius: 8px; margin: 1.5em 0;
}
.callout {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 32px 24px; text-align: center; margin: 24px 0 8px;
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 48px; padding: 32px 0; font-size: .95rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0; }

@media (max-width: 600px) {
  .hero { padding: 40px 0 32px; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
}
