/* ==========================================================================
   1990s Minimalist / Courier Web Design System
   Georgia von Minden — Portfolio
   ========================================================================== */

:root {
  /* 1990s Classic Web Color Palette */
  --bg: #ffffff;
  --text-primary: #000000;
  --text-secondary: #222222;
  --text-tertiary: #555555;
  --link: #0000ee;
  --link-visited: #551a8b;
  --link-active: #ff0000;
  
  --border: #000000;
  --border-subtle: #777777;
  --surface: #f8f8f8;
  --surface-alt: #eeeeee;
  
  /* Pure Monospace / Courier Stack */
  --font-mono: "Courier New", Courier, monospace, "Lucida Console";
  
  /* Layout */
  --container-max: 760px;
}

[data-theme="dark"] {
  --bg: #121212;
  --text-primary: #e6e6e6;
  --text-secondary: #b0b0b0;
  --text-tertiary: #808080;
  --link: #66aaff;
  --link-visited: #c586c0;
  --link-active: #ff6666;
  
  --border: #e6e6e6;
  --border-subtle: #555555;
  --surface: #1a1a1a;
  --surface-alt: #242424;
}

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

html {
  font-family: var(--font-mono);
  background-color: var(--bg);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Links */
a {
  color: var(--link);
  text-decoration: underline;
}

a:visited {
  color: var(--link-visited);
}

a:active {
  color: var(--link-active);
}

a:hover {
  text-decoration: underline;
  background-color: var(--surface-alt);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-mono);
  font-weight: bold;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

h1 {
  font-size: 1.45rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.35rem;
}

h2 {
  font-size: 1.2rem;
  border-bottom: 1px dashed var(--border-subtle);
  padding-bottom: 0.25rem;
}

h3 {
  font-size: 1.05rem;
}

p {
  margin-top: 0;
  margin-bottom: 0.95rem;
  color: var(--text-primary);
}

ul, ol {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 1.75rem;
}

li {
  margin-bottom: 0.35rem;
}

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

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

/* Container */
.container, .container-narrow {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Site Header & Navigation */
.site-header {
  border-bottom: 2px solid var(--border);
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  background-color: var(--bg);
}

.nav-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.brand-link {
  font-weight: bold;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-link:visited {
  color: var(--text-primary);
}

.brand-link:hover {
  text-decoration: underline;
  background: none;
}

.brand-mark {
  display: inline-block;
  padding: 1px 5px;
  background-color: var(--text-primary);
  color: var(--bg);
  margin-right: 6px;
  font-weight: bold;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  color: var(--link);
  text-decoration: underline;
}

.nav-link.active {
  font-weight: bold;
  background-color: var(--text-primary);
  color: var(--bg);
  padding: 1px 5px;
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
}

.theme-toggle-btn {
  font-family: var(--font-mono);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 2px 8px;
  font-size: 0.85rem;
  cursor: pointer;
}

.theme-toggle-btn:hover {
  background: var(--surface-alt);
}

/* Main Content */
#main-content {
  flex: 1 0 auto;
}

.stream-section, .section {
  margin-bottom: 2rem;
}

.stream-header {
  margin-bottom: 1rem;
}

.section-label {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  letter-spacing: 0.05em;
}

/* Buttons / 1990s UI */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  padding: 4px 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  background-color: var(--surface);
  color: var(--text-primary);
  box-shadow: 1px 1px 0px var(--border);
}

.btn:visited {
  color: var(--text-primary);
}

.btn:hover {
  background-color: var(--surface-alt);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg);
}

.btn-primary:visited {
  color: var(--bg);
}

.btn-primary:hover {
  background-color: var(--text-secondary);
}

.btn-secondary {
  background-color: var(--surface);
}

/* Status badge */
.status-badge {
  display: inline-block;
  font-size: 0.8rem;
  border: 1px dashed var(--border-subtle);
  padding: 2px 6px;
  margin-bottom: 0.5rem;
  background-color: var(--surface);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: #22c55e;
  margin-right: 5px;
  border: 1px solid #15803d;
}

/* Project Stream & Lists */
.project-stream {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-stream-item {
  border: 1px solid var(--border);
  padding: 1.15rem;
  background-color: var(--surface);
  box-shadow: 2px 2px 0px var(--border);
}

.project-stream-meta {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 0.35rem;
}

.project-stream-title {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: 1.15rem;
}

.project-stream-title a {
  text-decoration: underline;
}

.project-stream-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.kpi-badge {
  display: inline-block;
  font-size: 0.8rem;
  background-color: var(--surface-alt);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}

.project-stream-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border-subtle);
}

.project-stream-tags, .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  font-size: 0.75rem;
  background-color: var(--bg);
  border: 1px solid var(--border-subtle);
  padding: 1px 5px;
}

.project-link-affordance {
  font-size: 0.85rem;
  font-weight: bold;
}

/* Writing / Blog Stream */
.writing-stream, .writing-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.writing-stream-item, .writing-item {
  display: block;
  border: 1px solid var(--border);
  padding: 1rem 1.15rem;
  background-color: var(--surface);
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: 2px 2px 0px var(--border);
}

.writing-stream-item:visited, .writing-item:visited {
  color: var(--text-primary);
}

.writing-stream-item:hover, .writing-item:hover {
  background-color: var(--surface-alt);
  text-decoration: none;
}

.writing-stream-header, .writing-item-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.writing-stream-title, .writing-item-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: bold;
  text-decoration: underline;
}

.writing-stream-meta, .writing-item-meta {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.writing-stream-summary, .writing-item-summary {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-top: 0.4rem;
  margin-bottom: 0.5rem;
}

/* Quotes / Testimonials */
.editorial-quote-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.editorial-quote {
  margin: 0;
  padding: 0.85rem 1.15rem;
  border-left: 3px solid var(--border);
  background-color: var(--surface);
}

.editorial-quote-body {
  margin-bottom: 0.35rem;
}

.editorial-quote-author {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Prose & Case Study Markdown Formatting */
.prose {
  font-family: var(--font-mono);
  line-height: 1.6;
}

.prose h1 {
  font-size: 1.35rem;
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
}

.prose h2 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose h3 {
  font-size: 1.025rem;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

.prose p {
  margin-bottom: 1rem;
}

.prose pre, pre {
  background-color: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 0.85rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.prose code, code {
  font-family: var(--font-mono);
  background-color: var(--surface-alt);
  padding: 1px 4px;
  font-size: 0.9em;
}

.prose blockquote {
  border-left: 3px solid var(--border);
  background-color: var(--surface);
  padding: 0.65rem 1rem;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 1rem;
}

/* Markdown Tables */
.prose table, table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.875rem;
}

.prose th, .prose td, th, td {
  border: 1px solid var(--border);
  padding: 6px 10px;
  text-align: left;
}

.prose th, th {
  background-color: var(--surface-alt);
  font-weight: bold;
}

.prose tr:nth-child(even) td {
  background-color: var(--surface);
}

.prose img {
  border: 1px solid var(--border);
  margin: 1.25rem 0;
  box-shadow: 2px 2px 0px var(--border);
}

/* Footer */
.site-footer {
  border-top: 2px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-size: 0.85rem;
  background-color: var(--bg);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}
