/* Bon Morris Web Development - v2. One font (Inter, self-hosted), one accent colour.
   Spacing scale: 4 8 12 16 24 32 48 64 96 128 (--s-1 ... --s-10).
   Type scale (~1.25): 0.875 1 1.125 1.25 1.5625 1.953 2.441 3.05 rem. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #16181d;
  --muted: #555c66;
  --line: #e4e6ea;
  --surface: #f6f7f9;
  --bg: #ffffff;
  --accent: #1f4fa3;
  --accent-dark: #173d80;
  --accent-soft: #eef3fb;

  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;

  --t-sm: 0.875rem; --t-base: 1rem; --t-md: 1.125rem; --t-lg: 1.25rem;
  --t-xl: 1.5625rem; --t-2xl: 1.953rem; --t-3xl: 2.441rem; --t-4xl: 3.05rem;

  --wrap: 68rem;      /* 1088px content column */
  --measure: 38rem;   /* comfortable line length for text */
  --radius: 10px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--s-5); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--t-base); line-height: 1.6;
  font-feature-settings: "kern", "calt";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; font-weight: 650; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-5); }
.skip { position: absolute; left: var(--s-4); top: -100px; background: var(--ink); color: #fff; padding: var(--s-2) var(--s-4); border-radius: 6px; z-index: 10; }
.skip:focus { top: var(--s-4); color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 4rem; }
.brand { color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -0.01em; white-space: nowrap; }
.brand span { color: var(--muted); font-weight: 450; }
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: var(--s-6); font-size: var(--t-sm); }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav .nav-extra { display: none; }
@media (min-width: 48rem) { .nav .nav-extra { display: inline; } }

/* Sections */
.section { padding: var(--s-8) 0; }
@media (min-width: 48rem) { .section { padding: var(--s-9) 0; } }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: var(--measure); margin-bottom: var(--s-7); }
.eyebrow { font-size: var(--t-sm); font-weight: 600; color: var(--accent); margin-bottom: var(--s-3); }
h2 { font-size: var(--t-2xl); }
.lead { color: var(--muted); font-size: var(--t-md); margin-top: var(--s-4); }

/* Hero */
.hero { padding: var(--s-8) 0; }
.hero h1 { font-size: 2.25rem; max-width: 15em; letter-spacing: -0.025em; font-weight: 700; line-height: 1.15; }
.hero .intro { max-width: var(--measure); color: var(--muted); font-size: var(--t-md); margin-top: var(--s-5); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5); margin-top: var(--s-6); }
@media (min-width: 48rem) {
  .hero { padding: var(--s-10) 0 var(--s-9); }
  .hero h1 { font-size: var(--t-4xl); }
  .hero .intro { font-size: var(--t-lg); }
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 var(--s-5); border-radius: 8px; border: 0;
  background: var(--accent); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--accent-dark); color: #fff; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* What I do */
.services { display: grid; gap: var(--s-6); list-style: none; margin: 0; padding: 0; }
.services h3 { font-size: var(--t-lg); margin-bottom: var(--s-2); }
.services p { color: var(--muted); }
@media (min-width: 48rem) { .services { grid-template-columns: repeat(3, 1fr); gap: var(--s-7); } }

/* Work */
.work { display: grid; gap: var(--s-7); list-style: none; margin: 0; padding: 0; }
@media (min-width: 48rem) { .work { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }
.card { display: flex; flex-direction: column; }
.card .shot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); aspect-ratio: 16 / 10; }
.card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card h3 { font-size: var(--t-lg); margin-top: var(--s-5); }
.card .role { font-size: var(--t-sm); color: var(--muted); margin-top: var(--s-1); }
.card p.desc { color: var(--ink); margin-top: var(--s-3); }
.card .visit { margin-top: var(--s-4); font-size: var(--t-sm); }

/* How it works */
.steps { display: grid; gap: var(--s-6); list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font-weight: 650; font-size: var(--t-sm); margin-bottom: var(--s-4);
}
.steps h3 { font-size: var(--t-lg); margin-bottom: var(--s-2); }
.steps p { color: var(--muted); }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-7); } }

/* Contact */
.contact-grid { display: grid; gap: var(--s-7); }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: 5fr 7fr; gap: var(--s-9); } }
.contact-grid .section-head { margin-bottom: 0; }
.contact-email { margin-top: var(--s-5); font-size: var(--t-md); }
.contact-email span { display: block; font-size: var(--t-sm); color: var(--muted); }
.contact-email a { font-weight: 600; word-break: break-word; }
.form { display: grid; gap: var(--s-5); }
.field label { display: block; font-size: var(--t-sm); font-weight: 600; margin-bottom: var(--s-2); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #c9ced6; border-radius: 8px; padding: var(--s-3) var(--s-4);
}
.field input { min-height: 3rem; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); outline-offset: 0; }
.form .button { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { padding: var(--s-4); border-radius: 8px; background: #fdf0ef; color: #8a1f17; font-size: var(--t-sm); }
.status[hidden] { display: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: var(--s-6) 0; font-size: var(--t-sm); color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* Simple pages (404, thanks) */
.simple { padding: var(--s-9) 0; }
.simple h1 { font-size: var(--t-3xl); }
.simple p { color: var(--muted); font-size: var(--t-md); margin-top: var(--s-4); max-width: var(--measure); }
