:root {
  --primary: #002618;
  --primary-deep: #001810;
  --primary-light: #006039;
  --accent: #c8a951;
  --accent-light: #e0cc8a;
  --bg: #f5f1eb;
  --text: #1a2e22;
  --text-light: #8a9b90;
  --border: #ddd8d0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 50% at 25% 15%, rgba(200, 169, 81, 0.08), transparent 60%),
    radial-gradient(ellipse 70% 60% at 80% 95%, rgba(0, 96, 57, 0.06), transparent 60%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Soft paper grain — fixed overlay, very subtle */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.18 0 0 0 0 0.13 0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  z-index: 0;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  position: relative;
  z-index: 1;
}

.wordmark {
  font-family: 'Playfair Display', 'Didot', 'Times New Roman', serif;
  font-style: normal;
  font-weight: 700;
  font-size: clamp(64px, 11vw, 116px);
  letter-spacing: 0.02em;
  color: var(--primary);
  line-height: 1;
  margin: 0;
  animation: rise 1100ms cubic-bezier(0.2, 0.8, 0.2, 1) 240ms both;
}

.wordmark-text {
  display: inline-block;
}

.rule {
  display: block;
  width: 0;
  height: 1px;
  background: var(--accent);
  margin: 32px 0 60px;
  animation: draw 900ms cubic-bezier(0.4, 0, 0.2, 1) 980ms both;
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 18px 60px;
  background: var(--primary);
  color: var(--bg);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.22em;
  border-radius: 2px;
  overflow: visible;
  isolation: isolate;
  animation: rise 800ms cubic-bezier(0.2, 0.8, 0.2, 1) 1500ms both;
  transition:
    background-color 260ms ease,
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 260ms ease;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent 50%, rgba(200, 169, 81, 0.18) 100%);
  opacity: 0;
  transition: opacity 280ms ease;
  z-index: -1;
}

.cta::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 360ms cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-text {
  position: relative;
  z-index: 1;
  /* Optical compensation for letter-spacing */
  margin-right: -0.22em;
}

.cta:hover,
.cta:focus-visible {
  background: var(--primary-deep);
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 38, 24, 0.16);
}

.cta:hover::before,
.cta:focus-visible::before {
  opacity: 1;
}

.cta:hover::after,
.cta:focus-visible::after {
  transform: scaleX(1);
}

.cta:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0, 38, 24, 0.14);
}

.footer {
  text-align: center;
  padding: 28px 24px 36px;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  animation: fade 900ms ease 1900ms both;
}

.footer a {
  color: var(--text-light);
  text-decoration: none;
  margin-left: 8px;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, color 200ms ease;
}

.footer a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

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

@keyframes draw {
  from {
    width: 0;
  }
  to {
    width: 80px;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark,
  .rule,
  .cta,
  .footer {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .rule {
    width: 80px;
  }
}
