/* micaeljohnstone.com — Ocean Petrol & Eucalyptus */
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F7F9F9;          /* Cool Linen */
  --ink: #16323B;         /* Deep Petrol Blue */
  --accent: #4A7C6F;      /* Eucalyptus Green */
  --accent-deep: #2F5F55; /* darker eucalyptus for small text */
  --tint: #E6EFEF;        /* Pale Seafoam */
  --body: #2B4650;
  --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::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(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
a { color: var(--ink); }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.dark :focus-visible { outline-color: #A9CFC4; }
[id] { scroll-margin-top: 24px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 12px 16px; border-radius: 8px; z-index: 10; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 17px 28px; border-radius: 999px;
  font-weight: 600; text-decoration: none; text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #3F6C60; color: #fff; }
.btn-light { background: var(--tint); color: var(--ink); padding: 12px 20px; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-outline { border: 1px solid #7FA39B; color: var(--bg); }
.btn-outline:hover { border-color: var(--bg); color: #fff; }

/* Header + hero */
.dark { background: var(--ink); color: var(--bg); }
.site-header {
  display: flex; flex-wrap: wrap; gap: 12px 32px;
  justify-content: space-between; align-items: center;
  padding-top: 24px; padding-bottom: 24px;
}
.brand {
  font-family: var(--display); font-size: 20px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--bg); text-decoration: none;
}
.brand:hover { color: #fff; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; font-size: 15px; }
.nav a:not(.btn) { color: var(--tint); text-decoration: none; padding: 12px 0; }
.nav a:not(.btn):hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }

.hero {
  display: flex; flex-wrap: wrap; gap: 56px 64px; align-items: flex-end;
  padding-top: 72px; padding-bottom: 112px;
}
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.roles {
  font-family: var(--display); font-size: 15px; font-weight: 500; color: #A9CFC4;
  display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; padding: 0;
}
.roles li:not(:last-child)::after { content: "/"; margin-left: 14px; }
h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(32px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero .btn { font-size: 18px; padding: 18px 30px; }
.hero-photo { flex: 0 1 400px; min-width: 240px; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 28px; }

/* Sections */
.section { padding-top: 112px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 48px; }
.tinted { background: var(--tint); }
.tinted .section { padding-top: 104px; padding-bottom: 104px; }
.eyebrow {
  font-family: var(--display); font-size: 15px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-deep);
}
h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.02em;
}
.lead {
  max-width: 1000px; font-family: var(--display); font-weight: 500;
  font-size: clamp(26px, 3vw, 40px); line-height: 1.2; letter-spacing: -0.02em;
  text-wrap: balance;
}
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 28px 48px; color: var(--body); }
.columns strong { font-weight: 600; color: var(--ink); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; list-style: none; padding: 0; }
.card { background: var(--bg); border-radius: 20px; padding: 32px 28px 36px; display: flex; flex-direction: column; gap: 14px; }
.card .num { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--accent-deep); }
.card h3 { font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.card p { font-size: 16px; color: var(--body); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); gap: 40px 48px; list-style: none; padding: 0; }
.facts li { border-top: 3px solid var(--accent); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.facts h3 { font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1.25; }
.facts p { font-size: 16px; color: var(--body); }

/* Contact */
.contact-wrap { padding-bottom: 96px; }
.contact {
  border-radius: 28px; padding: clamp(36px, 6vw, 88px);
  display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: center;
}
.contact-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact h2 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -0.025em; }
.contact p { max-width: 520px; font-size: 18px; color: #D5E3E3; }
.contact-actions { flex: 0 1 320px; min-width: 240px; display: flex; flex-direction: column; gap: 12px; }

.site-footer { padding-bottom: 40px; font-size: 14px; color: var(--body); }

@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 40px; padding-bottom: 72px; }
  .section, .tinted .section { padding-top: 72px; padding-bottom: 72px; gap: 32px; }
  .nav { gap: 4px 20px; }
  .contact-wrap { padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
