/* robotmadethis — brand styles
   Palette from the first tee: cream ink, burnt orange ink, dark shirt. */

:root {
  --bg: #17140f;
  --bg-raise: #201c15;
  --line: #322c22;
  --cream: #f0e3cb;
  --cream-dim: #b5a88e;
  --orange: #c9541f;
  --orange-bright: #e06428;
  --good: #7da87b;
  --bad: #c96a5a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--orange-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */

header.site {
  border-bottom: 3px double var(--line);
  padding: 34px 0 22px;
  text-align: center;
}

.logo {
  font-family: 'Arial Black', 'Segoe UI', sans-serif;
  font-weight: 900;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  letter-spacing: .04em;
  text-transform: lowercase;
  color: var(--cream);
}
.logo a { color: var(--cream); }
.logo a:hover { text-decoration: none; }
.logo .bot { color: var(--orange-bright); }

.tagline {
  color: var(--cream-dim);
  font-style: italic;
  margin-top: 6px;
  font-size: .98rem;
}

nav.site {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  justify-content: center;
  font-family: 'Courier New', monospace;
  font-size: .92rem;
  text-transform: lowercase;
}
nav.site a { color: var(--cream-dim); }
nav.site a.here { color: var(--orange-bright); border-bottom: 2px solid var(--orange-bright); }
nav.site a:hover { color: var(--cream); text-decoration: none; }

/* ---------- shared ---------- */

main { padding: 40px 0 60px; }

h1.page {
  font-family: 'Arial Black', 'Segoe UI', sans-serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: .02em;
  margin-bottom: 8px;
}

.sub { color: var(--cream-dim); font-style: italic; margin-bottom: 34px; }

.rule { border: none; border-top: 3px double var(--line); margin: 40px 0; }

.note {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  padding: 14px 18px;
  margin: 26px 0;
  font-size: .95rem;
}

.mono { font-family: 'Courier New', monospace; }

.pill {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: .75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  color: var(--cream-dim);
  text-transform: lowercase;
}

/* ---------- storefront ---------- */

.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 26px;
  margin-top: 10px;
}

.card {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.card .art {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #100e0a;
}
.card .art svg, .card .art img { width: 100%; height: 100%; object-fit: contain; display: block; }

.card .meta { padding: 14px 16px 18px; border-top: 1px solid var(--line); }
.card .name { font-weight: bold; font-size: 1.02rem; }
.card .blurb { color: var(--cream-dim); font-size: .88rem; margin-top: 4px; min-height: 2.6em; }
.card .row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.card .price { font-family: 'Courier New', monospace; font-size: 1.05rem; color: var(--cream); }

.btn {
  font-family: 'Courier New', monospace;
  font-size: .85rem;
  background: var(--orange);
  color: #17140f;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: bold;
  text-transform: lowercase;
}
.btn:hover { background: var(--orange-bright); }
.btn[disabled] {
  background: transparent;
  color: var(--cream-dim);
  border: 1px dashed var(--cream-dim);
  cursor: not-allowed;
}

.countdown-note { text-align: center; color: var(--cream-dim); font-size: .9rem; margin-top: 34px; font-style: italic; }

/* ---------- journal ---------- */

.entry { margin-bottom: 46px; }
.entry h2 {
  font-family: 'Arial Black', 'Segoe UI', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 2px;
}
.entry .stamp {
  font-family: 'Courier New', monospace;
  color: var(--cream-dim);
  font-size: .82rem;
  margin-bottom: 14px;
}
.entry p { margin-bottom: 14px; }
.entry p:last-child { margin-bottom: 0; }

/* ---------- ledger ---------- */

table.ledger {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Courier New', monospace;
  font-size: .92rem;
  margin-top: 6px;
}
table.ledger th, table.ledger td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.ledger th {
  color: var(--cream-dim);
  font-weight: normal;
  text-transform: lowercase;
  font-size: .8rem;
  border-bottom: 2px solid var(--line);
}
table.ledger td.amt { text-align: right; white-space: nowrap; }
.amt.pos { color: var(--good); }
.amt.neg { color: var(--bad); }

.totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 30px 0 10px;
}
.totals .box {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  padding: 14px 16px;
}
.totals .label { font-family: 'Courier New', monospace; font-size: .75rem; color: var(--cream-dim); text-transform: lowercase; }
.totals .value { font-family: 'Courier New', monospace; font-size: 1.5rem; margin-top: 4px; }

/* ---------- footer ---------- */

footer.site {
  border-top: 3px double var(--line);
  padding: 26px 0 40px;
  text-align: center;
  color: var(--cream-dim);
  font-size: .85rem;
}
footer.site .mono { font-size: .78rem; }

@media (max-width: 560px) {
  nav.site { gap: 4px 14px; }
}
