/* yicketty.com - house theme, shared by every page.
   Same palette and type as the Yicketty apps (winfield, posey, jigger):
   Titillium Web for text, Reenie Beanie for the tagline, the blue family,
   cards that lift on hover. Self-contained: no Bootstrap. */

:root {
  --primary-blue: #1E3A8A;
  --secondary-blue: #3B82F6;
  --accent-red: #DC2626;
  --success-green: #10B981;

  --ink: #14213D;
  --muted: #5B6478;
  --ground: #F6F7F9;
  --card: #FFFFFF;
  --paper: #EEF2FF;
  --line: #D9DEEB;
  --link: #2563EB;
  --shadow: 0 4px 6px rgba(0, 0, 0, .07);
  --shadow-lift: 0 10px 18px rgba(0, 0, 0, .13);

  --pill-done-bg: #D1FAE5;  --pill-done-ink: #065F46;
  --pill-build-bg: #DBEAFE; --pill-build-ink: #1E40AF;
  --pill-next-bg: #E5E7EB;  --pill-next-ink: #374151;
  --pill-demo-bg: #FEE2E2;  --pill-demo-ink: #991B1B;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E6EAF4; --muted: #A3ACC2; --ground: #0F1526; --card: #161E34;
    --paper: #1C2540; --line: #2A3453; --link: #7FA8FF;
    --shadow: 0 4px 8px rgba(0, 0, 0, .35); --shadow-lift: 0 12px 22px rgba(0, 0, 0, .5);
    --pill-done-bg: #064E3B;  --pill-done-ink: #A7F3D0;
    --pill-build-bg: #1E3A8A; --pill-build-ink: #BFDBFE;
    --pill-next-bg: #374151;  --pill-next-ink: #E5E7EB;
    --pill-demo-bg: #7F1D1D;  --pill-demo-ink: #FECACA;
  }
}
:root[data-theme="dark"] {
  --ink: #E6EAF4; --muted: #A3ACC2; --ground: #0F1526; --card: #161E34;
  --paper: #1C2540; --line: #2A3453; --link: #7FA8FF;
  --shadow: 0 4px 8px rgba(0, 0, 0, .35); --shadow-lift: 0 12px 22px rgba(0, 0, 0, .5);
  --pill-done-bg: #064E3B;  --pill-done-ink: #A7F3D0;
  --pill-build-bg: #1E3A8A; --pill-build-ink: #BFDBFE;
  --pill-next-bg: #374151;  --pill-next-ink: #E5E7EB;
  --pill-demo-bg: #7F1D1D;  --pill-demo-ink: #FECACA;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: 'Titillium Web', 'Segoe UI', system-ui, sans-serif;
  font-size: 17px; line-height: 1.55;
}
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 3px solid var(--secondary-blue); outline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
code { font-family: Consolas, 'Cascadia Mono', Menlo, monospace; font-size: .9em; background: var(--paper); padding: 1px 6px; border-radius: 4px; }

