:root {
  --color-bg: #f3f4f6;
  --color-card: #ffffff;
  --color-text: #2b2b2b;
  --color-text-muted: #5b6470;
  --color-accent: #0f4c81;
  --color-danger: #b42318;
  --color-border: #d8dde5;
  --max-width: 1120px;
  --space-card-gap: 16px;
  --space-section-gap: 48px;
  --radius-md: 12px;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family:
    "Pretendard",
    "Noto Sans KR",
    sans-serif;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3 {
  color: var(--color-text);
}

h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
}

h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

p {
  color: var(--color-text);
}

a {
  color: var(--color-accent);
  transition: opacity 0.15s ease;
}

a:hover,
a:focus-visible {
  opacity: 0.85;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-card-gap);
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-brand {
  display: inline-flex;
  align-items: flex-start;
  color: var(--color-text);
}

.site-brand img {
  width: 84px;
  height: auto;
}

.site-brand .brand-mark {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.site-brand .brand-copy {
  display: grid;
  gap: 1px;
}

.site-brand .brand-primary-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-brand .brand-top {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}

.site-brand .brand-sub {
  display: block;
  color: var(--color-text-muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-brand__text {
  display: grid;
  gap: 1px;
}

.site-brand__text strong {
  font-size: 18px;
  line-height: 1.2;
}

.site-brand__text small {
  color: var(--color-text-muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.site-nav a {
  position: relative;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--color-text-muted);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  width: 0;
  background: var(--color-accent);
  transition: width 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #e8edf4;
  color: var(--color-text);
  opacity: 1;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  width: calc(100% - 20px);
}

.site-nav a.is-active {
  color: var(--color-text);
  font-weight: 600;
}

.site-main {
  flex: 1 0 auto;
  padding-top: 32px;
  padding-bottom: 48px;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  padding-bottom: 32px;
  color: var(--color-text-muted);
}

.site-footer :is(h1, h2, h3, h4, h5, h6, p, a, span, li, small, strong) {
  color: inherit;
}

.section + .section {
  margin-top: var(--space-section-gap);
}

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-card-gap);
}

.text-muted {
  color: var(--color-text-muted);
}

.meta-line {
  color: var(--color-text-muted);
  font-size: 14px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #b7cbe0;
  border-radius: 999px;
  padding: 2px 10px;
  background: #edf4fb;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 600;
}

.empty-state {
  color: var(--color-text-muted);
}

label {
  display: grid;
  gap: 6px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #c7ced8;
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
  padding: 10px 12px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #9cbedd;
  outline-offset: 1px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.btn {
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  background: var(--color-accent);
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
}

.btn:hover,
.btn:focus-visible {
  opacity: 0.9;
}

.btn-secondary {
  background: #fff;
  color: var(--color-accent);
}

.btn-danger {
  border-color: var(--color-danger);
  background: var(--color-danger);
}

.inline-form {
  display: inline-flex;
}

.error-message {
  border-left: 4px solid var(--color-danger);
  background: #fef3f2;
  color: #7a231a;
  padding: 10px 12px;
  border-radius: 6px;
}
