:root {
  color-scheme: light;
  --color-bg: #f8f1e7;
  --color-bg-deep: #efe2cf;
  --color-paper: #fff8ef;
  --color-paper-strong: #fffcf7;
  --color-ink: #2f2118;
  --color-muted: #746454;
  --color-primary: #5b3a29;
  --color-primary-dark: #3f281d;
  --color-gold: #a77d2f;
  --color-gold-soft: #e7d5b5;
  --color-divider: #e3d4bd;
  --color-notice-bg: #fff3d7;
  --color-notice-border: #b27b16;
  --color-focus: #7a4c20;
  --color-bead-highlight: #9c735c;
  --color-bead-mid: #684432;
  --color-bead-deep: #3f281d;
  --color-thread-start: #d4b36b;
  --color-thread-end: #8f6725;
  --color-bead-sheen: #dcc8b4;
  --surface-paper-glow: rgba(255, 252, 247, 0.96);
  --surface-paper-clear: rgba(255, 252, 247, 0);
  --surface-gold-glow: rgba(231, 213, 181, 0.46);
  --surface-gold-clear: rgba(231, 213, 181, 0);
  --surface-header: rgba(248, 241, 231, 0.9);
  --surface-active: rgba(231, 213, 181, 0.56);
  --surface-hero-start: rgba(255, 252, 247, 0.98);
  --surface-hero-end: rgba(255, 248, 239, 0.84);
  --surface-footer: rgba(255, 248, 239, 0.64);
  --line-gold-faint: rgba(167, 125, 47, 0.16);
  --line-gold-soft: rgba(167, 125, 47, 0.2);
  --line-gold-medium: rgba(167, 125, 47, 0.28);
  --shadow-paper: 0 12px 40px rgba(91, 58, 41, 0.09);
  --shadow-card: 0 8px 24px rgba(91, 58, 41, 0.08);
  --shadow-bead: 0 20px 24px rgba(91, 58, 41, 0.14);
  --radius-small: 12px;
  --radius-medium: 16px;
  --radius-large: 24px;
  --radius-xlarge: 32px;
  --site-width: 960px;
  --reading-width: 760px;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  color: var(--color-ink);
  background:
    radial-gradient(circle at 12% 4%, var(--surface-paper-glow) 0, var(--surface-paper-clear) 36%),
    radial-gradient(circle at 88% 16%, var(--surface-gold-glow) 0, var(--surface-gold-clear) 28%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-deep) 100%);
  font-size: 16px;
  line-height: 1.8;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--color-primary-dark);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 8px 16px;
  border-radius: var(--radius-small);
  color: var(--color-paper-strong);
  background: var(--color-primary-dark);
  transform: translateY(-160%);
}

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

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line-gold-soft);
  background: var(--surface-header);
}

.header-inner,
.site-main,
.footer-inner {
  width: min(100% - 40px, var(--site-width));
  margin-inline: auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  color: var(--color-ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.site-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  min-height: 44px;
  padding: 8px 12px;
  align-items: center;
  border-radius: var(--radius-small);
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-primary-dark);
  background: var(--surface-active);
}

.site-main {
  padding-block: 64px 80px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 352px;
  align-items: center;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 48px;
  overflow: hidden;
  padding: 48px;
  border: 1px solid var(--line-gold-medium);
  border-radius: var(--radius-xlarge);
  background:
    linear-gradient(135deg, var(--surface-hero-start), var(--surface-hero-end)),
    var(--color-paper);
  box-shadow: var(--shadow-paper);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -96px -144px auto;
  width: 320px;
  height: 320px;
  border: 1px solid var(--line-gold-faint);
  border-radius: 50%;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--color-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.document-header h1 {
  margin: 0;
  letter-spacing: -0.035em;
}

.hero h1 {
  max-width: 640px;
  font-size: clamp(32px, 5vw, 40px);
  line-height: 1.2;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy > p:last-child {
  max-width: 600px;
  margin: 20px 0 0;
  color: var(--color-muted);
  font-size: 18px;
  line-height: 1.7;
}

.mala-seal {
  position: relative;
  z-index: 1;
  width: min(100%, 240px);
  aspect-ratio: 1;
  margin-inline: auto;
  filter: drop-shadow(var(--shadow-bead));
}

.mala-stop-bead-highlight {
  stop-color: var(--color-bead-highlight);
}

.mala-stop-bead-mid {
  stop-color: var(--color-bead-mid);
}

.mala-stop-bead-deep {
  stop-color: var(--color-bead-deep);
}

.mala-stop-thread-start {
  stop-color: var(--color-thread-start);
}

.mala-stop-thread-end {
  stop-color: var(--color-thread-end);
}

.release-notice {
  display: grid;
  margin-top: 32px;
  padding: 24px;
  border: 2px solid var(--color-notice-border);
  border-radius: var(--radius-large);
  grid-template-columns: auto 1fr;
  gap: 16px;
  background: var(--color-notice-bg);
}

.notice-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 2px solid var(--color-notice-border);
  border-radius: 50%;
  color: var(--color-primary-dark);
  font-weight: 800;
  line-height: 1;
}

.release-notice h2 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.45;
}

