/* ==========================================================================
   Coppick Property Advisory — main.css
   Foundational layer: tokens, reset, typography, layout primitives.
   Loaded on every page. Component styles live in components.css.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  --bg: #faf7f1;
  --bg-2: #f3ede0;
  --bg-deep: #1f3b2c;
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --ink-mute: #6b6b6b;
  --ink-faint: #9a9388;
  --forest: #1f3b2c;
  --forest-2: #2d5440;
  --gold: #a87a3a;
  --gold-2: #c4934a;
  --line: #e6dfce;
  --line-soft: #f0e9d8;
  --line-deep: #d6cdb6;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container: 1140px;
  --container-narrow: 720px;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;

  --shadow-soft: 0 1px 0 rgba(20, 24, 31, 0.02);
  --shadow-lift: 0 24px 60px -32px rgba(31, 59, 44, 0.28);

  --t-quick: 0.15s ease;
  --t-medium: 0.25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.02; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; }
h3 { font-size: 22px; line-height: 1.25; }
h4 { font-size: 17px; line-height: 1.3; font-weight: 600; }
h5 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

p { margin: 0 0 16px; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--forest);
  text-decoration: none;
  transition: color var(--t-quick);
}
a:hover { color: var(--forest-2); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

ul, ol { padding-left: 22px; margin: 0 0 16px; color: var(--ink-soft); }
ul li, ol li { margin-bottom: 6px; line-height: 1.65; }

blockquote {
  margin: 0;
  padding: 0;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
}

strong, b { font-weight: 600; color: var(--ink); }
em, i { font-style: italic; }

::selection { background: var(--gold); color: #fff; }

/* ---------- Display utility ---------- */
.display {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--ink);
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

/* ---------- Container & section ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.container--narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 96px 0;
}
.section--tight { padding: 64px 0; }
.section--loose { padding: 128px 0; }

.section--bg2 { background: var(--bg-2); }
.section--deep { background: var(--bg-deep); color: #f4ece0; }
.section--deep h1,
.section--deep h2,
.section--deep h3,
.section--deep h4 { color: #fff; }
.section--deep p { color: #d6d0bf; }

.section + .section { border-top: 1px solid var(--line); }
.section--bg2 + .section,
.section + .section--bg2,
.section--deep + .section,
.section + .section--deep { border-top: none; }

/* Section headings block */
.section-head {
  max-width: 720px;
  margin: 0 0 56px;
}
.section-head h2 { margin-bottom: 16px; }
.section-head p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- Pull quote ---------- */
.pull-quote {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.4;
  font-weight: 500;
  color: var(--ink);
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 28px;
  margin: 0;
  letter-spacing: -0.01em;
}
.pull-quote cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 20px;
}

/* Crumbs */
.crumbs {
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 24px;
  font-weight: 500;
}
.crumbs a { color: var(--ink-mute); }
.crumbs a:hover { color: var(--forest); }
.crumbs .sep { margin: 0 10px; color: var(--ink-faint); }

/* Tabular numerals helper for finance contexts */
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section--loose { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .container, .container--narrow { padding: 0 22px; }
  h1 { font-size: clamp(36px, 9vw, 52px); }
  h2 { font-size: clamp(26px, 6vw, 34px); }
  blockquote { font-size: 19px; }
  .pull-quote { padding-left: 22px; }
}

/* ---------- Print ---------- */
@media print {
  body { background: #fff; }
  .site-header, .site-footer, .btn { display: none; }
  .section { padding: 24px 0; border: none; }
}
