@import url("./fonts/fonts.css");

:root {
  --paper: #f5f3ed;
  --ink: #152827;
  --muted: #526460;
  --mint: #b4f994;
  --line: #d6dbd3;
  --headline: "Bricolage Grotesque", "Arial", sans-serif;
  --text: "DM Sans", "Arial", sans-serif;
  font-family: var(--text);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
main { min-height: 70vh; }
main:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--headline); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
a:focus-visible {
  outline: 3px solid #297648;
  outline-offset: 4px;
}
.shell { width: min(1280px, calc(100% - 80px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 10;
  inset: 8px auto auto 8px;
  padding: 10px 18px;
  color: #091e1e;
  background: var(--mint);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header { padding-block: 15px; }
.header-row, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header-actions { display: flex; align-items: center; gap: clamp(14px, 3vw, 48px); }
.header-link { font-size: 14px; font-weight: 700; }
.header-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-image { width: 119px; height: auto; }
.language-menu {
  display: flex;
  gap: 2px;
  align-items: center;
  padding: 4px;
  border: 1px solid #d5dad1;
  border-radius: 100px;
}
.language-menu a {
  display: grid;
  place-items: center;
  min-width: 39px;
  min-height: 35px;
  padding-inline: 6px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
}
.language-menu a[aria-current] { background: #142b2b; color: white; }
.language-menu a:not([aria-current]):hover { background: #e2e8dd; }

.hero {
  min-height: 515px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  isolation: isolate;
  border-radius: 24px;
  overflow: hidden;
  color: #f4faf5;
  background: #142b2d;
  background-image: radial-gradient(ellipse at 82% 50%, #244f46 0%, #18383a 39%, #142b2d 68%);
}
.hero-copy {
  align-self: center;
  position: relative;
  z-index: 2;
  padding: 54px 0 60px clamp(35px, 5.6vw, 76px);
}
.eyebrow {
  color: #486859;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .145em;
}
.hero-eyebrow {
  color: #cbddd4;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before, .level-tag i {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  display: inline-block;
  border-radius: 2px;
  background: var(--mint);
}
.hero h1 {
  margin-top: 24px;
  font-size: clamp(48px, 5.55vw, 83px);
  line-height: .97;
  font-weight: 800;
  letter-spacing: -.049em;
}
.hero h1 span { color: var(--mint); }
.hero-description {
  max-width: 380px;
  margin-top: 25px;
  color: #d5e4dc;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.56;
}
.button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 49px;
  padding: 13px 19px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  transition: background .18s;
}
.hero .button { margin-top: 27px; }
.button--mint { color: #122822; background: var(--mint); }
.button--mint:hover { background: #d2ffb9; }
.hero .button:focus-visible { outline-color: white; }
.hero-art { position: relative; min-width: 0; isolation: isolate; }
.hero-grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .34;
  mask-image: radial-gradient(ellipse at 60% 53%, black 17%, transparent 76%);
  background-image: linear-gradient(#88bc9f38 1px, transparent 1px), linear-gradient(90deg, #88bc9f38 1px, transparent 1px);
  background-size: 35px 35px;
}
.hero-glimmer {
  position: absolute;
  z-index: -1;
  top: 45%;
  left: 50%;
  width: 76%;
  height: 76%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, #8eb98346, transparent 67%);
}
.hero-rings {
  position: absolute;
  z-index: -1;
  width: 65%;
  aspect-ratio: 1.35;
  top: 47%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-19deg);
  border: 1px solid #b4f99439;
  border-radius: 50%;
  box-shadow: 0 0 0 29px #b4f99415, 0 0 0 58px #b4f99412;
}
.hero-box {
  position: absolute;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(8px 19px 15px #07161585);
}
.hero-box--bit { width: 26%; top: 22%; left: 2%; transform: rotate(-13deg); }
.hero-box--tera { width: 27%; top: 16%; right: 3.5%; transform: rotate(11deg); }
.hero-box--byte { width: 33%; top: 31%; left: 12%; transform: rotate(-8deg); }
.hero-box--giga { width: 33%; top: 32%; right: 12%; transform: rotate(9deg); }
.hero-box--mega { width: 40%; top: 28%; left: 30%; transform: rotate(-1deg); }

.collection { padding-block: 67px 84px; scroll-margin-top: 25px; }
.section-intro h2 {
  margin-top: 10px;
  font-size: clamp(35px, 4.2vw, 58px);
  font-weight: 800;
  letter-spacing: -.047em;
  line-height: 1.03;
}
.section-intro > p:last-child { margin-top: 12px; font-size: 17px; color: var(--muted); }
.kit-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 31px;
}
.theme-bit { --tone: #d9eefe; --indicator: #0c639b; --tone-deep: #bbdffc; }
.theme-byte { --tone: #fff0cd; --indicator: #97600c; --tone-deep: #ffe0a2; }
.theme-mega { --tone: #e4e8f9; --indicator: #3d50a0; --tone-deep: #d0d9fa; }
.theme-giga { --tone: #fbe3e2; --indicator: #9b3645; --tone-deep: #f6c8c9; }
.theme-tera { --tone: #deeee1; --indicator: #1b694e; --tone-deep: #c9e7d0; }
.kit-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfaf6;
  transition: box-shadow .2s, transform .2s;
}
.kit-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px #192b2317; }
.kit-card-link { display: flex; flex-direction: column; height: 100%; border-radius: inherit; }
.kit-card-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.2;
  overflow: hidden;
  border-radius: 13px 13px 0 0;
  background: radial-gradient(ellipse at 52% 52%, var(--tone-deep), var(--tone) 72%);
}
.kit-card-media::before {
  content: "";
  position: absolute;
  width: 77%;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--indicator), transparent 78%);
  border-radius: 50%;
}
.kit-photo { position: absolute; width: 61%; height: 85%; object-fit: contain; filter: drop-shadow(5px 10px 8px #102b282e); }
.kit-card-info { flex: 1; display: flex; align-items: flex-start; flex-direction: column; padding: 16px; }
.level-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--indicator);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}
.level-tag i { background: var(--indicator); width: 6px; height: 6px; flex-basis: 6px; }
.kit-card-info h3 { margin-top: 8px; font-size: clamp(21px, 2vw, 30px); line-height: 1.05; letter-spacing: -.055em; }
.kit-card-info p { margin: 7px 0 19px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.kit-card-cta {
  width: 100%;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #e0e5dd;
  display: flex;
  justify-content: space-between;
  gap: 3px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}
.kit-card-cta span { color: var(--indicator); }

.detail { padding-block: 18px 73px; }
.back-link {
  display: inline-flex;
  gap: 8px;
  min-height: 44px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
}
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.detail-hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 462px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fbfaf6;
}
.detail-copy { align-self: center; padding: clamp(30px, 5vw, 62px); }
.detail-copy .level-tag { font-size: 13px; }
.detail-copy h1 { margin-top: 17px; font-size: clamp(58px, 7vw, 108px); font-weight: 800; letter-spacing: -.049em; line-height: .92; }
.detail-promise { margin-top: 20px; font-size: clamp(21px, 2.5vw, 32px); font-weight: 700; letter-spacing: -.04em; line-height: 1.1; }
.detail-description { margin-top: 14px; max-width: 52ch; color: var(--muted); font-size: 17px; line-height: 1.65; }
.detail-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 365px;
  background: radial-gradient(ellipse at 50% 53%, var(--tone-deep), var(--tone) 72%);
}
.detail-media::before {
  content: "";
  position: absolute;
  height: 76%;
  aspect-ratio: 1;
  max-width: 88%;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--indicator), transparent 75%);
  box-shadow: 0 0 0 23px #ffffff65;
}
.detail-photo {
  position: relative;
  width: 68%;
  height: 82%;
  max-height: 405px;
  object-fit: contain;
  filter: drop-shadow(10px 16px 14px #233a343b);
}
.detail-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 23px; }
.info-panel { padding: 30px; border: 1px solid var(--line); border-radius: 15px; background: #fbfaf6; }
.info-panel--project { background: var(--tone); }
.info-panel .eyebrow { color: var(--indicator); margin-bottom: 9px; }
.info-panel h2, .other-kits h2 { font-size: clamp(24px, 3vw, 33px); letter-spacing: -.05em; line-height: 1.08; }
.info-panel > p:last-child { margin-top: 12px; font-size: 16px; line-height: 1.6; }
.topic-list, .other-kits ul { list-style: none; margin: 13px 0 0; padding: 0; }
.topic-list li { display: flex; align-items: baseline; gap: 10px; padding-block: 9px; }
.topic-list li + li { border-top: 1px solid var(--line); }
.topic-list li::before { content: "↳"; color: var(--indicator); font-weight: 800; }
.other-kits { margin-top: 43px; }
.other-kits ul { display: flex; flex-wrap: wrap; gap: 8px; }
.other-kits a {
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}
.other-kits a:hover { background: #e4ebe0; }
.missing { display: grid; align-content: center; justify-items: start; gap: 20px; min-height: 65vh; }
.missing h1 { font-size: clamp(35px, 6vw, 65px); }
.site-footer { border-top: 1px solid var(--line); padding-block: 23px; color: var(--muted); font-size: 12px; }
.site-footer .brand { color: var(--ink); }
.brand--footer .brand-image { width: 95px; }

@media (max-width: 1050px) {
  .shell { width: calc(100% - 48px); }
  .kit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { min-height: 456px; }
  .hero-box--tera { top: 23%; }
  .hero-box--mega { top: 32%; }
}
@media (max-width: 670px) {
  .shell { width: calc(100% - 32px); }
  .site-header { padding-block: 12px; }
  .brand-image { width: 96px; }
  .header-link { display: none; }
  .hero { display: block; border-radius: 17px; min-height: 0; }
  .hero-copy { padding: 31px 22px 2px; }
  .hero h1 { margin-top: 17px; font-size: clamp(42px, 10.5vw, 61px); }
  .hero-description { margin-top: 15px; }
  .hero .button { margin-top: 19px; }
  .hero-art { height: clamp(230px, 64vw, 330px); margin-top: 0; }
  .hero-box--bit { top: 17%; }
  .hero-box--tera { top: 13%; }
  .hero-box--byte, .hero-box--giga { top: 25%; }
  .hero-box--mega { top: 22%; }
  .collection { padding-block: 44px 55px; }
  .kit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 20px; }
  .kit-card-info { padding: 11px; }
  .detail-hero, .detail-panels { grid-template-columns: 1fr; }
  .detail-copy { padding: 31px 22px; }
  .detail-media { min-height: 260px; }
  .detail-photo { max-height: 290px; }
  .detail { padding-top: 8px; }
  .info-panel { padding: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
