/* Hallmark · genre: editorial · macrostructure: Bento Grid · theme: custom "Ivory & Gold" · enrichment: Tier-A CSS gold halo + hand-built SVG marks · nav: N1 wordmark + 1 link · footer: Ft2 inline single line
 * tone: refined, reverent · anchor: forest oklch(34% 0.055 162) + gold oklch(70% 0.095 80) · fonts: Noto Serif KR + Pretendard + Cormorant Garamond (numerals)
 */

@import url("bright-tokens.css");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.home-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-paper);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

/* ---------- top bar ---------- */

.home-bar {
  max-width: var(--shell);
  margin-inline: auto;
  padding: max(var(--space-md), env(safe-area-inset-top)) var(--gutter) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.home-bar__mark {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.home-bar__dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--color-gold);
  transform: rotate(45deg);
}

.home-bar__staff {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 var(--space-sm);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-pill);
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}

.home-bar__staff:hover {
  color: var(--color-ink);
  background: var(--color-surface);
  border-color: var(--color-gold);
}

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

.home {
  display: block;
}

.hero {
  position: relative;
  isolation: isolate;
  max-width: var(--shell);
  margin-inline: auto;
  padding: var(--space-xl) var(--gutter) var(--space-xl);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "title"
    "facts"
    "verse";
  gap: var(--space-md);
}

.hero__sun {
  position: absolute;
  z-index: -1;
  top: clamp(0.5rem, 3vw, 1.75rem);
  left: calc(var(--gutter) + clamp(5rem, 28vw, 10.5rem));
  width: clamp(8.5rem, 40vw, 16rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--color-gold) 75%, transparent);
  background: radial-gradient(circle at 50% 45%, color-mix(in oklab, var(--color-gold-soft) 70%, transparent) 0 58%, transparent 59%);
  animation: halo-breathe 7s var(--ease-in-out) infinite;
}

.hero__sun::after {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--color-gold) 40%, transparent);
}

@keyframes halo-breathe {
  0%,
  100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.025); opacity: 0.85; }
}

.hero__title {
  grid-area: title;
  margin: 0;
  display: grid;
  gap: var(--space-xs);
  min-width: 0;
  font-style: normal;
}

.hero__num {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(6rem, 30vw, 11.5rem);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.03em;
  color: var(--color-forest);
}

.hero__cha {
  margin-left: 0.08em;
  font-family: var(--font-display);
  font-size: 0.26em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--color-ink);
}

.hero__name {
  display: block;
  max-width: 14em;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5.8vw, 2.375rem);
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  min-width: 0;
}

.hero__name::after {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  margin-top: var(--space-sm);
  background: var(--color-gold);
}

.hero__facts {
  grid-area: facts;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}

.fact {
  display: inline-flex;
  align-items: center;
  min-height: 2.125rem;
  padding: 0 var(--space-sm);
  border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--color-surface) 70%, transparent);
  box-shadow: inset 0 0 0 1px var(--color-rule-strong);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.fact--soon,
.fact--live {
  color: var(--color-forest);
  box-shadow: inset 0 0 0 1px var(--color-gold);
}

.fact--live::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  margin-right: var(--space-2xs);
  background: var(--color-gold);
  transform: rotate(45deg);
}

.fact--past {
  color: var(--color-ink-2);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--color-rule);
}

.verse {
  grid-area: verse;
  position: relative;
  margin: var(--space-2xs) 0 0;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  max-width: 26rem;
  border-radius: 4px;
  background: var(--color-surface);
  box-shadow: var(--shadow-rest);
  text-align: center;
}

.verse::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid color-mix(in oklab, var(--color-gold) 55%, transparent);
  border-radius: 2px;
  pointer-events: none;
}

.verse::before {
  content: "\201C";
  position: absolute;
  top: 0.15em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-num);
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-gold);
}

.verse__text {
  margin: var(--space-sm) 0 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.verse__ref {
  margin-top: var(--space-2xs);
  color: var(--color-gold-deep);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* ---------- sections ---------- */

.block {
  max-width: var(--shell);
  margin-inline: auto;
  padding: var(--space-md) var(--gutter) var(--space-xl);
}

.block--band {
  max-width: none;
  padding-inline: 0;
  padding-top: var(--space-xl);
  background: color-mix(in oklab, var(--color-paper-2) 80%, transparent);
  border-top: 1px solid var(--color-rule);
}

.block__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.block__title {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.block__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--color-gold), transparent);
  opacity: 0.6;
}

/* ---------- tone tokens ---------- */

