/* 다 됐습니다 · All Done: public pages. System fonts only; no web fonts, scripts or images. */

:root {
  color-scheme: light dark;
  --bg: #f0e6d1;      /* the app's title-screen cream */
  --card: #fff7e3;    /* the app's paper */
  --ink: #2b211d;     /* the app's ink */
  --muted: #6b584a;
  --clay: #9a4a1c;    /* fired clay; 5:1 on --bg */
  --on-clay: #fff7e3;
  --edge: #dcc9aa;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1814;
    --card: #2b221d;
    --ink: #f2e7d5;
    --muted: #c4b19c;
    --clay: #e8a06a;
    --on-clay: #1e1814;
    --edge: #4a3b31;
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", "Hiragino Sans", "Yu Gothic", "Noto Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

/* Korean wraps at spaces, not inside words. In this mode WebKit also breaks next to
   quotes and brackets that touch Hangul, so the Korean pages mark UI labels in bold. */
:lang(ko) { word-break: keep-all; }
h1, h2, .lead { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

header, main, footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1rem;
}
body > main:first-child { padding-top: 2.5rem; }

h1 {
  margin: 0 0 .5rem;
  font-size: clamp(2.25rem, 10vw, 3rem);
  line-height: 1.2;
  font-weight: 800;
}

h2 {
  margin: 2.25rem 0 .5rem;
  font-size: 1.25rem;
  line-height: 1.4;
}

p, ul, ol, dl { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: .375rem; }
li::marker { color: var(--clay); }

a { color: var(--clay); text-underline-offset: .2em; overflow-wrap: anywhere; }
a:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; border-radius: 4px; }

.langs {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  padding: .75rem 0 1.25rem;
  font-size: .9375rem;
}
.langs a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 .75rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}
.langs a[aria-current="page"] {
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--edge);
}

/* A slab of clay: soft corners and a thicker bottom edge. */
.card {
  margin: 1.25rem 0;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: var(--card);
  box-shadow: inset 0 -4px 0 var(--edge);
}
ul.card, ol.card { padding-left: 2.5rem; }
.card > :last-child { margin-bottom: 0; }

.lead {
  font-size: 1.1875rem;
  line-height: 1.55;
  font-weight: 600;
}

.meta { color: var(--muted); }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  background: var(--clay);
  color: var(--on-clay);
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 -4px 0 rgb(0 0 0 / .2);
}
.button:active { transform: translateY(1px); }

dt { font-weight: 700; }
dd { margin: 0 0 .875rem; }

/* The six-language picker on the root page. */
.pick {
  display: grid;
  gap: .75rem;
  padding: 0;
  list-style: none;
}
.pick li { margin: 0; }
.pick a {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 1rem;
  padding: 1rem 1.25rem;
  border-radius: 1.25rem;
  background: var(--card);
  box-shadow: inset 0 -4px 0 var(--edge);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.pick a span + span { color: var(--muted); font-weight: 400; }
@media (min-width: 34rem) {
  .pick { grid-template-columns: 1fr 1fr; }
}

footer {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  color: var(--muted);
  font-size: .9375rem;
}
footer p { margin-bottom: .5rem; }
