:root {
  color-scheme: light;
  --green: #365b48;
  --green-dark: #244332;
  --ink: #26392e;
  --muted: #66736b;
  --line: #dfe5dd;
  --cream: #f7f8f5;
  --white: #ffffff;
  --lime: #e0eecf;
  --pale: #f0f4ea;
  --orange: #dd9063;
  --pink: #fbe9e4;
  --shadow: 0 18px 50px rgba(36, 67, 50, 0.1);
  --radius-lg: 32px;
  --radius-md: 22px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--cream);
  color: var(--ink);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  line-height: 1.65;
  word-break: keep-all;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 8%, rgba(224, 238, 207, 0.8), transparent 28rem),
    radial-gradient(circle at 92% 30%, rgba(251, 233, 228, 0.78), transparent 26rem),
    var(--cream);
}

a {
  color: inherit;
}

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

.invite-card {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.invite-code {
  display: block;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--green-dark);
  overflow-wrap: anywhere;
  user-select: all;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(54, 91, 72, 0.1);
  background: rgba(247, 248, 245, 0.92);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  width: min(calc(100% - 40px), var(--max));
  min-height: 76px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--green-dark);
  font-size: 20px;
  font-weight: 850;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

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

.nav-links a {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 13px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--pale);
  color: var(--green-dark);
}

.nav-links a.language-link {
  border-left: 1px solid var(--line);
  border-radius: 0;
  padding-inline: 9px;
}

main {
  overflow: hidden;
}

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: 660px;
  padding-block: 72px 84px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(29px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 680px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid var(--green);
  border-radius: 15px;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(36, 67, 50, 0.14);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(36, 67, 50, 0.19);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--green);
  box-shadow: none;
}

.hero-art {
  position: relative;
  padding: 20px;
}

.hero-art::before {
  position: absolute;
  inset: 8% 4%;
  border-radius: 45% 55% 42% 58%;
  background: linear-gradient(145deg, var(--lime), #f3e5c8);
  content: "";
  transform: rotate(-4deg);
}

.hero-art img {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 24px 28px rgba(36, 67, 50, 0.13));
}

.section {
  padding-block: 88px;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 34px;
}

.section-heading p,
.card p,
.prose p,
.prose li {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  border: 1px solid rgba(54, 91, 72, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  padding: 26px;
  box-shadow: 0 12px 34px rgba(36, 67, 50, 0.06);
}

.card p:last-child,
.notice p:last-child,
.prose p:last-child {
  margin-bottom: 0;
}

.icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 15px;
  background: var(--pale);
  color: var(--green-dark);
  font-size: 23px;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(30px, 6vw, 80px);
  padding: clamp(30px, 6vw, 64px);
  border-radius: var(--radius-lg);
  background: var(--green-dark);
  color: var(--white);
  box-shadow: var(--shadow);
}

.feature-band .eyebrow {
  background: rgba(224, 238, 207, 0.16);
  color: var(--lime);
}

.feature-band p {
  color: rgba(255, 255, 255, 0.72);
}

.feature-band img {
  max-height: 390px;
  margin-inline: auto;
  object-fit: contain;
}

.page-hero {
  padding-block: 78px 44px;
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(38px, 5vw, 62px);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 28px;
  padding-bottom: 90px;
}

.prose {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  padding: clamp(26px, 5vw, 54px);
  box-shadow: var(--shadow);
}

.prose section + section {
  margin-top: 48px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.steps {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  position: relative;
  min-height: 50px;
  padding: 2px 0 22px 58px;
  counter-increment: steps;
}

.steps li::before {
  position: absolute;
  top: -4px;
  left: 0;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--pale);
  color: var(--green-dark);
  content: counter(steps);
  font-weight: 850;
}

.plain-list {
  padding-left: 1.25rem;
}

.plain-list li + li {
  margin-top: 8px;
}

.notice {
  margin: 24px 0;
  padding: 20px 22px;
  border-left: 5px solid var(--orange);
  border-radius: 4px 16px 16px 4px;
  background: #fff8f2;
}

.notice strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.side-card {
  position: sticky;
  top: 100px;
}

.side-card img {
  width: 150px;
  height: auto;
  margin: -10px auto 12px;
}

.side-card .button {
  width: 100%;
  margin-top: 10px;
}

.faq {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  position: relative;
  padding: 21px 42px 21px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  position: absolute;
  top: 21px;
  right: 4px;
  color: var(--green);
  content: "+";
  font-size: 24px;
  line-height: 1;
}

details[open] summary::after {
  content: "−";
}

details p {
  padding: 0 34px 20px 0;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 26px;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--pale);
}

.contact-band p {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding-block: 34px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner p {
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 12px 18px;
}

.footer-links a:hover {
  color: var(--green-dark);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 820px) {
  .hero,
  .feature-band,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-block: 56px 64px;
  }

  .hero-art {
    order: -1;
    width: min(100%, 520px);
    margin-inline: auto;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .side-card {
    position: static;
  }
}

@media (max-width: 620px) {
  .nav {
    width: min(calc(100% - 28px), var(--max));
    min-height: 68px;
  }

  .brand span {
    display: none;
  }

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

  .nav-links {
    gap: 0;
  }

  .nav-links a {
    padding-inline: 10px;
    font-size: 13px;
  }

  .shell {
    width: min(calc(100% - 28px), var(--max));
  }

  h1 {
    font-size: 40px;
  }

  .hero-art {
    padding: 4px;
  }

  .section {
    padding-block: 64px;
  }

  .page-hero {
    padding-block: 54px 30px;
  }

  .prose,
  .feature-band {
    border-radius: 24px;
  }

  .contact-band {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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