@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  --background: #101111;
  --surface: #151817;
  --text: #f2f3f1;
  --muted: #a9b1ac;
  --body: #d4d9d5;
  --accent: #70dba6;
  --line: #2e3430;
  font-family: Manrope, "Avenir Next", sans-serif;
  background: var(--background);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: #23523b; color: var(--text); }
.shell { width: min(calc(100% - 48px), 1160px); margin-inline: auto; }
.skip-link { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 10px 16px; background: var(--surface); }
.skip-link:not(:focus) { clip-path: inset(50%); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header-inner { min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.12rem; letter-spacing: -.05em; text-decoration: none; }
.brand img { object-fit: contain; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; column-gap: clamp(14px, 3vw, 30px); }
.site-header nav a, .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .86rem; font-weight: 700; text-decoration: none; }
.site-header nav a[aria-current], .site-header nav a:hover, .site-footer nav a:hover { color: var(--accent); }
.site-footer { min-height: 86px; border-top: 1px solid var(--line); }

h1, h2, p, figure { margin: 0; }
h1, h2 { letter-spacing: -.052em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 5.15rem); font-weight: 700; line-height: 1.02; }
.index-head { padding-block: clamp(48px, 8vw, 96px) 36px; }
.index-head p { margin-top: 16px; color: var(--muted); line-height: 1.6; }
.post-list { padding-bottom: clamp(70px, 10vw, 128px); }
.post-card, .article-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.post-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; overflow: hidden; }
.post-card:hover { color: var(--text); border-color: #638473; }
.post-card-copy { padding: clamp(22px, 4vw, 50px); }
.post-card h2 { margin-block: 12px; font-size: clamp(1.8rem, 3.6vw, 3.1rem); font-weight: 700; line-height: 1.08; }
.post-card img, .article-hero img { width: 100%; height: 100%; object-fit: cover; }
.post-card img { aspect-ratio: 1.65; }
.post-card p { color: var(--body); line-height: 1.6; }
.read-story { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--accent); font-size: .92rem; font-weight: 800; }

.back-link { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; color: var(--muted); font-size: .88rem; font-weight: 700; text-decoration: none; }
.article-hero { gap: clamp(24px, 5vw, 70px); padding-block: clamp(26px, 5vw, 68px) clamp(42px, 6vw, 76px); }
.article-hero h1 { margin-block: 8px 18px; font-size: clamp(2.6rem, 5.25vw, 4.65rem); }
.article-hero img { aspect-ratio: 1.42; border: 1px solid var(--line); border-radius: 10px; }
.article-dek { color: var(--body); font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.6; }
.post-meta { color: var(--muted); font-size: .82rem; font-weight: 600; line-height: 1.5; }
.article-hero .post-meta { margin-top: 22px; }

.article-content { display: grid; grid-template-columns: minmax(145px, 212px) minmax(0, 690px); align-items: start; column-gap: clamp(28px, 7vw, 104px); border-top: 1px solid var(--line); padding-block: clamp(32px, 6vw, 72px) clamp(60px, 9vw, 108px); }
.article-nav { position: sticky; top: 24px; padding-right: 14px; }
.article-nav p { font-size: .8rem; font-weight: 800; margin-bottom: 10px; }
.article-nav a { display: flex; align-items: center; min-height: 40px; color: var(--muted); text-decoration: none; font-size: .87rem; line-height: 1.4; }
.article-nav a:hover { color: var(--accent); }
.prose { color: var(--body); font-size: clamp(1.02rem, 1.5vw, 1.12rem); line-height: 1.82; }
.prose p + p { margin-top: 18px; }
.prose section { margin-top: clamp(38px, 6vw, 68px); scroll-margin-top: 26px; }
.prose h2 { margin-bottom: 14px; color: var(--text); font-size: clamp(1.7rem, 3vw, 2.55rem); font-weight: 700; line-height: 1.16; text-wrap: pretty; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); }
.prose a:hover { color: var(--text); }
.workflow-steps { margin-block: 24px; padding: 0 0 0 1.5em; }
.workflow-steps li { padding-left: .35em; }
.workflow-steps li + li { margin-top: 14px; }
.workflow-steps li::marker { color: var(--accent); font-weight: 800; }
.article-next { padding-top: 12px; font-weight: 800; }

@media (max-width: 740px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 64px; }
  .post-card, .article-hero, .article-content { grid-template-columns: minmax(0, 1fr); }
  .post-card img { aspect-ratio: 1.72; }
  .article-hero img { aspect-ratio: 1.65; }
  .article-hero h1 { max-width: 16ch; }
  .article-nav { position: static; padding: 0 0 18px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
  .article-nav a { display: inline-flex; margin-right: 16px; }
}
