/* logic.seedofchaos.com
   Terminal / capacity expression aesthetic
   Amber + green on near-black. Monospace throughout.
   Built April 2026
*/

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Root variables */
:root {
  --bg:           #0d0d0d;
  --bg-surface:   #111111;
  --bg-raised:    #1a1a1a;
  --border:       #333333;
  --border-amber: #3a2e00;
  --border-green: #003a10;

  /* Text — bumped up for readability on dark bg */
  --text:         #e8e8d8;
  --text-muted:   #a8a898;
  --text-dim:     #686858;

  /* Amber — slightly softened to reduce eye strain */
  --amber:        #ffc040;
  --amber-soft:   #e0a030;
  --amber-dim:    #5a3e00;

  /* Green — kept vivid but used sparingly */
  --green:        #00ff41;
  --green-soft:   #00cc33;
  --green-dim:    #004010;

  --font:         'Courier New', Courier, monospace;

  --measure:      68ch;
  --line-height:  1.8;
}

/* Base */
html {
  font-size: 17px;
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  line-height: var(--line-height);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--amber);
  text-decoration: none;
}

a:hover {
  color: var(--green);
  text-decoration: underline;
}

/* ── Header ── */
.site-header {
  background: #0d0d0d;
  border-bottom: 1px solid var(--amber-dim);
  overflow: hidden;
}

.site-header img {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
}

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.5rem 2rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.05em;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--amber);
}

/* ── Layout: 2-col grid ── */
.layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  align-items: start;
}

.main-content {
  padding-right: 2.5rem;
  border-right: 1px solid var(--border);
}

/* ── Intro ── */
.intro {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.intro h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.lede {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.9rem;
  max-width: var(--measure);
}

.lede em {
  color: var(--text-muted);
  font-style: normal;
}

/* ── Build Entries ── */
.build-entry {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.build-entry:last-of-type {
  border-bottom: none;
}

.build-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--green);
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.build-entry h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.build-entry p {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  max-width: var(--measure);
}

.build-specs {
  list-style: none;
  margin: 0.75rem 0 1rem 0;
  padding: 0;
}

.build-specs li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.4rem 0 0.4rem 1.4rem;
  position: relative;
  line-height: 1.6;
  border-bottom: 1px solid var(--border);
}

.build-specs li:last-child {
  border-bottom: none;
}

.build-specs li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--amber-soft);
  opacity: 0.6;
}

.build-specs code {
  color: var(--green);
  font-family: var(--font);
  font-size: 0.8rem;
  background: var(--bg-raised);
  padding: 0.1em 0.3em;
  border: 1px solid var(--border);
}

.build-specs strong {
  color: var(--text);
  font-weight: 600;
}

.build-note {
  font-size: 0.875rem;
  color: var(--amber-soft);
  border-left: 2px solid var(--amber-dim);
  padding-left: 0.75rem;
  margin-top: 0.75rem;
  font-style: italic;
  line-height: 1.6;
}

/* ── Contact Section ── */
.contact-section {
  margin-top: 1rem;
}

.contact-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.contact-section > p {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  max-width: var(--measure);
}

.contact-subhead {
  color: var(--text-muted) !important;
  font-size: 0.9rem !important;
  margin-bottom: 1.5rem !important;
}

.form-status {
  padding: 0.6rem 0.9rem;
  margin-bottom: 1.25rem;
  font-size: 0.825rem;
  border-left: 3px solid;
}

.form-status.success {
  background: var(--green-dim);
  border-color: var(--green);
  color: var(--green);
}

.form-status.error {
  background: #300;
  border-color: #ff3333;
  color: #ff6666;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 52rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.field input,
.field textarea {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.875rem;
  padding: 0.55rem 0.75rem;
  outline: none;
  transition: border-color 0.15s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--amber-soft);
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.submit-btn {
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: var(--font);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  padding: 0.55rem 1.75rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.submit-btn:hover {
  background: var(--amber);
  color: var(--bg);
}

/* ── Aside: Vital Signs ── */
.vital-signs {
  position: sticky;
  top: 2rem;
  padding-left: 2rem;
  font-size: 0.8rem;
}

.aside-header {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--green);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-green);
}

.metric-block {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.metric-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.metric-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1.2;
}

.metric-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.5;
}

.stack-block {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.stack-list {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.stack-list li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border);
}

.stack-list li:last-child {
  border-bottom: none;
}

.aside-footer {
  margin-top: 0.5rem;
}

.aside-footer p {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.aside-cta {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--green);
  border: 1px solid var(--border-green);
  padding: 0.4rem 0.9rem;
  letter-spacing: 0.05em;
}

.aside-cta:hover {
  background: var(--green-dim);
  color: var(--green);
  text-decoration: none;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.footer-links a:hover {
  color: var(--amber);
  text-decoration: none;
}

.footer-credit a {
  color: var(--text-dim);
}

.footer-credit a:hover {
  color: var(--amber);
}

/* ── Responsive: tablet ── */
@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem 3rem;
  }

  .main-content {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }

  .vital-signs {
    position: static;
    padding-left: 0;
    /* Show as a 2-col grid of metric blocks on tablet */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
  }

  .aside-header,
  .aside-footer {
    grid-column: 1 / -1;
  }

  .stack-block {
    grid-column: 1 / -1;
  }

  .field-row {
    grid-template-columns: 1fr 1fr;
  }

  .breadcrumb {
    padding: 0.5rem 1.25rem;
  }
}

/* ── Responsive: phone ── */
@media (max-width: 500px) {
  html {
    font-size: 16px;
  }

  .layout {
    padding: 1rem 0.9rem 2.5rem;
  }

  .vital-signs {
    display: block;
  }

  .intro h1 {
    font-size: 1.25rem;
  }

  .build-entry h2,
  .contact-section h2 {
    font-size: 1.1rem;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .breadcrumb {
    padding: 0.5rem 0.9rem;
    font-size: 0.7rem;
  }

  .submit-btn {
    width: 100%;
    text-align: center;
  }

  .footer-links {
    gap: 1rem;
    font-size: 0.7rem;
  }
}
