@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,500;6..72,600&display=swap");

:root {
  --ink: #17212b;
  --muted: #68737f;
  --paper: #f7f6f2;
  --surface: #ffffff;
  --line: #dcdedb;
  --blue: #1766a5;
  --blue-dark: #0f4f83;
  --blue-wash: #e7f0f7;
  --orange: #d36a3a;
  --orange-wash: #f8e8df;
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #f2a968;
  outline-offset: 3px;
}
img { display: block; max-width: 100%; height: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgb(220 222 219 / 85%);
  background: rgb(247 246 242 / 92%);
  backdrop-filter: blur(14px);
}
.header-inner {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  min-height: 82px;
  margin: auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}
.brand strong, .brand small { display: block; line-height: 1.2; }
.brand strong { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.site-header nav { display: flex; align-items: center; gap: 6px; }
.site-header nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #4d5965;
  font-size: 13px;
  font-weight: 600;
}
.site-header nav a:hover, .site-header nav a.active {
  background: var(--surface);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  width: min(1180px, calc(100% - 48px));
  min-height: 630px;
  margin: auto;
  align-items: center;
  gap: 72px;
  padding: 78px 0;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 690px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 6.2vw, 82px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .98;
}
.hero-intro {
  max-width: 590px;
  margin: 28px 0 0;
  color: #52606c;
  font-size: 19px;
  line-height: 1.7;
}
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
.primary-action {
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-size: 13px;
  font-weight: 700;
}
.primary-action:hover { background: var(--blue-dark); }
.text-action { color: var(--muted); font-size: 13px; font-weight: 600; }
.archive-stats { display: flex; gap: 46px; margin: 52px 0 0; }
.archive-stats div { position: relative; }
.archive-stats div + div::before {
  position: absolute;
  left: -23px;
  top: 5px;
  width: 1px;
  height: 40px;
  background: var(--line);
  content: "";
}
.archive-stats dt { font-family: var(--serif); font-size: 28px; line-height: 1; }
.archive-stats dd { margin: 7px 0 0; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.hero-image {
  position: relative;
  margin: 0;
  padding: 20px 20px 50px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgb(23 33 43 / 13%);
  transform: rotate(1.4deg);
}
.hero-image::before {
  position: absolute;
  inset: -12px 24px auto auto;
  width: 78px;
  height: 28px;
  background: rgb(225 208 167 / 72%);
  content: "";
  transform: rotate(4deg);
}
.hero-image img { width: 100%; aspect-ratio: 1.28; object-fit: cover; }
.hero-image figcaption { position: absolute; left: 22px; bottom: 16px; color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }

.archive-section {
  padding: 92px max(24px, calc((100% - 1180px) / 2));
  background: var(--surface);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 44px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.section-heading h1, .section-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(36px, 4vw, 54px); font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading > a { color: var(--blue); font-size: 13px; font-weight: 700; }
.archive-layout, .article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 74px;
}
.post-list { min-width: 0; }
.post-card {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 28px;
  padding: 29px 0 32px;
  border-bottom: 1px solid var(--line);
}
.post-card:not(.featured-card)::before {
  display: grid;
  width: 145px;
  height: 104px;
  place-items: center;
  border-radius: 3px;
  background: var(--blue-wash);
  color: var(--blue);
  content: "RA";
  font-family: var(--serif);
  font-size: 32px;
}
.post-card.personal:not(.featured-card)::before { background: var(--orange-wash); color: var(--orange); }
.featured-card {
  grid-template-columns: minmax(240px, .78fr) 1fr;
  margin-bottom: 8px;
  padding-top: 0;
}
.card-image { min-height: 260px; overflow: hidden; border-radius: 4px; background: var(--blue-wash); }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-copy { min-width: 0; }
.post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.post-meta time { color: var(--muted); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.category { padding: 4px 8px; border-radius: 999px; background: var(--blue-wash); color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.category.personal { background: var(--orange-wash); color: #a54b25; }
.post-card h2 { margin: 0 0 10px; font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: -.02em; line-height: 1.12; }
.featured-card h2 { font-size: 37px; }
.post-card h2 a:hover { color: var(--blue); }
.post-card p { display: -webkit-box; margin: 0; overflow: hidden; color: #5d6872; font-size: 14px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.featured-card p { -webkit-line-clamp: 4; }
.read-more { display: inline-flex; gap: 6px; margin-top: 15px; color: var(--blue); font-size: 12px; font-weight: 700; }

.archive-tools { align-self: start; position: sticky; top: 112px; }
.search { display: flex; align-items: center; gap: 9px; margin-bottom: 34px; padding: 6px 6px 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.search > span { color: var(--muted); font-size: 20px; line-height: 1; }
.search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: 13px var(--sans); }
.search button { border: 0; border-radius: 999px; padding: 8px 12px; background: var(--ink); color: white; font: 700 10px var(--sans); cursor: pointer; text-transform: uppercase; }
.tool-group { margin: 0 0 28px; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
.tool-group > p { margin: 0 0 12px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tool-group > a { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-family: var(--serif); font-size: 17px; }
.tool-group > a:hover { color: var(--blue); }
.tool-group > a small { margin-left: auto; color: var(--muted); font: 10px var(--sans); }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.professional-dot { background: var(--blue); }
.personal-dot { background: var(--orange); }
.years div { display: flex; flex-wrap: wrap; gap: 6px; }
.years a { padding: 5px 8px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font-size: 11px; }
.years a:hover { border-color: var(--blue); color: var(--blue); }
.rss-link { color: var(--blue); font-size: 12px; font-weight: 700; }

.about {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 190px;
  gap: 48px;
  width: min(1180px, calc(100% - 48px));
  margin: auto;
  padding: 100px 0;
  align-items: start;
}
.about h2 { margin: 0 0 18px; font-family: var(--serif); font-size: 42px; font-weight: 500; letter-spacing: -.03em; line-height: 1.08; }
.about div > p { margin: 0; color: #5b6671; font-size: 16px; line-height: 1.8; }
.about-links { display: grid; gap: 8px; padding-top: 7px; }
.about-links a { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600; }

.article-shell {
  width: min(1060px, calc(100% - 48px));
  margin: auto;
  padding: 76px 0 110px;
}
.single-post { max-width: 700px; }
.back-link { display: inline-block; margin-bottom: 48px; color: var(--blue); font-size: 12px; font-weight: 700; }
.single-post header { margin-bottom: 44px; }
.single-post h1 { margin: 0 0 22px; font-family: var(--serif); font-size: clamp(46px, 6vw, 72px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.byline { margin: 0; color: var(--muted); font-size: 12px; }
.entry-content { color: #343e48; font-family: var(--serif); font-size: 20px; line-height: 1.82; overflow-wrap: anywhere; }
.entry-content h2, .entry-content h3 { margin-top: 2em; color: var(--ink); font-family: var(--sans); line-height: 1.25; }
.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 21px; }
.entry-content a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content blockquote { margin: 1.8em 0; padding: 0 0 0 24px; border-left: 3px solid var(--orange); color: #59636d; font-style: italic; }
.entry-content img { margin: 30px auto; border-radius: 4px; }
.entry-content iframe, .entry-content object, .entry-content embed { max-width: 100%; }
.post-footer { display: flex; align-items: center; gap: 10px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); }
.post-footer p { margin: 0 10px 0 0; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.post-footer a { padding: 5px 9px; border-radius: 999px; background: var(--blue-wash); color: var(--blue); font-size: 11px; font-weight: 700; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  padding: 34px max(24px, calc((100% - 1180px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.footer-brand { color: var(--ink); font-family: var(--serif); font-size: 19px; font-weight: 600; }
.site-footer p { margin: 0; }
.site-footer div { display: flex; justify-content: flex-end; gap: 20px; }
.not-found { min-height: 300px; padding: 30px 0; }
.not-found h2 { font-family: var(--serif); font-size: 38px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .site-header { position: static; }
  .header-inner { min-height: 74px; }
  .site-header nav a:nth-child(3), .site-header nav a:nth-child(4), .site-header nav a:nth-child(5) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 56px; padding: 64px 0 74px; }
  .hero-image { width: min(580px, 92%); margin: auto; }
  .archive-layout, .article-shell { grid-template-columns: 1fr; gap: 60px; }
  .archive-tools { position: static; }
  .about { grid-template-columns: 1fr 2fr; }
  .about-links { grid-column: 2; }
}

@media (max-width: 620px) {
  .header-inner, .hero, .about, .article-shell { width: min(100% - 32px, 1180px); }
  .brand small { display: none; }
  .site-header nav a { padding: 8px 9px; font-size: 12px; }
  .hero h1 { font-size: 50px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .archive-stats { gap: 30px; }
  .archive-stats div + div::before { left: -15px; }
  .archive-section { padding: 70px 20px; }
  .section-heading { align-items: start; flex-direction: column; }
  .post-card, .featured-card { grid-template-columns: 1fr; gap: 18px; }
  .post-card:not(.featured-card)::before { display: none; }
  .card-image { min-height: 210px; }
  .post-card h2, .featured-card h2 { font-size: 30px; }
  .about { grid-template-columns: 1fr; gap: 20px; padding: 76px 0; }
  .about-links { grid-column: auto; margin-top: 14px; }
  .single-post h1 { font-size: 47px; }
  .entry-content { font-size: 18px; }
  .site-footer { grid-template-columns: 1fr; gap: 12px; }
  .site-footer div { justify-content: flex-start; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef2f3;
    --muted: #a7b0b7;
    --paper: #11171c;
    --surface: #171f25;
    --line: #303a40;
    --blue: #72b5e7;
    --blue-dark: #5aa1d6;
    --blue-wash: #203849;
    --orange: #ef9a6e;
    --orange-wash: #432e25;
  }
  .site-header { background: rgb(17 23 28 / 92%); }
  .brand-mark, .search button { background: #edf2f4; color: #17212b; }
  .hero-intro, .post-card p, .about div > p, .entry-content { color: #b8c0c6; }
  .hero-image { box-shadow: 0 24px 70px rgb(0 0 0 / 35%); }
}


.pagination { display:flex; flex-wrap:wrap; gap:6px; margin:36px 0 10px; }
.pagination a { display:grid; min-width:36px; height:36px; place-items:center; border:1px solid var(--line); border-radius:3px; color:var(--muted); font-size:12px; }
.pagination a.current, .pagination a:hover { background:var(--blue); border-color:var(--blue); color:#fff; text-decoration:none; }
.video { position:relative; aspect-ratio:16/9; margin:20px 0; }
.video iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.search-result { padding:0 0 30px; margin:0 0 30px; border-bottom:1px solid var(--line); }
.search-result h2 { margin:0 0 10px; font-family:var(--serif); font-size:30px; font-weight:500; line-height:1.15; }
.search-result p { margin:0; color:var(--muted); font-size:14px; }
.search-result time { color:var(--muted); font-size:11px; text-transform:uppercase; }
