/* Exploring Studios blog — shared styles. Ground is #0f1abe; everything reads white on top of it. */
:root {
  --bg: hsl(236 85% 40%);
  --bg-deep: hsl(236 86% 34%);
  --fg: #ffffff;
  --muted: hsl(236 100% 88%);
  --line: hsl(236 70% 60%);
  --card: hsl(236 86% 36%);
  --measure: 680px;
}

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

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

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

a { color: var(--fg); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--muted); }
a:hover { text-decoration-color: var(--fg); }
a:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { padding: 28px 0; }
.site-header .wrap-wide { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.site-nav { display: flex; gap: 22px; font-weight: 700; font-size: 16px; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fg); }

/* Blog index */
.index-hero { padding: 56px 0 24px; }
.index-hero h1 { font-size: clamp(44px, 9vw, 84px); line-height: 1; letter-spacing: -0.04em; margin: 0 0 20px; font-weight: 800; }
.index-hero p { color: var(--muted); font-size: 20px; margin: 0; max-width: 560px; }
.post-list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: block; padding: 32px 0; text-decoration: none; }
.post-list a:hover h2 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.post-list time { display: block; color: var(--muted); font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.post-list h2 { font-size: clamp(24px, 4vw, 32px); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 10px; font-weight: 800; }
.post-list p { margin: 0; color: var(--muted); font-size: 17px; }

/* Article */
article { padding: 40px 0 24px; }
.post-meta { color: var(--muted); font-size: 15px; font-weight: 500; margin: 0 0 16px; }
article h1 { font-size: clamp(34px, 6.5vw, 54px); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 24px; font-weight: 800; }
.lede { font-size: 21px; line-height: 1.55; color: var(--muted); margin: 0 0 40px; }
article h2 { font-size: 27px; line-height: 1.25; letter-spacing: -0.02em; margin: 48px 0 12px; font-weight: 800; }
article h3 { font-size: 21px; line-height: 1.3; margin: 32px 0 8px; font-weight: 700; }
article p, article ul, article ol { margin: 0 0 22px; }
article ul, article ol { padding-left: 22px; }
article li { margin-bottom: 8px; }
article strong { font-weight: 700; }
article blockquote { margin: 32px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--fg); font-size: 21px; font-weight: 500; }
.styles-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; font-weight: 600; }
.styles-grid li { margin: 0; padding: 6px 0; border-bottom: 1px solid var(--line); }
.note { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; font-size: 17px; margin: 32px 0; }
.note p:last-child { margin-bottom: 0; }

/* Related */
.related { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 32px; }
.related h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 16px; font-weight: 700; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin: 0 0 12px; font-weight: 700; font-size: 19px; line-height: 1.35; }

/* Footer */
.site-footer { margin-top: 64px; padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.site-footer .wrap-wide { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--fg); }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .site-header { padding: 20px 0; }
  .brand { font-size: 18px; }
  .site-nav { gap: 16px; font-size: 15px; }
  .lede { font-size: 19px; }
  article h2 { font-size: 24px; }
  .styles-grid { grid-template-columns: 1fr; }
}
