:root {
  --forest: #eee4cf;
  --forest-soft: #a5c6a6;
  --cream: #f5ecd9;
  --paper: #102b29;
  --paper-deep: #355b4d;
  --ink: #e8dfcb;
  --muted: #a0b3a6;
  --line: rgba(228, 216, 186, 0.18);
  --terracotta: #c56746;
  --gold: #dfb55f;
  --shadow: 0 22px 54px rgba(3, 16, 15, 0.34);
  --display: "Nanum Myeongjo", "Batang", "Malgun Gothic", serif;
  --body: "Malgun Gothic", "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #0b2221;
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  content: "";
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

img {
  display: block;
  max-width: 100%;
}

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

.container {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 22%, rgba(223, 181, 95, 0.17), transparent 18rem),
    radial-gradient(circle at 5% 90%, rgba(108, 167, 111, 0.2), transparent 19rem),
    linear-gradient(135deg, #0d2928 0%, #163d35 55%, #0b2423 100%);
}

.hero::after {
  position: absolute;
  right: -80px;
  bottom: -140px;
  width: 430px;
  height: 280px;
  content: "";
  border-radius: 50%;
  background: rgba(117, 169, 110, 0.16);
  filter: blur(52px);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(450px, 1.12fr);
  gap: 60px;
  align-items: center;
  min-height: 535px;
  padding-top: 52px;
  padding-bottom: 52px;
}

.hero-copy {
  max-width: 540px;
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--forest-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.eyebrow i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 6px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: 2px;
}

.eyebrow-dark {
  color: var(--forest-soft);
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  color: var(--cream);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1.08;
}

.hero-copy h1 {
  font-size: clamp(44px, 5.4vw, 67px);
}

.hero-copy h1 em,
.section-heading h2 em,
.download-card h3 em {
  color: var(--gold);
  font-style: normal;
}

.hero-description {
  margin: 22px 0 27px;
  color: rgba(245, 236, 217, 0.7);
  font-size: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--cream);
  background: var(--terracotta);
  box-shadow: 0 10px 20px rgba(159, 73, 47, 0.17);
}

.button-primary:hover {
  background: #9f4e36;
  box-shadow: 0 13px 24px rgba(159, 73, 47, 0.24);
}

.button-text {
  color: var(--cream);
  border-bottom: 1px solid rgba(245, 236, 217, 0.34);
}

.button-text:hover {
  color: var(--gold);
  border-color: var(--terracotta);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
  color: rgba(245, 236, 217, 0.56);
  font-size: 10px;
}

.hero-facts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-facts span::before {
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: #86bd86;
}

.hero-art {
  position: relative;
  min-height: 385px;
}

.art-frame {
  position: absolute;
  top: 14px;
  right: 0;
  width: min(100%, 570px);
  padding: 12px;
  border: 1px solid rgba(245, 236, 217, 0.34);
  background: rgba(21, 57, 49, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(7px);
  transform: rotate(2deg);
}

.art-frame::before {
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(245, 236, 217, 0.18);
  content: "";
  pointer-events: none;
}

.art-frame img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  object-position: center;
  border: 4px solid rgba(245, 236, 217, 0.68);
}

.art-label {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 11px 2px 1px;
}

.art-label span {
  color: var(--forest-soft);
  font-size: 9px;
  letter-spacing: 0.15em;
}

.art-label strong {
  color: var(--cream);
  font-family: var(--display);
  font-size: 15px;
}

.art-note {
  position: absolute;
  bottom: 9px;
  left: 5px;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  color: #163d35;
  border: 2px solid #0d2928;
  border-radius: 50%;
  background: var(--gold);
  font-family: var(--display);
  font-size: 12px;
  line-height: 1.15;
  text-align: center;
  transform: rotate(-10deg);
}

.art-note b {
  font-size: 15px;
}

.download-section {
  padding: 108px 0 120px;
  background:
    radial-gradient(circle at 85% 16%, rgba(96, 155, 102, 0.14), transparent 20rem),
    #102b29;
  border-top: 1px solid rgba(245, 236, 217, 0.1);
}

.section-heading {
  max-width: 620px;
  margin-bottom: 31px;
}

.section-heading h2 {
  font-size: clamp(35px, 4vw, 49px);
}

.section-heading > p:last-child {
  margin: 14px 0 0;
  color: rgba(245, 236, 217, 0.62);
  font-size: 13px;
}

