:root {
  --bg: #f4efe4;
  --paper: #fffdf8;
  --paper-strong: #fff8ec;
  --ink: #17313d;
  --muted: #60757d;
  --line: rgba(23, 49, 61, 0.12);
  --brand: #0e6d62;
  --brand-deep: #0b4b52;
  --accent: #d86b33;
  --shadow: 0 18px 45px rgba(16, 34, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "IBM Plex Sans", "Pretendard", "Noto Sans KR", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(216, 107, 51, 0.18), transparent 26%),
    radial-gradient(circle at top right, rgba(14, 109, 98, 0.16), transparent 22%),
    linear-gradient(180deg, #f8f1e5 0%, #f4efe4 38%, #f7f5ef 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease;
}

button:hover {
  transform: translateY(-1px);
  background: var(--brand-deep);
}

input,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.narrow {
  width: min(860px, calc(100vw - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(249, 244, 235, 0.78);
  border-bottom: 1px solid rgba(23, 49, 61, 0.08);
}

.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand strong {
  display: block;
  font-size: 16px;
}

.brand small {
  display: block;
  max-width: 420px;
  color: var(--muted);
  font-size: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 24px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: 14px;
}

.site-nav a {
  padding: 8px 0;
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.user-chip,
.chip,
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14, 109, 98, 0.09);
  color: var(--brand-deep);
  font-size: 12px;
}

.ghost-btn,
.primary-btn,
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
}

.ghost-btn,
.btn-link {
  background: rgba(255, 255, 255, 0.68);
}

.primary-btn {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
}

.hero,
.page-hero {
  padding: 64px 0 34px;
}

.blog-hero {
  padding: 58px 0 24px;
}

.hero-grid,
.dual-grid,
.detail-grid,
.detail-layout,
.process-grid,
.footer-grid,
.blog-grid {
  display: grid;
  gap: 24px;
}

.hero-grid {
  grid-template-columns: 1.35fr 0.95fr;
  align-items: stretch;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.5rem, 4vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.hero-text,
.page-intro,
.footer-copy,
.feature-card p,
.update-card p,
.content-card p,
.stack-card p,
.mini-note {
  color: var(--muted);
  line-height: 1.72;
}

.hero-copy {
  padding: 18px 0 10px;
}

.blog-hero-copy {
  max-width: 860px;
  margin-bottom: 18px;
}

.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.watch-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.category-section {
  margin-top: 3rem;
}

.category-section:first-child {
  margin-top: 0;
}

.cta-row,
.top-actions,
.meta-row,
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.panel-card,
.signal-cloud,
.feature-card,
.update-card,
.stack-card,
.content-card,
.info-card,
.related-card,
.change-card,
.card,
.empty-card {
  position: relative;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.panel-card,
.signal-cloud,
.feature-card,
.update-card,
.content-card,
.stack-card,
.card,
.empty-card,
.info-card,
.related-card,
.change-card {
  padding: 22px;
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.pillar-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.signal-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.signal-items span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(216, 107, 51, 0.12);
  color: var(--ink);
  font-size: 13px;
}

.direction-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.direction-card h3 {
  font-size: 1.18rem;
  line-height: 1.45;
}

.table-shell {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow);
}

.watch-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
}

.watch-table th,
.watch-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.65;
}

.watch-table th {
  background: rgba(14, 109, 98, 0.08);
  color: var(--brand-deep);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.watch-table tbody tr:last-child td {
  border-bottom: 0;
}

.watch-filter-card {
  padding: 18px 20px;
}

.watch-filter-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  gap: 14px;
}

.watch-filter-grid label {
  display: grid;
  gap: 8px;
}

.watch-filter-grid span {
  color: var(--muted);
  font-size: 13px;
}

