/* ALTCo brand system — pulled directly from huntingfield.altco.com.au design tokens + globals.css */

/* Stolzl font faces (the only typeface used across the portfolio) */
@font-face {
  font-family: 'Stolzl';
  src: url('fonts/stolzl_thin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Stolzl';
  src: url('fonts/stolzl_light.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Stolzl';
  src: url('fonts/stolzl_book.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Stolzl';
  src: url('fonts/stolzl_regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Stolzl';
  src: url('fonts/stolzl_medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Stolzl';
  src: url('fonts/stolzl_bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Core palette — from design tokens */
  --ink: #2d2d2d;              /* --ds-palette-primary */
  --ink-soft: #374151;         /* --ds-palette-text-body */
  --muted: #6b7280;            /* --ds-palette-text-muted */
  --surface: #f5f4f2;          /* --ds-palette-surface — warm off-white */
  --border: #e9e2d9;           /* --ds-palette-border — warm paper */
  --border-light: #e8e8e6;
  --accent: #afc69b;           /* --ds-palette-accent — sage */
  --accent-dark: #5e7350;      /* --ds-palette-accent-dark */
  --focus-ring: rgba(175,198,155,0.15);

  /* Dark scene (hero / footer) — stone tones used in HeroSection & footer */
  --dark: #1c1917;             /* stone-900 */
  --dark-2: #292524;           /* stone-800 */
  --dark-3: #44403c;           /* stone-700 */
  --dark-ink: #f5f5f4;         /* stone-100 */
  --dark-muted: #a8a29e;       /* stone-400 */

  /* Shadows */
  --shadow-card: 0 1px 2px rgba(45,45,45,0.04), 0 1px 3px rgba(45,45,45,0.06);
  --shadow-card-hover: 0 8px 20px rgba(45,45,45,0.08);
  --shadow-btn: 0 8px 20px rgba(45,45,45,0.2);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Stolzl', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Removed redundant `a` and `img` resets — handled by Tailwind preflight in @layer base.
   Keeping them unlayered here was beating utilities like `text-white`. */

/* Utility — site frame */
.wrap { max-width: 90rem; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) { .wrap { padding: 0 40px; } }

/* Eyebrow — the signature tracked caps used throughout the site */
.eyebrow {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Display headings follow HeroSection: uppercase, tight, light/normal weight */
.display {
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0;
}

/* Primary buttons — rounded-lg, tight tracking, light weight */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.025em;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}
.btn-primary {
  background: #ffffff;
  color: var(--ink);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-btn); background: var(--surface); }
.btn-dark {
  background: var(--ink);
  color: #ffffff;
}
.btn-dark:hover { transform: translateY(-1px); box-shadow: var(--shadow-btn); }
.btn-outline {
  background: transparent;
  color: currentColor;
  border: 1px solid currentColor;
}
.btn-outline:hover { background: rgba(175,198,155,0.1); border-color: var(--accent); color: var(--accent); }

/* Accent tag — the sage pill used for "In Progress" etc */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tag-dark {
  background: rgba(175,198,155,0.15);
  color: var(--accent);
}

/* Thin rule — used between sections in the brand */
.rule { height: 1px; background: var(--border); border: none; margin: 0; }
.rule-dark { background: rgba(255,255,255,0.1); }

/* Nav link style shared across variations */
.navlink {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.025em;
  color: var(--ink);
  opacity: 0.8;
  transition: opacity 0.3s;
}
.navlink:hover { opacity: 1; color: var(--accent-dark); }
.navlink-dark { color: var(--dark-ink); opacity: 0.7; }
.navlink-dark:hover { color: var(--accent); opacity: 1; }

/* Form primitives */
.field {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
  background: #fff;
  color: var(--ink);
}
.field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.field-dark {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--dark-ink);
}
.field-dark::placeholder { color: var(--dark-muted); }
.field-dark:focus { border-color: var(--accent); background: rgba(255,255,255,0.03); }

label.lbl {
  display: block;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
label.lbl-dark { color: var(--dark-muted); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