.tile--pear,
.row--pear { --tone: var(--color-pear); --tone-deep: var(--color-pear-deep); }
.tile--sky,
.row--sky { --tone: var(--color-sky); --tone-deep: var(--color-sky-deep); }
.tile--mint,
.row--mint { --tone: var(--color-mint); --tone-deep: var(--color-mint-deep); }
.tile--lav,
.row--lav { --tone: var(--color-lav); --tone-deep: var(--color-lav-deep); }
.tile--coral { --tone: color-mix(in oklab, var(--color-coral) 35%, var(--color-surface)); --tone-deep: var(--color-coral-ink); }

.ico {
  display: block;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
}

.ico__a { fill: var(--tone-deep); }
.ico__b { fill: var(--color-surface); }
.ico__c { fill: var(--tone); }
.ico__line {
  fill: none;
  stroke: var(--color-surface);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- guide tiles (bento) ---------- */

.tiles {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xs);
}

.tiles__item {
  display: flex;
  min-width: 0;
}

.tiles__item--lead {
  grid-column: 1 / -1;
}

.tiles__item:last-child:nth-child(even) {
  grid-column: 1 / -1;
}

.tile {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0;
  min-height: 9.5rem;
  padding: var(--space-sm);
  border-radius: var(--radius-tile);
  background: color-mix(in oklab, var(--tone) 26%, var(--color-surface));
  color: var(--color-ink);
  text-decoration: none;
  box-shadow: var(--shadow-rest);
  transition:
    transform var(--dur-short) var(--ease-out),
    box-shadow var(--dur-short) var(--ease-out);
}

.tile__text {
  display: grid;
  gap: var(--space-3xs);
  min-width: 0;
  margin-top: auto;
  padding-top: var(--space-sm);
}

.tile__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.tile__desc {
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.tile__count {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0 var(--space-xs);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  box-shadow: inset 0 0 0 1px var(--color-rule);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tile__go,
.row__go {
  position: relative;
  flex: none;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-gold) 70%, transparent);
  transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}

.tile__go {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
}

.tile__go::before,
.row__go::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translate(-65%, -50%) rotate(45deg);
}

.tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.tile:hover .tile__go,
.row:hover .row__go {
  transform: translateX(3px);
  background: color-mix(in oklab, var(--color-gold-soft) 80%, transparent);
}

.tile:active,
.row:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-rest);
  transition-duration: var(--dur-micro);
}

.tile--disabled,
.row--disabled {
  opacity: 0.52;
  cursor: not-allowed;
  box-shadow: none;
}

.tile--disabled:hover,
.row--disabled:hover {
  transform: none;
  box-shadow: none;
}

.tile--disabled .tile__go,
.row--disabled .row__go {
  transform: none;
  background: transparent;
  opacity: 0.45;
}

/* lead tile: the one deep, dark surface on the page */
.tiles__item--lead .tile {
  min-height: 11.5rem;
  --tone: var(--color-gold-soft);
  --tone-deep: var(--color-gold);
  background:
    radial-gradient(120% 90% at 100% 0%, oklch(40% 0.06 160 / 0.9), transparent 60%),
    var(--color-forest);
  color: var(--btn-ink);
  box-shadow: inset 0 0 0 1px oklch(70% 0.095 80 / 0.35), 0 24px 44px -30px oklch(22% 0.03 165 / 0.7);
}

.tiles__item--lead .tile__desc {
  color: oklch(85% 0.02 85);
}

.tiles__item--lead .tile__count {
  background: transparent;
  color: var(--color-gold-soft);
  box-shadow: inset 0 0 0 1px oklch(70% 0.095 80 / 0.6);
}

.tiles__item--lead .ico {
  width: 3.25rem;
  height: 3.25rem;
}

.tiles__item--lead .ico__b {
  fill: var(--color-forest);
}

.tiles__item--lead .tile__title {
  font-size: var(--text-xl);
}

.tiles__item--lead .tile:hover .tile__go {
  background: oklch(70% 0.095 80 / 0.2);
}

/* ---------- application rows ---------- */

.rows {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xs);
}

.rows > li {
  display: flex;
  min-width: 0;
}

.row {
  flex: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
  padding: var(--space-xs) var(--space-sm) var(--space-xs) var(--space-xs);
  border-radius: var(--radius-row);
  background: var(--color-surface);
  color: var(--color-ink);
  text-decoration: none;
  box-shadow: var(--shadow-rest);
  transition:
    transform var(--dur-short) var(--ease-out),
    box-shadow var(--dur-short) var(--ease-out);
}

.row .ico {
  width: 3rem;
  height: 3rem;
  padding: 0.55rem;
  border-radius: 10px;
  background: color-mix(in oklab, var(--tone) 45%, var(--color-surface));
}

