:root {
  color-scheme: light;
  --paper: #f7f4ed;
  --surface: #fffdf8;
  --ink: #14212a;
  --muted: #64717a;
  --line: #d8d7d0;
  --blue: #176b87;
  --blue-soft: #dfeff2;
  --red: #a9463c;
  --gold: #a6782c;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans KR", "Noto Sans KR", system-ui, sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 81% 7%, rgb(23 107 135 / 9%), transparent 25rem),
    var(--paper);
}

a {
  color: inherit;
}

.lab-hero,
main,
footer {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.lab-hero {
  padding: 34px 0 76px;
  border-bottom: 1px solid var(--line);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.crumbs a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(42px, 8vw, 108px);
  align-items: end;
  padding-top: 78px;
}

.eyebrow,
.section-index {
  margin: 0 0 17px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-family: "Newsreader", "Noto Serif KR", serif;
  font-size: clamp(42px, 7.4vw, 88px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .98;
}

.hero-copy {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

main {
  padding: 78px 0 100px;
}

.live-tools {
  margin-bottom: 108px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Newsreader", "Noto Serif KR", serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -.035em;
}

.section-heading > p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
}

.tool-card {
  display: grid;
  grid-template-columns: minmax(330px, .9fr) minmax(360px, 1.1fr);
  min-height: 460px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.tool-visual {
  position: relative;
  display: grid;
  min-height: 460px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgb(255 255 255 / 6%), transparent),
    #163848;
}

.tool-visual::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
}

.mini-atom {
  position: relative;
  z-index: 1;
  width: 280px;
  height: 280px;
}

.mini-nucleus {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 64px;
  height: 64px;
  border: 1px solid rgb(255 255 255 / 54%);
  border-radius: 50%;
  background: #f3bc62;
  color: #193846;
  font-family: "Newsreader", serif;
  font-size: 25px;
  place-items: center;
  transform: translate(-50%, -50%);
}

.orbit {
  position: absolute;
  inset: 50%;
  display: block;
  border: 1px solid rgb(255 255 255 / 37%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-one {
  width: 112px;
  height: 112px;
}

.orbit-two {
  width: 180px;
  height: 180px;
}

.orbit-three {
  width: 252px;
  height: 252px;
}

.orbit b {
  position: absolute;
  top: 50%;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #79d2df;
  box-shadow: 0 0 12px #79d2df;
}

.orbit b:nth-child(2) {
  top: 9%;
  right: 13%;
  left: auto;
}

.orbit b:nth-child(3) {
  top: auto;
  right: 15%;
  bottom: 5%;
  left: auto;
}

.mini-periodic {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: grid;
  grid-template-columns: repeat(3, 30px);
  gap: 3px;
  opacity: .72;
}

.mini-periodic span,
.mini-periodic strong {
  display: grid;
  height: 30px;
  border: 1px solid rgb(255 255 255 / 28%);
  color: #fff;
  font-size: 9px;
  font-weight: 500;
  place-items: center;
}

.mini-periodic .blank {
  border-color: transparent;
}

.mini-periodic strong {
  border-color: #f3bc62;
  background: #f3bc62;
  color: #163848;
}

.tool-copy {
  display: flex;
  flex-direction: column;
  padding: clamp(34px, 5vw, 68px);
}

.tool-meta {
  display: flex;
  justify-content: space-between;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.tool-copy h3 {
  margin: 42px 0 15px;
  font-family: "Newsreader", "Noto Serif KR", serif;
  font-size: clamp(35px, 4.6vw, 56px);
  font-weight: 400;
  letter-spacing: -.04em;
}

.tool-copy p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.tool-copy ul {
  display: grid;
  gap: 7px;
  margin: 24px 0 34px;
  padding: 0;
  color: #43525c;
  font-size: 13px;
  list-style: none;
}

.tool-copy li::before {
  margin-right: 8px;
  color: var(--gold);
  content: "—";
}

.launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 280px);
  margin-top: auto;
  padding: 16px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  font-size: 14px;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}

.launch:hover,
.launch:focus-visible {
  background: transparent;
  color: var(--ink);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guide-grid article {
  min-height: 220px;
  padding: 30px 28px;
  border-right: 1px solid var(--line);
}

.guide-grid article:last-child {
  border-right: 0;
}

.guide-grid span {
  color: var(--blue);
  font-family: "Newsreader", serif;
}

.guide-grid h3 {
  margin: 38px 0 10px;
  font-size: 19px;
}

.guide-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.next-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 82px;
  border: 1px solid var(--line);
}

.next-links a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 18px;
  border-right: 1px solid var(--line);
  background: rgb(255 253 248 / 58%);
  font-size: 13px;
  text-decoration: none;
}

.next-links a:last-child {
  border-right: 0;
}

.next-links a:hover,
.next-links a:focus-visible {
  background: var(--blue-soft);
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .lab-hero,
  main,
  footer {
    width: min(calc(100% - 28px), var(--max));
  }

  .lab-hero {
    padding-top: 22px;
    padding-bottom: 48px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 48px;
  }

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

  main {
    padding: 54px 0 70px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

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

  .tool-visual {
    min-height: 360px;
  }

  .mini-atom {
    width: 250px;
    height: 250px;
    transform: scale(.88);
  }

  .tool-copy {
    min-height: 430px;
  }

  .guide-grid,
  .next-links {
    grid-template-columns: 1fr;
  }

  .guide-grid article,
  .next-links a {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .guide-grid article:last-child,
  .next-links a:last-child {
    border-bottom: 0;
  }

  .guide-grid h3 {
    margin-top: 22px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .launch {
    transition: none;
  }
}
