@font-face {
  font-family: "Unbounded";
  src: url("/assets/fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Only the glyphs of "13월", for the wordmark. */
@font-face {
  font-family: "Gowun Dodum 13";
  src: url("/assets/fonts/gowun-dodum-13.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0031, U+0033, U+C6D4;
}

:root {
  color-scheme: dark;
  --night: #070a1f;
  --text: #f4f5fa;
  --muted: #b8bcd6;
  --faint: #8187ad;
  --violet: #a35cff;
  --pink: #ff7ac6;
  --peach: #ffc08a;
  --line: rgba(244, 245, 250, 0.1);
  --card: rgba(255, 255, 255, 0.035);
  --dusk-text: linear-gradient(90deg, #c9a2ff, var(--pink) 50%, var(--peach));
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --display: "Unbounded", var(--sans);
  --gutter: clamp(16px, 5vw, 48px);
  --max: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

:lang(ko) {
  word-break: keep-all;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}

p {
  margin: 0 0 1em;
  color: var(--muted);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 16px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--night);
  text-decoration: none;
}

.skip:focus {
  left: 16px;
}

/* Header */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 20px var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
}

.wordmark {
  font-family: "Unbounded", var(--sans);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
}

.kr13 {
  font-family: "Gowun Dodum 13", var(--sans);
  letter-spacing: 0.04em;
  text-transform: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav .lang {
  margin-left: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  color: var(--text);
}

@media (max-width: 640px) {
  .site-header .nav a:not(.lang) {
    display: none;
  }
}

/* Hero: the mark, at the size of the sky */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: clamp(640px, 100svh, 980px);
  padding-top: 120px;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: auto;
  padding: 0 var(--gutter);
  text-align: center;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1 {
  max-width: 17em;
  margin: 0 auto;
  font-family: var(--display);
  font-size: clamp(30px, 5.2vw, 62px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.dusk {
  background: var(--dusk-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.lede {
  max-width: 36em;
  margin: 24px auto 0;
  font-size: clamp(16px, 2vw, 19px);
}

.stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.stars i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.55;
  animation: twinkle 4s ease-in-out infinite alternate;
}

.stars i:nth-child(1) { left: 8%; top: 18%; }
.stars i:nth-child(2) { left: 15%; top: 44%; opacity: 0.35; animation-delay: -1s; }
.stars i:nth-child(3) { left: 24%; top: 11%; width: 3px; height: 3px; animation-delay: -2.2s; }
.stars i:nth-child(4) { left: 34%; top: 31%; opacity: 0.3; animation-delay: -0.6s; }
.stars i:nth-child(5) { left: 45%; top: 8%; animation-delay: -3.1s; }
.stars i:nth-child(6) { left: 57%; top: 20%; opacity: 0.4; animation-delay: -1.7s; }
.stars i:nth-child(7) { left: 65%; top: 9%; width: 3px; height: 3px; animation-delay: -2.6s; }
.stars i:nth-child(8) { left: 74%; top: 40%; opacity: 0.35; animation-delay: -0.3s; }
.stars i:nth-child(9) { left: 87%; top: 13%; animation-delay: -1.2s; }
.stars i:nth-child(10) { left: 93%; top: 33%; opacity: 0.4; animation-delay: -2.9s; }
.stars i:nth-child(11) { left: 5%; top: 58%; opacity: 0.3; animation-delay: -3.6s; }
.stars i:nth-child(12) { left: 95%; top: 55%; opacity: 0.3; animation-delay: -2s; }

.stars b {
  position: absolute;
  right: 17%;
  top: 23%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 10px 3px rgba(255, 255, 255, 0.5),
    0 0 32px 8px rgba(163, 92, 255, 0.35);
}

.horizon {
  --sun: min(560px, 74vw);
  position: relative;
  z-index: 1;
  margin-top: clamp(40px, 7vh, 88px);
  padding-bottom: clamp(48px, 8vh, 96px);
}

.horizon .glow {
  position: absolute;
  left: 50%;
  top: calc(var(--sun) / 2);
  z-index: -1;
  width: calc(var(--sun) * 2.4);
  height: calc(var(--sun) * 1.3);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 122, 198, 0.3), rgba(163, 92, 255, 0.15) 50%, transparent);
  /* Fade out below the water so the hero's bottom edge never shows. */
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 78%);
  mask-image: linear-gradient(to bottom, #000 50%, transparent 78%);
  pointer-events: none;
  animation: fade-in 3.2s ease-out both;
}

.sun-wrap {
  position: relative;
  width: var(--sun);
  height: calc(var(--sun) / 2);
  margin: 0 auto;
  overflow: hidden;
}

.sun {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(to bottom, var(--violet) 0%, var(--pink) 26%, var(--peach) 50%);
  animation: rise 2.8s cubic-bezier(0.16, 0.8, 0.24, 1) both;
}

.line {
  width: min(1180px, calc(100% - 2 * var(--gutter)));
  height: 2px;
  margin: -1px auto 0;
  background: linear-gradient(90deg, transparent, rgba(244, 245, 250, 0.9) 22%, rgba(244, 245, 250, 0.9) 78%, transparent);
}

.ripples {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--sun) * 0.055);
  margin-top: calc(var(--sun) * 0.075);
  animation: fade-in 2s ease-out 1s both;
}

.ripples span {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--pink);
  animation: shimmer 6s ease-in-out infinite;
}

.ripples span:nth-child(1) { width: calc(var(--sun) * 0.83); opacity: 0.7; }
.ripples span:nth-child(2) { width: calc(var(--sun) * 0.5); opacity: 0.45; animation-duration: 7.5s; }
.ripples span:nth-child(3) { width: calc(var(--sun) * 0.21); opacity: 0.25; animation-duration: 9s; }

@keyframes rise {
  from { transform: translateY(42%); }
  to { transform: none; }
}

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes shimmer {
  50% { transform: scaleX(0.9); }
}

@keyframes twinkle {
  to { opacity: 0.15; }
}

/* Sections */

.section {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(72px, 11vw, 140px) var(--gutter) 0;
}

.kicker {
  margin: 0 0 14px;
  color: var(--pink);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 28px;
  font-family: var(--display);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 400;
  line-height: 1.3;
  text-wrap: balance;
}

h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}

:lang(ko) h1,
:lang(ko) h2 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.025em;
}