.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  overflow: hidden;
  border: 1px solid rgba(245, 236, 217, 0.2);
  background: #173b34;
  box-shadow: var(--shadow);
}

.download-card-main {
  padding: 34px 36px;
}

.tag {
  display: inline-block;
  padding: 3px 7px;
  color: #f0bf9f;
  background: rgba(197, 103, 70, 0.18);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.download-card h3 {
  margin: 15px 0 10px;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
}

.download-card-main p {
  max-width: 460px;
  margin: 0 0 22px;
  color: rgba(245, 236, 217, 0.62);
  font-size: 12px;
}

.download-card-aside {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 30px;
  color: #e0ebdc;
  background:
    linear-gradient(rgba(9, 35, 32, 0.82), rgba(9, 35, 32, 0.94)),
    url("./assets/stoneage/bg_mainimage.jpg") center / cover;
}

.download-card-aside div {
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 253, 247, 0.15);
}

.download-card-aside div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.download-card-aside span {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.download-card-aside strong {
  font-family: var(--display);
  font-size: 17px;
}

.small-downloads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.small-download {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: #173b34;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.small-download:hover {
  border-color: rgba(223, 181, 95, 0.48);
  box-shadow: 0 12px 28px rgba(3, 16, 15, 0.28);
  transform: translateY(-2px);
}

.small-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--forest-soft);
  background: rgba(117, 169, 110, 0.15);
  font-size: 19px;
}

.small-icon.orange {
  color: var(--terracotta);
  background: rgba(197, 103, 70, 0.15);
}

.small-download b,
.small-download small {
  display: block;
}

.small-download b {
  color: var(--cream);
  font-family: var(--display);
  font-size: 16px;
}

.small-download small {
  color: rgba(245, 236, 217, 0.55);
  font-size: 10px;
}

.small-download > strong {
  color: var(--terracotta);
  font-size: 10px;
  white-space: nowrap;
}

.download-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 18px;
}

.download-overview > div {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(245, 236, 217, 0.13);
  background: rgba(23, 59, 52, 0.62);
}

.download-overview span {
  color: rgba(245, 236, 217, 0.55);
  font-size: 10px;
}

.download-overview strong {
  color: var(--gold);
  font-family: var(--display);
  font-size: 18px;
}

.empty-download {
  min-height: 180px;
  align-items: center;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 100ms;
}

