/* molli site — calm, minimal, honey accent. No external fonts or scripts. */
:root {
  color-scheme: light dark;
  --bg: #fffaf0;
  --bg-soft: #fdf1d6;
  --card: #ffffff;
  --text: #2b2418;
  --muted: #6b5f4a;
  --line: #eadfc4;
  --honey: #f0a818;
  --honey-deep: #7a4e00;
  --link: #8a5600;
  --btn-bg: #1d1608;
  --btn-text: #fff7e3;
  --radius: 18px;
  --max: 720px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16120a;
    --bg-soft: #221b0d;
    --card: #1e1810;
    --text: #f4ecda;
    --muted: #b3a688;
    --line: #382e1a;
    --honey: #f5b73a;
    --honey-deep: #f5b73a;
    --link: #f5b73a;
    --btn-bg: #f5b73a;
    --btn-text: #1d1608;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
        "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", Helvetica, Arial, sans-serif;
  overflow-wrap: break-word;
}
html[lang="ko"] body { word-break: keep-all; line-height: 1.75; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 6px; }

/* header */
.site-header { padding: 14px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; display: block; }
.lang { font-size: 0.9rem; display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang a, .lang span { padding: 5px 13px; text-decoration: none; color: var(--muted); }
.lang span { background: var(--honey); color: #1d1608; font-weight: 600; }
.lang a:hover { background: var(--bg-soft); }

/* headings */
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: 2rem; }
h2 { font-size: 1.3rem; margin: 2.2rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1.4rem 0 0.3rem; }
p, ul, ol { margin: 0.6rem 0; }
ul, ol { padding-left: 1.3rem; }
li { margin: 0.3rem 0; }
.meta { color: var(--muted); font-size: 0.95rem; }

/* landing */
.hero { text-align: center; padding: 28px 0 8px; }
.hero h1 { font-size: clamp(2.2rem, 9vw, 3.4rem); }
.hero .sub { color: var(--muted); font-size: 1.12rem; margin: 0.9rem auto 0; max-width: 28em; }
.hero .sub strong { color: var(--text); }
.store {
  display: inline-block; margin-top: 1.5rem; padding: 12px 26px;
  background: var(--btn-bg); color: var(--btn-text); border-radius: 14px;
  text-decoration: none; font-weight: 600; line-height: 1.25; text-align: center;
}
.store small { display: block; font-size: 0.72rem; font-weight: 400; opacity: 0.85; }
.store span { font-size: 1.2rem; }
.store:hover { filter: brightness(1.12); }

.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 2rem 0 0; padding: 0; list-style: none; }
.keys li { margin: 0; text-align: center; background: var(--bg-soft); border-radius: var(--radius); padding: 8px 4px 10px; }
.keys img { width: 100%; height: auto; display: block; aspect-ratio: 1; }
.keys span { font-size: 0.9rem; color: var(--muted); }
.note { text-align: center; color: var(--muted); font-size: 0.95rem; margin-top: 0.9rem; }

.points { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 10px; }
.points li { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.points strong { display: block; }
.points span { color: var(--muted); font-size: 0.97rem; }

/* documents */
.doc { padding: 12px 0 24px; }
.doc h1 { margin-bottom: 0.3rem; }
.callout { background: var(--bg-soft); border-left: 4px solid var(--honey); border-radius: 10px; padding: 12px 16px; margin: 1.2rem 0; }
.callout p, .callout ul { margin: 0.3rem 0; }
.toc { font-size: 0.95rem; }

details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; padding: 13px 0; list-style-position: outside; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 8px; }
details > :last-child { margin-bottom: 14px; }

table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 0.8rem 0; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.tablewrap { overflow-x: auto; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 0 36px; color: var(--muted); font-size: 0.93rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--link); }
.site-footer p { margin: 0; }

@media (min-width: 560px) {
  h1 { font-size: 2.3rem; }
  .keys { grid-template-columns: repeat(6, 1fr); }
  .points { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .store { transition: filter .15s ease; }
}
