/* OOBIX — Alien Pet Collection.
   Retro Saturday Morning Cartoon. Cream ground, black ink, bold
   chunky type, bright flat colors, thick borders, hard shadows.
   No framework, no build step. */

:root {
  --cream: #fff3d6;
  --paper: #fffaf0;
  --ink: #141414;
  --blue: #3b6fd4;
  --purple: #7b4fbf;
  --pink: #ff7aa8;
  --yellow: #ffd23f;
  --green: #3dbb7a;
  --orange: #ff7a2f;
  --teal: #2ab8a6;
  --grey: #6b6252;
  --line: #141414;
  --max: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Trebuchet MS", Verdana, Geneva, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--yellow); color: var(--ink); }

/* ---- layout ---- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; min-width: 0; }
main { min-height: 60vh; }

/* ---- nav ---- */
header.site {
  border-bottom: 3px solid var(--ink);
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  font-family: "Arial Black", "Trebuchet MS", sans-serif;
  font-weight: 900;
  letter-spacing: 0.14em;
  font-size: 22px;
  color: var(--cream);
  padding: 8px 0;
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--yellow); }
.brand .star { color: var(--pink); }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d8d0bd;
  padding: 8px 12px;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--yellow); }
.nav-links a.active { border-bottom: 3px solid var(--yellow); }

