:root {
  --burgundy: #820947;
  --burgundy-deep: #6c073b;
  --navy: #001173;
  --navy-soft: #0a1a7a;
  --paper: #f6efe8;
  --paper-2: #efe4db;
  --ink: #14080e;
  --muted: #5c4450;
  --white: #ffffff;
  --line: rgba(130, 9, 71, 0.18);
  --shadow: 0 18px 40px rgba(20, 8, 14, 0.12);
  --radius: 2px;
  --header-h: 92px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(0, 17, 115, 0.16), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(130, 9, 71, 0.22), transparent 50%),
    linear-gradient(180deg, #f8f1ea 0%, var(--paper) 40%, #eadfd6 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: linear-gradient(105deg, var(--burgundy) 0%, #9a0d54 42%, var(--burgundy-deep) 100%);
  color: #fff8f4;
  border-bottom: 4px solid var(--navy);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-mark {
  width: 52px;
  height: 52px;
  color: var(--navy);
  flex-shrink: 0;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.18));
}

.brand-name {
  display: block;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
}

.brand-tagline {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  letter-spacing: 0.02em;
  opacity: 0.92;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: right;
}

.header-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.header-date {
  display: block;
  font-size: 13px;
  opacity: 0.88;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 248, 244, 0.45);
  background: transparent;
  color: #fff8f4;
  cursor: pointer;
  position: relative;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: absolute;
  left: 12px;
}

.nav-toggle-bars {
  top: 21px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.site-sidebar {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(20, 8, 14, 0.16);
}

.sidebar-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1280px;
  display: flex;
  align-items: stretch;
}

.sidebar-item {
  flex: 1;
  position: relative;
}

.sidebar-title {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--navy);
  color: #f4f6ff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.sidebar-item:last-child .sidebar-title {
  border-right: 0;
}

.sidebar-title:hover,
.sidebar-title.is-active,
.sidebar-title.is-section,
.sidebar-item.is-open .sidebar-title {
  background: var(--white);
  color: var(--navy);
}

.sidebar-subwrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s var(--ease);
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 15;
  overflow: hidden;
}

.sidebar-item.is-open .sidebar-subwrap {
  grid-template-rows: 1fr;
}

.sidebar-sub {
  overflow: hidden;
  min-height: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--white);
  color: #000;
  box-shadow: var(--shadow);
}

.sidebar-sub a {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  border-top: 1px solid #eee;
  transform: translateY(-8px);
  opacity: 0;
  transition: background 0.2s ease, transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.sidebar-item.is-open .sidebar-sub a {
  transform: translateY(0);
  opacity: 1;
}

.sidebar-item.is-open .sidebar-sub li:nth-child(1) a { transition-delay: 0.04s; }
.sidebar-item.is-open .sidebar-sub li:nth-child(2) a { transition-delay: 0.08s; }
.sidebar-item.is-open .sidebar-sub li:nth-child(3) a { transition-delay: 0.12s; }
.sidebar-item.is-open .sidebar-sub li:nth-child(4) a { transition-delay: 0.16s; }
.sidebar-item.is-open .sidebar-sub li:nth-child(5) a { transition-delay: 0.2s; }
.sidebar-item.is-open .sidebar-sub li:nth-child(6) a { transition-delay: 0.24s; }

.sidebar-sub a:hover,
.sidebar-sub a.is-current {
  background: var(--paper);
  color: var(--navy);
}

.site-main {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 22px 28px 48px;
}

.hero-slider {
  position: relative;
  margin-bottom: 22px;
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow);
  min-height: 280px;
}

.slides {
  position: relative;
  height: 320px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(8%);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  pointer-events: none;
}

.slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.slide-visual {
  position: absolute;
  inset: 0;
}

.slide-a {
  background:
    linear-gradient(105deg, rgba(0, 17, 115, 0.55), rgba(130, 9, 71, 0.35)),
    url("https://images.unsplash.com/photo-1574629810360-7efbbe195018?auto=format&fit=crop&w=1600&q=70") center/cover;
}

.slide-b {
  background:
    linear-gradient(105deg, rgba(88, 12, 140, 0.5), rgba(0, 17, 115, 0.4)),
    url("https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&w=1600&q=70") center/cover;
}

.slide-c {
  background:
    linear-gradient(105deg, rgba(0, 17, 115, 0.5), rgba(20, 8, 14, 0.35)),
    url("https://images.unsplash.com/photo-1517466787929-bc90951d0974?auto=format&fit=crop&w=1600&q=70") center/cover;
}

.slide-d {
  background:
    linear-gradient(105deg, rgba(130, 9, 71, 0.45), rgba(0, 17, 115, 0.45)),
    url("https://images.unsplash.com/photo-1431324155629-1a6deb1dec8d?auto=format&fit=crop&w=1600&q=70") center/cover;
}

.slide-e {
  background:
    linear-gradient(105deg, rgba(20, 8, 14, 0.45), rgba(0, 17, 115, 0.4)),
    url("https://images.unsplash.com/photo-1489944440615-453fc2b6a9a9?auto=format&fit=crop&w=1600&q=70") center/cover;
}

.slide-copy {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 28px 58px;
  color: #fff8f4;
  max-width: 720px;
}

.slide-copy span {
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: #ffd6e6;
}

.slide-copy h2 {
  margin: 8px 0 6px;
  font-size: 28px;
  line-height: 1.3;
}

.slide-copy p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

.slider-bar {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.42);
  padding: 8px 10px;
}

.slider-tri {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.tri {
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
}

.tri-left {
  border-width: 7px 11px 7px 0;
  border-color: transparent #fff transparent transparent;
}

.tri-right {
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #fff;
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
}

.slider-dot.is-on {
  background: #fff;
}

.container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}

