/* Nacnacs: curious things for curious spaces */
:root {
  --bg: #1E1F22;
  --surface: #26272B;
  --surface-2: #2F3035;
  --line: #3A3B41;
  --text: #F4F3EE;
  --muted: #B9B8B2;
  --lime: #C6FF2E;
  --lime-ink: #1E1F22;
  --purple: #9D6BFF;
  --radius: 14px;
  --wrap: 1200px;
  --font: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime); text-underline-offset: 3px; }
a:hover { color: #E2FF8F; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.03em; margin: 0; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 32px, 740px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--lime); color: var(--lime-ink); padding: 8px 14px; border-radius: 8px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(30, 31, 34, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand img { height: 36px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 10px 14px; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.95rem;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { background: var(--surface-2); color: var(--lime); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; padding: 13px 12px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 20px; }
  .nav a { padding: 14px 16px; font-size: 1.1rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-family: var(--font); font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--amazon, .btn--primary { background: var(--lime); color: var(--lime-ink); }
.btn--amazon:hover, .btn--primary:hover { background: #D8FF6B; color: var(--lime-ink); }
.btn--amazon::after { content: "↗"; font-weight: 700; }
.btn--pending { opacity: .85; }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--purple); color: var(--text); }

/* Labels */
.eyebrow, .tag {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple);
  margin: 0 0 12px;
}
.eyebrow a { color: var(--purple); text-decoration: none; }
.eyebrow a:hover { color: var(--text); }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 24px 24px; }
.hero__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; padding: 88px 0 96px; }
.hero__title { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 700; letter-spacing: -0.045em; }
.hero__title em { font-style: normal; color: var(--lime); }
.hero__sub { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--muted); max-width: 34ch; margin: 24px 0 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__art { position: relative; aspect-ratio: 1; max-width: 440px; justify-self: end; width: 100%; }
.hero__art img { width: 100%; height: 100%; }
.hero__badge {
  position: absolute; bottom: 6%; left: -4%; background: var(--purple); color: #fff; font-family: var(--mono);
  font-size: 0.78rem; padding: 10px 14px; border-radius: 10px; transform: rotate(-4deg);
}
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; padding: 56px 0 64px; gap: 32px; }
  .hero__art { max-width: 260px; justify-self: start; order: -1; }
}

/* Sections */
.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section__title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
.section__lede { color: var(--muted); max-width: 60ch; margin: 12px 0 0; }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " →"; }
@media (max-width: 600px) { .section { padding: 56px 0; } }

/* Product grid and cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s ease, transform .15s ease; }
.card:hover { border-color: var(--purple); transform: translateY(-2px); }
.card__media { aspect-ratio: 1; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px; flex: 1; }
.card__cat { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple); text-decoration: none; }
.card__cat:hover { color: var(--text); }
.card__title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.card__desc { margin: 0; color: var(--muted); font-size: 0.97rem; flex: 1; }
.card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 4px; }
.card__price { font-family: var(--mono); font-size: 0.85rem; color: var(--text); background: var(--surface-2); padding: 4px 10px; border-radius: 999px; }
.card .btn--amazon { width: 100%; margin-top: 6px; }

.stars { display: inline-flex; gap: 3px; }
.star { width: 16px; height: 16px; background: var(--line);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.star--full { background: var(--lime); }
.star--half { background: linear-gradient(90deg, var(--lime) 50%, var(--line) 50%); }

/* Top picks: bold grid */
.toppicks { background: var(--surface); }
.toppicks .grid { grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; }
.toppicks .card:first-child { grid-row: span 2; }
.toppicks .card:first-child .card__title { font-size: 1.8rem; }
.toppicks .card:not(:first-child) { flex-direction: row; }
.toppicks .card:not(:first-child) .card__media { width: 42%; flex-shrink: 0; aspect-ratio: auto; }
.toppicks .grid { counter-reset: pick; }
.toppicks .card { position: relative; background: var(--bg); }
.toppicks .card::after {
  counter-increment: pick; content: "#" counter(pick);
  position: absolute; top: 14px; left: 14px; background: var(--lime); color: var(--lime-ink);
  font-family: var(--mono); font-weight: 500; font-size: 0.85rem; padding: 4px 10px; border-radius: 999px;
}
@media (max-width: 860px) {
  .toppicks .grid { grid-template-columns: 1fr; }
  .toppicks .card:first-child { grid-row: auto; }
  .toppicks .card:not(:first-child) { flex-direction: column; }
  .toppicks .card:not(:first-child) .card__media { width: 100%; aspect-ratio: 1; }
}