.row__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.row__title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.row__desc {
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

/* ---------- focus ---------- */

.tile:focus-visible,
.row:focus-visible,
.home-bar__staff:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

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

.home-foot {
  background: color-mix(in oklab, var(--color-paper-2) 80%, transparent);
}

.home-foot p {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--space-sm) var(--gutter) max(var(--space-lg), env(safe-area-inset-bottom));
  color: var(--color-ink-2);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
}

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

.tiles__item,
.rows > li {
  animation: rise var(--dur-long) var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 60ms + 100ms);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- wider screens ---------- */

@media (min-width: 720px) {
  .hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    grid-template-areas:
      "title verse"
      "facts verse";
    align-items: end;
    column-gap: var(--space-xl);
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }

  .hero__sun {
    left: calc(var(--gutter) + 9rem);
  }

  .verse {
    align-self: center;
    justify-self: end;
    margin: 0;
  }

  .tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(10rem, auto);
    gap: var(--space-sm);
  }

  .tiles__item--lead {
    grid-column: span 2;
    grid-row: span 2;
  }

  .tiles__item:last-child:nth-child(even) {
    grid-column: auto;
  }

  .tile {
    padding: var(--space-md);
  }

  .tile__go {
    top: var(--space-md);
    right: var(--space-md);
  }

  .tiles__item--lead .tile__title {
    font-size: 1.875rem;
  }

  .tiles__item--lead .ico {
    width: 4rem;
    height: 4rem;
  }

  .rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
  }

  .rows > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .row {
    padding: var(--space-sm);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__sun,
  .tiles__item,
  .rows > li {
    animation: none;
  }

  .tile,
  .row,
  .tile__go,
  .row__go,
  .home-bar__staff {
    transition: background-color 120ms linear, box-shadow 120ms linear;
  }

  .tile:hover,
  .row:hover,
  .tile:active,
  .row:active,
  .tile:hover .tile__go,
  .row:hover .row__go {
    transform: none;
  }
}

/* ---------- dark hero (inside .lux-mast) ---------- */

.home-mast {
  padding-bottom: var(--space-md);
}

.home-mast .hero {
  padding-bottom: var(--space-2xl);
}

.home-mast .hero__sun {
  border-color: oklch(70% 0.095 80 / 0.75);
  background: radial-gradient(circle at 50% 45%, oklch(70% 0.095 80 / 0.14) 0 58%, transparent 59%);
}

.home-mast .hero__sun::after {
  border-color: oklch(70% 0.095 80 / 0.35);
}

.home-mast .hero__num {
  color: var(--color-ivory-on-dark);
}

.home-mast .hero__cha {
  color: var(--color-gold);
}

.home-mast .hero__name {
  color: var(--color-ivory-on-dark);
}

.home-mast .fact {
  color: var(--color-ivory-on-dark);
  background: transparent;
  box-shadow: inset 0 0 0 1px oklch(70% 0.095 80 / 0.45);
}

.home-mast .fact--past {
  color: var(--color-ivory-muted);
  box-shadow: inset 0 0 0 1px oklch(96% 0.015 85 / 0.18);
}

.home-mast .fact--soon,
.home-mast .fact--live {
  color: var(--color-gold-soft);
  box-shadow: inset 0 0 0 1px var(--color-gold);
}

.home-mast .verse {
  color: var(--color-ink);
  box-shadow: 0 30px 60px -30px oklch(10% 0.02 165 / 0.8);
}

main.home > .block:first-child {
  padding-top: var(--space-xl);
}

/* lead tile: champagne, now that the dark surface lives in the hero */
.tiles__item--lead .tile {
  --tone: var(--color-gold-soft);
  --tone-deep: var(--color-gold-deep);
  background:
    radial-gradient(110% 90% at 100% 0%, oklch(95% 0.03 85), transparent 60%),
    linear-gradient(160deg, oklch(92% 0.045 84), oklch(88% 0.05 82));
  color: var(--color-ink);
  box-shadow: inset 0 0 0 1px oklch(70% 0.095 80 / 0.55), 0 24px 44px -32px oklch(40% 0.06 80 / 0.55);
}

.tiles__item--lead .tile__desc {
  color: var(--color-ink-2);
}

.tiles__item--lead .tile__count {
  color: var(--color-forest);
  box-shadow: inset 0 0 0 1px var(--color-gold);
}

.tiles__item--lead .ico__b {
  fill: oklch(92% 0.045 84);
}

.tiles__item--lead .tile:hover .tile__go {
  background: oklch(99% 0.006 85 / 0.6);
}

footer.lux-foot.home-foot {
  margin-top: 0;
}
