/* Consumer homepage layer for the RC7 site tokens and shared shell. */
:root {
  --home-gold: #f3c861;
  --home-coral: #e77759;
  --home-deep: #183238;
  --home-deep-ink: #fffefa;
  --home-deep-muted: #d5e2dd;
  --home-tint: #f1ead7;
  --home-tint-ink: #2b3938;
}

@media (prefers-color-scheme: dark) {
  :root {
    --home-gold: #f3c861;
    --home-coral: #f19375;
    --home-deep: #dcebe5;
    --home-deep-ink: #18262c;
    --home-deep-muted: #40565a;
    --home-tint: #24363a;
    --home-tint-ink: #f2f3ed;
  }

}

.h2-home-page {
  padding-block: 0 var(--s-8);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.h2-home-page h1,
.h2-home-page h2,
.h2-home-page h3 {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.site-header .desktop-nav ul {
  gap: .08rem;
}

.site-header .desktop-nav a {
  padding-inline: .43rem;
  font-size: .84rem;
  white-space: nowrap;
}

.site-header .desktop-nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 800;
}

.h2-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.6rem, 6vw, 5.2rem) clamp(3rem, 6vw, 5.2rem);
}

.h2-hero-copy { min-width: 0; }

.h2-home-page .h2-eyebrow {
  margin: 0 0 .65rem;
  color: var(--teal);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: .08em;
}

.h2-home-hero h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(2.85rem, 6.5vw, 4.9rem);
  line-height: 1.08;
  letter-spacing: -.055em;
}

.h2-home-hero .h2-lead {
  max-width: 38ch;
  margin-bottom: 0;
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  line-height: 1.65;
}

.h2-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.35rem;
}

.h2-hero-actions .button { min-height: 50px; }

.h2-hero-art {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: .35rem .45rem 2.7rem .8rem;
}

.h2-hero-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--home-deep);
  box-shadow: var(--shadow-lift);
  text-decoration: none;
}

.h2-hero-cover::before {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: 18%;
  background: #183238;
  content: "";
}

.h2-hero-cover::before { display: none; }

.h2-hero-cover-main {
  aspect-ratio: 1200 / 630;
  border-radius: 28px 28px 88px 28px;
  transform: none;
}

.h2-hero-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.h2-cover-label {
  display: block;
  position: static;
  width: 100%;
  margin: .35rem 0 .65rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.35;
}

.h2-hero-cover-previous {
  position: static;
  width: min(45%, 250px);
  aspect-ratio: 1200 / 630;
  margin: .65rem auto 0;
  border: 6px solid var(--paper);
  border-radius: 16px;
  transform: none;
}

.h2-hero-cover-previous + .h2-cover-label {
  width: min(45%, 250px);
  margin: .35rem auto .65rem;
  font-size: .68rem;
  text-align: center;
}

.h2-hero-art figcaption {
  position: static;
  max-width: none;
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
  text-align: left;
}

.h2-section { margin-top: clamp(3rem, 7vw, 5.5rem); }

.h2-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.h2-section-heading > div { min-width: 0; }

.h2-section-heading h2,
.h2-quiz-feature h2,
.h2-work-tools h2,
.h2-briefing-copy h2 {
  margin-bottom: .55rem;
  font-size: clamp(1.8rem, 3.8vw, 2.75rem);
  line-height: 1.16;
  letter-spacing: -.04em;
}

.h2-section-heading > div > p:last-child {
  max-width: 60ch;
  margin-bottom: 0;
  color: var(--muted);
}

.h2-section-link {
  display: inline-flex;
  min-height: 44px;
  flex: none;
  align-items: center;
  gap: .35rem;
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 750;
}

.h2-discovery-grid,
.h2-everyday-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.h2-story-card,
.h2-everyday-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.h2-story-visual {
  margin: 0;
  padding: .65rem .65rem 0;
  background: var(--surface);
}

.h2-story-visual svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.h2-story-copy { padding: 1rem 1.1rem 1.2rem; }

.h2-story-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .3rem .75rem;
  margin-bottom: .6rem;
  color: var(--teal);
  font-size: var(--text-xs);
  font-weight: 750;
}

.h2-story-meta span { color: var(--muted); font-weight: 500; }

.h2-story-copy h3 {
  margin-bottom: .6rem;
  font-size: clamp(1.25rem, 2.5vw, 1.62rem);
  line-height: 1.35;
}

