:root {
  --ink: #1b211f;
  --muted: #626b65;
  --paper: #f8f3ea;
  --paper-strong: #fffaf0;
  --green: #19592b;
  --brass: #a26b2a;
  --blue: #2d536f;
  --rose: #8b4a52;
  --line: rgba(27, 33, 31, 0.16);
  --shadow: 0 22px 55px rgba(19, 26, 22, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 28px;
  background: rgba(248, 243, 234, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--paper-strong);
  background: var(--green);
  border-radius: 8px;
  font-family: Georgia, serif;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--green);
}

.hero {
  position: relative;
  min-height: 76svh;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(20, 22, 20, 0.78), rgba(20, 22, 20, 0.56) 42%, rgba(20, 22, 20, 0.18) 100%),
    url("https://image.kmib.co.kr/online_image/2015/0615/201506150034_23110923117025_1.jpg");
  background-size: cover;
  background-position: center right;
  color: #fffaf0;
}

.hero-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 66px 0 86px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: #d1b178;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: "Noto Serif CJK KR", "AppleMyungjo", "Nanum Myeongjo", Georgia, serif;
  font-size: 4.8rem;
  line-height: 1.05;
  font-weight: 800;
}

.hero-copy {
  width: min(690px, 100%);
  margin: 22px 0 0;
  font-size: 1.22rem;
  color: rgba(255, 250, 240, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 250, 240, 0.7);
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  color: var(--ink);
  background: var(--paper-strong);
}

.button.secondary {
  color: var(--paper-strong);
  background: rgba(255, 255, 255, 0.08);
}

.photo-credit {
  position: absolute;
  right: 28px;
  bottom: 18px;
  margin: 0;
  color: rgba(255, 250, 240, 0.8);
  font-size: 0.82rem;
}

.photo-credit a {
  color: #fffaf0;
  font-weight: 800;
  text-underline-offset: 3px;
}

.summary-band {
  border-bottom: 1px solid var(--line);
  background: #fff7e8;
}

.summary-grid {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.summary-grid div {
  padding: 24px 22px;
  border-left: 1px solid var(--line);
}

.summary-grid div:last-child {
  border-right: 1px solid var(--line);
}

.summary-grid strong,
.summary-grid span {
  display: block;
}

.summary-grid strong {
  font-family: Georgia, serif;
  color: var(--green);
  font-size: 1.75rem;
  line-height: 1.1;
}

.summary-grid span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 86px 0;
}

.section h2 {
  margin: 0;
  font-family: "Noto Serif CJK KR", "AppleMyungjo", "Nanum Myeongjo", Georgia, serif;
  font-size: 2.3rem;
  line-height: 1.22;
}

.section h3 {
  margin: 0;
  line-height: 1.35;
}

.narrative-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 44px;
  align-items: start;
}

.narrative p {
  margin: 20px 0 0;
  font-size: 1.04rem;
  color: #3d4540;
}

.source-note {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.72);
  box-shadow: var(--shadow);
}

.source-note span {
  color: var(--rose);
  font-weight: 900;
}

.source-note p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.text-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--green);
  font-weight: 900;
  text-underline-offset: 4px;
}

.timeline-section {
  border-top: 1px solid var(--line);
}

.timeline {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 2px solid var(--green);
}

.timeline article {
  padding: 22px 20px 0 0;
  position: relative;
}

.timeline article::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px var(--paper);
}

.timeline time {
  display: block;
  color: var(--brass);
  font-family: Georgia, serif;
  font-weight: 800;
  font-size: 1.15rem;
}

.timeline h3 {
  margin-top: 10px;
  font-size: 1.04rem;
}

.timeline p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.archive-section {
  border-top: 1px solid var(--line);
}

.archive-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.archive-count {
  margin: 0;
  color: var(--blue);
  font-weight: 900;
}

.archive-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.82);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.filter:hover,
.filter.is-active {
  color: var(--paper-strong);
  border-color: var(--green);
  background: var(--green);
}

.search-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.search-label input {
  width: 280px;
  max-width: 46vw;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdfa;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.archive-card,
.theme-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
}

.archive-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  min-height: 292px;
  padding: 22px;
  box-shadow: 0 12px 34px rgba(20, 24, 22, 0.08);
}

.archive-card time {
  color: var(--brass);
  font-size: 0.9rem;
  font-weight: 900;
}

