:root {
  color-scheme: dark;
  --night: #081514;
  --night-soft: #102422;
  --forest: #315f38;
  --moon: #fff2c5;
  --cream: #fffaf0;
  --mist: #b9cbc2;
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--night); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 12% 19%, rgb(255 242 197 / 65%) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 12%, rgb(255 255 255 / 44%) 0 1px, transparent 1.5px),
    radial-gradient(circle at 86% 66%, rgb(255 242 197 / 40%) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 82%, rgb(255 255 255 / 42%) 0 1px, transparent 1.5px),
    linear-gradient(160deg, var(--night) 0%, var(--night-soft) 55%, #173029 100%);
  background-size: 17rem 19rem, 23rem 17rem, 29rem 31rem, 37rem 27rem, auto;
}

.shell {
  width: min(100%, 72rem);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(1.2rem, 4vw, 3rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--cream);
  font-size: .86rem;
  letter-spacing: .18em;
  text-decoration: none;
}

.brand img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(.75) brightness(1.1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 28rem);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  padding: 4rem 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: #b9d5c3;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif KR", serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.06em;
  text-wrap: balance;
}

.intro {
  max-width: 32rem;
  margin: 1.7rem 0 0;
  color: var(--mist);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.75;
  word-break: keep-all;
}

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.primary,
.secondary {
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}

.primary { color: #11271c; background: var(--moon); }
.secondary { color: var(--cream); border-color: rgb(255 250 240 / 25%); background: rgb(255 255 255 / 5%); }
.primary:hover, .secondary:hover { transform: translateY(-2px); }
.primary:focus-visible, .secondary:focus-visible, footer a:focus-visible { outline: 3px solid #f3ce67; outline-offset: 3px; }

.moon-stage {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.moon {
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 29%, rgb(164 132 74 / 14%) 0 7%, transparent 8%),
    radial-gradient(circle at 63% 66%, rgb(138 109 62 / 12%) 0 11%, transparent 12%),
    radial-gradient(circle at 72% 32%, rgb(138 109 62 / 10%) 0 5%, transparent 6%),
    var(--moon);
  box-shadow: 0 0 3rem rgb(255 230 155 / 26%), 0 0 8rem rgb(255 230 155 / 12%);
}

.orbit { position: absolute; inset: 6%; border: 1px solid rgb(255 250 240 / 15%); border-radius: 50%; transform: rotate(-18deg); }
.orbit::before, .orbit::after { content: ""; position: absolute; width: .46rem; aspect-ratio: 1; border-radius: 50%; background: var(--moon); box-shadow: 0 0 1rem var(--moon); }
.orbit::before { top: 8%; left: 22%; }
.orbit::after { right: 4%; bottom: 30%; }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 10%);
  color: #8fa89d;
  font-size: .78rem;
}

footer nav { display: flex; gap: 1rem; }
footer a { color: inherit; text-underline-offset: .25em; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 3.5rem 0; }
  .moon-stage { width: min(78vw, 24rem); margin: 0 auto; grid-row: 1; }
  .hero-copy { grid-row: 2; }
  h1 { max-width: 8ch; }
  .actions { display: grid; }
}

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