.h2-story-copy > p:not(.h2-story-meta) {
  margin-bottom: .75rem;
  color: var(--muted);
  line-height: 1.6;
}

.h2-card-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: .35rem;
  font-weight: 750;
  text-decoration-thickness: .08em;
}

.h2-quiz-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .65fr);
  align-items: center;
  gap: 2rem;
  padding: clamp(1.4rem, 4vw, 3rem);
  border-radius: var(--r-lg);
  background: var(--home-deep);
  color: var(--home-deep-ink);
}

.h2-quiz-feature .h2-eyebrow { color: var(--home-gold); }

.h2-quiz-feature h2 { max-width: 18ch; }

.h2-quiz-copy > p:not(.h2-eyebrow) {
  max-width: 58ch;
  margin-bottom: 1rem;
  color: var(--home-deep-muted);
  line-height: 1.65;
}

.h2-quiz-button {
  border-color: var(--home-gold);
  background: var(--home-gold);
  color: #18262c;
}

.h2-quiz-art {
  display: block;
  width: min(100%, 360px);
  height: auto;
  justify-self: center;
}

.h2-everyday-section .h2-section-heading { margin-bottom: 1.15rem; }

.h2-everyday-card { padding: 1.25rem; }

.h2-tool-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 18px;
  color: var(--home-deep);
}

.h2-tool-icon svg { width: 38px; height: 38px; }

.h2-recipe-icon { background: #f7e7b4; }
.h2-trip-icon { background: #d8e9e4; }

.h2-tool-category {
  margin: 0 0 .35rem;
  color: var(--teal);
  font-size: var(--text-xs);
  font-weight: 800;
}

.h2-everyday-card h3 {
  margin-bottom: .5rem;
  font-size: 1.35rem;
}

.h2-everyday-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.h2-everyday-card h3 a:hover { color: var(--accent); text-decoration: underline; }

.h2-everyday-card > p:not(.h2-tool-category) {
  margin-bottom: .65rem;
  color: var(--muted);
  line-height: 1.6;
}

.h2-everyday-card > p[lang="ko"] {
  margin-top: -.35rem;
  color: var(--muted);
  font-size: var(--text-sm);
}

.h2-work-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.h2-work-tools > div { min-width: 0; }

.h2-work-tools h2 { margin-bottom: .35rem; font-size: clamp(1.35rem, 2.6vw, 1.8rem); }

.h2-work-tools p:last-child { margin: 0; color: var(--muted); }

.h2-work-tools .button { flex: none; }

.h2-briefing-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  padding: clamp(1.2rem, 3.5vw, 2rem);
  border-radius: var(--r-lg);
  background: var(--home-tint);
  color: var(--home-tint-ink);
}

.h2-briefing-mark {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  background: var(--home-gold);
  color: #273638;
}

.h2-briefing-mark span { font-size: 2.25rem; font-weight: 850; line-height: 1; }

.h2-briefing-mark i {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 2px solid #273638;
  border-radius: 50%;
}

.h2-briefing-mark i:nth-of-type(1) { top: 9px; right: 14px; }
.h2-briefing-mark i:nth-of-type(2) { right: 6px; bottom: 23px; width: 7px; height: 7px; }
.h2-briefing-mark i:nth-of-type(3) { bottom: 10px; left: 17px; width: 8px; height: 8px; }

.h2-briefing-copy .h2-eyebrow { color: var(--teal); }

.h2-briefing-copy h2 { margin-bottom: .35rem; font-size: clamp(1.45rem, 3vw, 2rem); }

.h2-briefing-copy p:last-child { max-width: 56ch; margin: 0; color: var(--muted); }

.h2-briefing-band > .button { flex: none; }

.site-footer { margin-top: 0; }

.site-footer .footer-links { row-gap: .1rem; }

.site-footer .footer-note { max-width: 47ch; }

.h2-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1020px) {
  .site-header .desktop-nav { display: none; }
  .site-header .mobile-nav { display: block; }
  .site-header .brand-copy small { display: block; }
  .h2-home-hero { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 2rem; }
}