.tag {
  width: max-content;
  margin-top: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  color: #fffaf0;
  background: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.archive-card h3 {
  margin-top: 14px;
  font-size: 1.18rem;
}

.archive-card p {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.archive-card a {
  justify-self: start;
  color: var(--green);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.themes {
  border-top: 1px solid var(--line);
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.theme-grid article {
  padding: 24px;
}

.theme-grid h3 {
  color: var(--green);
  font-size: 1.22rem;
}

.theme-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.sources {
  border-top: 1px solid var(--line);
}

.sources ul {
  columns: 2;
  gap: 44px;
  padding-left: 20px;
  margin: 28px 0 0;
}

.sources li {
  break-inside: avoid;
  margin: 0 0 12px;
  color: var(--muted);
}

.sources a {
  color: var(--ink);
  text-decoration-color: rgba(25, 89, 43, 0.38);
  text-underline-offset: 4px;
}

.subpage-main {
  padding-top: 0;
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(22, 34, 27, 0.94), rgba(22, 34, 27, 0.78)),
    url("assets/hero-archive.png");
  background-size: cover;
  background-position: center;
  color: #fffaf0;
}

.page-hero-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 86px 0 96px;
}

.page-hero h1 {
  margin: 0;
  font-family: "Noto Serif CJK KR", "AppleMyungjo", "Nanum Myeongjo", Georgia, serif;
  font-size: 3.5rem;
  line-height: 1.12;
}

.page-hero p {
  width: min(760px, 100%);
  margin: 22px 0 0;
  color: rgba(255, 250, 240, 0.84);
  font-size: 1.13rem;
}

.theology-hero {
  background:
    linear-gradient(90deg, rgba(22, 34, 27, 0.94), rgba(22, 34, 27, 0.76), rgba(22, 34, 27, 0.52)),
    url("assets/hero-archive.png");
  background-size: cover;
  background-position: center;
}

.thesis-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: start;
}

.thesis-layout p {
  margin: 20px 0 0;
  color: #3d4540;
  font-size: 1.04rem;
}

.theology-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: var(--shadow);
}

.theology-card span {
  color: var(--brass);
  font-weight: 900;
}

.theology-card p {
  margin: 12px 0 0;
  color: var(--green);
  font-family: "Noto Serif CJK KR", "AppleMyungjo", "Nanum Myeongjo", Georgia, serif;
  font-size: 1.22rem;
  line-height: 1.55;
}

.axis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.axis-grid article {
  min-height: 286px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 12px 34px rgba(20, 24, 22, 0.08);
}

.axis-grid strong {
  display: block;
  color: var(--brass);
  font-size: 0.86rem;
}

.axis-grid h3 {
  margin-top: 10px;
  color: var(--green);
  font-size: 1.2rem;
}

.axis-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.evidence-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 12px 34px rgba(20, 24, 22, 0.08);
}

.evidence-card strong {
  display: block;
  color: var(--brass);
  font-size: 0.86rem;
}

.evidence-card h3 {
  margin-top: 10px;
  color: var(--green);
  font-size: 1.2rem;
}

.evidence-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.evidence-card a,
.reading-list a {
  color: var(--green);
  font-weight: 900;
  text-underline-offset: 4px;
}

.theology-note {
  margin-top: 28px;
  padding: 24px;
  border-left: 4px solid var(--brass);
  background: #fff7e8;
}

.theology-note p {
  margin: 0;
  color: #3d4540;
}

.argument-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.argument-list {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.argument-list article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
}

.argument-list p {
  margin: 10px 0 0;
  color: var(--muted);
}

.reading-list {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.reading-list article {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.reading-list p {
  margin: 8px 0 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  color: rgba(255, 250, 240, 0.82);
  background: #16221b;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fffaf0;
  font-weight: 800;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .hero h1 {
    font-size: 3.55rem;
  }

  .summary-grid,
  .narrative-grid,
  .archive-grid,
  .evidence-grid,
  .axis-grid,
  .thesis-layout,
  .argument-grid {
    grid-template-columns: 1fr;
  }

  .summary-grid div,
  .summary-grid div:last-child {
    border-right: 1px solid var(--line);
  }

  .timeline {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 2px solid var(--green);
    padding-left: 22px;
  }

  .timeline article {
    padding: 0 0 26px 22px;
  }

  .timeline article::before {
    top: 5px;
    left: -29px;
  }

  .archive-tools,
  .archive-head {
    align-items: stretch;
    flex-direction: column;
  }

  .search-label {
    align-items: stretch;
    flex-direction: column;
  }

  .search-label input {
    width: 100%;
    max-width: none;
  }

  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-credit {
    left: 24px;
    right: 24px;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
  }

  .hero {
    min-height: 70svh;
    background-position: 68% center;
  }

  .hero-inner,
  .summary-grid,
  .section,
  .page-hero-inner {
    width: min(100% - 32px, var(--max));
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .page-hero h1 {
    font-size: 2.42rem;
  }

  .hero-copy {
    font-size: 1.03rem;
  }

  .section {
    padding: 62px 0;
  }

  .section h2 {
    font-size: 1.9rem;
  }

  .theme-grid,
  .sources ul {
    columns: auto;
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 18px;
  }
}
