/* camkennedy.ai: shared styles.
   Helvetica Neue bold + thin, cream not white, light first, rounded (not pill) corners,
   real pages with soft transitions between them. */

@view-transition { navigation: auto; }

:root {
  --bg: #F5EFE4;
  --bg-2: #EDE5D6;
  --card: #FBF8F2;
  --ink: #1C1A16;
  --muted: #6F685C;
  --line: rgba(28, 26, 22, .12);
  --accent: #5b50e8;
  --accent-ink: #FFFFFF;
  /* playful extras */
  --tomato: #FF6B4A;
  --sun: #FFC94D;
  --mint: #5CC79B;
  --sky: #6AA7F8;
  --pink: #F59AC2;
  --lilac: #B9AFFF;
  --tint-1: #EFE6DA;
  --tint-2: #E6E8EA;
  --tint-3: #E4E8E1;
  --tint-4: #EEE7D8;
  --tint-5: #E8E5EC;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 0 rgba(28, 26, 22, .04), 0 12px 32px -18px rgba(28, 26, 22, .35);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #171511;
  --bg-2: #201D18;
  --card: #221F1A;
  --ink: #F4EEE3;
  --muted: #A69E90;
  --line: rgba(244, 238, 227, .12);
  --accent: #8B82F5;
  --tint-1: #3A2A24;
  --tint-2: #222D3D;
  --tint-3: #213229;
  --tint-4: #3A321E;
  --tint-5: #2E2840;
  --shadow: 0 12px 32px -18px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--ink); color: var(--bg); }

.thin { font-weight: 200; }
.bold { font-weight: 700; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
  view-transition-name: topbar;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 8px; font-size: 20px; letter-spacing: -.02em; white-space: nowrap; }
