/* Woolly Team uses the Woolly site's rules: one Woolly blue on ice white,
   light only, Inter Tight (light for headings), pill buttons with arrows
   that grow, and no underlines anywhere. Links ease to a lighter blue. */

@font-face {
  font-family: 'Inter Tight';
  src: url('/static/fonts/inter-tight-latin.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #1a3fd1;
  --blue-soft: color-mix(in oklch, #1a3fd1 60%, white);
  --paper: #eef4fb;
  --card: #f6f9fd;
  --line: color-mix(in oklch, #1a3fd1 20%, transparent);
  --muted: #4f68cc;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--blue);
  font-family: 'Inter Tight', 'Helvetica Neue', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 150ms ease; }
a:hover, a:focus-visible { color: var(--blue-soft); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

code, .mono { font-family: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.92em; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(238, 244, 251, 0.9); /* the paper color; color-mix with transparent tints it pink */
  backdrop-filter: blur(8px);
}
.nav-inner { display: flex; height: 56px; align-items: center; justify-content: space-between; gap: 16px; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .nav-inner { padding: 0 32px; } }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 500; letter-spacing: -0.03em; }
.brand img { height: 26px; width: auto; image-rendering: pixelated; }
.brand small { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.nav-links form { margin: 0; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }

main { padding: 56px 0 96px; }

h1 { font-size: 44px; font-weight: 300; line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 16px; text-wrap: balance; }
@media (min-width: 640px) { h1 { font-size: 56px; } }
h2 { font-size: 28px; font-weight: 300; line-height: 1.1; letter-spacing: -0.025em; margin: 56px 0 16px; }
.lede { max-width: 620px; font-size: 18px; color: var(--muted); margin: 0 0 32px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; }

/* Pill buttons, with the arrow that grows on hover. */
.pill {
  display: inline-flex; height: 48px; align-items: center; gap: 16px;
  border: 1px solid var(--blue); border-radius: 999px; padding: 0 24px;
  background: transparent; color: var(--blue); font: inherit; font-size: 16px; cursor: pointer;
  transition: transform 120ms var(--ease), background-color 150ms ease, color 150ms ease;
}
.pill:hover, .pill:focus-visible { background: var(--blue); color: var(--paper); }
.pill.solid { background: var(--blue); color: var(--paper); }
.pill:active { transform: scale(0.97); }
.pill.small { height: 34px; padding: 0 14px; gap: 10px; font-size: 14px; }
.pill-arrow { display: inline-block; height: 1px; width: 22px; background: currentColor; position: relative; transition: width 260ms var(--ease); }
.pill-arrow::after {
  content: ''; position: absolute; right: 0; top: -4px; width: 9px; height: 9px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg); margin-right: 1px;
}
.pill:hover .pill-arrow, .pill:focus-visible .pill-arrow { width: 46px; }
.pill.small .pill-arrow { width: 14px; }
.pill.small:hover .pill-arrow { width: 26px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; transition: color 150ms ease; }
.link-button:hover { color: var(--blue-soft); }

/* Lists and tables */
.cards { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.card { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 20px 24px; }
.card a { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 20px; }

.stats { display: flex; flex-wrap: wrap; gap: 40px; margin: 8px 0 8px; padding: 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 14px; color: var(--muted); }
.stats dd { margin: 0; font-size: 44px; font-weight: 300; line-height: 1; letter-spacing: -0.04em; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-weight: 500; font-size: 13px; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.num { font-variant-numeric: tabular-nums; }

.tag { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.tag.on { background: var(--blue); color: var(--paper); border-color: var(--blue); }

/* On phones, each table row becomes a card with its labels. */
@media (max-width: 720px) {
  .stack table, .stack tbody, .stack tr, .stack td { display: block; width: 100%; }
  .stack thead { display: none; }
  .stack tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .stack tr:last-child { border-bottom: 0; }
  .stack td { border: 0; padding: 4px 0; }
  .stack td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); }
  .table-wrap.stack { overflow: visible; }
}

.review { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.decided { font-size: 14px; color: var(--muted); }

.note { border-left: 2px solid var(--blue); padding: 4px 0 4px 16px; color: var(--muted); max-width: 680px; margin: 24px 0; }
.empty { color: var(--muted); }

footer { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }

/* Dashboard */
.muted { color: var(--muted); }
.fine { font-size: 14px; color: var(--muted); margin-top: 48px; }
.eyebrow { display: block; font-size: 13px; letter-spacing: 0.02em; color: var(--muted); margin-bottom: 8px; }
.section-title { margin-top: 48px; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.page-head h1 { margin: 0; }
.page-head .sub { margin: 6px 0 0; color: var(--muted); }
.who { display: flex; align-items: center; gap: 20px; }
.monogram {
  display: inline-grid; place-items: center; width: 64px; height: 64px; flex: none;
  border-radius: 18px; background: var(--blue); color: var(--paper);
  font-size: 30px; font-weight: 300; text-transform: uppercase;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.tiles { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 20px 22px; min-height: 150px; }
.tile.hot { background: var(--blue); color: var(--paper); border-color: var(--blue); }
.tile.hot .tile-label, .tile.hot .tile-note { color: color-mix(in oklch, var(--paper) 80%, var(--blue)); }
.tile-label { font-size: 14px; color: var(--muted); }
.tile-num { font-size: 52px; font-weight: 300; line-height: 1; letter-spacing: -0.04em; margin-top: auto; }
.tile-num small { font-size: 24px; margin-left: 2px; letter-spacing: 0; }
.tile-note { font-size: 14px; color: var(--muted); }
.meter { appearance: none; -webkit-appearance: none; width: 100%; height: 6px; border: 0; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter::-webkit-progress-bar { background: var(--line); border-radius: 999px; }
.meter::-webkit-progress-value { background: var(--blue); border-radius: 999px; }
.meter::-moz-progress-bar { background: var(--blue); border-radius: 999px; }

.panel { border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 24px; margin-top: 16px; }
.panel h2 { margin: 0 0 16px; }
.panel p { margin: 0; color: var(--muted); max-width: 680px; }
.onboard { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 24px; }
.empty-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; max-width: 720px; }
.steps p { margin: 4px 0 0; color: var(--muted); }
.step-n { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border: 1px solid var(--blue); border-radius: 999px; font-size: 14px; }
.steps.big { gap: 28px; margin: 8px 0 24px; }
.steps.big li { max-width: none; }
.steps.big li > div { min-width: 0; flex: 1; }

.code { margin: 12px 0 0; padding: 18px 20px; border-radius: 14px; background: var(--blue); color: var(--paper); overflow-x: auto; font-size: 14px; line-height: 1.55; }
.code code { font-size: inherit; }

.repo-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: hidden; }
.repo-list li + li { border-top: 1px solid var(--line); }
.repo-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1.3fr) 46px; align-items: center; gap: 16px; padding: 18px 22px; transition: background-color 150ms ease; }
.repo-row:hover, .repo-row:focus-visible { background: color-mix(in oklch, var(--blue) 6%, var(--card)); color: var(--blue); }
.repo-row .pill-arrow { justify-self: end; width: 18px; }
.repo-row:hover .pill-arrow { width: 32px; }
.repo-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.repo-name strong { font-weight: 500; overflow-wrap: anywhere; }
.repo-state { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.repo-counts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 999px; flex: none; }
.dot.ok { background: var(--blue); }
.dot.warn { background: transparent; border: 2px solid var(--blue); }
.dot.off { background: var(--line); }
@media (max-width: 720px) {
  .repo-row { grid-template-columns: 1fr 28px; }
  .repo-row .repo-state, .repo-row .repo-counts { grid-column: 1; }
  .repo-row .pill-arrow { grid-row: 1; grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .pill, .pill-arrow, a { transition: none; }
  .pill:active { transform: none; }
}
