/*
 * Laura Pérez — Foundation
 * Design tokens, reset, and base element styles.
 * Breakpoints — Tailwind's scale, mobile-first (min-width). var() cannot be
 * used inside @media conditions, so values are written literally.
 *   sm: 640px   md: 768px   lg: 1024px   xl: 1280px   2xl: 1536px
 */

:root {
  /* Palette — drawn from the paintings: primed canvas, catalogue cocoa, rooftop brick, sky */
  --paper: #f4efe7;
  --paper-soft: #ebe3d6;
  --ink: #241c18;
  --ink-soft: #5a4d45;
  --muted: #8c7f75;
  --line: #ddd2c3;
  --cocoa: #63443a;
  --cocoa-deep: #3a2822;
  --brick: #b8492f;
  --brick-deep: #9a3b25;
  --peach: #f0a483;
  --sky: #9fb2c8;
  /* The café photo's tabletop, so it sits on the section without a seam */
  --porcelain: #f3f4f7;

  /* Typography */
  --font-display: "Fraunces", "Fraunces Fallback", Georgia, serif;
  --font-body: "Inter", "Inter Fallback", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --container: 1120px;
  --container-narrow: 680px;
  --header-height: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

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

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