﻿:root {
  --pulse-bg: #f2f4f8;
  --pulse-bg-soft: #e8ecf2;
  --pulse-panel: #ffffff;
  --pulse-accent: #2563eb;
  --pulse-accent-strong: #1d4ed8;
  --pulse-text: #111827;
  --pulse-muted: #6b7280;
  --pulse-border: rgba(17, 24, 39, 0.12);
  --pulse-shadow: 0 10px 24px rgba(14, 27, 53, 0.08);
  --pulse-wrap: 1040px;
  --pulse-rad: 6px;
  --pulse-rad-small: 3px;
  --pulse-rad-large: 12px;
  --pulse-shift: 150ms ease-out;
  --pulse-head: 'JetBrains Mono', monospace;
  --pulse-body: 'Outfit', sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--pulse-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--pulse-text);
  background: linear-gradient(180deg, var(--pulse-bg) 0%, var(--pulse-bg-soft) 100%);
}

a {
  color: var(--pulse-accent);
  text-decoration: none;
  transition: color var(--pulse-shift);
}

a:hover {
  color: var(--pulse-accent-strong);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--pulse-accent);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

.skip-jump {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 300;
  padding: 0.6rem 0.9rem;
  border-radius: var(--pulse-rad-small);
  background: var(--pulse-accent);
  color: #fff;
  font-weight: 600;
}

.skip-jump:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--pulse-wrap));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--pulse-border);
  background: rgba(255, 255, 255, 0.94);
  color: var(--pulse-text);
}

.topbar-inner {
  min-height: 5.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--pulse-text);
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--pulse-accent), #60a5fa);
  display: grid;
  place-content: center;
  font-family: var(--pulse-head);
  font-weight: 700;
  font-size: 0.8rem;
}

.brand-text {
  font-family: var(--pulse-head);
  letter-spacing: 0.02em;
  font-weight: 700;
  font-size: 0.95rem;
}

.brand-logo {
  width: clamp(220px, 34vw, 360px);
  height: auto;
}

.menu-toggle {
  border: 1px solid var(--pulse-border);
  border-radius: var(--pulse-rad-small);
  background: var(--pulse-panel);
  color: var(--pulse-text);
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.main-nav {
  display: none;
}

.main-nav.main-nav-open {
  display: block;
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: calc(100% + 0.4rem);
  background: var(--pulse-panel);
  border: 1px solid var(--pulse-border);
  border-radius: var(--pulse-rad);
  box-shadow: var(--pulse-shadow);
  padding: 0.75rem;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.menu-link {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: var(--pulse-rad-small);
  color: var(--pulse-text);
  font-weight: 500;
}

.menu-link:hover,
.menu-link.is-current {
  color: var(--pulse-accent-strong);
  background: rgba(37, 99, 235, 0.12);
}

.hero-band {
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
}

.hero-grid {
  display: grid;
  gap: 1.2rem;
  align-items: stretch;
}

.hero-copy,
.hero-metrics {
  background: linear-gradient(140deg, rgba(37, 99, 235, 0.14), rgba(37, 99, 235, 0.04));
  border: 1px solid var(--pulse-border);
  border-radius: var(--pulse-rad-large);
  box-shadow: var(--pulse-shadow);
  padding: clamp(1rem, 3vw, 1.6rem);
}

.hero-kicker {
  margin: 0 0 0.7rem;
  color: var(--pulse-muted);
  font-family: var(--pulse-head);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  margin: 0;
  font-family: var(--pulse-head);
  line-height: 1.25;
  font-size: clamp(1.35rem, 3.2vw, 2.1rem);
}

.hero-text {
  margin: 0.9rem 0 0;
  color: var(--pulse-muted);
  max-width: 52ch;
}

.hero-metrics {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: linear-gradient(150deg, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0.04));
}

.hero-metrics::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0));
  pointer-events: none;
}

.metric-tile {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, #f6f9ff 100%);
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: var(--pulse-rad);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
  padding: 0.95rem;
  transition: transform var(--pulse-shift), box-shadow var(--pulse-shift);
}

.metric-tile::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.metric-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

.metric-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  margin: 0;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-family: var(--pulse-head);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.metric-value {
  margin: 0.5rem 0 0;
  font-family: var(--pulse-head);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.2;
  color: #0f172a;
}

