/* ═══════════════════════════════════════════
   TOKENS
═══════════════════════════════════════════ */
:root {
  --bg:         #1d2021;  /* bg0_h   */
  --text:       #fbf1c7;  /* fg0    */
  --text-muted: #a89984;  /* gray7  */
  --accent:     #689d6a;  /* aqua6 */
  --border:     #3c3836;  /* bg1   */
  --font:        'JetBrains Mono', 'Courier New', monospace;
  --max-w:       780px;
  --gap:         0.5rem;
}

[data-theme="light"] {
  --bg:         #f9f5d7;  /* bg0_h   */
  --text:       #282828;  /* fg    */
  --text-muted: #928374;  /* gray8  */
  --accent:     #076678;  /* aqua14 */
  --border:     #d5c4a1;  /* bg2   */
}

/* ═══════════════════════════════════════════
   RESET
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 18px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  transition: background 150ms ease, color 150ms ease;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

ul { list-style: none; }

/* ═══════════════════════════════════════════
   PAGE SHELL
═══════════════════════════════════════════ */
.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
.site-header {
  margin-bottom: 3rem;
}

.header-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.2rem;
}

.name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.header-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.25rem;
  font-size: 0.8rem;
}

.header-links a {
  color: var(--accent);
}

.header-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 150ms ease;
}

.theme-toggle:hover {
  color: var(--accent);
}

/* ═══════════════════════════════════════════
   BLOCKS (sections)
═══════════════════════════════════════════ */
.block {
  margin-bottom: 2.5rem;
}

.block-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

/* ═══════════════════════════════════════════
   ITEMS
═══════════════════════════════════════════ */
.item-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/*.item {} */

.item-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.item-name {
  color: var(--text);
  font-weight: 500;
  font-size: 0.85rem;
}

a.item-name {
  color: var(--accent);
}

a.item-name:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.item-meta {
  font-size: 0.72rem;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.item-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  line-height: 1.65;
}

.at {
  color: var(--text-muted);
  font-weight: 300;
}

.company {
  color: var(--text);
  font-weight: 400;
}

.company:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  margin-top: 3rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 480px) {
  .page {
    padding: 2rem 1.25rem 3rem;
  }

  .item-main {
    flex-direction: column;
    gap: 0.1rem;
  }

  .item-meta {
    /* show date below title on very small screens */
    order: 2;
  }
}