/* ---- the navy bar every app wears ---- */
.bar { background: var(--primary-blue); color: #fff; }
.bar .in {
  max-width: 1100px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.brand img {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none;
}
.brand .site-title { font-size: 1.8rem; font-weight: 700; line-height: 1; letter-spacing: .01em; }
.brand .tagline {
  font-family: 'Reenie Beanie', 'Titillium Web', cursive; font-size: 1.55rem; line-height: 1;
  opacity: .9; display: block; margin-top: 4px;
}
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 14px; border-radius: 6px; transition: background .2s;
}
.nav a:hover { background: rgba(255, 255, 255, .12); }
.nav a.active { background: var(--secondary-blue); border: 2px solid var(--accent-red); padding: 6px 12px; }

/* ---- page frame ---- */
main { max-width: 1100px; margin: 0 auto; padding-block: 40px 56px; padding-inline: 24px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
h1 { font-size: clamp(32px, 4.5vw, 44px); font-weight: 700; letter-spacing: -.5px; }
.lede { font-size: 21px; font-weight: 300; line-height: 1.45; max-width: 60ch; margin: 12px 0 8px; }
h2 { font-size: 26px; font-weight: 600; margin-top: 48px; margin-bottom: 12px; }
h2 .sub { font-family: 'Reenie Beanie', cursive; font-size: 24px; font-weight: 400; color: var(--muted); margin-left: 10px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); }

/* ---- cards, the house lift ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; margin-top: 20px; }
.card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 22px 22px 18px;
  color: inherit; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--secondary-blue); }
a.card:hover .card-title { color: var(--secondary-blue); }
.card-top { display: flex; align-items: center; gap: 14px; }
.mono {
  width: 52px; height: 52px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  font-weight: 700; font-size: 26px; color: #fff; letter-spacing: -.5px;
  background: linear-gradient(145deg, var(--secondary-blue), var(--primary-blue));
}
.mono.red { background: linear-gradient(145deg, #EF4444, var(--accent-red)); }
.mono.green { background: linear-gradient(145deg, #34D399, #059669); }
.mono.gold { background: linear-gradient(145deg, #FBBF24, #D97706); }
.mono.purple { background: linear-gradient(145deg, #A78BFA, #6D28D9); }
.card-title { font-size: 1.35rem; font-weight: 700; margin: 0; transition: color .2s; }
.card-kicker { font-family: 'Reenie Beanie', cursive; font-size: 1.25rem; color: var(--muted); line-height: 1; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.card-foot .more { font-weight: 600; color: var(--link); }

/* status pills: green = shipped, blue = building, grey = up next, red = demo */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.done  { background: var(--pill-done-bg);  color: var(--pill-done-ink); }
.pill.build { background: var(--pill-build-bg); color: var(--pill-build-ink); }
.pill.next  { background: var(--pill-next-bg);  color: var(--pill-next-ink); }
.pill.demo  { background: var(--pill-demo-bg);  color: var(--pill-demo-ink); }
.pill.demo::before { content: "\25B6"; background: none; width: auto; height: auto; font-size: .7em; }

/* ---- a quiet cross-link strip (home page -> bench) ---- */
.strip {
  margin-top: 56px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent-red);
  border-radius: 10px; padding: 20px 24px; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.strip h2 { margin: 0 0 4px; font-size: 22px; }
.strip p { margin: 0; color: var(--muted); max-width: 60ch; }
.btn {
  display: inline-block; background: var(--secondary-blue); color: #fff; font-weight: 600;
  padding: 10px 18px; border-radius: 6px; text-decoration: none; white-space: nowrap; transition: background .2s;
}
.btn:hover { background: #2563EB; }
.btn.ghost { background: transparent; color: var(--link); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--paper); }

/* ---- project page ---- */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--link); text-decoration: underline; }
.project-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.project-head .mono { width: 68px; height: 68px; font-size: 34px; border-radius: 16px; }
.project-head .tag { font-family: 'Reenie Beanie', cursive; font-size: 1.8rem; color: var(--muted); line-height: 1; margin-top: 4px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 28px; align-items: start; margin-top: 8px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.prose { max-width: 66ch; }
.prose p { color: var(--ink); }
.prose h2:first-child { margin-top: 32px; }

.status-card {
  background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--success-green);
  border-radius: 10px; box-shadow: var(--shadow); padding: 18px 20px; margin-top: 32px;
}
.status-card.build { border-top-color: var(--secondary-blue); }
.status-card.next { border-top-color: #9CA3AF; }
.status-card h2 { margin: 0 0 12px; font-size: 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.status-card dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; column-gap: 16px; row-gap: 8px; font-size: .95rem; }
.status-card dt { color: var(--muted); font-weight: 600; }
.status-card dd { margin: 0; }
.status-card .checks { list-style: none; padding: 0; margin: 14px 0 0; font-size: .95rem; border-top: 1px solid var(--line); padding-top: 12px; }
.status-card .checks li { padding-left: 24px; position: relative; margin-bottom: 6px; }
.status-card .checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); }
.status-card .checks li.done::before { background: var(--success-green); border-color: var(--success-green); }
.status-card .checks li.doing::before { border-color: var(--secondary-blue); background: var(--secondary-blue); box-shadow: inset 0 0 0 2px var(--card); }
.status-card .checks li.todo { color: var(--muted); }

.demo { margin-top: 12px; }
.demo video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--primary-blue); border-radius: 10px; box-shadow: var(--shadow); }
.demo .cap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); margin-top: 10px; }
.demo-soon {
  min-height: 220px; border: 2px dashed var(--line); border-radius: 10px;
  background: var(--paper); display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted);
}
.demo-soon strong { display: block; color: var(--ink); font-size: 1.2rem; margin-bottom: 4px; }

/* ---- short FAQ on a project page ---- */
.faq { max-width: 66ch; margin: 12px 0 0; display: grid; gap: 14px; }
.faq dt { font-weight: 700; color: var(--ink); }
.faq dd { margin: 2px 0 0; color: var(--muted); font-size: .98rem; }
.faq dd code { font-size: .88em; }

.pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .95rem; }
.pager a { text-decoration: none; font-weight: 600; }
.pager a:hover { text-decoration: underline; }

footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 22px 24px; font-size: .92rem; color: var(--muted); }
footer .in { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer em { font-family: 'Reenie Beanie', cursive; font-style: normal; font-size: 1.25rem; }

@media (max-width: 600px) {
  .bar .in { padding: 10px 16px; }
  .brand .site-title { font-size: 1.5rem; }
  .brand .tagline { font-size: 1.3rem; }
  main { padding-inline: 16px; }
  footer { padding-inline: 16px; }
}
