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

:root {
  color-scheme: light;
  --ink: #211c2b;
  --muted: #706a79;
  --line: #e8e2ed;
  --paper: #fbf9fc;
  --white: #fff;
  --violet: #6741a5;
  --violet-dark: #442477;
  --violet-pale: #f0eafa;
  --green: #477767;
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: var(--violet-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 2; padding: .7rem 1rem; background: var(--white); }
.site-header { min-height: 74px; padding: 0 max(6vw, calc((100vw - 1100px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); background: var(--white); }
.brand { color: var(--ink); text-decoration: none; font-family: 'Manrope', sans-serif; font-size: 1rem; font-weight: 800; }
.brand span { color: var(--muted); font-family: 'DM Sans', sans-serif; font-weight: 400; }
.header-link, .back-link { font-size: .9rem; font-weight: 600; text-decoration: none; }
main { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.archive-intro { position: relative; padding: 72px 0 54px; border-bottom: 1px solid var(--line); }
.archive-intro::after { content: ''; position: absolute; right: 3%; bottom: 45px; width: 96px; height: 96px; border: 1px solid #d8caeb; border-radius: 50%; box-shadow: 12px -10px 0 -1px var(--paper), 12px -10px 0 0 #d8caeb; }
.eyebrow { margin: 0 0 13px; color: var(--violet); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1, h2 { font-family: 'Manrope', sans-serif; letter-spacing: 0; }
.archive-intro h1 { max-width: 690px; margin: 0; font-size: 3.6rem; line-height: 1.08; }
.archive-intro > p:not(.eyebrow) { margin: 15px 0 0; color: var(--muted); font-size: 1.05rem; }
.archive-count { display: flex; align-items: baseline; gap: .55rem; margin-top: 32px; color: var(--violet-dark); font-family: 'Manrope', sans-serif; font-size: 1.45rem; font-weight: 800; }
.archive-count span { color: var(--muted); font-family: 'DM Sans', sans-serif; font-size: .9rem; font-weight: 500; }
.archive-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.archive-entry { min-width: 0; padding: 30px 0 32px; border-bottom: 1px solid var(--line); }
.archive-entry .eyebrow { margin-bottom: 8px; color: var(--muted); letter-spacing: 0; text-transform: none; }
.archive-entry .eyebrow span { padding: 0 .25rem; color: #b0a8b8; }
.archive-entry h2 { margin: 0 0 10px; font-size: 1.3rem; line-height: 1.3; }
.archive-entry h2 a { color: var(--ink); text-decoration: none; }
.archive-entry h2 a:hover { color: var(--violet); }
.excerpt { margin: 0 0 15px; color: var(--muted); font-size: .94rem; line-height: 1.65; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 4px 8px; border-radius: 3px; background: var(--violet-pale); color: var(--violet-dark); font-size: .72rem; line-height: 1.3; }
.post { max-width: 780px; margin: 0 auto; }
.post-header { padding: 44px 0 30px; border-bottom: 1px solid var(--line); }
.post-header .back-link { display: inline-block; margin-bottom: 34px; }
.post-header h1 { margin: 0 0 18px; font-size: 3rem; line-height: 1.12; overflow-wrap: anywhere; }
.post-content { padding: 34px 0 42px; font-size: 1.03rem; line-height: 1.8; overflow-wrap: anywhere; }
.post-content > :first-child { margin-top: 0; }
.post-content img, .post-content video, .post-content iframe { max-width: 100%; }
.post-content img { height: auto; }
.post-content pre { max-width: 100%; overflow-x: auto; padding: 1rem; background: #f0edf3; }
.post-content blockquote { margin: 1.5rem 0; padding: .2rem 0 .2rem 1.2rem; border-left: 3px solid #b59bd8; color: var(--muted); }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-nav a { max-width: 48%; font-weight: 600; text-decoration: none; }
.post-nav a:last-child { text-align: right; }
.comments { padding: 40px 0 64px; }
.comments h2 { margin: 0 0 22px; font-size: 1.5rem; }
.comments h2 span { margin-left: 5px; color: var(--muted); font-family: 'DM Sans', sans-serif; font-size: .9rem; font-weight: 500; }
.comment-list, .comment-replies { margin: 0; padding: 0; list-style: none; }
.comment { padding: 18px 0; border-top: 1px solid var(--line); }
.comment-replies { margin: 16px 0 0 20px; padding-left: 19px; border-left: 2px solid #ded3ee; }
.comment-meta { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.comment-meta strong { color: var(--violet-dark); font-size: .95rem; }
.comment-meta time { color: var(--muted); font-size: .8rem; }
.comment-body { color: #433e49; font-size: .93rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.empty-comments { color: var(--muted); }
.site-footer { padding: 22px 28px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: .8rem; }

@media (max-width: 680px) {
  .site-header { min-height: 64px; padding: 0 18px; }
  main { padding-right: 19px; padding-left: 19px; }
  .archive-intro { padding: 50px 0 38px; }
  .archive-intro h1 { font-size: 2.2rem; }
  .archive-intro::after { right: 2%; bottom: 26px; width: 56px; height: 56px; }
  .archive-list { grid-template-columns: 1fr; }
  .archive-entry { padding: 24px 0; }
  .post-header { padding-top: 30px; }
  .post-header h1 { font-size: 2rem; }
  .post-header .back-link { margin-bottom: 28px; }
  .post-content { padding-top: 25px; font-size: 1rem; }
  .comment-replies { margin-left: 10px; padding-left: 12px; }
}
