/* Hic Pic Nunc — project site. Colors follow the app (web/static/css/app.css). */

:root {
  --bg: #f5f6f1;
  --surface: #fffefa;
  --text: #17221c;
  --text-muted: #56625a;
  --border: #d8dfd7;
  --primary: #146b57;
  --primary-hover: #0d5545;
  --primary-fg: #ffffff;
  --note-bg: #fff8e6;
  --note-border: #f0d9a0;
  --grid-line: rgba(24, 54, 39, 0.035);
  --font: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111814;
    --surface: #18211c;
    --text: #e7eee9;
    --text-muted: #a6b3ab;
    --border: #2c3a32;
    --primary: #5fbf9f;
    --primary-hover: #7dd3b5;
    --primary-fg: #0c1a14;
    --note-bg: #2a2416;
    --note-border: #5c4c26;
    --grid-line: rgba(231, 238, 233, 0.03);
    color-scheme: dark;
  }
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

a {
  color: var(--primary);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--primary-hover);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
}

.site-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.9375rem;
}

main {
  padding-top: 2rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.3rem;
  line-height: 1.3;
}

.lead {
  margin: 0 0 1.5rem;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--primary);
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--primary-fg);
}

.card {
  margin: 1.5rem 0;
  padding: 1.25rem 1.25rem 0.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.card h2 {
  margin-top: 0;
}

.note {
  padding: 0.85rem 1rem;
  border: 1px solid var(--note-border);
  border-radius: 6px;
  background: var(--note-bg);
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

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

.site-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}
