/* tinyblue.dev — sub-page styles
   Extends landing.css with patterns specific to /about, /projects, /timeline,
   /uses, /changelog, /dashboard, /nix, /privacy. Apple-style. Light/dark via
   [data-theme] OR prefers-color-scheme.
*/

/* Reuses :root tokens from landing.css; we only add new pattern classes. */

/* ────────── Breadcrumbs ────────── */

.crumbs {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px var(--gutter) 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}
.crumbs a { color: var(--ink-mute); }
.crumbs a:hover { color: var(--tb-blue); }
.crumbs__sep { padding: 0 8px; color: var(--ink-faint); }
.crumbs__current { color: var(--ink); }

/* ────────── Page head ────────── */

.page-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(32px, 5vw, 56px);
}
.page-head h1 {
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}
.page-head .lede {
  max-width: 72ch;
  margin: 0;
}

/* ────────── Two-column lockup ────────── */

.split-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.split-2--even {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 880px) {
  .split-2, .split-2--even { grid-template-columns: 1fr; }
}

.prose p {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 18px;
  letter-spacing: -0.011em;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }

/* ────────── Cards / Tiles ────────── */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.tile-grid--3 { grid-template-columns: repeat(3, 1fr); }
.tile-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .tile-grid, .tile-grid--3, .tile-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .tile-grid, .tile-grid--3, .tile-grid--4 { grid-template-columns: 1fr; }
}

.tile {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 22px 22px 20px;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease),
              box-shadow 220ms var(--ease);
}
.tile--hover:hover {
  transform: translateY(-2px);
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-2);
}
.tile__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 10px;
}
.tile__value {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.05;
  margin: 0 0 6px;
}
.tile__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tb-blue);
  margin: 0 0 10px;
}
.tile h3 {
  font-size: 19px;
  margin: 0 0 8px;
}
.tile p {
  margin: 0;
  color: var(--ink-mute);
  font-size: 14.5px;
  line-height: 1.55;
}

/* List inside tile */
.tile ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.tile li {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  padding: 4px 0;
  border-bottom: 1px dashed var(--rule);
}
.tile li:last-child { border-bottom: 0; }

/* ────────── Project / case-study cards ────────── */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .project-grid { grid-template-columns: 1fr; } }

.project {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 240ms var(--ease), border-color 240ms var(--ease),
              box-shadow 240ms var(--ease);
}
.project:hover {
  transform: translateY(-2px);
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-2);
}
.project__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.project__mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tb-blue-soft);
  color: var(--tb-blue);
}
.project__mark svg { width: 22px; height: 22px; }
.project__status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-tint);
  border: 1px solid var(--rule);
  color: var(--ink-mute);
}
.project__status--live { color: #2f8c4a; border-color: rgba(52,199,89,0.32); background: rgba(52,199,89,0.08); }
.project__status--build { color: #b46a00; border-color: rgba(255,159,10,0.32); background: rgba(255,159,10,0.08); }
.project__status--private { color: var(--ink-mute); }

[data-theme="dark"] .project__status--live { color: #57d28a; }
[data-theme="dark"] .project__status--build { color: #ffd07b; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .project__status--live { color: #57d28a; }
  :root:not([data-theme="light"]) .project__status--build { color: #ffd07b; }
}

.project h3 {
  font-size: 24px;
  margin: 0 0 4px;
}
.project__sub {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-mute);
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}
.project__summary {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.55;
  margin: 0 0 18px;
}
.project__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 18px;
}
.project__metric {
  background: var(--bg-tint);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.project__metric-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.project__metric-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}
.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
}
.project__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-tint);
  color: var(--ink-mute);
  border: 1px solid var(--rule);
}
.project__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.project__actions .btn { padding: 8px 16px; font-size: 13.5px; }

/* ────────── Timeline list ────────── */

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.timeline-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  align-items: start;
  transition: border-color 220ms var(--ease);
}
.timeline-row:hover { border-color: var(--rule-strong); }
.timeline-row__year {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tb-blue);
  padding-top: 4px;
}
.timeline-row h3 { margin: 0 0 8px; font-size: 22px; }
.timeline-row p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
@media (max-width: 720px) {
  .timeline-row { grid-template-columns: 1fr; gap: 8px; }
  .timeline-row__year { padding-top: 0; }
}

/* ────────── Changelog ────────── */

.changelog-entry {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 26px 28px;
}
.changelog-entry + .changelog-entry { margin-top: 14px; }
.changelog-entry__date {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tb-blue);
  margin-bottom: 8px;
}
.changelog-entry h3 {
  font-size: 22px;
  margin: 0 0 14px;
}
.changelog-entry ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.changelog-entry li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.55;
}
.changelog-entry li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tb-blue);
}

/* ────────── Privacy / list cards ────────── */

.note-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 720px) { .note-grid { grid-template-columns: 1fr; } }

.note {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 26px 28px;
}
.note h3 { margin: 0 0 12px; font-size: 22px; letter-spacing: -0.02em; }
.note p { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; }

/* ────────── Dashboard / Mission control grid ────────── */

.dash-section { margin-bottom: 28px; }
.dash-section__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}
.dash-section__head h2 {
  font-size: 18px;
  margin: 0;
  letter-spacing: -0.015em;
}
.dash-section__head .eyebrow { margin: 0; }

.dash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.dash-grid--6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 980px) {
  .dash-grid, .dash-grid--6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .dash-grid, .dash-grid--6 { grid-template-columns: repeat(2, 1fr); }
}

.dash-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 18px 18px;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease),
              border-color 200ms var(--ease);
}
.dash-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
  border-color: var(--rule-strong);
}
.dash-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--tb-blue-soft);
  color: var(--tb-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dash-card__icon svg { width: 18px; height: 18px; }
.dash-card h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.dash-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ────────── Journey row ────────── */

.journey {
  margin-top: clamp(48px, 8vw, 96px);
  padding-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--rule);
}
.journey__head { margin-bottom: 24px; max-width: 62ch; }
.journey__head h2 { font-size: clamp(24px, 3vw, 36px); margin: 0 0 12px; }
.journey__head p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 720px) { .journey-grid { grid-template-columns: 1fr; } }

.journey-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink);
  transition: transform 200ms var(--ease), border-color 200ms var(--ease);
}
.journey-card:hover {
  transform: translateY(-2px);
  border-color: var(--rule-strong);
  color: var(--ink);
}
.journey-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tb-blue);
}
.journey-card h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.015em;
}
.journey-card p {
  margin: 0;
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.5;
}
.journey-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--tb-blue);
  margin-top: 4px;
}
.journey-card:hover .journey-card__cta { color: var(--tb-blue-hover); }

/* ────────── Stat strip — reused ────────── */
/* (defined in landing.css; we just add a sub-page variant) */
.stat-strip--6 .stat-strip__inner {
  grid-template-columns: repeat(6, 1fr);
}
@media (max-width: 980px) {
  .stat-strip--6 .stat-strip__inner { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .stat-strip--6 .stat-strip__inner { grid-template-columns: repeat(2, 1fr); }
}

/* ────────── More-from-tinyblue (root index addition) ────────── */

.more-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 880px) { .more-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .more-row { grid-template-columns: 1fr; } }

.more-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--rule);
  background: var(--bg-elev);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.more-link:hover {
  color: var(--ink);
  border-color: var(--rule-strong);
  transform: translateY(-1px);
}
.more-link__label {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.more-link__sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
