/* TSP Kiln — forge floor
   Palette: ground / charcoal / ash / ember / clay / bone
   Fence: no cyan/magenta neon, no Anathema crimson */

:root {
  --ground: #141210;
  --charcoal: #2a2622;
  --ash: #9a958c;
  --ember: #e56a2a;
  --clay: #d4a574;
  --bone: #e8e2d6;
  --brick: #8f3a24;
  --panel: #1c1916;
  --sill: #3a3530;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --max: 920px;
  --radius: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.55;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(229, 106, 42, 0.08), transparent 55%),
    linear-gradient(180deg, #171410 0%, var(--ground) 40%);
}

a {
  color: var(--clay);
  text-decoration: none;
}
a:hover {
  color: var(--ember);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* —— Chrome —— */
.site-header {
  border-bottom: 1px solid var(--sill);
  background: rgba(20, 18, 16, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
  color: inherit;
}
.brand-seal {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.1;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone);
}
.brand-name span {
  color: var(--ash);
  font-size: 0.85em;
  letter-spacing: 0.18em;
  margin-right: 0.35em;
}
.brand-voice {
  font-size: 0.7rem;
  color: var(--ash);
  letter-spacing: 0.04em;
  font-style: italic;
}

.nav {
  display: flex;
  gap: 0.35rem;
}
.nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
  padding: 0.45rem 0.85rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
}
.nav a:hover {
  color: var(--bone);
  border-color: var(--sill);
  background: var(--charcoal);
  text-decoration: none;
}
.nav a[aria-current="page"] {
  color: var(--ember);
  border-color: var(--brick);
  background: var(--charcoal);
}

main {
  flex: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
  width: 100%;
}

.page-intro {
  margin-bottom: 1.75rem;
}
.page-intro h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone);
}
.page-intro p {
  margin: 0;
  color: var(--ash);
  font-size: 0.85rem;
  max-width: 36em;
}

.demo-tag {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
  border: 1px solid var(--sill);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius);
}

/* —— Board sections —— */
.board {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section {
  background: var(--panel);
  border: 1px solid var(--sill);
  border-radius: var(--radius);
  overflow: hidden;
}
.section-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--sill);
  background: var(--charcoal);
}
.section-head img {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
  flex: 1;
}
.section-count {
  font-size: 0.7rem;
  color: var(--ash);
  letter-spacing: 0.06em;
}

.item-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(58, 53, 48, 0.65);
}
.item:last-child {
  border-bottom: none;
}
.item:hover {
  background: rgba(42, 38, 34, 0.45);
}

.item-check {
  flex-shrink: 0;
  margin-top: 0.15rem;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--ember);
  cursor: pointer;
}
.item-body {
  flex: 1;
  min-width: 0;
}
.item-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone);
  margin: 0 0 0.2rem;
}
.item.done .item-title {
  color: var(--ash);
  text-decoration: line-through;
  text-decoration-color: var(--brick);
}
.item-blurb {
  margin: 0;
  color: var(--ash);
  font-size: 0.8rem;
}
.item-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.2rem;
  opacity: 0.75;
}

.empty-note {
  padding: 1rem;
  color: var(--ash);
  font-size: 0.8rem;
  font-style: italic;
}

/* —— Works cards —— */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.work-card {
  background: var(--panel);
  border: 1px solid var(--sill);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  position: relative;
}
.work-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ember), var(--clay), transparent);
  opacity: 0.7;
}
.work-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone);
}
.work-card p {
  margin: 0;
  color: var(--ash);
  font-size: 0.8rem;
  flex: 1;
}
.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius);
  border: 1px solid var(--sill);
  font-family: var(--font-mono);
}
.badge-shipped {
  color: var(--clay);
  border-color: rgba(212, 165, 116, 0.45);
  background: rgba(212, 165, 116, 0.08);
}
.badge-production {
  color: var(--ember);
  border-color: rgba(229, 106, 42, 0.5);
  background: rgba(229, 106, 42, 0.1);
}
.badge-display {
  color: var(--bone);
  border-color: var(--ash);
  background: rgba(154, 149, 140, 0.1);
}

.work-link {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--sill);
  padding: 1.25rem 1.25rem 1.75rem;
  text-align: center;
  color: var(--ash);
  font-size: 0.75rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.footer-stamp {
  width: 36px;
  height: 36px;
  opacity: 0.85;
}
.footer-voice {
  font-style: italic;
  color: var(--clay);
  letter-spacing: 0.04em;
}
.footer-meta {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.65rem;
}

.status-msg {
  color: var(--ash);
  font-size: 0.85rem;
  padding: 1rem 0;
}

@media (max-width: 520px) {
  .header-inner {
    padding: 0.65rem 1rem;
  }
  .brand-seal {
    width: 36px;
    height: 36px;
  }
  .brand-name {
    font-size: 1.25rem;
  }
  .nav a {
    padding: 0.4rem 0.65rem;
    font-size: 0.72rem;
  }
  main {
    padding: 1.25rem 1rem 2.5rem;
  }
}