.container.is-page {
  grid-template-columns: 240px minmax(0, 1fr);
}

.page-aside {
  background: rgba(255, 252, 249, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 420px;
}

.page-aside-title {
  margin: 0;
  padding: 16px 18px;
  background: linear-gradient(90deg, var(--navy), #13248a);
  color: #f4f6ff;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.page-aside-title a {
  display: block;
  color: inherit;
}

.page-aside-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-aside-nav a {
  display: block;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}

.page-aside-nav a:hover,
.page-aside-nav a.is-current {
  background: var(--paper);
  color: var(--navy);
}

.page-aside-nav a.is-current {
  border-left: 3px solid var(--burgundy);
  padding-left: 15px;
}

.page-article {
  background: rgba(255, 252, 249, 0.92);
  border: 1px solid var(--line);
  min-height: 480px;
  box-shadow: var(--shadow);
}

.section-head.is-link {
  text-decoration: none;
}

.section-head.is-link:hover h2 {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-item a {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.post-item a:hover {
  background: var(--paper-2);
}

.post-thumb {
  width: 108px;
  height: 80px;
  object-fit: cover;
  background: var(--navy);
}

.post-item time {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--burgundy);
  font-weight: 800;
  margin-bottom: 6px;
}

.post-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.35;
}

.post-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--navy);
  margin: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item span,
.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 10px 8px;
  background: linear-gradient(transparent, rgba(0, 17, 115, 0.88));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin: 0;
}

.home-gallery {
  padding: 12px;
}

.section-card {
  background: rgba(255, 252, 249, 0.92);
  border: 1px solid var(--line);
  min-height: 420px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section-head {
  padding: 16px 20px 14px;
  background: linear-gradient(90deg, var(--navy), #13248a);
  color: #f4f6ff;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.08em;
}

.section-head span {
  font-size: 11px;
  letter-spacing: 0.14em;
  opacity: 0.75;
}

.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-list li {
  border-bottom: 1px solid var(--line);
}

.article-list a,
.article-block {
  display: block;
  padding: 18px 20px 16px;
}

.article-list a:hover {
  background: var(--paper-2);
}

.kicker {
  display: inline-block;
  color: var(--burgundy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.article-list h3,
.article-block h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.meta {
  margin-top: 10px;
  font-size: 12px;
  color: #7a6270;
}

.hero-note {
  padding: 22px 20px 8px;
}

.hero-note p {
  margin: 0 0 12px;
  line-height: 1.7;
  font-size: 14.5px;
}

.page-panel {
  padding: 22px 22px 26px;
}

.page-panel h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.35;
}

.page-panel p {
  margin: 0 0 14px;
  line-height: 1.75;
  font-size: 14.5px;
  color: #2b1a22;
}

.page-panel ul {
  margin: 0 0 14px;
  padding-left: 18px;
  color: #2b1a22;
  line-height: 1.8;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 4px;
}

.stat {
  background: var(--paper);
  border-left: 3px solid var(--burgundy);
  padding: 10px 12px;
}

.stat b {
  display: block;
  font-size: 18px;
  color: var(--navy);
}

.stat span {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.profile {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.profile img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 3px solid var(--navy);
  background: var(--navy);
}

.cta {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 12px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.cta:hover {
  background: var(--burgundy);
}

.site-footer {
  background: rgba(0, 0, 0, 0.75);
  color: #f3ece7;
  margin-top: auto;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 28px 24px;
  display: grid;
  grid-template-columns: 1.2fr 1.4fr;
  gap: 18px;
  align-items: start;
}

.footer-brand strong {
  display: block;
  letter-spacing: 0.18em;
  font-size: 18px;
}

.footer-brand p,
.footer-copy {
  margin: 8px 0 0;
  font-size: 13px;
  opacity: 0.82;
}

.footer-mail {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
}

.footer-mail:hover {
  color: #fff;
}

.footer-sns {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}

.sns-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sns-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 800;
  opacity: 0.8;
}

.sns-marks {
  display: flex;
  gap: 8px;
}

.sns-marks a {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s var(--ease);
}

.sns-marks a:hover {
  transform: translateY(-2px);
}

.sns-marks svg {
  width: 32px;
  height: 32px;
  display: block;
}

.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
}

@media (max-width: 1024px) {
  .header-inner,
  .site-main,
  .footer-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand-name {
    font-size: 26px;
    letter-spacing: 0.12em;
  }

  .brand-tagline {
    font-size: 12px;
  }

  .sidebar-title {
    font-size: 13px;
    min-height: 50px;
    padding: 0 8px;
  }

  .container {
    gap: 16px;
  }

  .container.is-page {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-list h3,
  .article-block h3 {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .header-kicker,
  .header-date {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .brand-name {
    font-size: 22px;
  }

  .brand-tagline {
    max-width: 210px;
  }

  .site-sidebar {
    display: none;
    position: static;
  }

  .site-sidebar.is-open {
    display: block;
  }

  .sidebar-list {
    flex-direction: column;
  }

  .sidebar-item {
    width: 100%;
  }

  .sidebar-title {
    text-align: left;
    padding-left: 18px;
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .sidebar-subwrap {
    position: static;
  }

  .container,
  .container.is-page {
    grid-template-columns: 1fr;
  }

  .page-aside {
    min-height: 0;
  }

  .post-item a {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
  }

  .post-thumb {
    width: 84px;
    height: 64px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .footer-inner,
  .footer-sns {
    grid-template-columns: 1fr;
    justify-content: flex-start;
  }

  .slides {
    height: 240px;
  }

  .slide-copy h2 {
    font-size: 20px;
  }

  .slide-copy {
    padding: 18px 16px 52px;
  }

  .section-card {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar-subwrap,
  .sidebar-sub a,
  .sidebar-title,
  .slide {
    transition: none;
  }
}
