/* Author: VIVI x Codex */
:root {
  --bg: #eff3ec;
  --paper: rgba(252, 251, 247, 0.92);
  --paper-soft: rgba(255, 253, 249, 0.86);
  --ink: #2d2626;
  --muted: #6b6771;
  --line: rgba(27, 34, 48, 0.12);
  --line-strong: rgba(27, 34, 48, 0.24);
  --salmon: #ef7a5c;
  --teal: #3ca99b;
  --acid: #d8ea4f;
  --sky: #6bb0ff;
  --sand: #f3d8b4;
  --shadow: 0 28px 78px rgba(53, 42, 33, 0.12);
  --width: min(1200px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 12%, rgba(243, 208, 133, 0.26), transparent 22%),
    radial-gradient(circle at 84% 12%, rgba(189, 231, 226, 0.24), transparent 28%),
    radial-gradient(circle at 76% 74%, rgba(219, 230, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #f8f7f1 0%, var(--bg) 100%);
  font-family: "Noto Sans SC", sans-serif;
}

.page-wash,
.page-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-wash {
  background:
    radial-gradient(circle at 14% 11%, rgba(255, 243, 198, 0.68), transparent 19%),
    radial-gradient(circle at 82% 16%, rgba(221, 245, 239, 0.34), transparent 24%),
    radial-gradient(circle at 72% 82%, rgba(255, 227, 214, 0.22), transparent 22%);
}

.page-grain {
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(87, 64, 50, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87, 64, 50, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at center, black 68%, transparent 100%);
}

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

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

code {
  font-family: "Noto Sans SC", sans-serif;
  font-size: 0.92em;
  background: rgba(27, 34, 48, 0.06);
  padding: 0.08em 0.36em;
  border-radius: 4px;
}

.page-shell {
  width: var(--width);
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero,
.section,
.path-strip {
  margin-bottom: 24px;
}

.hero,
.core-card,
.support-card,
.note {
  background: rgba(252, 250, 246, 0.84);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero,
.note {
  border-radius: 34px;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.7fr);
  gap: 24px;
  min-height: 470px;
  padding: 52px 56px 44px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 244, 186, 0.44), transparent 26%),
    radial-gradient(circle at 78% 22%, rgba(216, 240, 238, 0.52), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 34%),
    var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 32%);
}

.hero-copy,
.hero-notes {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.hero-prefix {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(72px, 9vw, 122px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  white-space: normal;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin-top: 26px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.82);
  border: 1px solid rgba(183, 159, 136, 0.24);
  color: #b18f72;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede {
  margin-top: 24px;
  max-width: 30ch;
  color: var(--muted);
  font-size: clamp(18px, 1.45vw, 26px);
  line-height: 1.75;
}

.hero-notes {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 16px;
  padding-bottom: 16px;
}

.hero-note {
  width: min(100%, 360px);
  padding: 22px 24px;
  border-radius: 28px;
  border: 1px solid rgba(130, 111, 93, 0.12);
  box-shadow: 0 20px 48px rgba(72, 54, 39, 0.08);
  backdrop-filter: blur(8px);
}

.hero-note-main {
  transform: rotate(-4deg);
  background: rgba(255, 248, 239, 0.86);
}

.hero-note-side {
  width: min(86%, 280px);
  transform: translateX(-18px) rotate(4deg);
  background: rgba(236, 248, 248, 0.82);
}

.hero-note-label {
  margin-bottom: 12px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-note strong {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.22;
}

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

.path-pill {
  min-height: 126px;
  padding: 18px 18px 20px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(252, 250, 246, 0.92), rgba(252, 250, 246, 0.78)),
    var(--paper);
}

.path-pill:nth-child(1) {
  background-color: rgba(243, 216, 180, 0.56);
}

.path-pill:nth-child(2) {
  background-color: rgba(107, 176, 255, 0.18);
}

.path-pill:nth-child(3) {
  background-color: rgba(216, 234, 79, 0.24);
}

.path-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.path-pill strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.12;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2 {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}

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

.core-card,
.support-card {
  border-radius: 8px;
  padding: 18px;
}

.core-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.core-card--link {
  position: relative;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.core-card--link:hover,
.core-card--link:focus-visible {
  border-color: var(--line-strong);
  box-shadow: 0 28px 74px rgba(27, 34, 48, 0.18);
  transform: translateY(-2px);
}

.core-card--link::after,
.support-card--link::after,
.market-card::after {
  content: "↗";
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 252, 246, 0.48);
  border: 1px solid rgba(27, 34, 48, 0.07);
  color: rgba(45, 38, 38, 0.36);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transform: translate(1px, 1px);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.core-card--link:hover::after,
.core-card--link:focus-visible::after,
.support-card--link:hover::after,
.support-card--link:focus-visible::after,
.market-card:hover::after,
.market-card:focus-visible::after {
  background: rgba(255, 252, 246, 0.92);
  border-color: rgba(27, 34, 48, 0.18);
  color: var(--ink);
  transform: translateY(0);
}

.core-card--link:focus-visible {
  outline: 3px solid rgba(239, 122, 92, 0.42);
  outline-offset: 4px;
}

.core-card:nth-child(1) {
  background:
    linear-gradient(180deg, rgba(243, 216, 180, 0.34), rgba(252, 250, 246, 0.88)),
    var(--paper);
}

.core-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(107, 176, 255, 0.18), rgba(252, 250, 246, 0.9)),
    var(--paper);
}

