/*
 * The website's own theme (plan Appendix C): chosen for this product, not
 * inherited from the reference site. Light and dark follow the system, and
 * system fonts keep the pages free of outside requests.
 */

:root {
  color-scheme: light dark;
  --bg: #f6f6f3;
  --surface: #ffffff;
  --text: #16161a;
  --muted: #55555f;
  --line: #e2e2dc;
  --accent: #3f37c9;
  --accent-hover: #2f28a8;
  --on-accent: #ffffff;
  --accent-soft: #ecebfb;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101013;
    --surface: #18181d;
    --text: #ececf1;
    --muted: #a6a6b4;
    --line: #2a2a33;
    --accent: #a9a4ff;
    --accent-hover: #c4c0ff;
    --on-accent: #101013;
    --accent-soft: #1f1d3a;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px / 1.65 var(--font);
}

/* Korean breaks between words, not inside them. */
:lang(ko) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Inline padding only, so that each block keeps its own vertical padding. */
.wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding-inline: 1.25rem;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: var(--surface);
}

.skip:focus {
  top: 1rem;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.25rem;
}

.brand {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-header nav a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

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

.site-header nav .language {
  padding: 0.2rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

main {
  padding-block: 1rem 4rem;
}

.hero {
  max-width: 46rem;
  padding-block: clamp(2rem, 8vw, 5rem) 1rem;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero h1:lang(ko) {
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.status {
  display: inline-block;
  margin: 0.5rem 0 0;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  background: var(--accent-soft);
  font-size: 0.95rem;
}

.section {
  margin-top: 3.5rem;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li,
.cta,
.contact {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.features li {
  padding: 1.25rem 1.35rem;
}

.features h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
}

.features p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.cta {
  padding: 1.75rem;
}

.cta p {
  margin: 0 0 1rem;
}

.cta p:last-child {
  margin: 0;
}

.button {
  display: inline-block;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.page {
  max-width: 42rem;
  padding-block: clamp(1.5rem, 5vw, 3rem) 0;
}

.page h1,
.page h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page + .page {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.contact {
  margin: 1.5rem 0;
  padding: 1.25rem 1.35rem;
}

.contact dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.contact dd {
  margin: 0.25rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  padding-block: 1.75rem 2.5rem;
}

.site-footer p {
  margin: 0 0 0.4rem;
}

.site-footer p a,
.site-footer nav a {
  color: inherit;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0 0 0.6rem;
}

nav.legal-links a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* Seller details, as Korean online sales require: separated by dots that CSS draws. */
.business {
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.business span + span::before {
  content: "·";
  margin: 0 0.5rem;
}

.fine {
  font-size: 0.82rem;
}

/* Draft content pages: only the local preview builds them. */
.draft-note {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.draft-note p {
  margin: 0 0 0.5rem;
}

.draft-note ul {
  margin: 0;
  padding-left: 1.25rem;
}

mark.open {
  padding: 0 0.2em;
  border-radius: 3px;
  background: #ffe58f;
  color: #1f1a00;
}

/* Legal and other long texts. */
.legal {
  max-width: 46rem;
}

.legal-body h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.legal-body h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.08rem;
}

.legal-body ul,
.legal-body ol {
  padding-left: 1.4rem;
}

.legal-body li {
  margin: 0.3rem 0;
}

.legal-body blockquote {
  margin: 1.25rem 0;
  padding: 0.85rem 1.1rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--surface);
}

.legal-body blockquote p {
  margin: 0;
}

/* Wide tables scroll inside themselves, so the page never scrolls sideways. */
.legal-body table {
  display: block;
  overflow-x: auto;
  margin: 1rem 0;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.legal-body th,
.legal-body td {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-body th {
  background: var(--surface);
}

/* The status page's notice (plan §18.1): the operator's short message to users. */
.status-note {
  margin: 1.5rem 0;
  padding: 0.875rem 1.125rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--accent-soft);
}
