@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500;600&family=Source+Sans+3:wght@400;600;700&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --bg: #efe6d6;
  --bg-strong: #e7dcc8;
  --surface: #fffaf2;
  --surface-strong: #fcf5ea;
  --card: rgba(255, 251, 244, 0.94);
  --ink: #183532;
  --ink-soft: #49615d;
  --line: #d7cab2;
  --line-strong: #2a7169;
  --teal: #246e66;
  --teal-deep: #173f3b;
  --gold: #d7a13c;
  --blue-soft: #c8d5eb;
  --shadow: 0 24px 60px rgba(24, 53, 50, 0.12);
  --shadow-soft: 0 14px 36px rgba(24, 53, 50, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --content-width: 1180px;
  --article-width: 780px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(215, 161, 60, 0.18), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(42, 113, 105, 0.14), transparent 24%),
    linear-gradient(180deg, #f4ecdf 0%, #efe6d6 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.24), transparent 72%);
  opacity: 0.45;
}

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

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

.site-shell {
  position: relative;
  overflow-x: clip;
}

.container {
  width: min(var(--content-width), calc(100vw - 40px));
  margin: 0 auto;
}

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 0 12px;
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(42, 113, 105, 0.16);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.74);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(23, 63, 59, 0.15);
}

.brand-copy {
  min-width: 0;
}

.brand-name {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-tagline {
  display: block;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  transition: 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ink);
  background: rgba(36, 110, 102, 0.08);
  outline: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: 180ms ease;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  background: var(--teal);
  color: #fffaf2;
  box-shadow: 0 14px 30px rgba(36, 110, 102, 0.22);
}

.button-secondary {
  background: #fff7eb;
  color: var(--ink);
  border: 1px solid rgba(36, 110, 102, 0.16);
}

.button-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(24, 53, 50, 0.14);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: currentColor;
}

.hero {
  padding: 34px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  gap: 22px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.home-section-card,
.article-hero,
.guide-card,
.info-card,
.product-card,
.cta-panel,
.footer-panel,
.notice-panel,
.article-shell,
.guide-list-hero {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(42, 113, 105, 0.18);
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  padding: 42px;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -72px;
  top: -72px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 161, 60, 0.22), transparent 65%);
}

.hero-copy h1,
.section-heading,
.guide-card h3,
.product-card h3,
.article-hero h1,
.cta-copy h2,
.not-found-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.hero-copy h1 {
  margin-top: 16px;
  font-size: clamp(3rem, 7vw, 5.5rem);
  max-width: 12ch;
}

.hero-copy p {
  max-width: 40rem;
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.hero-actions,
.product-actions,
.info-card-actions,
.cta-actions,
.article-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.stat-card {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(42, 113, 105, 0.12);
}

.stat-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.stat-label {
  margin-top: 6px;
  color: var(--ink-soft);
  line-height: 1.35;
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 18px;
  align-content: space-between;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.94), rgba(251, 244, 232, 0.98)),
    var(--card);
  overflow: hidden;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 28px;
  opacity: 0.92;
}

.hero-panel::before {
  right: 28px;
  top: 92px;
  width: 180px;
  height: 200px;
  background: var(--blue-soft);
}

.hero-panel::after {
  right: 78px;
  bottom: 56px;
  width: 150px;
  height: 160px;
  border: 2px solid rgba(215, 161, 60, 0.42);
  background: rgba(255, 248, 235, 0.72);
}

.hero-panel-card {
  position: relative;
  z-index: 1;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 251, 244, 0.94);
  border: 1px solid rgba(42, 113, 105, 0.18);
}

.hero-panel-card img {
  border-radius: 18px;
  overflow: hidden;
}

.chip-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(42, 113, 105, 0.16);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1;
}

.chip strong,
.tag strong {
  color: var(--ink);
}

.section {
  padding: 28px 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.section-heading {
  font-size: clamp(2.15rem, 5vw, 3.35rem);
}

.section-subtitle {
  max-width: 44rem;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.guide-card,
.product-card,
.home-section-card {
  overflow: hidden;
}

.info-card {
  padding: 28px;
}

.guide-card-image,
.product-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(36, 110, 102, 0.05), rgba(200, 213, 235, 0.12));
}

.guide-card-image img,
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.guide-card:hover .guide-card-image img,
.product-card:hover .product-card-image img {
  transform: scale(1.02);
}

.guide-card-body,
.product-card-body,
.home-section-body {
  padding: 22px;
}

.guide-card h3,
.product-card h3 {
  font-size: 1.65rem;
  margin-top: 12px;
}

.info-card h3 {
  font-size: 1.72rem;
  margin: 14px 0 12px;
}

.guide-card p,
.product-card p,
.info-card p,
.home-section-body p,
.cta-copy p,
.footer-panel p,
.notice-panel p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 1.05rem;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.meta-line span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(42, 113, 105, 0.24);
}

.bullet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bullet-card {
  padding: 18px 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(42, 113, 105, 0.12);
}

.bullet-card h3,
.bullet-card h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.bullet-card p {
  margin-top: 10px;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
  padding: 28px;
  align-items: center;
}

