/* /assets/css/base.css */
/* Base: typography, colors, reset-ish rules, accessibility */

:root {
  /* Victorian library palette: ink + paper + leather + brass */
  --ink: #1c1a17;
  --paper: #f5f0e6;
  --paper-2: #efe6d7;
  --leather: #3b2a23;
  --leather-2: #2b201b;
  --brass: #9a7b2f;
  --brass-2: #b8943f;
  --rule: rgba(75, 54, 33, 0.28);
  --oak: #4b3621;        /* dark polished oak */
  --oak-soft: #6a4a2f;   /* slightly lighter for hovers */

  --link: #2b3a55;      /* restrained “ink-blue” */
  --link-hover: #162238;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);

  --container: 1120px;

  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 26px;
  --space-6: 36px;
  --space-7: 52px;

  /* Type scale */
  --text: 16px;
  --text-lg: 24px;
  --h1: clamp(28px, 3vw, 42px);
  --h2: clamp(22px, 2.2vw, 30px);
  --h3: 20px;

  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--text);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; display: block; }

a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover { color: var(--link-hover); text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: 0.2px;
  margin: 0 0 var(--space-3);
}

p { margin: 0 0 var(--space-3); }

.smallprint {
  font-size: 13px;
  opacity: 0.85;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus { left: 10px; }
