/* IWL V1 — editorial, calm, mobile-first. No framework, no external fonts. */

:root {
  color-scheme: light;
  --bg: #faf9f5;
  --surface: #ffffff;
  --ink: #182234;
  --ink-soft: #55606f;
  --line: #e4e0d6;
  --navy: #16233b;
  --gold: #b3893f;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --container: 720px;
  --container-wide: 960px;
}

* { box-sizing: border-box; }

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

[id] { scroll-margin-top: 60px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap--wide { max-width: var(--container-wide); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  height: 48px;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 480px) {
  .site-header .wrap {
    height: 56px;
    padding-left: 24px;
    padding-right: 24px;
  }
}

.nav-wrap {
  justify-content: space-between;
  gap: 8px;
}

/* The lockup's viewBox height IS its cap height, so setting the height here
   sets the cap directly — 16/18px, against the 12/13px nav beside it. */

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 8px 0;
  /* only ever seen if the SVG fails to load and the alt text shows */
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.brand img {
  display: block;
  height: 16px;
  width: auto;
}

@media (min-width: 480px) {
  .brand img { height: 18px; }
}

.site-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
  display: inline-block;
  padding: 14px 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.15s ease;
}

@media (min-width: 480px) {
  .site-nav { gap: 16px; }
  .site-nav a { padding: 18px 2px; font-size: 13px; }
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--navy);
}

/* ---------- hero ---------- */

.hero {
  /* Hero A/B lock (2026-09-11): symbol and wordmark both removed, tagline is
     now the first visual element. This padding-top is the exact value the
     approved B comparison was judged on — do not revert to 72px. */
  padding: clamp(64px, 14vw, 96px) 0 56px;
  text-align: center;
}

.hero-tagline {
  margin-top: 0;
  font-size: clamp(15px, 3.4vw, 17px);
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.hero-headline {
  margin-top: 22px;
  font-size: clamp(30px, 8vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--navy);
}

.hero-desc {
  margin-top: 24px;
  font-size: clamp(15px, 3.6vw, 18px);
  color: var(--ink-soft);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 2px;
  border: 1px solid var(--navy);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #223257;
}

.hero-trust {
  margin: 40px auto 0;
  max-width: 480px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- read / connect / be ---------- */

.rcb {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  .rcb { padding: 64px 0; }
}

/* Mobile-first: one continuous vertical timeline, dot + text side by side */

.rcb-diagram {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rcb-node {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  max-width: none;
}

.dot-col {
  flex: 0 0 28px;
  display: flex;
  justify-content: center;
  padding-top: 3px;
}

.dot {
  display: inline-block;
  border-radius: 50%;
  background: var(--navy);
  flex-shrink: 0;
}

.dot--sm { width: 8px; height: 8px; }
.dot--md { width: 14px; height: 14px; }
.dot--lg { width: 22px; height: 22px; }

.dot--gold {
  background: var(--line);
  transition: background 0.5s ease 0.3s;
}

.is-visible .dot--gold,
html:not(.has-js) .dot--gold {
  background: var(--gold);
}

.rcb-text { flex: 1; min-width: 0; }

.rcb-line {
  background: var(--line);
  flex-shrink: 0;
  width: 2px;
  height: 18px;
  margin-left: 13px;
}

html.has-js .rcb-line {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s ease;
}

html.has-js .rcb-diagram.is-visible .rcb-line {
  transform: scaleY(1);
}

.rcb-label {
  margin-top: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.rcb-en {
  display: inline-block;
  margin-top: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.rcb-copy {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.rcb-footnote {
  margin: 28px auto 0;
  max-width: 520px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}

/* Desktop: original spread-out horizontal layout */

@media (min-width: 720px) {
  .rcb-diagram {
    flex-direction: row;
    align-items: flex-start;
  }

  .rcb-node {
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 220px;
    gap: 0;
  }

  .dot-col {
    flex: 0 0 auto;
    padding-top: 0;
  }

  .rcb-line {
    width: auto;
    height: 2px;
    flex: 1 1 auto;
    margin-top: 7px;
    margin-left: 0;
  }

  html.has-js .rcb-line {
    transform: scaleX(0);
    transform-origin: left;
  }

  html.has-js .rcb-diagram.is-visible .rcb-line {
    transform: scaleX(1);
  }

  .rcb-label {
    margin-top: 14px;
    display: block;
    font-size: 18px;
  }

  .rcb-en {
    display: block;
    margin-top: 2px;
  }

  .rcb-copy {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.7;
  }

  .rcb-footnote {
    margin-top: 48px;
    font-size: 14px;
  }
}

/* ---------- entry cards ---------- */

.entry {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.entry h2 {
  text-align: center;
  font-size: clamp(20px, 4.4vw, 26px);
  font-weight: 700;
  color: var(--navy);
}

.entry-cards {
  margin-top: 32px;
  display: grid;
  gap: 14px;
}

@media (min-width: 720px) {
  .entry-cards { grid-template-columns: repeat(3, 1fr); }
}

.entry-card {
  display: block;
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.entry-card:hover,
.entry-card:focus-visible {
  border-color: var(--navy);
  transform: translateY(-2px);
}

.entry-card:active {
  border-color: var(--navy);
  background: var(--bg);
  transform: translateY(0);
}

/* ---------- featured series ---------- */

.series {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.series h2 {
  text-align: center;
  font-size: clamp(20px, 4.4vw, 26px);
  font-weight: 700;
  color: var(--navy);
}

.series-list {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .series-list { grid-template-columns: 1fr 1fr; }
}

.series-item {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.series-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.series-item h3 {
  margin-top: 10px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
}

.series-item p {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- about ---------- */

.about {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.about h2 {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.about-quote {
  margin: 20px auto 0;
  max-width: 480px;
  text-align: center;
  font-size: 15px;
  font-style: italic;
  color: var(--ink-soft);
}

.about-grid {
  margin-top: 28px;
  display: grid;
  gap: 28px;
}

@media (min-width: 720px) {
  .about-grid { grid-template-columns: repeat(3, 1fr); }
}

.about-grid h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.about-grid p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- footer ---------- */

.site-footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-brand {
  margin: 0;
  display: flex;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

/* 104px wide — just above the 96px minimum for the horizontal lockup. */

.footer-brand img {
  display: block;
  height: 22px;
  width: auto;
}

.footer-name {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.footer-links {
  margin-top: 6px;
}

.footer-links a {
  font-size: 12px;
  color: var(--ink-soft);
}

.footer-links a:hover { color: var(--navy); }