/* ---- type helpers ---- */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--purple);
}
h1, h2, h3 { color: var(--ink); font-weight: 900; line-height: 1.1; margin: 0; font-family: "Arial Black", "Trebuchet MS", sans-serif; }
h1 { font-size: clamp(48px, 10vw, 110px); letter-spacing: 0.02em; }
h2 { font-size: clamp(26px, 4vw, 40px); letter-spacing: 0.01em; }
.lede { font-size: clamp(17px, 2.2vw, 21px); color: #3d362a; max-width: 640px; }
.muted { color: var(--grey); }
.small { font-size: 13px; }
.mono { font-family: "Courier New", Courier, monospace; }
.rule { border: 0; border-top: 3px solid var(--ink); margin: 48px 0; }

/* ---- status line ---- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  max-width: 100%;
  box-shadow: 4px 4px 0 var(--ink);
}
.status .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--ink);
  flex: 0 0 auto;
}

/* ---- hero ---- */
.hero { padding: 64px 0 32px; }
.hero h1 { margin: 16px 0 8px; }
.hero h1 .o { color: var(--blue); }
.hero h1 .b { color: var(--purple); }
.hero .tagline {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--ink);
  text-transform: uppercase;
}
.hero .lede { margin: 24px 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px;
  align-items: center;
}
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } }
.mascot {
  border: 3px solid var(--ink);
  border-radius: 24px;
  overflow: hidden;
  background: var(--pink);
  box-shadow: 8px 8px 0 var(--ink);
}
.mascot img { width: 100%; height: auto; }
.mascot figcaption {
  background: var(--paper);
  border-top: 3px solid var(--ink);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.btn {
  display: inline-block;
  border: 3px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  padding: 13px 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn.primary { background: var(--yellow); }
.btn.blue { background: var(--blue); color: #fff; }
.btn.pink { background: var(--pink); }

/* ---- sections / grid ---- */
.section { padding: 44px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.section-head a { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--blue); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  min-width: 0;
}
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }

.card {
  border: 3px solid var(--ink);
  border-radius: 20px;
  background: var(--paper);
  display: block;
  overflow: hidden;
  box-shadow: 5px 5px 0 var(--ink);
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.card:hover { text-decoration: none; transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.card .art {
  aspect-ratio: 4 / 5;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
}
.card .art img { width: 100%; height: 100%; object-fit: cover; }
.card .art .pending {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--grey);
  text-align: center;
  padding: 16px;
}
.card .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
}
.card .meta .id { font-size: 14px; font-weight: 900; color: var(--ink); letter-spacing: 0.06em; }
.card .meta .cls {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: right;
}
.rar-Common { color: var(--grey); }
.rar-Uncommon { color: var(--green); }
.rar-Rare { color: var(--blue); }
.rar-Epic { color: var(--purple); }
.rar-Legendary { color: var(--orange); }

/* ---- stats ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 3px solid var(--ink);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
  overflow: hidden;
}
.stat { padding: 24px 20px; border-right: 3px solid var(--ink); min-width: 0; }
.stat:last-child { border-right: 0; }
.stat .num {
  font-size: clamp(26px, 3.4vw, 38px);
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.stat .lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 6px;
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 3px solid var(--ink); }
}

/* ---- filters / pagination ---- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 24px; }
.filters select, .filters input[type="search"] {
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  max-width: 100%;
}
.filters select:focus, .filters input[type="search"]:focus { outline: 3px solid var(--yellow); }
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.pager .count { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--grey); }

/* ---- detail ---- */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: 40px;
  align-items: start;
}
@media (max-width: 820px) { .detail { grid-template-columns: 1fr; } }
.detail .art {
  border: 3px solid var(--ink);
  border-radius: 20px;
  background: var(--cream);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 5px 5px 0 var(--ink);
}
.detail .art img { width: 100%; height: 100%; object-fit: cover; }
.attr-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.attr-table td {
  padding: 12px 4px;
  border-bottom: 2px solid #e5dcc2;
  font-size: 14px;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.attr-table td:first-child {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  width: 38%;
}
.badge {
  display: inline-block;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 14px;
}

/* ---- mint steps / price table ---- */
.steps { display: grid; gap: 0; border-top: 3px solid var(--ink); }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 3px solid var(--ink);
}
.step .n { font-size: 26px; font-weight: 900; color: var(--purple); font-family: "Arial Black", sans-serif; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { margin: 0; color: #3d362a; max-width: 640px; }

.prompt-box {
  border: 3px solid var(--ink);
  border-radius: 20px;
  background: var(--paper);
  padding: 24px;
  margin: 24px 0;
  box-shadow: 5px 5px 0 var(--ink);
}
.prompt-box pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
}
.prompt-box .btn { margin-top: 18px; }

.note {
  border-left: 6px solid var(--orange);
  background: var(--paper);
  border-radius: 0 16px 16px 0;
  padding: 16px 18px;
  color: #3d362a;
  max-width: 680px;
}
.note strong { color: var(--ink); }

.price-table { width: 100%; border-collapse: collapse; margin-top: 16px; background: var(--paper); border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; }
.price-table th, .price-table td { padding: 14px 16px; text-align: left; border-bottom: 2px solid #e5dcc2; font-size: 15px; }
.price-table th { background: var(--yellow); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.price-table tr:last-child td { border-bottom: 0; }

/* ---- about / faq ---- */
.prose { max-width: 680px; }
.prose p { color: #3d362a; margin: 0 0 18px; }
.prose p strong { color: var(--ink); }
.species-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
@media (max-width: 620px) { .species-list { grid-template-columns: 1fr; } }
.species-item { background: var(--paper); border: 3px solid var(--ink); border-radius: 16px; padding: 20px; box-shadow: 4px 4px 0 var(--ink); }
.species-item h3 { font-size: 16px; margin-bottom: 8px; }
.species-item p { margin: 0; color: var(--grey); font-size: 14px; }
.faq-item { border: 3px solid var(--ink); border-radius: 16px; background: var(--paper); padding: 20px 22px; margin-bottom: 16px; box-shadow: 4px 4px 0 var(--ink); }
.faq-item h3 { font-size: 17px; margin-bottom: 8px; }
.faq-item p { margin: 0; color: #3d362a; }

/* ---- footer ---- */
footer.site {
  border-top: 3px solid var(--ink);
  background: var(--ink);
  color: #d8d0bd;
  margin-top: 64px;
  padding: 36px 0 48px;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d8d0bd;
}
.foot a { color: var(--yellow); }
.foot .warn { color: var(--pink); }

/* ---- empty / loading states ---- */
.empty {
  border: 3px dashed var(--ink);
  border-radius: 20px;
  padding: 48px 24px;
  text-align: center;
  color: var(--grey);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 2;
}
