/* Sipora site v2 — warm coal / plum / editorial serif.
   Palette and type lifted from the Sipora app design system;
   structure and restraint follow petrachuk.dev. */

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

:root {
  /* Warm coal — the app's dark surface family */
  --bg:          oklch(0.16 0.010 55);
  --bg-surface:  oklch(0.195 0.012 55);
  --bg-elevated: oklch(0.235 0.014 55);
  --border:      oklch(0.27 0.013 55);

  /* Warm paper text */
  --text:        oklch(0.95 0.008 80);
  --text-muted:  oklch(0.67 0.012 70);
  --text-subtle: oklch(0.46 0.012 60);

  /* Plum — the app accent; used sparingly */
  --accent:        oklch(0.78 0.09 25);
  --accent-strong: oklch(0.84 0.085 25);
  --accent-muted:  oklch(0.55 0.065 25);
  --accent-ink:    oklch(0.20 0.03 30);
  --accent-dim:    oklch(0.78 0.09 25 / 0.08);
  --accent-border: oklch(0.78 0.09 25 / 0.28);

  --radius: 10px;
  --radius-sm: 6px;

  --font:       system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-serif: 'Literata', Georgia, 'Times New Roman', serif;
  --font-mono:  'JetBrains Mono', ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

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

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-weight: 600;
  line-height: 1.2;
}

/* Headlines earn the serif — Sipora's editorial voice */
h1, h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-variation-settings: 'opsz' 40;
  letter-spacing: -0.015em;
}

h1 em, h2 em {
  font-style: italic;
  font-weight: 400;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.875rem); }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

p {
  color: var(--text-muted);
  max-width: 60ch;
}

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

ul, ol {
  list-style: none;
}

time {
  color: var(--text-muted);
  font-size: 0.875rem;
}

small {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}