.release-notice p {
  margin: 0;
  color: var(--color-primary-dark);
  font-size: 14px;
  line-height: 1.65;
}

.section-heading {
  margin: 48px 0 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.35;
}

.section-heading p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--color-muted);
}

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

.document-card {
  display: flex;
  min-height: 196px;
  padding: 28px;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-large);
  flex-direction: column;
  background: var(--color-paper);
  box-shadow: var(--shadow-card);
  transition: transform 150ms ease-out, border-color 150ms ease-out, background-color 150ms ease-out;
}

.document-card:hover {
  border-color: var(--color-gold);
  background: var(--color-paper-strong);
  transform: translateY(-2px);
}

.document-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

.document-card p {
  margin: 12px 0 24px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.65;
}

.document-card a {
  display: inline-flex;
  min-height: 44px;
  margin-top: auto;
  align-items: center;
  align-self: flex-start;
  font-weight: 700;
}

.document-shell {
  width: min(100%, var(--reading-width));
  margin-inline: auto;
}

.breadcrumb {
  margin: 0 0 24px;
  font-size: 14px;
}

.document-header,
.policy-document {
  border: 1px solid var(--color-divider);
  background: var(--color-paper);
  box-shadow: var(--shadow-paper);
}

.document-header {
  padding: 40px;
  border-radius: var(--radius-xlarge) var(--radius-xlarge) 0 0;
  border-bottom: 0;
}

.document-header h1 {
  font-size: 32px;
  line-height: 1.25;
}

.document-lede {
  margin: 16px 0 0;
  color: var(--color-muted);
  font-size: 16px;
}

.document-meta {
  display: grid;
  margin: 28px 0 0;
  padding: 20px;
  border: 1px solid var(--color-notice-border);
  border-radius: var(--radius-medium);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  background: var(--color-notice-bg);
}

.document-meta div {
  min-width: 0;
}

.document-meta dt {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.document-meta dd {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.placeholder {
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--color-primary-dark);
  background: var(--color-gold-soft);
  font-family: ui-monospace, "SFMono-Regular", "SF Mono", monospace;
  font-size: 0.9em;
  white-space: normal;
  overflow-wrap: anywhere;
}

.policy-document {
  padding: 8px 40px 48px;
  border-radius: 0 0 var(--radius-xlarge) var(--radius-xlarge);
}

.policy-section {
  padding-top: 32px;
  border-top: 1px solid var(--color-divider);
  margin-top: 32px;
}

.policy-section:first-child {
  margin-top: 0;
}

.policy-section h2 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.policy-section h3 {
  margin: 28px 0 12px;
  font-size: 18px;
  line-height: 1.45;
}

.policy-section p,
.policy-section li {
  color: var(--color-ink);
}

.policy-section p {
  margin: 0 0 16px;
}

.policy-section ul {
  margin: 0 0 16px;
  padding-left: 24px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-medium);
  background: var(--color-paper-strong);
}

.faq-list details[open] {
  border-color: var(--color-gold);
}

.faq-list summary {
  min-height: 56px;
  padding: 16px 52px 16px 20px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.no-break {
  white-space: nowrap;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  color: var(--color-gold);
  font-size: 24px;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 20px 20px;
  color: var(--color-muted);
}

.faq-answer p {
  margin: 0 0 16px;
}

.faq-answer p:last-child,
.faq-answer ul:last-child {
  margin-bottom: 0;
}

.contact-panel {
  margin-top: 32px;
  padding: 28px;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-large);
  background: linear-gradient(135deg, var(--color-paper-strong), var(--color-gold-soft));
}

.contact-panel h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.contact-panel p {
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--line-gold-medium);
  background: var(--surface-footer);
}

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

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

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

@media (max-width: 719px) {
  .site-header {
    position: static;
  }

  .header-inner {
    padding-block: 12px;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .site-nav ul {
    width: max-content;
  }

  .site-main {
    padding-block: 32px 56px;
  }

  .hero {
    min-height: 0;
    padding: 32px 24px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .mala-seal {
    width: 184px;
  }

  .hero-copy > p:last-child {
    font-size: 16px;
  }

  .release-notice {
    padding: 20px;
  }

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

  .document-card {
    min-height: 0;
    padding: 24px;
  }

  .document-header {
    padding: 28px 24px;
  }

  .document-header h1 {
    font-size: 28px;
  }

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

  .policy-document {
    padding: 4px 24px 36px;
  }

  .policy-section h2 {
    font-size: 22px;
  }

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

@media (min-width: 720px) {
  .site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(16px);
  }
}

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