:root {
  --bg: #f7f3ec;
  --bg-2: #efe6da;
  --ink: #1e1a17;
  --muted: #5f5a55;
  --hero-copy: #342f2b;
  --card-copy: #3f3935;
  --brand: #0a8a65;
  --brand-deep: #06644a;
  --card: #fffefb;
  --surface: #fffef7c7;
  --surface-solid: #fffef8;
  --ghost-bg: #ffffff88;
  --ghost-line: #8a8379;
  --line: #d8cec1;
  --glow-a: #f2c26a55;
  --glow-b: #4cb28f44;
  --shape-a: #f5be58;
  --shape-b: #2ca885;
  --shadow: 0 14px 32px rgba(20, 16, 11, 0.14);
}

:root[data-theme="dark"] {
  --bg: #0c1519;
  --bg-2: #132129;
  --ink: #e7eff1;
  --muted: #9db2b8;
  --hero-copy: #ccdbdf;
  --card-copy: #bfd0d5;
  --brand: #1daf88;
  --brand-deep: #58d5b0;
  --card: #18252b;
  --surface: #162228d4;
  --surface-solid: #18252b;
  --ghost-bg: #1c2e35;
  --ghost-line: #47606a;
  --line: #2f4249;
  --glow-a: #3f70884d;
  --glow-b: #1c85764a;
  --shape-a: #3f6a7d;
  --shape-b: #1f6f5d;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "IBM Plex Sans KR", "Noto Sans KR", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 14%, var(--glow-a) 0, transparent 42%),
    radial-gradient(circle at 82% 4%, var(--glow-b) 0, transparent 40%),
    linear-gradient(155deg, var(--bg), var(--bg-2));
  min-height: 100vh;
  line-height: 1.65;
  transition: background 0.3s ease, color 0.3s ease;
}

.bg-shape {
  position: fixed;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(65px);
  opacity: 0.28;
  z-index: -1;
}

.bg-shape-1 {
  background: var(--shape-a);
  top: -14vw;
  left: -10vw;
}

.bg-shape-2 {
  background: var(--shape-b);
  right: -14vw;
  bottom: -16vw;
}

.site-header {
  width: min(1120px, 92%);
  margin: 24px auto 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 12px;
  z-index: 20;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.03em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

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

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-solid);
  color: var(--ink);
  padding: 8px 10px;
  font: inherit;
  font-weight: 500;
}

.theme-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-solid);
  color: var(--ink);
  padding: 8px 12px;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  min-width: 74px;
}

.theme-toggle:hover {
  border-color: var(--brand);
}

.theme-toggle:focus-visible,
.menu-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

main {
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 20px 0 54px;
}

.hero {
  padding: 70px 0 40px;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 6vw, 4.1rem);
  line-height: 1.06;
}

.accent {
  color: var(--brand-deep);
}

.hero-copy {
  margin-top: 22px;
  max-width: 64ch;
  font-size: 1.05rem;
  color: var(--hero-copy);
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 20px rgba(10, 138, 101, 0.25);
}

.btn-primary:hover {
  background: var(--brand-deep);
}

.btn-ghost {
  border-color: var(--ghost-line);
  color: var(--ink);
  background: var(--ghost-bg);
}

.panel {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
}

.about-list {
  padding-left: 18px;
  margin: 12px 0 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 18px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

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

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: var(--surface-solid);
}

.card h3 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
}

.card p {
  margin: 0 0 11px;
  color: var(--card-copy);
}

.card a {
  text-decoration: none;
  color: var(--brand-deep);
  font-weight: 600;
}

.card a:hover {
  text-decoration: underline;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 10px;
}

.contact-links a {
  color: var(--brand-deep);
  text-decoration: none;
}

.contact-links a:hover {
  text-decoration: underline;
}

.site-footer {
  width: min(1120px, 92%);
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-header,
.panel,
.card,
.menu-btn,
.theme-toggle,
.btn-ghost,
.nav a {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.52s ease, transform 0.52s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 760px) {
  .site-header {
    margin-top: 12px;
  }

  .menu-btn {
    display: inline-flex;
    cursor: pointer;
  }

  .nav {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 8px);
    background: var(--surface-solid);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav.open {
    display: flex;
  }

  .hero {
    padding-top: 44px;
  }

  .panel {
    padding: 20px;
  }

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