:root {
  color-scheme: light;
  --bg: #f7f8f4;
  --ink: #171713;
  --muted: #626458;
  --line: rgba(23, 23, 19, 0.14);
  --gold: #b48a2c;
  --green: #235a43;
  --ivory: #fffdf5;
  --shadow: 0 24px 70px rgba(26, 29, 22, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(180, 138, 44, 0.18), transparent 34rem),
    linear-gradient(135deg, #f7f8f4 0%, #eff2e8 48%, #f8f1dc 100%);
  color: var(--ink);
  font-family: "Inter", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 72px);
  background: rgba(247, 248, 244, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--ivory);
  font-size: 13px;
}

.nav {
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover {
  color: var(--ink);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: 92vh;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
  padding: 130px 0 70px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(64px, 12vw, 148px);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-copy p {
  width: min(620px, 100%);
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 25px);
  line-height: 1.58;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: var(--ivory);
  box-shadow: 0 14px 28px rgba(23, 23, 19, 0.18);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid var(--line);
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.orb {
  position: absolute;
  border-radius: 999px;
}

.orb-large {
  inset: 42px 0 auto auto;
  width: min(34vw, 420px);
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 34% 28%, #fff7dc 0 10%, transparent 11%),
    radial-gradient(circle at 38% 38%, #d8aa42 0 22%, #5f7d45 58%, #10251c 100%);
  box-shadow: var(--shadow);
}

.orb-small {
  left: 8%;
  bottom: 66px;
  width: 140px;
  aspect-ratio: 1;
  background: linear-gradient(145deg, #f3d17a, #21513d);
  box-shadow: 0 18px 48px rgba(35, 90, 67, 0.25);
}

.signal-card {
  position: absolute;
  right: 4%;
  bottom: 44px;
  width: min(360px, 82%);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(255, 253, 245, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.signal-line {
  display: block;
  width: 100%;
  height: 7px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--gold), #111);
}

.signal-card strong,
.signal-card small {
  display: block;
}

.signal-card strong {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.signal-card small {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.section {
  padding: 96px 0 34px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: clamp(24px, 7vw, 92px);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.65;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 48px 0 104px;
}

.focus-grid article {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 245, 0.55);
}

.focus-grid span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.focus-grid h3 {
  margin: 46px 0 14px;
  font-size: 22px;
  letter-spacing: 0;
}

.focus-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.blog-body {
  background: #f7f8f4;
}

.blog-layout,
.article-layout {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.blog-hero {
  padding: 96px 0 42px;
}

.back-link,
.article-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.blog-hero h1 {
  max-width: 820px;
  margin: 26px 0 0;
  font-size: clamp(48px, 9vw, 104px);
  line-height: 0.94;
}

.blog-hero p {
  max-width: 700px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.6;
}

.blog-stats,
.post-card-meta,
.tag-list,
.article-nav,
.category-tabs {
  display: flex;
  align-items: center;
}

.blog-stats {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.blog-stats span,
.tag-list span,
.category-tabs button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 245, 0.58);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.blog-stats span {
  padding: 9px 12px;
}

.blog-toolbar {
  display: grid;
  gap: 16px;
  padding: 28px 0 30px;
  border-top: 1px solid var(--line);
}

.blog-toolbar input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 245, 0.72);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 0 16px;
  outline: none;
}

.blog-toolbar input:focus {
  border-color: rgba(23, 23, 19, 0.42);
  box-shadow: 0 0 0 4px rgba(180, 138, 44, 0.14);
}

.category-tabs {
  flex-wrap: wrap;
  gap: 10px;
}

.category-tabs button {
  min-height: 38px;
  cursor: pointer;
  padding: 0 13px;
}

.category-tabs button.is-active {
  background: var(--ink);
  color: var(--ivory);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding-bottom: 90px;
}

.post-card {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 245, 0.68);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(23, 23, 19, 0.24);
  box-shadow: 0 18px 48px rgba(26, 29, 22, 0.1);
}

.post-card a {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 26px;
}

.post-card-meta {
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.post-card h2 {
  margin: 34px 0 0;
  font-size: clamp(25px, 3vw, 35px);
  line-height: 1.08;
}

.post-card p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.tag-list {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 26px;
}

.tag-list span {
  padding: 7px 9px;
}

.article-layout {
  padding: 38px 0 90px;
}

.article-nav {
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 34px;
}

.article {
  border-top: 1px solid var(--line);
}

.article-header {
  max-width: 840px;
  padding: 52px 0 26px;
}

.article-header h1 {
  margin: 28px 0 0;
  font-size: clamp(42px, 7vw, 80px);
  line-height: 1;
}

.article-header p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.62;
}

.article-content {
  max-width: 820px;
  padding-top: 26px;
  color: #272721;
}

.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5 {
  margin: 42px 0 14px;
  line-height: 1.16;
}

.article-content h2 {
  font-size: 32px;
}

.article-content h3 {
  font-size: 24px;
}

.article-content p,
.article-content li,
.article-content blockquote {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.82;
}

.article-content p {
  margin: 16px 0;
}

.article-content ul {
  margin: 16px 0;
  padding-left: 1.3em;
}

.article-content code {
  border-radius: 5px;
  background: rgba(23, 23, 19, 0.08);
  color: var(--green);
  font-size: 0.9em;
  padding: 0.16em 0.34em;
}

.article-content pre {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #191a16;
  padding: 18px;
}

.article-content pre code {
  background: transparent;
  color: #f7f8f4;
  padding: 0;
}

.article-content blockquote {
  margin: 24px 0;
  border-left: 4px solid var(--gold);
  padding-left: 18px;
}

.empty-state {
  color: var(--muted);
  font-size: 18px;
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    padding: 18px 20px;
  }

  .nav {
    gap: 14px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 54px 0 58px;
  }

  .hero-visual {
    min-height: 360px;
    order: -1;
  }

  .orb-large {
    width: min(78vw, 360px);
    inset: 4px 2vw auto auto;
  }

  .orb-small {
    width: 108px;
    bottom: 30px;
  }

  .section-heading,
  .focus-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .focus-grid article {
    min-height: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  main,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .brand span:last-child {
    display: none;
  }

  .nav {
    font-size: 13px;
  }

  .hero-copy h1 {
    font-size: clamp(56px, 19vw, 82px);
  }

  .button {
    width: 100%;
  }
}