.core-card:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(216, 234, 79, 0.24), rgba(252, 250, 246, 0.9)),
    var(--paper);
}

.card-topline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-index {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.card-title {
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.12;
}

.card-hook {
  color: var(--salmon);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
}

.card-copy {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.card-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

.card-metric {
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.56);
  border: 1px solid rgba(107, 176, 255, 0.22);
}

.card-metric strong,
.card-metric em {
  display: block;
}

.card-metric strong {
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 20px;
  line-height: 1.1;
}

.card-metric em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.card-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.card-keywords span {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(27, 34, 48, 0.06);
  border: 1px solid rgba(27, 34, 48, 0.08);
  font-size: 14px;
}

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

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

.support-card {
  min-height: 220px;
  position: relative;
  padding-bottom: 58px;
  background:
    linear-gradient(180deg, rgba(60, 169, 155, 0.12), rgba(252, 250, 246, 0.92)),
    var(--paper);
}

.support-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.support-card--link:hover,
.support-card--link:focus-visible {
  border-color: var(--line-strong);
  box-shadow: 0 28px 74px rgba(27, 34, 48, 0.18);
  transform: translateY(-2px);
}

.support-card--link:focus-visible {
  outline: 3px solid rgba(60, 169, 155, 0.36);
  outline-offset: 4px;
}

.support-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(239, 122, 92, 0.15), rgba(252, 250, 246, 0.92)),
    var(--paper);
}

.support-card h3 {
  margin-top: 10px;
  font-size: 28px;
  line-height: 1.12;
}

.support-card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.support-cohost {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: calc(100% - 128px);
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.78);
  border: 1px solid rgba(27, 34, 48, 0.1);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-card:nth-child(1) .support-cohost {
  background: rgba(60, 169, 155, 0.12);
  border-color: rgba(60, 169, 155, 0.3);
  color: #2f7f75;
}

.support-card:nth-child(2) .support-cohost {
  background: rgba(239, 122, 92, 0.13);
  border-color: rgba(239, 122, 92, 0.32);
  color: #b95d46;
}

.market-card {
  min-height: 210px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 48px;
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.market-card:nth-child(1) {
  background:
    linear-gradient(180deg, rgba(243, 216, 180, 0.38), rgba(252, 250, 246, 0.9)),
    var(--paper);
}

.market-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(239, 122, 92, 0.18), rgba(252, 250, 246, 0.9)),
    var(--paper);
}

.market-card:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(107, 176, 255, 0.18), rgba(252, 250, 246, 0.9)),
    var(--paper);
}

.market-card:nth-child(4) {
  background:
    linear-gradient(180deg, rgba(216, 234, 79, 0.24), rgba(252, 250, 246, 0.9)),
    var(--paper);
}

.market-card:hover,
.market-card:focus-visible {
  border-color: var(--line-strong);
  box-shadow: 0 28px 74px rgba(27, 34, 48, 0.18);
  transform: translateY(-2px);
}

.market-card:focus-visible {
  outline: 3px solid rgba(60, 169, 155, 0.36);
  outline-offset: 4px;
}

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

.market-date,
.market-mode {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.78);
  border: 1px solid rgba(27, 34, 48, 0.1);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.market-title {
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.2;
}

.market-hook {
  color: var(--salmon);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.market-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.note {
  padding: 20px 22px;
  font-size: 18px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .hero,
  .core-grid,
  .support-grid,
  .may-market-grid,
  .path-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 36px 28px 30px;
  }

  .hero-notes {
    align-items: flex-start;
    padding-bottom: 0;
  }

  .hero-note-main,
  .hero-note-side {
    transform: none;
  }

  .core-card,
  .support-card,
  .market-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100vw - 24px, 1200px);
    padding: 16px 0 36px;
  }

  .hero {
    padding: 16px;
    border-radius: 26px;
  }

  .hero-prefix {
    font-size: 28px;
  }

  .hero h1 {
    font-size: clamp(54px, 17vw, 82px);
  }

  .hero-chip {
    min-height: 40px;
    padding: 0 14px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .lede {
    max-width: none;
    font-size: 17px;
  }

  .hero-note {
    width: 100%;
    padding: 18px 18px 20px;
    border-radius: 22px;
  }

  .path-pill strong,
  .card-title,
  .support-card h3,
  .market-title {
    word-break: break-word;
  }

}
