:root {
  --bg: #f6f4ef;
  --bg-elevated: #edeae2;
  --surface: #ffffff;
  --ink: #161614;
  --ink-muted: #5c5a54;
  --border: rgba(22, 22, 20, 0.12);
  --accent: #d95d39;
  --accent-hover: #c04a28;
  --accent-soft: rgba(217, 93, 57, 0.1);
  --shadow-sm: 0 2px 8px rgba(22, 22, 20, 0.04);
  --shadow-md: 0 12px 32px rgba(22, 22, 20, 0.08);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
  --max-width: 1120px;
  --transition: 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #141412;
  --bg-elevated: #1e1d1a;
  --surface: #252420;
  --ink: #f2efe9;
  --ink-muted: #a39f96;
  --border: rgba(242, 239, 233, 0.12);
  --accent: #eb724f;
  --accent-hover: #f28666;
  --accent-soft: rgba(235, 114, 79, 0.14);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition), color var(--transition);
}

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

button,
input,
textarea {
  font-family: inherit;
  color: inherit;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background-color: var(--accent);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}

.theme-toggle:hover {
  background: var(--surface);
  transform: translateY(-1px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
}

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

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background-color: var(--surface);
  border-color: var(--border);
  color: var(--ink);
}

.btn-secondary:hover {
  background-color: var(--bg-elevated);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  padding: 96px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.status-tag {
  background-color: var(--accent-soft);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
}

.spec-list {
  list-style: none;
  display: grid;
  gap: 16px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.95rem;
}

.spec-label {
  color: var(--ink-muted);
}

.spec-value {
  font-weight: 600;
}

/* Section Shared */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

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

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-top: 8px;
}

.section-subtitle {
  color: var(--ink-muted);
  max-width: 440px;
  font-size: 0.98rem;
}

/* Filter Tabs */
.filter-group {
  display: inline-flex;
  background-color: var(--bg-elevated);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.filter-btn {
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn.active {
  background-color: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* Showcase Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.work-card.hidden {
  display: none;
}

.work-category {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
  display: inline-block;
}

.work-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.work-desc {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.work-meta {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* Editorial Principles / About */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.principle-list {
  display: grid;
  gap: 24px;
}

.principle-item {
  background-color: var(--bg-elevated);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.principle-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 6px;
  display: block;
}

.principle-item h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.principle-item p {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* Contact Form */
.contact-box {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--bg);
  font-size: 0.95rem;
  transition: border-color var(--transition), background-color var(--transition);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--surface);
}

.form-feedback {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

.form-feedback.visible {
  display: block;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .split-layout,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 64px 0 56px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .contact-box {
    padding: 24px;
  }
}