.cta-panel-dark {
  background: linear-gradient(180deg, rgba(28, 84, 78, 0.98), rgba(22, 58, 54, 0.98));
  color: #fff8ef;
  border-color: rgba(215, 161, 60, 0.2);
}

.cta-panel-dark p,
.cta-panel-dark .meta-line,
.cta-panel-dark .meta-line span {
  color: rgba(255, 248, 239, 0.82);
}

.cta-panel-dark .button-secondary,
.cta-panel-dark .button-ghost {
  background: rgba(255, 248, 239, 0.12);
  color: #fff8ef;
  border-color: rgba(255, 248, 239, 0.16);
}

.cta-copy h2 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  margin-top: 10px;
}

.cta-art {
  padding: 14px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(42, 113, 105, 0.16);
}

.cta-panel-dark .cta-art {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 248, 239, 0.12);
}

.cta-art img {
  width: 100%;
  border-radius: 18px;
}

.article-main {
  padding: 22px 0 42px;
}

.article-shell {
  padding: 28px;
}

.article-hero {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 22px;
  align-items: center;
  background:
    radial-gradient(circle at 95% 18%, rgba(200, 213, 235, 0.48), transparent 28%),
    linear-gradient(180deg, rgba(255, 250, 242, 0.97), rgba(250, 243, 231, 0.95));
}

.article-hero-copy h1 {
  margin-top: 14px;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
}

.article-hero-copy p {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 42rem;
}

.article-cover {
  position: relative;
  padding: 12px;
  border-radius: 28px;
  background: rgba(255, 251, 244, 0.86);
  border: 1px solid rgba(42, 113, 105, 0.16);
  box-shadow: var(--shadow-soft);
}

.article-cover img {
  width: 100%;
  border-radius: 22px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.article-content {
  max-width: var(--article-width);
  margin: 0 auto;
  width: 100%;
}

.article-content p,
.article-content li {
  font-size: 1.14rem;
  line-height: 1.74;
  color: var(--ink);
}

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

.article-content .article-lead {
  font-size: 1.32rem;
  line-height: 1.66;
  color: var(--ink-soft);
}

.article-content h2,
.article-content h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.article-content h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin: 46px 0 16px;
}

.article-content h3 {
  font-size: clamp(1.35rem, 3vw, 1.72rem);
  margin: 28px 0 12px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 22px 0;
  padding-left: 1.25rem;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content code {
  padding: 0.12rem 0.42rem;
  border-radius: 0.5rem;
  background: rgba(36, 110, 102, 0.08);
  color: var(--teal-deep);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92em;
}

.article-content pre {
  overflow-x: auto;
  padding: 18px;
  border-radius: 22px;
  background: #173f3b;
  color: #fff8ef;
}

.article-content strong {
  color: var(--teal-deep);
}

.slug-link {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-weight: 600;
}

.article-separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(42, 113, 105, 0.24), transparent);
  margin: 28px 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.page-shell {
  padding: 18px;
}

.page-hero {
  padding: 26px 26px 18px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 92% 14%, rgba(200, 213, 235, 0.42), transparent 26%),
    linear-gradient(180deg, rgba(255, 250, 242, 0.97), rgba(250, 243, 231, 0.95));
}

.page-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(2.6rem, 5.4vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-family: "Space Grotesk", sans-serif;
}

.page-hero p {
  margin: 0;
  max-width: 48rem;
  font-size: 1.14rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.page-content {
  max-width: 860px;
}

.footer {
  padding: 26px 0 40px;
}

.footer-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 28px;
  background: rgba(24, 63, 59, 0.97);
  color: #fff8ef;
}

.footer-panel p,
.footer-panel a {
  color: rgba(255, 248, 239, 0.84);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 42px;
}

.footer-group {
  display: grid;
  gap: 10px;
  min-width: 180px;
}

.footer-group-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 248, 239, 0.58);
}

.footer-link {
  color: rgba(255, 248, 239, 0.88);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: #fff8ef;
}

.not-found {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 120px);
  padding: 28px 0 48px;
}

.notice-panel {
  width: min(760px, calc(100vw - 40px));
  padding: 34px;
  text-align: center;
}

.not-found-title {
  font-size: clamp(3rem, 8vw, 5rem);
}

.small-print {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@media (max-width: 1080px) {
  .hero-grid,
  .article-hero,
  .cta-panel,
  .grid-three,
  .grid-two {
    grid-template-columns: 1fr;
  }

  .hero-panel::before,
  .hero-panel::after {
    display: none;
  }
}

@media (max-width: 860px) {
  .nav {
    border-radius: 28px;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-copy,
  .hero-panel,
  .article-hero,
  .article-shell,
  .cta-panel,
  .footer-panel {
    padding: 22px;
  }

  .hero-stats,
  .bullet-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(var(--content-width), calc(100vw - 28px));
  }
}

@media (max-width: 520px) {
  .hero-copy h1,
  .article-hero-copy h1,
  .section-heading,
  .cta-copy h2,
  .not-found-title {
    line-height: 1;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .product-actions,
  .info-card-actions,
  .cta-actions,
  .article-hero-actions {
    flex-direction: column;
  }
}
