/* Norijoa — one stylesheet for every page. No external fonts, no JS. */

:root {
  color-scheme: light dark;

  --bg: #fbf6ee;
  --surface: #fffcf7;
  --border: #e6d8c4;
  --text: #2a211c;
  --muted: #65574d;
  --accent: #ad4318;
  --tile: #e0673a;
  --tile-ink: #fff6ec;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Arial Rounded MT",
    var(--font-body);
  --font-ko: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", var(--font-body);

  --radius: 1.25rem;
  --gutter: 1.25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1612;
    --surface: #261f1a;
    --border: #3d3129;
    --text: #f4ebdf;
    --muted: #c4b5a7;
    --accent: #f4a273;
  }
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

:lang(ko) {
  font-family: var(--font-ko);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

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

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

/* ---------- Header ---------- */

.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 {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.mark {
  display: block;
  flex: none;
  width: 2rem;
  height: 2rem;
}

.mark-tile {
  fill: var(--tile);
}

.mark-heart {
  fill: var(--tile-ink);
}

.site-nav ul {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- Home ---------- */

.hero {
  padding-block: 3.5rem 3rem;
}

.hero h1 {
  font-size: clamp(3rem, 14vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

.meaning {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.meaning [lang="ko"] {
  color: var(--text);
  font-weight: 600;
}

.intro {
  margin-top: 1.5rem;
  max-width: 28ch;
  font-size: clamp(1.375rem, 5vw, 1.75rem);
  line-height: 1.35;
  font-weight: 500;
}

.section {
  padding-block: 2.5rem;
  scroll-margin-top: 1rem;
}

.section h2 {
  font-size: 1.625rem;
  letter-spacing: -0.01em;
}

.products {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.product {
  padding: 1.25rem 1.5rem 1.375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.product h3 {
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}

.product p {
  margin-top: 0.375rem;
}

.product .status {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.status::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border: 2px solid var(--muted);
  border-radius: 50%;
  transform: translateY(-0.0625rem);
}

.status-live {
  color: var(--text);
}

.status-live::before {
  border-color: var(--tile);
  background: var(--tile);
}

.product .product-link {
  margin-top: 0.75rem;
  font-weight: 600;
}

.contact {
  margin-top: 1rem;
  font-style: normal;
}

.contact p + p {
  margin-top: 0.25rem;
}

.contact .email {
  font-size: 1.25rem;
  font-weight: 600;
}

/* ---------- Plain pages (privacy, 404) ---------- */

.page {
  padding-block: 3rem 3.5rem;
}

.page h1 {
  font-size: clamp(2.25rem, 10vw, 3rem);
  letter-spacing: -0.02em;
}

.page .lead {
  margin-top: 1rem;
  font-size: 1.1875rem;
}

.points {
  display: grid;
  gap: 0.875rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.points li {
  padding-left: 1rem;
  border-left: 3px solid var(--border);
}

.page .meta {
  margin-top: 2rem;
  color: var(--muted);
}

.page .meta + .meta {
  margin-top: 0.25rem;
}

.page .home-link {
  margin-top: 1.5rem;
  font-weight: 600;
}

/* ---------- Footer ---------- */

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

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.625rem;
  padding-block: 1.75rem 2.25rem;
}

.site-footer a {
  color: var(--muted);
}

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

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

.sep {
  opacity: 0.6;
}

/* On narrow screens the footer wraps; drop the dots so none dangle at a line end. */
@media (max-width: 26rem) {
  .site-footer .wrap {
    gap: 0.375rem 1.125rem;
  }

  .sep {
    display: none;
  }
}
