/* oceanheart.ai */

:root {
  --bg:          #1a1b26;
  --bg-alt:      #16161e;
  --bg-secondary:#1f2335;
  --bg-tertiary: #292e42;
  --text:        #a9b1d6;
  --text-secondary: #9aa5ce;
  --muted:       #565f89;
  --cyan:        #7dcfff;
  --blue:        #7aa2f7;
  --purple:      #bb9af7;
  --green:       #9ece6a;
  --orange:      #ff9e64;
  --red:         #f7768e;
  --yellow:      #e0af68;

  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
  --max-width: 720px;
  --nav-height: 48px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography — flat hierarchy */
h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.6;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.85rem;
}

h1 { font-size: 1rem; }
h2 { color: var(--text-secondary); }

p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

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

strong { color: var(--text); }
em { color: var(--text-secondary); }

/* Code */
code {
  font-size: 0.85rem;
  color: var(--orange);
}

pre {
  background: var(--bg-alt);
  border-left: 2px solid var(--bg-tertiary);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

pre code {
  color: var(--text);
  font-size: 0.8rem;
}

/* Blockquotes */
blockquote {
  border-left: 2px solid var(--muted);
  padding: 0.25rem 1rem;
  margin: 1.5rem 0;
}

blockquote p {
  color: var(--muted);
  margin-bottom: 0.5rem;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* Lists */
ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

li {
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

hr {
  border: none;
  border-top: 1px solid var(--bg-tertiary);
  margin: 2.5rem 0;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

main {
  flex: 1;
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 4rem;
}

/* Nav — just links */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg);
  border-bottom: 1px solid var(--bg-tertiary);
  z-index: 100;
  display: flex;
  align-items: center;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
}
.nav-brand:hover {
  color: var(--cyan);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

/* Homepage */
.hero {
  padding: 3rem 0 2rem;
}

.hero h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.hero .subtitle {
  color: var(--text-secondary);
  font-size: 0.85rem;
  max-width: 560px;
  margin-bottom: 1.5rem;
}

.hero-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8rem;
}

.hero-links span {
  color: var(--muted);
}

/* Section headers */
.section-header {
  margin-bottom: 1rem;
}

.section-header h2 {
  margin-top: 0;
  margin-bottom: 0;
}

.section-header p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Post list */
.post-list {
  list-style: none;
  padding: 0;
}

.post-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bg-tertiary);
}

.post-item:last-child {
  border-bottom: none;
}

.post-date {
  font-size: 0.75rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.15rem;
}

.post-title {
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  display: block;
  line-height: 1.4;
}

.post-title:hover {
  color: var(--cyan);
  text-decoration: none;
}

.post-excerpt {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.15rem;
  margin-bottom: 0;
  line-height: 1.5;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.post-tag {
  font-size: 0.7rem;
  color: var(--muted);
}

/* Single post */
article header {
  margin-bottom: 2rem;
}

article header h1 {
  margin-top: 0;
}

article header .post-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

article .content {
  line-height: 1.8;
}

article .content img {
  max-width: 100%;
  margin: 1.5rem 0;
}

/* Research — no cards, just entries */
.research-card {
  padding: 1.25rem 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--bg-tertiary);
}

.research-card:last-child {
  border-bottom: none;
}

.research-card h3 {
  margin-top: 0;
  color: var(--text);
}

.research-card .subtitle {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.research-card p {
  font-size: 0.85rem;
}

.provenance-banner {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* CV */
.cv-section {
  margin-bottom: 2rem;
}

.cv-section h2 {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--bg-tertiary);
}

.cv-entry {
  padding: 0.75rem 0;
}

.cv-entry .role {
  color: var(--text);
  font-size: 0.85rem;
}

.cv-entry .org {
  color: var(--muted);
  font-size: 0.8rem;
}

.cv-entry .period {
  font-size: 0.75rem;
  color: var(--muted);
}

.cv-entry .desc {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.tech-tag {
  font-size: 0.7rem;
  color: var(--muted);
}

/* Footer — just facts */
footer {
  border-top: 1px solid var(--bg-tertiary);
  padding: 1.5rem 0;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

footer a {
  color: var(--muted);
}
footer a:hover {
  color: var(--text);
  text-decoration: none;
}

/* Navigation links */
.see-all {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--cyan);
  margin-top: 0.75rem;
}

/* Slopodar — full-width rows */
.slopodar-page {
  width: 960px;
  max-width: calc(100vw - 3rem);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.slopodar-search {
  margin-bottom: 1rem;
}

.slopodar-search input {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
  background: var(--bg);
  border: none;
  border-bottom: 1px solid var(--bg-tertiary);
  padding: 0.5rem 0;
  outline: none;
}

.slopodar-search input::placeholder {
  color: var(--muted);
}

.slopodar-search input:focus {
  border-bottom-color: var(--muted);
}

.slopodar-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.slopodar-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--bg-tertiary);
}

.slopodar-row:first-child {
  border-top: 1px solid var(--bg-tertiary);
}

.slopodar-row:hover {
  color: inherit;
  text-decoration: none;
}

.slopodar-row:hover .slopodar-row-name {
  color: var(--cyan);
}

.slopodar-row-name {
  color: var(--text);
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.1s;
}

.slopodar-row-trigger {
  color: var(--muted);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.slopodar-row-date {
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.slopodar-row-link {
  color: var(--muted);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.slopodar-row:hover .slopodar-row-link {
  color: var(--cyan);
}

.slopodar-count {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

/* SD log — thin rows */
.sd-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--bg-tertiary);
  text-decoration: none;
  color: inherit;
}

.sd-row:hover {
  color: inherit;
  text-decoration: none;
}

.sd-row:hover .sd-row-id {
  color: var(--cyan);
}

.sd-row-link {
  color: var(--muted);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.sd-row:hover .sd-row-link {
  color: var(--cyan);
}

.sd-row:first-child {
  border-top: 1px solid var(--bg-tertiary);
}

.sd-row-id {
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 4rem;
}

.sd-row-decision {
  color: var(--text-secondary);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.sd-row-status {
  color: var(--muted);
  font-size: 0.7rem;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Mobile */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle-label span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--muted);
  margin: 3px 0;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 640px) {
  :root {
    --nav-height: 44px;
  }

  .nav-toggle-label {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--bg-tertiary);
    flex-direction: column;
    padding: 0.75rem 1.5rem;
    gap: 0;
  }

  .nav-links li {
    padding: 0.4rem 0;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
  }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
  }

  .hero-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-links span {
    display: none;
  }

  .slopodar-row {
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
  }

  .slopodar-row-trigger {
    flex-basis: 100%;
    order: 3;
  }
}
