:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e6e4e0;
  --accent: #9a3412;
  --on-accent: #ffffff;
  --note: #f8f1ea;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --surface: #1c1a18;
    --ink: #f5f4f1;
    --muted: #a8a29e;
    --line: #2e2b28;
    --accent: #e7b89a;
    --on-accent: #1c120c;
    --note: #2a221c;
    color-scheme: dark;
  }
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

:lang(ko) {
  word-break: keep-all;
  line-height: 1.65;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

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

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-160%);
  z-index: 20;
  background: var(--surface);
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  border-radius: 0.4rem;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(100% - 2rem, 68rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.25rem;
  min-height: 3.25rem;
  padding-block: 0.65rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.mark {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 0.18rem;
  background: var(--accent);
  flex: none;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--ink);
  text-decoration: none;
}

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

.hero {
  padding: 4.25rem 0 3.25rem;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 3.7rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h1 .ko-name {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.38em;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
}

.tagline {
  max-width: 38rem;
  margin-top: 1.25rem;
  font-size: 1.125rem;
}

.hero .sub {
  max-width: 38rem;
  margin-top: 0.45rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  text-decoration: none;
  opacity: 0.9;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.section {
  border-top: 1px solid var(--line);
  padding: 3.15rem 0;
}

section[id] {
  scroll-margin-top: 5.5rem;
}

h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sub {
  margin-top: 0.3rem;
  color: var(--muted);
}

.intro {
  max-width: 40rem;
  margin-top: 1rem;
}

h3 {
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.4;
}

.list-heading {
  margin-top: 1.85rem;
}

.posts,
.products,
.steps {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
}

.posts,
.products {
  display: grid;
  gap: 0.75rem;
}

.posts {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 28rem), 1fr));
}

.products {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  margin-top: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1.05rem 1.05rem;
}

.card:hover {
  border-color: var(--accent);
}

.post time {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.post a {
  display: block;
  margin-top: 0.35rem;
  color: inherit;
  font-weight: 600;
  line-height: 1.55;
  text-decoration-color: var(--accent);
}

.products .card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 100%;
}

.price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.products .card a {
  margin-top: auto;
  padding-top: 0.35rem;
  font-weight: 600;
}

.more {
  margin-top: 1.15rem;
  font-weight: 650;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem 1.25rem;
  margin-top: 1.4rem;
}

.steps li {
  padding-top: 0.7rem;
  border-top: 2px solid var(--accent);
}

.steps p {
  margin-top: 0.3rem;
  color: var(--muted);
}

.note {
  margin-top: 1.35rem;
  padding: 0.95rem 1.05rem;
  background: var(--note);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
}

.note p + p {
  margin-top: 0.3rem;
}

.email {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 650;
}

.email a {
  overflow-wrap: anywhere;
}

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