:root {
  color-scheme: dark;
  --ink: #f5f1e8;
  --muted: #a8ad9f;
  --line: rgba(232, 239, 227, 0.13);
  --green-950: #031008;
  --green-900: #06170d;
  --green-800: #0b2817;
  --green-700: #16472b;
  --lime: #d9f48e;
  --mint: #70e0a7;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--green-950);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(71, 137, 89, 0.28), transparent 38%),
    linear-gradient(145deg, #020905 0%, #07150d 54%, #030b07 100%);
  color: var(--ink);
  font-family: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0;
}

.screen {
  position: relative;
  width: min(100%, 430px);
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 18%, rgba(60, 125, 78, 0.18), transparent 33%),
    linear-gradient(180deg, #06140c 0%, #030a06 100%);
  isolation: isolate;
}

.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  pointer-events: none;
}

.view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.content-view {
  transform: translateX(0);
  opacity: 1;
}

.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) 20px 12px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0.13em;
}

.wordmark-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 241, 232, 0.42);
  border-radius: 50%;
  font-size: 17px;
  font-style: italic;
  letter-spacing: 0;
}

.icon-button svg {
  width: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.content-topbar {
  position: relative;
  z-index: 5;
  background: rgba(3, 12, 7, 0.82);
  backdrop-filter: blur(18px);
}

.content-topbar > span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.icon-button:hover { border-color: var(--line); background: rgba(255,255,255,.04); }

.content-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.16) transparent;
}

.hero-card {
  position: relative;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  background: #082314;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(transparent, rgba(1, 8, 4, 0.82));
  pointer-events: none;
}

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

.hero-card figcaption {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.hero-card figcaption span {
  color: rgba(245,241,232,.62);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .16em;
}

.hero-card figcaption strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
}

.brand-intro {
  padding: 34px 24px 30px;
}

.script-line {
  margin: 0 0 10px;
  color: #b0d88a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-style: italic;
}

.brand-intro h2,
.story-card h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif KR", serif;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.brand-intro h2 {
  font-size: 30px;
  line-height: 1.28;
}

.brand-intro > p:last-child,
.story-card p {
  color: #aab0a7;
  font-size: 13px;
  line-height: 1.85;
  word-break: keep-all;
}

.brand-intro > p:last-child { margin: 18px 0 0; }

.hairline {
  height: 1px;
  margin: 0 24px;
  background: var(--line);
}

.content-links {
  padding: 12px 24px 24px;
}

.content-links > a {
  min-height: 82px;
  display: grid;
  grid-template-columns: 30px 1fr 34px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.content-links > a:hover .link-copy strong { color: var(--lime); }

.link-index {
  color: #536258;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
}

.link-copy small,
.link-copy strong {
  display: block;
}

.link-copy small {
  margin-bottom: 6px;
  color: #67736a;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .15em;
}

.link-copy strong {
  font-size: 14px;
  transition: color 180ms ease;
}

.link-arrow {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #99a39b;
}

.link-arrow.play {
  padding-left: 2px;
  font-size: 9px;
}

.story-card {
  margin: 4px 20px 24px;
  padding: 26px 22px;
  border: 1px solid rgba(216, 244, 142, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(201, 234, 130, 0.12), transparent 42%),
    #0b2013;
}

.story-card > span {
  display: block;
  margin-bottom: 13px;
  color: #839a76;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .17em;
}

.story-card h2 {
  font-size: 21px;
  line-height: 1.4;
}

.story-card p { margin: 14px 0 19px; }

.story-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px calc(30px + env(safe-area-inset-bottom));
  color: #4d5950;
}

footer strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  letter-spacing: .11em;
}

footer span { font-size: 9px; }

.toast {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  margin: 0;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 27, 16, 0.94);
  color: var(--ink);
  font-size: 11px;
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

@media (min-width: 640px) {
  .shell { padding: 28px; }
  .screen {
    height: min(860px, calc(100vh - 56px));
    min-height: 620px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 28px;
    box-shadow: 0 30px 100px rgba(0,0,0,.5);
  }
}

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