@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
    padding-top: 50px;
    padding-bottom: 45px;
  }

  .hero-copy {
    max-width: 610px;
  }

  .hero-art {
    min-height: 300px;
    width: min(100%, 640px);
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 520px);
  }

  .hero-inner {
    padding-top: 38px;
    padding-bottom: 35px;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .hero-description {
    font-size: 12px;
  }

  .hero-art {
    min-height: 235px;
  }

  .art-frame {
    top: 3px;
    padding: 8px;
  }

  .art-frame img {
    height: 175px;
  }

  .art-label strong {
    font-size: 12px;
  }

  .art-label span {
    font-size: 8px;
  }

  .art-note {
    bottom: 0;
    left: -3px;
    width: 66px;
    height: 66px;
    font-size: 9px;
  }

  .art-note b {
    font-size: 12px;
  }

  .download-section {
    padding: 73px 0 80px;
  }

  .download-card {
    grid-template-columns: 1fr;
  }

  .download-overview {
    grid-template-columns: 1fr;
  }

  .download-card-main {
    padding: 25px 21px;
  }

  .download-card-aside {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 17px 21px;
  }

  .download-card-aside div {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .download-card-aside span {
    font-size: 7px;
  }

  .download-card-aside strong {
    font-size: 13px;
  }

  .small-downloads {
    grid-template-columns: 1fr;
  }

  .small-download {
    padding: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Deep slate StoneAge palette: keep the original page layout intact. */
:root {
  --forest: #d9c08b;
  --forest-soft: #9eb0b5;
  --cream: #f1e7d5;
  --paper: #101a23;
  --paper-deep: #263b47;
  --ink: #e2e5e1;
  --muted: #9caab0;
  --line: rgba(218, 190, 127, 0.18);
  --terracotta: #c86245;
  --gold: #e4b75f;
  --stone-forest: #0b151e;
  --stone-panel: #1b2c38;
  --stone-panel-deep: #0e1821;
  --stone-line: rgba(228, 183, 95, 0.28);
  --stone-gold: #e4b75f;
  --stone-red: #c86245;
  --stone-moss: #8fb0b2;
}

body {
  background:
    radial-gradient(circle at 10% 4%, rgba(143, 176, 178, 0.13), transparent 22rem),
    radial-gradient(circle at 92% 74%, rgba(200, 98, 69, 0.1), transparent 22rem),
    #09131c;
}

.hero {
  border-bottom: 1px solid rgba(228, 183, 95, 0.28);
  background:
    linear-gradient(90deg, rgba(8, 16, 24, 0.97), rgba(25, 48, 61, 0.88)),
    url("./assets/stoneage/bg_mainimage.jpg") right center / cover;
}

.hero::after {
  background: rgba(143, 176, 178, 0.14);
  filter: blur(58px);
}

.hero-copy h1 {
  text-shadow: 0 3px 0 rgba(10, 24, 34, 0.82), 0 16px 32px rgba(0, 0, 0, 0.28);
}

.hero-copy h1 em {
  color: var(--stone-gold);
}

.hero-description {
  color: rgba(245, 236, 217, 0.72);
}

.button {
  border-radius: 3px;
}

.button-primary {
  border: 1px solid rgba(228, 183, 95, 0.46);
  background: linear-gradient(135deg, #d8754f, #ad4e38);
  box-shadow: 0 8px 18px rgba(77, 36, 28, 0.3);
}

.button-primary:hover {
  background: linear-gradient(135deg, #e4845b, #bd5b3e);
  box-shadow: 0 11px 22px rgba(77, 36, 28, 0.38);
}

.button-text {
  color: var(--cream);
  border-bottom-color: rgba(228, 183, 95, 0.46);
}

.art-frame {
  border-color: rgba(228, 183, 95, 0.48);
  background: linear-gradient(145deg, rgba(30, 53, 65, 0.9), rgba(8, 20, 29, 0.94));
  box-shadow: 0 0 0 4px rgba(7, 17, 25, 0.54), var(--shadow);
}

.art-frame::before {
  border-color: rgba(228, 183, 95, 0.24);
}

.art-note {
  border-color: #0b151e;
  background: radial-gradient(circle at 35% 28%, #f2d88b, #e4b75f 64%, #a66a38);
  box-shadow: 4px 6px 0 rgba(5, 13, 20, 0.38);
}

.download-section {
  background:
    radial-gradient(circle at 86% 12%, rgba(143, 176, 178, 0.12), transparent 20rem),
    linear-gradient(rgba(14, 26, 34, 0.96), rgba(10, 19, 27, 0.98)),
    url("./assets/stoneage/wall_02_1024.jpg") center / cover;
}

.download-overview > div {
  border-top: 2px solid var(--stone-line);
  background: linear-gradient(145deg, rgba(31, 52, 64, 0.88), rgba(12, 23, 31, 0.9));
}

.download-overview > div:nth-child(1) {
  border-top-color: var(--stone-red);
}

.download-overview > div:nth-child(2) {
  border-top-color: var(--stone-moss);
}

.download-overview > div:nth-child(3) {
  border-top-color: var(--stone-gold);
}

.download-overview strong {
  color: var(--stone-gold);
}

.download-card {
  border-color: rgba(228, 183, 95, 0.32);
  border-top: 2px solid var(--stone-gold);
  background: linear-gradient(135deg, rgba(29, 49, 61, 0.98), rgba(10, 20, 28, 0.98));
  box-shadow: 0 22px 54px rgba(3, 10, 16, 0.46);
}

.download-card-main {
  background:
    linear-gradient(135deg, rgba(55, 82, 93, 0.28), rgba(11, 24, 32, 0.2)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 10px);
}

.download-card h3 em {
  color: var(--stone-gold);
}

.download-card-aside {
  border-left-color: rgba(228, 183, 95, 0.26);
}

.download-card-aside span {
  color: var(--stone-moss);
}

.small-download {
  border-color: rgba(228, 183, 95, 0.22);
  border-left: 3px solid var(--stone-moss);
  background: linear-gradient(145deg, rgba(27, 47, 59, 0.92), rgba(10, 21, 29, 0.94));
}

.small-download:hover {
  border-color: rgba(228, 183, 95, 0.52);
  border-left-color: var(--stone-gold);
  background: linear-gradient(145deg, rgba(42, 69, 82, 0.96), rgba(11, 25, 34, 0.98));
}

.small-icon {
  border: 1px solid rgba(143, 176, 178, 0.32);
  border-radius: 3px;
  color: var(--stone-moss);
  background: rgba(143, 176, 178, 0.15);
}

.small-download > strong {
  color: var(--stone-gold);
}
