:root {
  color-scheme: light;
  --bg: #fff8ed;
  --paper: #fffdf7;
  --ink: #362319;
  --muted: #725f52;
  --line: #ead8c4;
  --gold: #d59b2f;
  --orange: #d86f2d;
  --teal: #2f6f73;
  --teal-dark: #194b4f;
  --shadow: 0 18px 45px rgba(88, 55, 28, 0.12);
  font-family: ui-rounded, "SF Pro Rounded", "Pretendard Variable", Pretendard, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(216, 111, 45, 0.14), transparent 30rem),
    linear-gradient(180deg, #fff7e8 0%, #fffaf0 42%, #fffdf8 100%);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--orange);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(234, 216, 196, 0.75);
  background: rgba(255, 248, 237, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(216, 111, 45, 0.38);
  border-radius: 50%;
  background: #ffe5b5;
  color: #7c401d;
}

.brand-mark::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: currentColor;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a[aria-current="page"],
.nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(42rem, calc(100vh - 4rem));
  padding: clamp(4rem, 10vw, 7rem) clamp(1rem, 5vw, 5rem) clamp(3rem, 8vw, 5rem);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10rem -12rem auto;
  width: min(58vw, 39rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(47, 111, 115, 0.09);
}

.hero-art {
  position: absolute;
  right: max(1rem, 8vw);
  bottom: -1.2rem;
  width: clamp(17rem, 38vw, 33rem);
  max-width: 55%;
  filter: drop-shadow(0 2.25rem 2.5rem rgba(83, 47, 22, 0.2));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(42rem, 100%);
}

.hero h1,
.doc-hero h1 {
  margin: 0;
  color: #2f1c13;
  font-size: clamp(2.8rem, 9vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero p {
  margin: 1.35rem 0 0;
  max-width: 35rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.78rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
}

.button.primary {
  background: var(--teal-dark);
  color: #fffaf1;
}

.button.secondary {
  border-color: rgba(47, 111, 115, 0.32);
  background: rgba(255, 253, 247, 0.72);
  color: var(--teal-dark);
}

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

.section {
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 5vw, 5rem);
}

.section-inner,
.doc-shell {
  width: min(68rem, 100%);
  margin: 0 auto;
}

.section h2,
.doc-content h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 4vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(17rem, 0.95fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.86);
  box-shadow: var(--shadow);
}

.link-list {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.link-row + .link-row {
  border-top: 1px solid var(--line);
}

.link-row span {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.detail-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  padding-left: 1.1rem;
  border-left: 3px solid rgba(216, 111, 45, 0.58);
  color: var(--muted);
}

.doc-hero {
  padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 5vw, 5rem) clamp(2rem, 5vw, 3rem);
}

.doc-hero h1 {
  font-size: clamp(2.35rem, 7vw, 4.8rem);
}

.doc-hero p {
  max-width: 48rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
}

.doc-content {
  padding: 0 clamp(1rem, 5vw, 5rem) clamp(4rem, 8vw, 6rem);
}

.doc-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16rem;
  gap: clamp(1.75rem, 5vw, 4rem);
}

.doc-main {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.doc-main h2 {
  margin-top: 2.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}

.doc-main h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.doc-main h3 {
  margin: 1.5rem 0 0.4rem;
  font-size: 1.15rem;
}

.doc-main p,
.doc-main li {
  color: var(--muted);
}

.doc-main ol,
.doc-main ul {
  padding-left: 1.35rem;
}

.aside {
  position: sticky;
  top: 5.25rem;
  padding: 1rem;
}

.aside h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.aside p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.notice {
  margin-top: 1.4rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(216, 111, 45, 0.34);
  border-radius: 8px;
  background: rgba(255, 236, 204, 0.68);
  color: #6d3c1b;
  font-weight: 700;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1rem;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 0;
    padding-bottom: 16rem;
  }

  .hero-art {
    right: 50%;
    bottom: -2rem;
    width: 18rem;
    max-width: none;
    transform: translateX(50%);
  }

  .split,
  .doc-shell {
    grid-template-columns: 1fr;
  }

  .aside {
    position: static;
    order: -1;
  }
}

@media (max-width: 460px) {
  .hero h1,
  .doc-hero h1 {
    font-size: clamp(2.25rem, 16vw, 3.9rem);
  }

  .actions,
  .button,
  .link-row {
    width: 100%;
  }

  .link-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
