/* ============================================================
   Catenaccio — base.css
   Reset, variables, typography foundations
   ============================================================ */

:root {
  /* Palette: deep navy + gold */
  --navy-900: #0a1224;
  --navy-800: #101b35;
  --navy-700: #16244a;
  --navy-600: #1d2f5e;
  --navy-500: #284080;
  --gold-500: #c9a227;
  --gold-400: #d8b13f;
  --gold-300: #e7c963;
  --paper: #f7f5ef;
  --paper-dim: #ece8dd;
  --ink: #14181f;
  --ink-soft: #3a414d;
  --line: rgba(201, 162, 39, 0.28);
  --line-soft: rgba(20, 24, 31, 0.12);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1180px;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --radius: 4px;
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-sm: 0 2px 8px rgba(10, 18, 36, 0.08);
  --shadow-md: 0 10px 30px rgba(10, 18, 36, 0.14);
}

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

* {
  margin: 0;
}

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.14;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.12rem; }

p { margin-bottom: 1.05rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--navy-600);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--gold-500); }

strong { font-weight: 700; color: var(--navy-800); }
em { font-style: italic; }

ul, ol { padding-left: 1.3rem; margin-bottom: 1.05rem; }
li { margin-bottom: 0.45rem; }

blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  line-height: 1.4;
  color: var(--navy-700);
  border-left: 3px solid var(--gold-500);
  padding: 0.4rem 0 0.4rem 1.4rem;
  margin: 1.8rem 0;
}

::selection {
  background: var(--gold-300);
  color: var(--navy-900);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
