:root {
  color-scheme: light;
  --text: #1f2933;
  --muted: #52606d;
  --line: #e1e5ea;
  --accent: #1f5f8b;
}

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

/* Language visibility is driven by <html lang>, which defaults to ko without JS. */
html[lang="ko"] .only-en,
html[lang="en"] .only-ko {
  display: none;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.container {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.lang-toggle {
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--accent);
  border-radius: 0.375rem;
  background: #fff;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.lang-toggle:hover {
  background: var(--accent);
  color: #fff;
}

a {
  color: var(--accent);
}

a:focus-visible,
.lang-toggle:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

section {
  margin-top: 2rem;
}

h1,
h2 {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
  line-height: 1.3;
}

section > p {
  margin: 0;
}

.info {
  margin: 0;
  border-top: 1px solid var(--line);
}

.row {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

dd {
  margin: 0;
}

.site-footer {
  margin-top: 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

@media (min-width: 40rem) {
  .row {
    display: grid;
    grid-template-columns: 12rem minmax(0, 1fr);
    gap: 1rem;
  }

  dt {
    font-size: 1rem;
  }
}
