/* ============================================
   Portfolio — Paper & ink exhibition
   ============================================ */

:root {
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Source Code Pro', ui-monospace, monospace;

  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #efece4;
  --ink: #1d2127;
  --muted: #5d6168;
  --line: rgba(29, 33, 39, 0.11);
  --accent: #1f5f5b;
  --accent-soft: rgba(31, 95, 91, 0.08);
  --hint: #b08d57;

  --radius: 14px;
  --radius-sm: 8px;

  --shadow: 0 1px 2px rgba(29, 33, 39, 0.04), 0 4px 16px rgba(29, 33, 39, 0.06);
  --shadow-hover: 0 2px 4px rgba(29, 33, 39, 0.05), 0 16px 40px rgba(29, 33, 39, 0.14);

  --max-width: 980px;
  --gutter: 1.5rem;
  --gap: 1.5rem;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181d;
    --surface: #1a1d21;
    --surface-2: #22262b;
    --ink: #e8e6e1;
    --muted: #b1b5bb;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #6fb3a8;
    --accent-soft: rgba(111, 179, 168, 0.1);
    --hint: #c9a46a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

strong {
  font-weight: 600;
}

[hidden] {
  display: none !important;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter) 4rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 639px) {
  :root {
    --gutter: 1rem;
    --gap: 1rem;
  }

  body {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
