@charset "utf-8";

:root {
  color-scheme: light;
  --paper: #f2efe8;
  --paper-deep: #ebe6dd;
  --ink: #1b1a18;
  --muted: #76716a;
  --quiet: #aaa39a;
  --line: rgba(27, 26, 24, .17);
  --line-strong: rgba(27, 26, 24, .35);
  --accent: #a54731;
  --accent-soft: rgba(165, 71, 49, .09);
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --display: "Bodoni 72", "Didot", "Iowan Old Style", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", sans-serif;
  --mono: "SFMono-Regular", Menlo, Consolas, monospace;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1c1b19;
  --paper-deep: #24221f;
  --ink: #eeeae1;
  --muted: #aaa49a;
  --quiet: #716c65;
  --line: rgba(238, 234, 225, .17);
  --line-strong: rgba(238, 234, 225, .34);
  --accent: #d07a61;
  --accent-soft: rgba(208, 122, 97, .11);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(circle at 14% 14%, rgba(255,255,255,.25), transparent 30%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
a { color: inherit; }
button { font: inherit; }

.page-shell {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  min-height: 100vh;
  min-height: 100svh;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 28px clamp(28px, 5vw, 82px) 24px;
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
}
.monogram {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -.025em;
  text-decoration: none;
}
.header-logo-pair {
  position: relative;
  display: block;
  width: 82px;
  height: 22px;
}
.header-wordmark {
  position: absolute;
  inset: 0;
  display: block;
  width: 82px;
  height: auto;
}
.logo-dark { display: none; }
html[data-theme="dark"] .logo-light { display: none; }
html[data-theme="dark"] .logo-dark { display: block; }
html[data-theme="dark"] .header-face { filter: invert(1); }
.header-face {
  width: 28px;
  height: 28px;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(27, 26, 24, .06);
}
.mast-meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .25em;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.theme-toggle {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.theme-label { font-family: var(--mono); font-size: 9px; letter-spacing: .22em; }
.theme-glyph { color: var(--accent); font-size: 17px; line-height: 1; }

main {
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(480px, 1.08fr);
  gap: clamp(56px, 8vw, 132px);
  align-items: center;
  width: 100%;
  padding: clamp(44px, 6vh, 62px) 0 36px;
}
.intro { max-width: 560px; }
.kicker {
  margin: 0 0 28px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .28em;
}
h1 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: clamp(96px, 10vw, 154px);
  font-weight: 400;
  line-height: .73;
  letter-spacing: -.075em;
}
.period { color: var(--accent); }
.main-brand { margin: 0 0 30px; }
.main-brand h1 { margin: 0; }
.brand-tagline {
  margin: 8px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .16em;
  line-height: 1.4;
}
.motto {
  margin: 0 0 28px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(23px, 2.15vw, 34px);
  font-weight: 400;
  line-height: 1.38;
  letter-spacing: -.04em;
}
.intro-copy {
  max-width: 370px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  word-break: keep-all;
}
.clock-block {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: clamp(38px, 5vh, 58px);
}
#seoul-time {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
#seoul-date {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .19em;
}

.rooms { border-top: 1px solid var(--line-strong); }
.rooms-head {
  display: flex;
  justify-content: space-between;
  padding: 14px 2px 26px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .25em;
}
.room {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 34px;
  gap: 18px;
  align-items: center;
  min-height: 136px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  overflow: hidden;
  transition: color .2s ease, padding .22s ease, background .22s ease;
}
.room::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent-soft);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .25s ease;
}
.room:hover,
.room:focus-visible { padding-right: 14px; padding-left: 14px; outline: none; }
.room:hover::before,
.room:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.room-number {
  color: var(--accent);
  font-family: var(--display);
  font-size: 42px;
  line-height: 1;
  font-variant-numeric: lining-nums;
}
.room-body { display: grid; gap: 8px; }
.room-body strong {
  font-family: var(--display);
  font-size: clamp(28px, 2.4vw, 38px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.025em;
}
.room-body small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.room-body em {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: .08em;
}
.room-arrow { color: var(--quiet); font-family: var(--serif); font-size: 21px; transition: color .2s ease, transform .2s ease; }
.room:hover .room-arrow,
.room:focus-visible .room-arrow { color: var(--accent); transform: translate(3px, -3px); }

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .25em;
}
footer span:nth-child(2) { justify-self: center; }
footer span:last-child { justify-self: end; }

/* 4K legibility pass: retain the editorial proportions without micro-text. */
.monogram { font-size: 20px; }
.mast-meta, .theme-label { font-size: 11px; }
.theme-glyph { font-size: 20px; }
.kicker { font-size: 11px; }
h1 { font-size: clamp(112px, 10.8vw, 172px); }
.motto { font-size: clamp(27px, 2.35vw, 38px); }
.intro-copy { font-size: 16px; }
#seoul-time { font-size: 26px; }
#seoul-date, .rooms-head { font-size: 11px; }
.room { min-height: 150px; }
.room-number { font-size: 48px; }
.room-body strong { font-size: clamp(34px, 2.7vw, 44px); }
.room-body small { font-size: 15px; line-height: 1.55; }
.room-body em { font-size: 11px; }
.room-arrow { font-size: 25px; }
footer { font-size: 10px; }

@media (max-width: 900px) {
  .page-shell { align-content: start; padding: 22px 24px 20px; }
  main { grid-template-columns: 1fr; gap: 72px; align-items: start; padding: 76px 0 72px; }
  .intro { max-width: 620px; }
  h1 { font-size: clamp(100px, 22vw, 142px); }
  .motto { font-size: 30px; }
  .rooms { display: block; width: 100%; }
}

@media (max-width: 560px) {
  .page-shell { padding: 16px 18px 18px; }
  .masthead { grid-template-columns: 1fr auto; }
  .mast-meta { display: none; }
  main { gap: 58px; padding: 62px 0 58px; }
  .kicker { margin-bottom: 23px; font-size: 8px; letter-spacing: .2em; }
  h1 { margin-bottom: 24px; font-size: clamp(86px, 27vw, 116px); }
  .motto { font-size: 25px; line-height: 1.42; }
  .intro-copy { max-width: 315px; font-size: 13px; line-height: 1.75; }
  .clock-block { margin-top: 42px; }
  #seoul-time { font-size: 19px; }
  #seoul-date { font-size: 8px; }
  .rooms-head { padding-bottom: 18px; }
  .room { grid-template-columns: 54px minmax(0, 1fr) 24px; gap: 11px; min-height: 112px; padding: 18px 2px; }
  .room:hover,.room:focus-visible { padding-right: 7px; padding-left: 7px; }
  .room-number { font-size: 34px; }
  .room-body strong { font-size: 29px; }
  .room-body small { font-size: 12px; }
  footer { grid-template-columns: 1fr auto; font-size: 7px; }
  footer span:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
