:root {
  color-scheme: light;
  --page-bg: #f7f8f6;
  --surface: #ffffff;
  --surface-muted: #eef2ef;
  --text: #1f2933;
  --text-muted: #60707a;
  --border: #d9e0dc;
  --accent: #16635b;
  --accent-dark: #0f4842;
  --accent-warm: #b7791f;
  --shadow: 0 16px 40px rgba(31, 41, 51, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

.site-shell {
  min-height: 100%;
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 224, 220, 0.86);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.site-header__inner,
.site-main,
.site-footer__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.site-brand {
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.site-menu {
  display: flex;
  align-items: center;
}

.site-menu__toggle {
  display: none;
}

.site-menu__toggle::-webkit-details-marker {
  display: none;
}

.site-menu__bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav__link {
  border-radius: 8px;
  color: var(--text-muted);
  padding: 8px 12px;
  text-decoration: none;
}

.site-nav__link:hover,
.site-nav__link--active {
  background: var(--surface-muted);
  color: var(--accent-dark);
}

.site-main {
  padding: 36px 0 64px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 800;
  text-decoration: none;
}

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

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent-dark);
}

.section-band,
.page-title,
.post-detail {
  margin-top: 34px;
}

.page-title h1 {
  margin: 0 0 14px;
  font-size: 44px;
  line-height: 1.12;
}

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

.section-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 44px 28px;
  align-items: start;
}

.feature-item {
  min-width: 0;
}

.feature-item__link {
  display: grid;
  gap: 16px;
  color: inherit;
  text-align: center;
  text-decoration: none;
}

.feature-item__image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.feature-item__caption {
  display: block;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.35;
  word-break: keep-all;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(31, 41, 51, 0.06);
}

.post-card__link {
  display: grid;
  color: inherit;
  text-decoration: none;
}

.post-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-card__title {
  margin: 0;
  padding: 16px 16px 6px;
  color: var(--text);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.25;
}

.post-card__excerpt {
  margin: 0;
  padding: 0 16px 18px;
  color: var(--text-muted);
}

.page-title {
  max-width: 820px;
}

.post-detail {
  max-width: 860px;
}

.post-detail__media {
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.post-detail__image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.post-detail__back {
  margin-top: 24px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--accent-dark);
  font-weight: 700;
}

@media (max-width: 1000px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header__inner {
    align-items: center;
    padding: 14px 0;
  }

  .site-menu {
    position: relative;
  }

  .site-menu__toggle {
    display: inline-grid;
    place-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--accent-dark);
    cursor: pointer;
    list-style: none;
  }

  .site-menu:not([open]) .site-nav {
    display: none;
  }

  .site-menu[open] .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    min-width: 180px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav__link {
    text-align: left;
  }

  .page-title h1 {
    font-size: 34px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .feature-item__caption {
    font-size: 20px;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