.metric-label {
  margin: 0.45rem 0 0;
  color: var(--pulse-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.metric-tile-lcp::after {
  background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.metric-tile-inp::after {
  background: linear-gradient(90deg, #1d4ed8, #6366f1);
}

.metric-tile-cls::after {
  background: linear-gradient(90deg, #0ea5e9, #14b8a6);
}

.post-zone {
  padding: 1rem 0 2.5rem;
}

.section-title {
  margin: 0 0 0.8rem;
  font-family: var(--pulse-head);
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
}

.section-text {
  margin: 0 0 1.3rem;
  color: var(--pulse-muted);
}

.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.95rem;
}

.insight-card {
  position: relative;
  background: var(--pulse-panel);
  border: 1px solid var(--pulse-border);
  border-radius: var(--pulse-rad);
  box-shadow: var(--pulse-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--pulse-shift), box-shadow var(--pulse-shift);
}

.insight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
}

.card-meter {
  min-height: 90px;
  background: linear-gradient(115deg, rgba(37, 99, 235, 0.18), rgba(96, 165, 250, 0.24));
}

.card-body {
  padding: 0.82rem 0.9rem 0.95rem;
}

.card-title {
  margin: 0;
  font-family: var(--pulse-head);
  font-size: 0.98rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card-desc {
  margin: 0.5rem 0 0.72rem;
  color: var(--pulse-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card-link {
  font-weight: 600;
  font-size: 0.92rem;
}

.card-cover-link {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
}

.card-cover-link:focus-visible {
  outline: 2px solid var(--pulse-accent);
  outline-offset: -2px;
}

.page-shell {
  padding: 2.1rem 0 2.8rem;
}

.content-panel {
  background: var(--pulse-panel);
  border: 1px solid var(--pulse-border);
  border-radius: var(--pulse-rad-large);
  box-shadow: var(--pulse-shadow);
  padding: clamp(1.1rem, 2.8vw, 1.8rem);
}

.content-panel h1,
.content-panel h2 {
  font-family: var(--pulse-head);
  line-height: 1.3;
}

.content-panel p,
.content-panel li {
  color: var(--pulse-muted);
}

.content-panel ul {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
}

.notice-box {
  margin-top: 1rem;
  border-left: 4px solid var(--pulse-accent);
  background: rgba(37, 99, 235, 0.1);
  padding: 0.8rem 0.9rem;
  border-radius: var(--pulse-rad-small);
}

.footer-strip {
  border-top: 1px solid var(--pulse-border);
  background: var(--pulse-panel);
}

.footer-inner {
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 0.9rem;
  flex-wrap: wrap;
  padding: 0.9rem 0;
  font-size: 0.92rem;
  color: var(--pulse-muted);
}

.footer-inner a {
  color: inherit;
}

.footer-inner a:hover {
  color: var(--pulse-accent);
}

.footer-inner span {
  flex-basis: 100%;
  text-align: center;
}

.error-block {
  text-align: center;
}

.error-code {
  margin: 0;
  font-family: var(--pulse-head);
  font-size: clamp(2rem, 8vw, 4rem);
  color: var(--pulse-accent);
}

@media (min-width: 720px) {
  .menu-toggle {
    display: none;
  }

  .main-nav {
    display: block;
  }

  .main-nav.main-nav-open {
    position: static;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .menu-list {
    display: flex;
    gap: 0.45rem;
    align-items: center;
  }

  .menu-link {
    color: var(--pulse-text);
  }

  .hero-grid {
    grid-template-columns: 1.45fr 1fr;
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hero-metrics {
    grid-template-columns: 1fr;
  }
}


.card-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: linear-gradient(135deg, #e8ecf2, #d7e4fb);
}

.article-panel {
  max-width: 860px;
  margin-inline: auto;
}

.article-panel h1 {
  margin-top: 0.2rem;
  margin-bottom: 0.9rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.article-panel h2 {
  margin-top: 1.7rem;
  margin-bottom: 0.65rem;
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
}

.article-panel p {
  font-size: 1.03rem;
}

.article-hero {
  margin: 0 0 1.15rem;
}

.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  border: 1px solid var(--pulse-border);
  border-radius: var(--pulse-rad);
  box-shadow: var(--pulse-shadow);
}
