/* Type and color match dayzero.run:
   Syne for titles, DM Sans for body, JetBrains Mono for code.
   Layout stays flexbox. */

:root {
  --ink: #152033;
  --ink-soft: #3d4f66;
  --muted: #3d4f66;
  --paper: #f6f2ff;
  --surface: #ffffff;
  --surface-2: #f0ebff;
  --sea: #0fbfa8;
  --sea-deep: #0a8f7d;
  --mint: #5ef0c8;
  --coral: #ff6b6b;
  --sand: #ffb86b;
  --sand-soft: #ffe2b8;
  --line: rgba(21, 32, 51, 0.12);
  --shadow: 0 22px 50px rgba(15, 191, 168, 0.14);
  --radius: 16px;
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --lime: var(--mint);
  --lime-soft: var(--surface-2);
  --shadow-1: var(--shadow);
  --shadow-4: 0 22px 50px rgba(15, 191, 168, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  background: linear-gradient(180deg, #f6f4ff 0%, #eef4ff 45%, #f4f0ff 100%);
}

a {
  color: inherit;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: 0 0 auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 4px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #171a1f;
}

.top-bar-note {
  color: var(--ink-soft);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 10px;
}

.top-bar-note:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 720px;
}

.intro h1,
.article h1,
.article h2,
.blog-card h2,
.chip,
.card-action,
.callout strong,
.score-table th {
  font-family: var(--font-display);
}

.intro h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.intro p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.45;
}

.card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 0 1 328px;
  width: 328px;
  max-width: 100%;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.blog-card:hover,
.blog-card:focus-visible {
  box-shadow: var(--shadow-4);
  outline: none;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chip-news {
  background: var(--ink);
  color: #f6f2ff;
}

.chip-analysis {
  background: var(--mint);
  color: var(--ink);
}

.chip-report {
  background: var(--coral);
  color: #2a1212;
}

.chip-tutorial {
  background: var(--sand-soft);
  color: var(--ink);
}

.card-date {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.blog-card h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.blog-card p {
  margin: 0;
  color: var(--ink-soft);
  flex: 1 1 auto;
  line-height: 1.45;
}

.card-action {
  margin-top: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--sea-deep);
}

.article {
  max-width: 740px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.article h1 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.lede {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink);
}

.article h2 {
  margin: 16px 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.article p,
.article li {
  font-size: 1.05rem;
  line-height: 1.7;
}

.article p {
  margin: 0;
}

.article ul,
.article ol {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article a {
  color: var(--sea-deep);
  font-weight: 600;
}

.article code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 6px;
}

.callout {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-left: 6px solid var(--sea);
  box-shadow: var(--shadow);
}

.callout strong {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.score-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.score-table th,
.score-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.score-table th {
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--surface-2);
}

.score-table tr:last-child td {
  border-bottom: 0;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.article-footer a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.article-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .top-bar {
    padding: 12px 16px;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .page {
    padding: 28px 16px 64px;
  }

  .blog-card {
    width: 100%;
    flex-basis: 100%;
  }
}