.brand b { font-weight: 700; }
.brand span { font-weight: 200; color: var(--muted); }
/* The letters hop in a quick wave on hover (site.js wraps each one in .ch). */
/* Logo + name bounce together on hover (the link itself stays put so the hover doesn't flicker). */
.brand-mark { width: 30px; height: 30px; flex: none; align-self: center; border-radius: 8px; margin-right: -3px; }
:root[data-theme="dark"] .brand-mark { box-shadow: 0 0 0 1px var(--line); }
.brand > * { display: inline-block; }
.brand:hover > * { animation: brandHop .8s cubic-bezier(.45, 0, .25, 1) both; }
@keyframes brandHop { 0%, 100% { transform: translateY(0); } 38% { transform: translateY(-4px); } 68% { transform: translateY(.75px); } 85% { transform: translateY(-.25px); } }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none; font-size: 16px; font-weight: 500;
  padding: 9px 14px; border-radius: 10px;
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--bg-2); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.theme-btn {
  width: 40px; height: 40px; margin-left: 6px;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  transition: transform .3s var(--ease), background .2s;
}
.theme-btn:hover { background: var(--bg-2); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--ink); }
.display {
  font-size: clamp(48px, 8.6vw, 124px);
  line-height: .95; letter-spacing: -.045em; margin: 0;
}
.h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1; letter-spacing: -.035em; margin: 0; }
.lead { font-size: clamp(19px, 2vw, 24px); font-weight: 300; color: var(--muted); max-width: 40ch; line-height: 1.45; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: var(--radius);
  background: var(--ink); color: var(--bg);
  font: 600 16px/1 var(--font); text-decoration: none; border: 0; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.tag {
  display: inline-block; font-size: 13px; font-weight: 500;
  padding: 5px 10px; border-radius: 8px;
  background: var(--bg-2); color: var(--ink);
}
.tag.ai { background: var(--accent); color: #fff; }
.tag.live { background: #DCEBDD; color: #1F4A2A; }
:root[data-theme="dark"] .tag.live { background: #22382A; color: #BFE3C8; }
.tag.invite { background: #EFE3C2; color: #4A3A10; }
:root[data-theme="dark"] .tag.invite { background: #3A321E; color: #EBD9A6; }

/* ---------- Big heading links (each goes to its own page) ---------- */
.big-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.big-links li { border-bottom: 1px solid var(--line); }
.big-links a {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 20px;
  padding: 26px 8px; text-decoration: none; position: relative; overflow: hidden;
  border-radius: var(--radius);
  transition: padding .35s var(--ease), background .35s var(--ease);
}
.big-links .num { font-weight: 200; font-size: 20px; color: var(--muted); }
.big-links .label { font-weight: 700; font-size: clamp(40px, 6.5vw, 92px); letter-spacing: -.045em; line-height: 1; }
.big-links .note { font-weight: 300; color: var(--muted); font-size: 18px; text-align: right; max-width: 26ch; }
.big-links .go {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line);
  transition: transform .35s var(--ease), background .35s;
}
.big-links a:hover { padding-left: 20px; padding-right: 20px; background: var(--bg-2); }
.big-links a:hover .go { transform: rotate(-45deg); background: var(--ink); color: var(--bg); }
.big-links .meta { display: flex; align-items: center; gap: 20px; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--card); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .art {
  aspect-ratio: 4 / 3; position: relative; overflow: hidden;
  background: var(--art, var(--tint-2));
  display: grid; place-items: center;
}
.card .art img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.card:hover .art img { transform: scale(1.03); }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.card .title { font-size: 26px; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.card .desc { color: var(--muted); font-weight: 300; font-size: 17px; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

/* ---------- Sections & footer ---------- */
.section { padding: clamp(56px, 9vw, 120px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.footer { padding: 44px 0 52px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px 32px; flex-wrap: wrap; }
/* Left: the same name treatment as the top bar. Right: every link in one style. */
.f-id { display: flex; flex-direction: column; gap: 6px; }
.f-brand { font-size: 18px; letter-spacing: -.02em; }
.f-brand b { font-weight: 700; color: var(--ink); }
.f-brand span { font-weight: 200; color: var(--muted); }
.f-id small { font-size: 14px; font-weight: 300; color: var(--muted); }
.f-id .f-credit { max-width: 46ch; line-height: 1.45; }
.f-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; }
.f-links a, .f-links .report-link { font: 500 15px/1.4 var(--font); letter-spacing: -.01em; color: var(--ink); text-decoration: none; background: none; border: 0; padding: 4px 0; cursor: pointer; }
.f-links a:hover, .f-links .report-link:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* Page transitions between real pages (Chrome, Edge, Safari 18.2+) */
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px) scale(.99); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px) scale(.99); } }
/* Fallback for browsers without cross-page transitions */
body.page-enter main { animation: vt-in .5s var(--ease) both; }
body.page-leave main { animation: vt-out .22s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 32px); }
  .topbar .wrap { height: 64px; }
  .brand span { display: none; }
  .brand { font-size: 18px; }
  .nav { gap: 0; }
  .theme-btn { width: 36px; height: 36px; margin-left: 2px; }
  .nav a { padding: 8px 7px; font-size: 15px; }
  .big-links a { grid-template-columns: 36px 1fr auto; gap: 12px; padding: 20px 4px; }
  .big-links .note { display: none; }
  .big-links .go { width: 44px; height: 44px; border-radius: 12px; }
}

@media (max-width: 380px) {
  .brand { font-size: 16px; }
  .nav a { padding: 7px 5px; font-size: 14px; }
  .theme-btn { width: 34px; height: 34px; }
}

/* ---------- Sticky filter row (Games, Prints, Tools) ---------- */
/* Sits under the top bar; the box-shadow trick paints the background edge to edge. */
body .filters {
  position: sticky; top: 72px; z-index: 40;
  padding: 12px 0; margin-bottom: 18px;
  background: var(--bg);
  box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax);
  transition: box-shadow .3s;
}
body .filters.stuck { clip-path: inset(0 -100vmax -1px); box-shadow: 0 0 0 100vmax var(--bg), 0 1px 0 100vmax var(--line); }
body.filters-stuck .topbar { border-bottom-color: transparent; }

/* ---------- Leaving-the-site dialog ---------- */
.leave { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: min(460px, calc(100% - 32px)); width: 100%; }
.leave::backdrop { background: rgba(28, 26, 22, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.leave[open] { animation: leave-in .28s var(--ease); }
@keyframes leave-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.leave .box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.leave h2 { margin: 0 0 10px; font-size: 26px; letter-spacing: -.03em; line-height: 1.1; }
.leave p { margin: 0; color: var(--muted); font-weight: 300; }
.leave .dest { display: flex; align-items: center; gap: 10px; margin: 18px 0 22px; padding: 12px 14px; border-radius: var(--radius); background: var(--bg-2); font-weight: 600; word-break: break-all; }
.leave .dest svg { width: 18px; height: 18px; flex: none; }
.leave .row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Phone menu (built by site.js from the nav links) ---------- */
.menu-btn { display: none; }
.menu-panel { display: none; }
@media (max-width: 720px) {
  body .filters { top: 64px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
  body .filters::-webkit-scrollbar { display: none; }
  body .filters .chip { flex: none; }
}

/* Five nav links need room: below 900px they move into the Menu panel. */
@media (max-width: 900px) {
  .nav > a { display: none; }
  /* The Menu toggle: plain bold text in the menu's own type style, with a chevron that flips up when open. */
  .menu-btn {
    display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 8px 0 10px;
    border: 0; border-radius: 10px; background: none; color: var(--ink);
    font: 700 21px/1 var(--font); letter-spacing: -.035em; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .menu-btn svg { width: 17px; height: 17px; margin-top: 2px; transition: transform .45s cubic-bezier(.65, 0, .25, 1); }
  .menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
  .menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  /* Full-page menu: the homepage's big numbered list, wiping down from the top with the rows rising in. */
  .menu-panel {
    position: fixed; inset: 0; z-index: 49; display: flex; flex-direction: column;
    padding: calc(var(--bar-h, 64px) + 14px) 16px calc(26px + env(safe-area-inset-bottom));
    background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; pointer-events: none; clip-path: inset(0 0 100% 0);
    transition: clip-path .5s cubic-bezier(.65, 0, .25, 1), visibility 0s linear .5s;
  }
  .menu-panel.open { visibility: visible; pointer-events: auto; clip-path: inset(0); transition: clip-path .55s cubic-bezier(.65, 0, .25, 1), visibility 0s; }
  .menu-panel > * { width: 100%; max-width: 760px; margin-left: auto; margin-right: auto; }
  .menu-links li, .menu-foot { opacity: 0; transform: translateY(28px); transition: opacity .25s var(--ease), transform .35s var(--ease); }
  .menu-panel.open .menu-links li, .menu-panel.open .menu-foot { opacity: 1; transform: none; transition: opacity .45s var(--ease), transform .6s var(--ease); transition-delay: calc(.14s + var(--i, 0) * .055s); }
  .menu-links a { grid-template-columns: 40px 1fr auto; gap: 12px; padding: 18px 4px; }
  .menu-links .label { font-size: clamp(44px, 11vw, 78px); }
  .menu-links a[aria-current="page"] .num { color: var(--ink); font-weight: 500; }
  .menu-links a[aria-current="page"] .go { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .menu-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: auto; padding-top: 30px; font-size: 16px; }
  .menu-foot a { color: var(--muted); text-decoration: none; font-weight: 500; padding: 6px 0; }
  .menu-foot a:hover, .menu-foot a[aria-current="page"] { color: var(--ink); }
  html.menu-open { overflow: hidden; }
  html.menu-open .topbar { background: var(--bg); border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Special tags ---------- */
.tag .ic, .chip .ic { width: 12px; height: 12px; margin-right: 5px; vertical-align: -1px; }
.tag.love { background: #FBE1EC; color: #9C2459; }
:root[data-theme="dark"] .tag.love { background: #46202F; color: #F7B5CF; }
.chip .ic { color: #D9467F; }
.chip[aria-pressed="true"] .ic { color: #F7B5CF; }
/* Milwaukee Packout: Milwaukee red with a white M, as a tag and as a filter chip. */
.tag.mil { background: #DB021D; color: #fff; font-weight: 600; }
.tag.mil .ic { width: 13px; height: 13px; }
body .chip[data-tag="Milwaukee Packout"] { background: #DB021D; color: #fff; border-color: #DB021D; }
body .chip[data-tag="Milwaukee Packout"] .ic { color: #fff; width: 14px; height: 14px; }
body .chip[data-tag="Milwaukee Packout"] .n { color: rgba(255, 255, 255, .75); }
body .chip[data-tag="Milwaukee Packout"]:hover { background: #B80018; border-color: #B80018; }
body .chip[data-tag="Milwaukee Packout"][aria-pressed="true"] { background: #8F0013; border-color: #8F0013; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #DB021D; }

/* ---------- Featured item (one per list, first and ringed) ---------- */
.g-art, .p-shot { position: relative; }
.featured { box-shadow: 0 0 0 2px var(--accent), 0 24px 48px -26px color-mix(in srgb, var(--accent) 75%, #000) !important; }
.featured.flash { animation: featFlash 2.2s var(--ease) .4s both; }
@keyframes featFlash { 0%, 100% { outline: 0 solid transparent; outline-offset: 0; } 30% { outline: 6px solid color-mix(in srgb, var(--accent) 30%, transparent); outline-offset: 4px; } }
.feat-badge { position: absolute; top: 14px; left: 14px; z-index: 6; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 8px; background: var(--accent); color: #fff; font: 600 12px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--accent) 85%, #000); pointer-events: none; }
.feat-badge svg { width: 12px; height: 12px; }
@media (prefers-reduced-motion: reduce) { .featured.flash { animation: none; } }

/* ---------- Report a bug ---------- */
.report-link { font: inherit; color: var(--ink); font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.report-link:hover { text-decoration-color: currentColor; }
.leave.report { max-width: min(520px, calc(100% - 32px)); }
.report .rf { display: grid; gap: 6px; margin-top: 16px; font-size: 15px; font-weight: 600; }
.report .rf i { font-style: normal; font-weight: 300; color: var(--muted); }
.report textarea, .report input { font: 400 16px/1.45 var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; resize: vertical; }
.report textarea:focus, .report input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.report .fine { font-size: 13px; margin: 12px 0 0; }
.report .fine a { color: inherit; }
.report .ts { margin: 14px 0 0; min-height: 0; }
.report .msg { min-height: 1.2em; margin: 10px 0 14px; font-size: 14px; color: var(--ink); }
.report .go[disabled] { opacity: .5; pointer-events: none; }
