/* ==========================================================================
   hub.ockdev.com — Editorial Workbench Design System
   No neon aurora, no floating particles, no generic glassmorphism.
   ========================================================================== */

:root {
  --bg: #111110;
  --surface: #171715;
  --surface-2: #1e1e1b;
  --border: #2a2a26;
  --border-strong: #3d3d37;
  --ink: #f1efe9;
  --ink-soft: #c2bfb6;
  --muted: #8a877f;

  --accent: #e07834;
  --accent-soft: rgba(224, 120, 52, 0.14);
  --accent-border: rgba(224, 120, 52, 0.42);

  --ok: #52b77a;
  --ok-soft: rgba(82, 183, 122, 0.14);
  --warn: #d4a744;
  --warn-soft: rgba(212, 167, 68, 0.15);

  --font-display: "Space Grotesk", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --radius: 8px;
  --radius-sm: 5px;
  --wrap: 1120px;
}

[data-theme="light"] {
  --bg: #f5f3ee;
  --surface: #fdfcf9;
  --surface-2: #ece9e1;
  --border: #dcd8ce;
  --border-strong: #beb8aa;
  --ink: #171715;
  --ink-soft: #43413c;
  --muted: #6e6b63;

  --accent: #c4591a;
  --accent-soft: rgba(196, 89, 26, 0.1);
  --accent-border: rgba(196, 89, 26, 0.35);

  --ok: #267c49;
  --ok-soft: rgba(38, 124, 73, 0.12);
  --warn: #9a6e11;
  --warn-soft: rgba(154, 110, 17, 0.13);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

.hidden {
  display: none !important;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent);
}

.brand-name {
  font-weight: 600;
  color: var(--ink);
}

.brand-sub {
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  outline: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }

.menu-btn {
  display: none;
}

/* Main & Hero */
main {
  flex: 1;
}

.hero {
  padding: 58px 0 46px;
  border-bottom: 1px solid var(--border);
}

.hero-top-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.mono-pill {
  padding: 3px 8px;
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}

.mono-divider {
  color: var(--border-strong);
}

.mono-muted {
  color: var(--muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.75fr);
  gap: 40px;
  align-items: end;
}

.hero-main h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 18ch;
  color: var(--ink);
}