:lang(ko) h1 {
  font-size: clamp(34px, 6.2vw, 72px);
}

.about {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.about-text p {
  font-size: 18px;
}

.mark-card {
  margin: 0;
  padding: 40px 32px 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(163, 92, 255, 0.16), transparent 60%),
    var(--card);
  text-align: center;
}

.mark-card img {
  width: min(220px, 60%);
  height: auto;
  margin: 0 auto 20px;
}

.mark-card p {
  margin: 0;
  font-size: 15px;
}

@media (max-width: 820px) {
  .about {
    grid-template-columns: 1fr;
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}

.card p {
  margin: 0;
  font-size: 16px;
}

.num {
  display: block;
  width: fit-content;
  margin-bottom: 28px;
  background: var(--dusk-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.1em;
}

.section-head {
  max-width: 40em;
}

/* The thirteenth month */

.months {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 8px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.months li {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 3 / 4;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--faint);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.months li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(244, 245, 250, 0.22);
}

.months .ours {
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  border-color: transparent;
  background: linear-gradient(to bottom, var(--violet), var(--pink) 55%, var(--peach));
  box-shadow: 0 0 48px rgba(255, 122, 198, 0.35);
  color: var(--night);
  font-weight: 600;
}

.months .ours::before {
  display: none;
}

.months .ours strong {
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

@media (max-width: 900px) {
  .months {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .months li {
    aspect-ratio: auto;
    min-height: 64px;
  }

  .months .ours {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    padding: 16px 20px;
  }
}

@media (max-width: 520px) {
  .months {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Moments */

.moments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.moment {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}

.sky {
  position: relative;
  height: 148px;
}

.sky::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(244, 245, 250, 0.8) 20%, rgba(244, 245, 250, 0.8) 80%, transparent);
}

.sky-dawn {
  background:
    radial-gradient(ellipse 40% 34% at 50% 80%, rgba(255, 192, 138, 0.9), transparent),
    linear-gradient(to bottom, #241a7a, var(--violet) 50%, var(--pink) 80%, #3a2470 80%, #1b1550);
}

.sky-night {
  background:
    radial-gradient(circle at 72% 30%, #fff 0 2px, rgba(255, 255, 255, 0.35) 3px, transparent 7px),
    radial-gradient(circle at 24% 46%, rgba(255, 255, 255, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 42% 20%, rgba(255, 255, 255, 0.6) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 56%, rgba(255, 255, 255, 0.5) 0 1px, transparent 2px),
    linear-gradient(to bottom, #070a1f, #1b1550 80%, #0b0f2a 80%);
}

.sky-glow {
  background:
    radial-gradient(ellipse 30% 40% at 50% 80%, rgba(255, 255, 255, 0.55), transparent),
    linear-gradient(to bottom, #c9a2ff, #ff9eb5 50%, var(--peach) 80%, #7a4a8a 80%, #3a2470);
}

.moment-body {
  padding: 24px 28px 28px;
}

.moment-body p {
  margin: 0;
  font-size: 16px;
}

/* Closing */

.closing {
  max-width: var(--max);
  margin: clamp(112px, 16vw, 180px) auto 0;
  padding: 0 var(--gutter);
  text-align: center;
}

.closing-sun {
  position: relative;
  width: 120px;
  height: 60px;
  margin: 0 auto 40px;
}

.closing-sun span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 60px 60px 0 0;
  background: linear-gradient(to bottom, var(--violet), var(--pink) 55%, var(--peach));
  box-shadow: 0 0 60px rgba(255, 122, 198, 0.35);
}

.closing-sun::after {
  content: "";
  position: absolute;
  left: -80px;
  right: -80px;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(244, 245, 250, 0.85) 25%, rgba(244, 245, 250, 0.85) 75%, transparent);
}

.closing h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4.4vw, 52px);
}

.closing p {
  margin: 0;
  font-size: 18px;
}

/* Footer */

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin: clamp(96px, 14vw, 160px) auto 0;
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 44px;
  height: 44px;
}

.footer-name {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-name .kr13 {
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
}

.copy {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--faint);
  font-size: 14px;
}

@media (max-width: 520px) {
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer .nav {
    margin-left: -12px;
  }
}

/* 404 */

.lost {
  justify-content: center;
}

.lost .hero-copy {
  margin: auto;
}

.lost .home {
  display: inline-block;
  margin-top: 32px;
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}

.lost .home + .home {
  margin-left: 8px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
