/* ==========================================================================
   yasp.site — Minimalist Plain-Text Static Site Stylesheet
   No frameworks, no AI gradients, clean monospace developer aesthetic.
   ========================================================================== */

:root {
  --bg: #fdfdfd;
  --text: #1a1a1a;
  --text-muted: #666666;
  --text-dim: #888888;
  --border: #e0e0e0;
  --border-subtle: #eeeeee;
  --link: #0055aa;
  --link-hover: #003366;
  --code-bg: #f4f4f4;
  --callout-bg: #f8f9fa;
  --font-mono: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
  
  --status-alive: #166534;
  --status-half-baked: #9a3412;
  --status-dead: #991b1b;
  --status-over-engineered: #5b21b6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --text: #d8d8d8;
    --text-muted: #8c8c8c;
    --text-dim: #666666;
    --border: #282828;
    --border-subtle: #1e1e1e;
    --link: #58a6ff;
    --link-hover: #79b8ff;
    --code-bg: #1a1a1a;
    --callout-bg: #161616;

    --status-alive: #4ade80;
    --status-half-baked: #fb923c;
    --status-dead: #f87171;
    --status-over-engineered: #c084fc;
  }
}

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

html {
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.6;
  background-color: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
}

.site-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem 1.25rem;
}

/* Header & Navigation */
.site-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}

.header-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}

.brand-link {
  text-decoration: none;
  color: var(--text);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

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

.brand-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.95rem;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
}

.nav-item:hover,
.nav-item.is-active {
  color: var(--link);
  text-decoration: underline;
}

/* Section Blocks */
.intro-section {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--border);
}

.lead-text {
  font-size: 1.05rem;
  margin: 0 0 1rem 0;
}

.principles-list {
  margin: 0.5rem 0 1rem 1.5rem;
  padding: 0;
  color: var(--text);
}

.principles-list li {
  margin-bottom: 0.35rem;
}

.sub-text {
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}

.section-block {
  margin-bottom: 3rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.section-more {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}

.section-more:hover {
  color: var(--link);
  text-decoration: underline;
}

/* Data Table */
.projects-table-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th {
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0.6rem;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.data-table td {
  padding: 0.65rem 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.data-table tr:hover td {
  background-color: var(--callout-bg);
}

.col-name {
  font-weight: 700;
  white-space: nowrap;
}

.col-status {
  white-space: nowrap;
}

.col-year {
  color: var(--text-muted);
  white-space: nowrap;
}

.col-desc {
  color: var(--text-muted);
  min-width: 240px;
}

/* Status Tags */
.status-tag {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-alive { color: var(--status-alive); }
.status-half-baked { color: var(--status-half-baked); }
.status-dead, .status-graveyard { color: var(--status-dead); }
.status-over-engineered { color: var(--status-over-engineered); }

/* Entries List (News/Dispatches) */
.entries-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.entry-item {
  display: flex;
  gap: 1.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.entry-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 105px;
}

.entry-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.category-tag {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.entry-body {
  flex-grow: 1;
}

.entry-title {
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
}

.entry-title:hover {
  text-decoration: underline;
}

.entry-summary {
  margin: 0.35rem 0 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Page & Article Layouts */
.page-heading {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.page-subtitle {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.back-nav, .bottom-nav {
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.bottom-nav {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.single-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.single-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.project-meta-bar, .post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.meta-date {
  color: var(--text-muted);
}

.idea-callout {
  background-color: var(--callout-bg);
  border-left: 3px solid var(--border);
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  margin-top: 1rem;
}

/* Prose Typography */
.prose-content {
  font-size: 0.95rem;
  line-height: 1.7;
}

.prose-content h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.35rem;
}

.prose-content h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem 0;
}

.prose-content p {
  margin: 0 0 1rem 0;
}

.prose-content ul, .prose-content ol {
  margin: 0 0 1rem 1.5rem;
  padding: 0;
}

.prose-content li {
  margin-bottom: 0.35rem;
}

.prose-content a, a {
  color: var(--link);
  text-decoration: underline;
}

.prose-content a:hover, a:hover {
  color: var(--link-hover);
}

.prose-content blockquote {
  border-left: 3px solid var(--border);
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  font-style: italic;
  background-color: var(--callout-bg);
}

.prose-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background-color: var(--code-bg);
  padding: 0.15rem 0.35rem;
  border-radius: 2px;
}

.prose-content pre {
  background-color: var(--code-bg);
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 2px;
  margin: 1rem 0;
}

.prose-content pre code {
  background: none;
  padding: 0;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
}

.footer-rule {
  height: 1px;
  background: var(--border);
  margin-bottom: 1.5rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.separator {
  color: var(--border);
}
