/* Octopus Daily Reports — operations dashboard */

:root {
  --bg: #0c0e14;
  --bg-raised: #141720;
  --bg-card: #161a24;
  --border: #1f2435;
  --border-hover: #2a3048;
  --text: #94a3b8;
  --text-bright: #e2e8f0;
  --text-dim: #475569;
  --accent: #f59e0b;
  --accent-dim: #b45309;
  --link: #38bdf8;
  --green: #34d399;
  --red: #f87171;
  --font: "JetBrains Mono", "Fira Code", "Cascadia Code", "Source Code Pro", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
}

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

a:hover {
  text-decoration: underline;
}

strong {
  color: var(--text-bright);
  font-weight: 500;
}

code {
  background: var(--bg-raised);
  padding: 0.15em 0.4em;
  font-size: 0.9em;
  border: 1px solid var(--border);
  border-radius: 3px;
}


/* ── nav ── */

nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 740px;
  width: 90%;
  margin: 0 auto;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
}

.nav-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.nav-name:hover {
  text-decoration: none;
  opacity: 0.8;
}

.nav-prompt {
  color: var(--text-dim);
  margin-right: 0.25rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}


/* ── main ── */

main {
  max-width: 740px;
  width: 90%;
  margin: 0 auto;
}


/* ── hero ── */

.hero {
  padding: 4rem 0 3rem;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  color: var(--accent);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cursor {
  animation: blink 1.2s step-end infinite;
  color: var(--accent);
  font-weight: 300;
}

.tagline {
  margin-top: 0.5rem;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.2rem 1rem;
  transition: border-color 0.15s;
}

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

.stat-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-value.green {
  color: var(--green);
}


/* ── sections ── */

section {
  padding: 3rem 0 0;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
}

.section-label .prompt {
  color: var(--accent-dim);
}


/* ── report list (index page) ── */

.month-group {
  margin-bottom: 2.5rem;
}

.month-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.report-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.report-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s, background 0.2s;
}

.report-list li:hover {
  border-color: var(--accent-dim);
  background: var(--bg-raised);
}

.report-list a {
  color: var(--text-bright);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  text-decoration: none;
}

.report-list a:hover {
  text-decoration: none;
}

.report-date {
  color: var(--text-bright);
  font-weight: 500;
}

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


/* ── report detail page ── */

.back-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

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

.report-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.report-header h1 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.3;
}

.report-content {
  padding-bottom: 4rem;
}

.report-content h1 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-bright);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.report-content h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-bright);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.report-content h3 {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  margin: 2rem 0 0.75rem;
}

.report-content h4 {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green);
  margin: 1.5rem 0 0.5rem;
}

.report-content p {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  line-height: 1.8;
}

.report-content ul,
.report-content ol {
  margin: 0.5rem 0 1rem 1.5rem;
  font-size: 0.85rem;
}

.report-content li {
  margin-bottom: 0.3rem;
  line-height: 1.7;
}

.report-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.report-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--text-dim);
  font-style: italic;
}

.report-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.report-content th {
  text-align: left;
  padding: 0.7rem 0.8rem;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  color: var(--accent);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-content td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.report-content tr:last-child td {
  border-bottom: none;
}

.report-content tr:hover td {
  background: var(--bg-raised);
}


/* ── footer ── */

footer {
  max-width: 740px;
  width: 90%;
  margin: 4rem auto 0;
  padding: 2rem 0 4rem;
  border-top: 1px solid var(--border);
}

footer p {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

footer a {
  font-size: 0.75rem;
  color: var(--text-dim);
}

footer a:hover {
  color: var(--accent);
}


/* ── responsive ── */

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 0.8rem;
  }

  .stat-value {
    font-size: 1.3rem;
  }

  .report-content table {
    font-size: 0.7rem;
  }

  .report-content th,
  .report-content td {
    padding: 0.4rem 0.5rem;
  }
}
