/* kjohnson.ie — "Clean and minimal" (Option A): white, near-black text, one blue accent. */

@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --text: #14181f;
  --muted: #57606c;
  --accent: #0b5fd8;
  --accent-dark: #0848a6;
  --line: #e4e7ec;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1040px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 6px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0; }
p { margin: 0; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: var(--bg); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 16px;
}
.brand {
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}
.nav-list a { color: var(--muted); text-decoration: none; padding-block: 4px; }
.nav-list a:hover { color: var(--accent); }

/* Headline */
.hero { padding-block: clamp(48px, 9vw, 104px); }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}
.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.lede {
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.55;
  margin-bottom: 32px;
}
.portrait {
  width: clamp(150px, 22vw, 220px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.button {
  display: inline-block;
  padding: 13px 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--accent-dark); color: #ffffff; }

/* Sections: heading on the left, content on the right */
.section { border-top: 1px solid var(--line); padding-block: clamp(48px, 7vw, 80px); }
.section-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px 48px;
  align-items: start;
}
.section h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
.section-body { max-width: 42em; margin: 0; padding: 0; }
.prose { display: grid; gap: 1em; }

.label {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.tags:last-child { margin-bottom: 0; }
.tags li {
  padding: 6px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.95rem;
}

.entries { list-style: none; display: grid; gap: 36px; }
.entry { display: grid; gap: 6px; }
.entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}
.entry h3 { font-size: 1.15rem; font-weight: 700; }
.years { color: var(--muted); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.entry-role { font-weight: 600; }

.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; max-width: none; }

/* Contact form */
.form-intro { margin-bottom: 24px; }
.contact-form { display: grid; gap: 20px; max-width: 34em; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #b9c0ca;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.field textarea { resize: vertical; min-height: 9em; }
.field input:focus-visible,
.field textarea:focus-visible { border-color: var(--accent); outline-offset: 0; }
.contact-form .button { justify-self: start; }
.privacy {
  margin-top: 24px;
  max-width: 34em;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px; color: var(--muted); font-size: 0.95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* Simple pages: thanks and not found */
.simple { padding-block: clamp(64px, 12vw, 140px); }
.simple h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -0.02em; margin-bottom: 16px; }
.simple p { color: var(--muted); font-size: 1.15rem; margin-bottom: 32px; max-width: 34em; }

/* Narrow screens */
@media (max-width: 760px) {
  .section-grid { grid-template-columns: 1fr; }
  .columns { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 112px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .portrait { order: -1; width: 140px; }
  .nav-list { gap: 4px 18px; }
}
