:root {
  --bg: #f7f4ef;
  --text: #1c1917;
  --muted: #78716c;
  --line: #e7e5e4;
  --accent: #c2410c;
  --surface: #ffffff;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
}

.wrap {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand strong {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  font-size: 14px;
}

.brand nav a {
  color: var(--muted);
  text-decoration: none;
}

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

main {
  padding: 40px 0 72px;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.meta {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 14px;
}

h2 {
  margin: 36px 0 12px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

p,
li {
  font-size: 16px;
}

ul,
ol {
  padding-left: 1.2em;
}

li + li {
  margin-top: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-size: 14px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #fafaf9;
  font-weight: 600;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: none;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
}

.home-links {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.home-links a {
  display: block;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.home-links a span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 640px) {
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
  }

  tr:last-child {
    border-bottom: none;
  }

  td {
    border: none;
    padding: 4px 14px;
  }

  td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 2px;
  }
}