/* Category tiles */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.cat-tile {
  display: flex; flex-direction: column; gap: 12px; min-height: 230px; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); text-decoration: none; transition: border-color .15s ease, transform .15s ease;
}
.cat-tile:hover { border-color: var(--lime); color: var(--text); transform: translateY(-2px); }
.cat-tile__code { font-family: var(--mono); font-size: 0.8rem; color: var(--purple); }
.cat-tile__name { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.cat-tile__blurb { color: var(--muted); font-size: 0.95rem; margin: 0; flex: 1; }
.cat-tile__go { font-weight: 700; color: var(--lime); }

/* Page header */
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line);
  background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 24px 24px; }
.page-head__title { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 700; letter-spacing: -0.04em; }
.page-head__lede { color: var(--muted); font-size: 1.15rem; max-width: 62ch; margin: 16px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; list-style: none; padding: 0; }
.chips a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 0.9rem; }
.chips a:hover, .chips a[aria-current="page"] { border-color: var(--lime); color: var(--lime); }

/* Blog list */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; transition: border-color .15s ease; }
.post-card:hover { border-color: var(--purple); color: var(--text); }
.post-card__img { aspect-ratio: 2 / 3; overflow: hidden; background: var(--surface-2); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.post-card__title { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.post-card__desc { color: var(--muted); margin: 0; font-size: 0.95rem; }
.post-card__date { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }

/* Blog post */
.post__head { padding: 56px 0 32px; }
.post__title { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 700; letter-spacing: -0.04em; }
.post__dek { font-size: 1.2rem; color: var(--muted); margin: 16px 0; }
.post__meta { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin: 0; }
.post__hero { margin: 0 auto 40px; max-width: 560px; }
.post__hero img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }
.post__body { font-size: 1.15rem; line-height: 1.75; }
.post__body h2 { font-size: 1.8rem; margin: 48px 0 16px; }
.post__body h3 { font-size: 1.35rem; margin: 32px 0 12px; }
.post__body p, .post__body ul, .post__body ol { margin: 0 0 20px; }
.post__body li { margin-bottom: 6px; }
.post__body blockquote { margin: 32px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--purple); color: var(--muted); }
.post__body .card { margin: 28px 0; }
.post__body .card { flex-direction: row; }
.post__body .card__media { width: 38%; flex-shrink: 0; aspect-ratio: auto; }
.post__body .card__title { font-size: 1.4rem; margin: 0; }
.post__body .card__desc { font-size: 1rem; line-height: 1.55; }
.post__body .grid { margin: 28px 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post__body .grid .card { flex-direction: column; margin: 0; }
.post__body .grid .card__media { width: 100%; aspect-ratio: 1; }
@media (max-width: 600px) {
  .post__body .card { flex-direction: column; }
  .post__body .card__media { width: 100%; aspect-ratio: 1; }
  .post__body .grid { grid-template-columns: 1fr; }
}
.post__disclosure { font-family: var(--mono); font-size: 0.8rem !important; color: var(--muted); border: 1px dashed var(--line); padding: 12px 16px; border-radius: 10px; }
.post__more { padding: 32px 0 80px; }
.more-list { padding-left: 20px; }
.more-list li { margin: 8px 0; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.about__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.about__body p { margin: 0 0 18px; font-size: 1.15rem; }
.about__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.about__list li { padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.about__list strong { color: var(--lime); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Newsletter-ish callout */
.callout { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: 40px; border-radius: var(--radius); background: var(--purple); color: #fff; }
.callout h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.callout p { margin: 8px 0 0; max-width: 50ch; }
.callout .btn { background: var(--bg); color: var(--text); }
.callout .btn:hover { background: #000; color: var(--lime); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; background: #18191B; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer__brand p { color: var(--muted); margin: 12px 0 0; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 48px; }
.footer__h { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer ul a { color: var(--text); text-decoration: none; }
.footer ul a:hover { color: var(--lime); }
.footer__legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer__legal p { margin: 0; }
.footer__legal strong { color: var(--text); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
