/* TynkTank — workshop ship-log.
   Ground #FAFAF8, ink #1D2433, per-product accents set inline via --accent. */

:root {
  --ground: #fafaf8;
  --ink: #1d2433;
  --ink-soft: #4b5263;
  --line: #e4e3dd;
  --live: #1a7f37;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main, .top, footer {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Header */
.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 28px;
  padding-bottom: 8px;
}
.wordmark {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 22px;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.wordmark span { color: var(--ink-soft); }
.top nav { display: flex; gap: 22px; }
.top nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-soft);
}
.top nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 84px 0 30px; }
.hero h1 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 7.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}
.lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 34em;
  margin: 0 0 30px;
}

/* The tally: true shipping record, mono, reads like a stamp card */
.tally {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  font-family: "Spline Sans Mono", monospace;
  font-size: 13px;
  color: var(--ink-soft);
}
.tally span::before {
  content: "▸ ";
  color: var(--ink);
}

/* Ship log */
.log {
  margin-top: 44px;
  border-top: 1px solid var(--line);
}
.entry {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.entry:nth-child(1) { animation-delay: 0.05s; }
.entry:nth-child(2) { animation-delay: 0.15s; }
.entry:nth-child(3) { animation-delay: 0.25s; }
.entry:nth-child(4) { animation-delay: 0.35s; }
.entry:nth-child(5) { animation-delay: 0.45s; }
.entry:nth-child(6) { animation-delay: 0.55s; }
.entry:nth-child(7) { animation-delay: 0.65s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.tile {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.entry:hover .tile { transform: rotate(-3deg) translateY(-3px); }

.meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 10px;
}
.meta h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 0;
}
.meta h2 a {
  text-decoration: none;
  border-bottom: 2px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.meta h2 a:hover { border-bottom-color: var(--accent); }
.platform {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
}
.stamp {
  font-family: "Spline Sans Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid currentColor;
}
.stamp.live { color: var(--live); }
.stamp.review { color: #9a6700; }
.stamp.bench-stamp { color: var(--ink-soft); border-style: dashed; }

.body p { margin: 0 0 14px; max-width: 40em; color: var(--ink); }

.go {
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 2px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding-bottom: 1px;
}
.go:hover { border-bottom-color: var(--accent); }
.go.quiet {
  color: var(--ink-soft);
  border-bottom: none;
  font-weight: 500;
  font-size: 14px;
}

.entry.bench .tile { opacity: 0.55; border-style: dashed; }

/* Support */
.support { padding: 56px 0 20px; }
.support h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 24px;
  margin: 0 0 12px;
}
.support p { max-width: 36em; color: var(--ink-soft); }
.support a { color: var(--ink); font-weight: 600; }

/* Footer */
footer {
  padding-top: 28px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}
footer p { margin: 0; }
footer a { color: var(--ink-soft); }

@media (max-width: 560px) {
  .entry { grid-template-columns: 64px 1fr; gap: 16px; }
  .tile { width: 64px; height: 64px; border-radius: 16px; }
  .hero { padding-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .entry { animation: none; }
  .tile, .entry:hover .tile { transition: none; transform: none; }
}