.stats-band {
  padding: 0 0 24px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.watch-stat-grid strong {
  font-size: 26px;
}

.stat-grid article {
  padding: 20px 18px;
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.74);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stat-grid strong {
  display: block;
  font-size: 30px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.stat-grid span {
  color: var(--muted);
  font-size: 14px;
}

.section-block {
  padding: 32px 0;
}

.section-block.soft {
  background: linear-gradient(180deg, rgba(255, 248, 236, 0.68), rgba(255, 255, 255, 0));
}

.accent-block {
  padding-bottom: 56px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-head h2,
.content-card h2,
.feature-card h2,
.feature-card h3,
.update-card h3,
.stack-card h3,
.related-card h3,
.card h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 28px;
  line-height: 1.08;
}

.section-head.compact h2 {
  font-size: 24px;
}

.section-link,
.inline-link {
  color: var(--brand-deep);
  font-weight: 600;
}

.card-grid,
.update-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blog-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  align-items: start;
}

.blog-main,
.blog-sidebar {
  display: grid;
  gap: 18px;
}

.post-card,
.sidebar-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.post-card h3,
.sidebar-card h3 {
  margin: 0 0 8px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 30px;
  line-height: 1.08;
}

.post-card p,
.sidebar-card p {
  color: var(--muted);
  line-height: 1.72;
}

.mini-stats {
  display: grid;
  gap: 10px;
}

.mini-stats span {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(14, 109, 98, 0.08);
  color: var(--brand-deep);
  font-size: 14px;
}

.feature-card,
.update-card {
  min-height: 100%;
}

.dual-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.stack-list {
  display: grid;
  gap: 14px;
}

.date,
.keywords,
.subtle {
  color: var(--muted);
  font-size: 13px;
}

.process-grid {
  grid-template-columns: 0.7fr 1.3fr;
  align-items: start;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(11, 75, 82, 0.95), rgba(14, 109, 98, 0.92));
  color: #fff;
  box-shadow: var(--shadow);
}

.process-grid .eyebrow,
.process-grid p {
  color: rgba(255, 255, 255, 0.8);
}

.process-grid h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 34px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.process-steps article {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.process-steps strong {
  display: block;
  margin-bottom: 8px;
}

.page-main {
  padding-bottom: 40px;
}

.filter-bar,
.filters form,
.admin-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr auto;
  gap: 12px;
}

.detail-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.detail-layout {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.detail-sections,
.related-panel {
  display: grid;
  gap: 16px;
}

.notice-bar,
.run-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.content-admin-card {
  display: grid;
  gap: 14px;
}

.content-admin-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.content-admin-head h3 {
  margin: 4px 0;
}

.content-admin-form {
  display: flex;
  justify-content: flex-end;
}

.content-admin-filters {
  grid-template-columns: 1.4fr 0.8fr 0.8fr auto;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
}

.status-live {
  color: #196b48;
  background: rgba(217, 245, 232, 0.95);
}

.status-draft {
  color: #7b4f10;
  background: rgba(255, 240, 214, 0.95);
}

.site-footer {
  padding: 42px 0 60px;
}

.footer-grid {
  grid-template-columns: 1fr 0.8fr 0.8fr;
  padding: 26px;
  border-radius: 28px;
  background: rgba(18, 31, 43, 0.96);
  color: rgba(255, 255, 255, 0.82);
}

.footer-grid h2 {
  margin: 0 0 10px;
  color: #fff;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 1080px) {
  .hero-grid,
  .dual-grid,
  .detail-grid,
  .detail-layout,
  .process-grid,
  .footer-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .update-grid,
  .process-steps,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-row {
    grid-template-columns: 1fr;
    padding: 14px 0;
  }

  .site-nav,
  .header-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .container,
  .narrow {
    width: min(100vw - 24px, 100%);
  }

  .hero,
  .page-hero {
    padding-top: 40px;
  }

  .hero h1,
  .page-hero h1 {
    max-width: none;
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  .card-grid,
  .update-grid,
  .process-steps,
  .stat-grid,
  .filter-bar,
  .filters form,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .content-admin-head {
    flex-direction: column;
  }

  .content-admin-form {
    justify-content: flex-start;
  }
}
