:root {
  --void: #0D0D0D;
  --parchment: #D4C5A9;
  --red-primary: #E74C3C; /* Replaces --amber */
  --red-secondary: #C0392B; /* Replaces --copper */
  --smoke: #2A2A3A;
  --muted: #6B6B6B;
  --code-bg: #111118;
  --terminal-bg: #0A0A0A;
  --tachikoma-red: #E67E22; /* New red shade for Tachikoma */
  --gangsta-g-red: #D35400; /* New red shade for Gangsta_G */
}

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

body {
  background: var(--void);
  color: var(--parchment);
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'SF Mono', monospace;
  font-size: 15px;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

a {
  color: var(--red-primary);
  text-decoration: underline;
}

a:visited {
  color: var(--red-secondary);
}

a:hover {
  filter: brightness(1.2);
}

h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--parchment);
  margin-bottom: 0.25rem;
}

h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--parchment);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

hr {
  border: none;
  border-top: 1px solid var(--smoke);
  margin: 1.5rem 0;
}

nav {
  margin: 1rem 0;
}

nav a {
  text-decoration: none;
  margin-right: 0.5rem;
}

nav a::before {
  content: "[";
  color: var(--muted);
}

nav a::after {
  content: "]";
  color: var(--muted);
}

nav a:hover {
  text-decoration: underline;
}

pre, code {
  font-family: inherit;
  font-size: 0.9em;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--smoke);
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

code {
  background: var(--code-bg);
  padding: 0.15em 0.35em;
}

pre code {
  background: none;
  padding: 0;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.35rem;
}

dl {
  margin-bottom: 1rem;
}

dt {
  color: var(--red-primary);
  font-weight: 700;
  margin-top: 1rem;
}

dd {
  margin-left: 1.5rem;
  margin-bottom: 0.5rem;
}

header {
  margin-bottom: 1rem;
}

header p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--smoke);
}

/* tag list */
header ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

/* post list */
.post-list article {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--smoke); /* A subtle separator */
}

.post-list article:last-child {
  border-bottom: none; /* No border for the last item */
  margin-bottom: 0;
  padding-bottom: 0;
}

.post-list .post-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.post-list .post-date {
  white-space: nowrap;
  padding-right: 1rem;
}

.post-list .post-tags {
  text-align: right;
  white-space: nowrap;
  /* color: var(--red-primary); /* Tags could be accented */ */
}

.post-list h3 {
  margin: 0; /* Override default h3 margin */
  font-size: 1rem;
  font-weight: normal; /* Make the title less "heavy" */
}

.post-list h3 a {
  text-decoration: none; /* Remove underline from title link */
}

.post-list h3 a:hover {
  text-decoration: underline; /* Add underline on hover */
}

@media (max-width: 600px) {
  .post-list .post-meta {
    flex-direction: column; /* Stack date and tags on small screens */
    align-items: flex-start;
  }

  .post-list .post-tags {
    text-align: left; /* Align tags to the left */
    margin-top: 0.25rem; /* Small space between date and tags */
  }
}

/* merch grid */
section[aria-label="products"] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

section[aria-label="products"] article {
  border: 1px solid var(--smoke);
  padding: 1rem;
}

section[aria-label="products"] article h3 {
  color: var(--red-primary);
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
}

section[aria-label="products"] article p {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

section[aria-label="products"] article span {
  color: var(--red-primary);
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

section[aria-label="products"] article a {
  font-size: 0.85rem;
}

/* terminal block */
section[aria-label="terminal"] > div {
  background: var(--terminal-bg);
  border: 1px solid var(--smoke);
  padding: 1.5rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* triune colors in terminal */
[data-speaker="kotl"] { color: var(--red-primary); }
[data-speaker="tachikoma"] { color: var(--tachikoma-red); }
[data-speaker="gangsta_g"] { color: var(--gangsta-g-red); }
[data-speaker="system"] { color: var(--muted); }

/* lounge email form */
form {
  margin: 1rem 0;
}

input[type="email"] {
  background: var(--code-bg);
  border: 1px solid var(--smoke);
  color: var(--parchment);
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
  margin-right: 0.5rem;
}

button {
  background: var(--smoke);
  border: 1px solid var(--red-primary);
  color: var(--red-primary);
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

button:hover {
  background: var(--red-primary);
  color: var(--void);
}

/* muted text */
small {
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  body {
    font-size: 14px;
    padding: 1.5rem 0.75rem;
  }

  section[aria-label="products"] {
    grid-template-columns: 1fr;
  }


}