.hero-lead {
  margin-top: 18px;
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

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

.btn-primary:hover {
  opacity: 0.88;
}

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

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.hero-ledger {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.ledger-row:last-child {
  border-bottom: 0;
}

.ledger-key {
  font-size: 12.5px;
  color: var(--muted);
}

.ledger-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

/* Sections */
.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 28px;
}

.section-index {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-note {
  max-width: 44ch;
  color: var(--muted);
  font-size: 13.5px;
}

/* Toolbar & Filters */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.filter-pill:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.filter-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.filter-count {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.72;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  height: 36px;
  width: 250px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  transition: border-color 0.15s ease;
}

.search-field:focus-within {
  border-color: var(--accent);
  color: var(--ink);
}

.search-field input {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 13px;
  color: var(--ink);
  outline: none;
}

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

.search-field kbd {
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
}

.view-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.view-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.view-btn.active {
  background: var(--surface-2);
  color: var(--ink);
}

/* Project Grid & List */
.project-collection.view-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-collection.view-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.project-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.project-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.card-code-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.card-code {
  color: var(--ink-soft);
  font-weight: 600;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink-soft);
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge[data-tone="ok"] {
  color: var(--ok);
  background: var(--ok-soft);
  border-color: color-mix(in srgb, var(--ok) 35%, transparent);
}

.status-badge[data-tone="accent"] {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.status-badge[data-tone="warn"] {
  color: var(--warn);
  background: var(--warn-soft);
  border-color: color-mix(in srgb, var(--warn) 35%, transparent);
}

.card-title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.card-summary {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.6;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag {
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
}

.card-foot {
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}

.card-open {
  color: var(--accent);
  font-weight: 500;
}

/* List view variant */
.project-collection.view-list .project-card {
  flex-direction: row;
  align-items: center;
  padding: 16px 20px;
  gap: 24px;
}

.project-collection.view-list .card-main {
  flex: 1;
  min-width: 0;
}

.project-collection.view-list .card-title {
  margin-top: 6px;
  font-size: 17px;
}

.project-collection.view-list .card-summary {
  margin-top: 4px;
}

.project-collection.view-list .card-foot {
  border-top: 0;
  padding-top: 0;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  gap: 4px;
}

.empty-state {
  padding: 40px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Global Devlog Feed */
.feed-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.feed-item {
  display: grid;
  grid-template-columns: 112px 190px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.feed-item:last-child {
  border-bottom: 0;
}

.feed-item:hover {
  background: var(--surface-2);
}

.feed-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.feed-project {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.feed-text span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
}

.feed-version {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* About Section */
.about-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.spec-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.spec-panel-title {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.spec-dl div {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}

.spec-dl div:last-child {
  border-bottom: 0;
}

.spec-dl dt {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spec-dl dd {
  margin-top: 2px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}

.about-body {
  max-width: 66ch;
}

.about-lead {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}

.about-qa {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.about-qa div {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.about-qa strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
}

.about-qa span {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.about-body p {
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.about-body blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
}

.about-closing {
  color: var(--ink) !important;
  font-weight: 500;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.contact-item:hover {
  border-color: var(--accent-border);
  background: var(--surface-2);
}

.contact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}

.contact-arrow {
  color: var(--accent);
}

.contact-val {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}

/* ==========================================================================
   Project Detail Page
   ========================================================================== */
.detail-view {
  padding: 34px 0 80px;
}

.detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.back-link:hover {
  color: var(--accent);
}

.detail-header {
  padding: 32px 0 28px;
  border-bottom: 1px solid var(--border);
}

.detail-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.detail-header h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
}

.detail-summary {
  margin-top: 14px;
  max-width: 70ch;
  font-size: 16px;
  color: var(--ink-soft);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 44px;
  margin-top: 34px;
  align-items: start;
}

.detail-section {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.detail-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.detail-section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.detail-section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
}

.detail-prose p {
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.detail-prose p:last-child {
  margin-bottom: 0;
}

.audience-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.audience-list li {
  position: relative;
  padding: 12px 14px 12px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 14px;
}

.audience-list li::before {
  content: "—";
  position: absolute;
  left: 13px;
  color: var(--accent);
  font-family: var(--font-mono);
}

/* Specs table + Files list */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--surface);
}

.specs-table tr {
  border-bottom: 1px solid var(--border);
}

.specs-table tr:last-child {
  border-bottom: 0;
}

.specs-table th,
.specs-table td {
  padding: 11px 14px;
  text-align: left;
  font-size: 13.5px;
}

.specs-table th {
  width: 34%;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface-2);
}

.specs-table td {
  color: var(--ink);
}

.files-list {
  display: grid;
  gap: 10px;
}

.file-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.file-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.file-meta {
  display: inline-flex;
  gap: 8px;
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.file-desc {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-soft);
}

.file-action {
  flex-shrink: 0;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-decoration: none;
  color: var(--accent);
  background: var(--surface-2);
}

.file-action:hover {
  border-color: var(--accent-border);
}

.file-action.is-static {
  color: var(--muted);
  background: transparent;
}

/* BOM / Parts Table, Code Access Callout & AI Note */
.bom-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.bom-table thead th {
  padding: 10px 14px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.bom-table tbody tr {
  border-bottom: 1px solid var(--border);
}

.bom-table tbody tr:last-child {
  border-bottom: 0;
}

.bom-table td {
  padding: 10px 14px;
  font-size: 13.5px;
  vertical-align: top;
}

.bom-part {
  font-weight: 600;
  color: var(--ink);
}

.bom-qty {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  white-space: nowrap;
}

.bom-pin {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

.bom-note {
  color: var(--muted);
  font-size: 13px;
}

.callout-box {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.callout-box strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
}

.callout-box p {
  margin-top: 3px;
  font-size: 13px;
  color: var(--ink-soft);
}

.ai-note-bar {
  margin-top: 18px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--muted);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.ai-note-bar strong {
  color: var(--ink-soft);
}

/* Timeline / Proje Günlüğü */
.timeline {
  position: relative;
  display: grid;
  gap: 16px;
  padding-left: 20px;
  border-left: 1px solid var(--border-strong);
}

.timeline-item {
  position: relative;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.timeline-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}

.timeline-ver {
  padding: 1px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  color: var(--ink);
  font-weight: 600;
}

.timeline-kind {
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--accent-soft);
  color: var(--accent);
}

.timeline-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.timeline-notes {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* Detail Sidebar */
.detail-aside {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 16px;
}

.toc-list {
  list-style: none;
  padding: 8px 0;
}

.toc-list a {
  display: block;
  padding: 7px 16px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.toc-list a:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.detail-pager {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pager-card {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.pager-card:hover {
  border-color: var(--border-strong);
}

.pager-card.next {
  text-align: right;
}

.pager-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.pager-title {
  display: block;
  margin-top: 4px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

/* Footer & Toast */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  color: var(--ink);
  font-weight: 600;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  padding: 10px 14px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .about-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .project-collection.view-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feed-item {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 6px 14px;
  }

  .feed-project {
    grid-column: 2;
  }

  .feed-text {
    grid-column: 1 / -1;
  }

  .feed-version {
    display: none;
  }

  .detail-aside {
    position: static;
    order: -1;
  }
}

@media (max-width: 680px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .menu-btn {
    display: inline-grid;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 14px 14px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 11px 6px;
    border-bottom: 1px solid var(--border);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .project-collection.view-grid {
    grid-template-columns: 1fr;
  }

  .project-collection.view-list .project-card {
    flex-direction: column;
    align-items: stretch;
  }

  .project-collection.view-list .card-foot {
    flex-direction: row;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }

  .toolbar-right {
    width: 100%;
  }

  .search-field {
    flex: 1;
    width: auto;
  }

  .about-qa,
  .contact-grid,
  .detail-pager {
    grid-template-columns: 1fr;
  }

  .specs-table th {
    width: 40%;
  }
}
