@layer base {
  * {
    -webkit-color-scheme: light;
    color-scheme: light;
  }
  html {
    background: rgb(255 255 255);
  }
  @media (prefers-color-scheme: dark) {
    html,
    body {
      color: rgb(26 25 23);
      background: rgb(255 255 255);
    }
  }
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
  }
  :root {
    --bg: rgb(255 255 255);
    --surface: rgb(245 245 243);
    --border: rgb(224 221 216);
    --text: rgb(26 25 23);
    --text-muted: rgb(107 104 96);
    --accent: rgb(43 45 110);
    --accent2: rgb(124 63 140);
    --insight: rgb(27 79 94);
    color-scheme: light;
  }
  body {
    max-inline-size: 1100px;
    min-block-size: 100vh;
    margin: 0 auto;
    font-family: "Syne", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: rgb(26 25 23);
    background: rgb(255 255 255);
    border-inline-start: 1px solid var(--border);
    border-inline-end: 1px solid var(--border);
  }

  /* HEADER */
  .header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 40px 48px 32px;
    border-block-end: 1px solid var(--border);
  }
  @media (max-width: 700px) {
    .header {
      flex-direction: column;
      padding: 28px 24px 24px;
    }
    .header .header-meta {
      padding-inline-start: 0;
      margin-block-start: 16px;
      text-align: start;
    }
    .prose {
      padding: 32px 24px;
    }
    .section-label {
      padding: 14px 24px;
    }
    .announce-strip {
      padding: 32px 24px;
    }
    .author-strip {
      flex-wrap: wrap;
      padding: 24px;
    }
    .author-meta {
      inline-size: 100%;
      margin-block-start: 12px;
      text-align: start;
    }
    .footer {
      padding: 20px 24px;
    }
  }
  .brand {
    margin-block-end: 20px;
    font-family: "DM Mono", monospace;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
  }
  h1 {
    font-size: clamp(30px, 4.5vw, 52px);
    font-weight: 800;
    line-height: 1.05;
  }
  .header-meta {
    flex-shrink: 0;
    padding-inline-start: 32px;
    font-family: "DM Mono", monospace;
    font-size: 10px;
    line-height: 2;
    color: var(--text-muted);
    text-align: end;
    letter-spacing: 0.05em;
  }

  /* HERO CANVAS */
  .hero-canvas-wrap {
    position: relative;
    block-size: 320px;
    overflow: hidden;
    background: var(--surface);
    border-block-end: 1px solid var(--border);
  }
  .hero-canvas-wrap canvas {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    inline-size: 100%;
    block-size: 100%;
  }
  .hero-label {
    position: absolute;
    inset-block-end: 20px;
    inset-inline-end: 24px;
    z-index: 2;
    font-family: "DM Mono", monospace;
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
  }
  .hero-tagline {
    position: absolute;
    inset-block-end: 20px;
    inset-inline-start: 48px;
    z-index: 2;
    max-inline-size: 500px;
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 800;
    line-height: 1.25;
    color: var(--accent);
  }

  /* SECTION LABELS */
  .section-label {
    padding: 16px 48px;
    font-family: "DM Mono", monospace;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    background: var(--surface);
    border-block-start: 1px solid var(--border);
    border-block-end: 1px solid var(--border);
  }

  /* PROSE */
  .prose {
    max-inline-size: 780px;
    padding: 44px 48px;
    border-block-end: 1px solid var(--border);
  }
  .prose p {
    margin-block-end: 20px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text);
  }
  .prose p:last-child {
    margin-block-end: 0;
  }
  .prose h2 {
    margin-block-start: 8px;
    margin-block-end: 16px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
  }
  .prose h3 {
    margin-block-start: 32px;
    margin-block-end: 12px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
  }

  /* CALLOUT */
  .callout {
    padding: 20px 24px;
    margin: 24px 0;
    background: var(--surface);
    border-inline-start: 3px solid var(--accent);
    border-radius: 0 2px 2px 0;
  }
  .callout-label {
    margin-block-end: 8px;
    font-family: "DM Mono", monospace;
    font-size: 9px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
  }
  .callout p {
    margin: 0;
    font-size: 14px;
  }

  .callout-danger {
    background: rgb(255 245 245);
    border-inline-start-color: rgb(198 40 40);
  }
  .callout-danger .callout-label {
    color: rgb(198 40 40);
  }
  .callout-ok {
    background: rgb(241 248 233);
    border-inline-start-color: rgb(46 125 50);
  }
  .callout-ok .callout-label {
    color: rgb(46 125 50);
  }
  .callout-announce {
    background: rgb(237 231 246);
    border-inline-start-color: var(--accent2);
  }
  .callout-announce .callout-label {
    color: var(--accent2);
  }

  /* INSIGHT BLOCK */
  .insight-block {
    position: relative;
    padding: 20px 24px;
    margin: 28px 0;
    background: rgb(232 244 247);
    border: 1px solid rgb(178 216 228);
    border-inline-start: 3px solid var(--insight);
    border-radius: 0 4px 4px 0;
  }
  .insight-block::before {
    position: absolute;
    inset-block-start: 0;
    inset-block-end: 0;
    inset-inline-start: -1px;
    inline-size: 3px;
    content: "";
    background: var(--insight);
  }
  .insight-label {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-block-end: 10px;
    font-family: "DM Mono", monospace;
    font-size: 9px;
    color: var(--insight);
    text-transform: uppercase;
    letter-spacing: 0.2em;
  }
  .insight-label::before {
    font-size: 10px;
    content: "◈";
  }
  .insight-block p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: rgb(26 46 53);
  }
  .insight-block p + p {
    margin-block-start: 10px;
  }
}
