/* ==========================================================================
   A W Harley Consulting — design system
   Palette: warm paper / near-black ink / petrol accent.
   Type: Fraunces (display) + Lato (body), self-hosted, both OFL.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/fraunces-variable.woff2) format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/lato-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/lato-700-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/lato-400-italic.woff2) format("woff2");
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 86px; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }

/* ---------- tokens ---------- */
:root {
  --paper: #f7f5f1;
  --card: #fffdf9;
  --tint: #efece5;
  --ink: #1a1c20;
  --muted: #575d66;
  --accent: #010057;
  --accent-bright: #2d2aa8;
  --line: rgba(26, 28, 32, 0.14);
  --line-soft: rgba(26, 28, 32, 0.08);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Lato", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --container: 1080px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 10px;
  --space-section: clamp(48px, 7vw, 88px);
}

/* ---------- base ---------- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
}
::selection { background: var(--accent); color: var(--paper); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.14;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { max-width: 65ch; }
a { color: var(--accent); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--accent-bright); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--paper); padding: 10px 18px; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 760px; }
.section { padding-block: var(--space-section); }
.section--tint { background: var(--tint); border-block: 1px solid var(--line-soft); }

.eyebrow {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.section-title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin-bottom: clamp(20px, 3vw, 32px); }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.65; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  background: var(--accent); color: var(--paper);
  font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.04em;
  border-radius: 7px; border: 1px solid transparent;
  transition: background 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--accent-bright); color: var(--paper); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: rgba(1, 0, 87, 0.05); color: var(--accent); border-color: var(--accent); }
.btn--lg { min-height: 54px; padding: 14px 34px; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 30px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8125rem;
}
.link-arrow::after { content: "→"; transition: transform 0.18s ease; }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 70px;
}
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--ink); }
.brand__name { font-family: var(--font-display); font-weight: 620; font-size: 1.3125rem; }
.brand__dot { color: var(--accent); }
.brand__sub {
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--accent);
}
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.site-nav a {
  color: var(--ink); font-size: 0.875rem; font-weight: 700;
  padding-block: 12px;
}
.site-nav a:hover { color: var(--accent); }
.nav-cta {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px !important; color: var(--accent) !important;
}
.nav-cta:hover { border-color: var(--accent); background: rgba(1, 0, 87, 0.05); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(64px, 11vw, 130px) clamp(48px, 8vw, 96px); }
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4rem);
  max-width: 17ch; margin-bottom: 20px;
}
.hero .lede { max-width: 52ch; }

/* ---------- services ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 26px 26px 28px;
}
.card h3 { font-size: 1.3125rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.9855rem; }
.project-strip {
  margin-top: 22px; padding: 22px 26px;
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 8px; background: var(--card);
}
.project-strip h3 { font-size: 1.125rem; margin-bottom: 6px; }
.project-strip p { color: var(--muted); max-width: 78ch; }

/* ---------- work ---------- */
.work-card {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(22px, 4vw, 44px); align-items: center;
}
.work-card__media {
  display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 24px 50px -28px rgba(26, 28, 32, 0.35);
  transition: transform 0.25s ease;
}
.work-card__media:hover { transform: translateY(-3px); }
.work-card__tags {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.work-card__body h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 12px; }
.work-card__body p { color: var(--muted); margin-bottom: 18px; }

/* ---------- contact ---------- */
.section--contact { text-align: center; }
.section--contact p { margin-inline: auto; }
.section--contact .btn-row { justify-content: center; }
.contact-note { margin-top: 18px; color: var(--muted); font-size: 0.9375rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding-block: 30px; }
.site-footer .container {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
}
.site-footer p { font-size: 0.875rem; color: var(--muted); }
.site-footer a { padding-block: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .card-grid { grid-template-columns: 1fr; }
  .work-card { grid-template-columns: 1fr; }
  .site-nav a:not(.nav-cta) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .work-card__media, .link-arrow::after { transition: none; }
}

@media print {
  .site-header, .btn-row, #fdbk-root { display: none; }
}