@media (max-width: 760px) {
  .site-header .brand-copy small { display: none; }
  .h2-home-hero { grid-template-columns: 1fr; gap: 1.4rem; padding-block: 2.15rem 1rem; }
  .h2-home-hero h1 { max-width: 13ch; font-size: clamp(2.6rem, 11vw, 4rem); }
  .h2-home-hero .h2-lead { font-size: 1.08rem; }
  .h2-hero-art { max-width: 600px; margin-inline: auto; padding-left: .3rem; }
  .h2-hero-cover-main { border-radius: 22px 22px 64px 22px; }
  .h2-hero-cover-previous { width: min(45%, 250px); }
  .h2-section-heading { align-items: flex-start; flex-direction: column; gap: .45rem; }
  .h2-section-heading h2 { font-size: clamp(1.75rem, 7vw, 2.35rem); }
  .h2-discovery-grid, .h2-everyday-grid { grid-template-columns: 1fr; }
  .h2-quiz-feature { grid-template-columns: 1fr; gap: .8rem; }
  .h2-quiz-art { width: min(80%, 320px); }
  .h2-work-tools { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .h2-briefing-band { grid-template-columns: auto minmax(0, 1fr); }
  .h2-briefing-band > .button { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 520px) {
  .h2-home-page { padding-bottom: var(--s-7); }
  .h2-hero-actions { align-items: stretch; flex-direction: column; }
  .h2-hero-actions .button { width: 100%; min-height: 52px; }
  .h2-hero-art { display: grid; width: calc(100% - .15rem); gap: .65rem; padding: 0; }
  .h2-hero-cover-main { aspect-ratio: 1200 / 630; border-radius: 16px; }
  .h2-hero-cover-previous { width: min(76%, 320px); aspect-ratio: 1200 / 630; margin: 0 auto; border-width: 4px; border-radius: 12px; }
  .h2-cover-label { margin: .3rem 0 .55rem; font-size: .68rem; }
  .h2-hero-cover-previous + .h2-cover-label { width: min(76%, 320px); margin: .3rem auto .55rem; font-size: .6rem; }
  .h2-hero-art figcaption { margin-top: 0; font-size: .73rem; }
  .h2-story-copy { padding: .9rem .9rem 1rem; }
  .h2-briefing-band { gap: .85rem; padding: 1rem; }
  .h2-briefing-mark { width: 58px; height: 58px; }
  .h2-briefing-mark span { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .h2-hero-cover-main { transform: none; }
  .h2-hero-cover-previous { transform: none; }
}

@media (prefers-color-scheme: dark) {
  .h2-quiz-feature .h2-eyebrow { color: #2e746b; }
}


/* RC9.3: keep both edition cards and their captions in separate normal-flow rows. */
.h2-hero-cover::before { display: none; }
.h2-hero-cover img { object-fit: contain; }
.h2-hero-cover-main {
  aspect-ratio: 1200 / 630;
  transform: none;
}
.h2-hero-art { padding-bottom: 0; }
.h2-cover-label {
  display: block;
  position: static;
  width: 100%;
  margin: .35rem 0 .65rem;
  color: var(--muted);
  line-height: 1.35;
}
.h2-hero-cover-previous {
  position: static;
  bottom: auto;
  left: auto;
  width: min(45%, 250px);
  aspect-ratio: 1200 / 630;
  margin: .65rem auto 0;
  transform: none;
}
.h2-hero-cover-previous + .h2-cover-label {
  width: min(45%, 250px);
  margin: .35rem auto .65rem;
  font-size: .68rem;
  text-align: center;
}
.h2-hero-art figcaption {
  position: static;
  right: auto;
  bottom: auto;
  display: block;
  width: 100%;
  max-width: none;
  margin: .35rem 0 0;
  text-align: left;
}
.h2-story-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
@media (max-width: 760px) {
  .h2-hero-art { overflow: visible; }
  .h2-hero-cover-previous { left: 0; }
}
@media (max-width: 520px) {
  .h2-hero-art {
    display: grid;
    width: calc(100% - .15rem);
    gap: .65rem;
    padding: 0;
  }
  .h2-hero-cover-main { aspect-ratio: 1200 / 630; border-radius: 16px; transform: none; }
  .h2-hero-cover-previous {
    position: static;
    bottom: auto;
    left: auto;
    width: min(76%, 320px);
    aspect-ratio: 1200 / 630;
    margin: 0 auto;
    border-width: 4px;
    border-radius: 12px;
    transform: none;
  }
  .h2-cover-label { margin: .3rem 0 .55rem; font-size: .68rem; }
  .h2-hero-cover-previous + .h2-cover-label {
    width: min(76%, 320px);
    margin: .3rem auto .55rem;
    font-size: .6rem;
  }
  .h2-hero-art figcaption { margin-top: 0; font-size: .8rem; }
}
