@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Noto+Sans+KR:wght@300;400;500&display=swap');

:root {
  --bg: #0b0b0d;
  --panel: #111114;
  --panel-soft: #151519;

  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #f1f0ed;
  --text-soft: #c5c2bd;
  --muted: #77747d;

  --accent: #aaa0b8;
  --accent-soft: rgba(170, 160, 184, 0.12);

  --radius-lg: 22px;
  --radius-md: 16px;

  --max-width: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;

  background:
    radial-gradient(circle at 20% 0%, rgba(170, 160, 184, 0.06), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.025), transparent 22%),
    var(--bg);

  color: var(--text);

  font-family:
    "Noto Sans KR",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-weight: 300;
}

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

.site-shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 40px;
}


/* =========================
   HERO
========================= */

.site-hero {
  min-height: 420px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 64px 58px;

  border: 1px solid var(--line);
  border-radius: var(--radius-lg);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.025),
      rgba(255, 255, 255, 0)
    ),
    var(--panel);
}

.site-hero__eyebrow {
  margin: 0 0 24px;

  color: var(--muted);

  font-size: 11px;
  font-weight: 500;

  letter-spacing: 0.24em;
}

.site-hero__title {
  margin: 0;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 500;

  line-height: 0.92;
  letter-spacing: -0.035em;
}

.site-hero__title span {
  color: var(--accent);
}

.site-hero__description {
  max-width: 540px;

  margin: 32px 0 0;

  color: var(--text-soft);

  font-size: 14px;
  line-height: 1.9;

  word-break: keep-all;
}


/* =========================
   SECTION
========================= */

.archive-section {
  margin-top: 78px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;

  margin-bottom: 24px;
}

.section-heading__index {
  margin-top: 4px;

  color: var(--accent);

  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
}

.section-heading__eyebrow {
  margin: 0 0 6px;

  color: var(--muted);

  font-size: 10px;
  font-weight: 500;

  letter-spacing: 0.2em;
}

.section-heading h2 {
  margin: 0;

  font-size: 24px;
  font-weight: 400;

  letter-spacing: -0.02em;
}


/* =========================
   PROJECT GRID
========================= */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 14px;
}

.project-card {
  position: relative;

  min-height: 310px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  overflow: hidden;

  padding: 22px;

  border: 1px solid var(--line);
  border-radius: var(--radius-md);

  background: var(--panel);

  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.project-card::before {
  content: "";

  position: absolute;
  inset: 0;

  opacity: 0;

  background:
    linear-gradient(
      145deg,
      var(--accent-soft),
      transparent 52%
    );

  transition: opacity 180ms ease;

  pointer-events: none;
}

.project-card--active:hover {
  transform: translateY(-4px);

  border-color: var(--line-strong);

  background: var(--panel-soft);
}

.project-card--active:hover::before {
  opacity: 1;
}

.project-card__top,
.project-card__body,
.project-card__footer {
  position: relative;
  z-index: 1;
}

.project-card__top,
.project-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-card__index {
  color: var(--muted);

  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
}

.project-card__status {
  padding: 5px 8px;

  border: 1px solid var(--line);

  color: var(--muted);

  font-size: 8px;
  font-weight: 500;

  letter-spacing: 0.14em;
}

.project-card__eyebrow {
  margin: 0 0 10px;

  color: var(--muted);

  font-size: 9px;
  font-weight: 500;

  letter-spacing: 0.17em;
}

.project-card h3 {
  margin: 0;

  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  font-weight: 500;

  line-height: 1;
}

.project-card__ko {
  margin: 8px 0 0;

  color: var(--text-soft);

  font-size: 13px;
}

.project-card__footer {
  padding-top: 16px;

  border-top: 1px solid var(--line);

  color: var(--muted);

  font-size: 9px;
  font-weight: 500;

  letter-spacing: 0.13em;
}

.project-card__arrow {
  color: var(--accent);

  font-size: 16px;

  transition: transform 180ms ease;
}

.project-card--active:hover .project-card__arrow {
  transform: translate(2px, -2px);
}

.project-card--disabled {
  opacity: 0.48;
}


/* =========================
   FOOTER
========================= */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-top: 72px;
  padding-top: 20px;

  border-top: 1px solid var(--line);

  color: var(--muted);

  font-size: 9px;
  font-weight: 400;

  letter-spacing: 0.14em;
}


/* =========================
   SCROLLBAR
========================= */

* {
  scrollbar-width: thin;
  scrollbar-color: #343239 transparent;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: #343239;
  border-radius: 999px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 820px) {

  .site-shell {
    width: min(100% - 22px, var(--max-width));
    padding-top: 28px;
  }

  .site-hero {
    min-height: 360px;
    padding: 44px 30px;
  }

  .archive-section {
    margin-top: 54px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 220px;
  }

}

@media (max-width: 520px) {

  .site-hero {
    min-height: 320px;
    padding: 36px 22px;
  }

  .site-hero__title {
    font-size: clamp(46px, 15vw, 66px);
  }

  .site-hero__description {
    font-size: 13px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

}
