@font-face { font-family: "Familjen Grotesk"; src: url("/assets/fonts/FamiljenGrotesk.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/assets/fonts/Lora.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/assets/fonts/Lora-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --green: #0F3D2E;
  --green-deep: #0A2B20;
  --sand: #EFE8D8;
  --sand-deep: #E3DAC5;
  --ink: #0F3D2E;
  --muted: #4F5F58;
  --muted-on-green: #C9D6CF;
  --rust: #7A4A12;
  --display: "Familjen Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Lora", Georgia, "Times New Roman", serif;
  --measure: 68ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sand); color: var(--ink); font-family: var(--body); font-size: 1.125rem; line-height: 1.6; text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.05; margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--rust); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; }
.on-green a:focus-visible, .on-green button:focus-visible { outline-color: var(--sand); }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding-left: 1.2em; }
li { margin: 0.35em 0; }
strong { font-weight: 500; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: var(--sand); padding: 0.5rem 0.75rem; border-radius: 4px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: min(1200px, 100% - 3rem); margin-inline: auto; }
.on-green { background: var(--green); color: var(--sand); }
.on-green a { color: var(--sand); }
.on-green a:hover { color: #FFFFFF; }

.nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem 0; }
.nav .brand { font-family: var(--display); font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.nav ul { display: flex; gap: 1.5rem; list-style: none; padding: 0; margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.05rem; flex-wrap: wrap; justify-content: flex-end; }
.nav ul a { text-decoration: none; }
.nav ul a:hover { text-decoration: underline; }
.nav .pill { background: var(--sand); color: var(--green); padding: 0.55rem 1rem; border-radius: 4px; text-decoration: none; }
.nav .pill:hover { background: #FFFFFF; color: var(--green); text-decoration: none; }
.nav.dark .pill { background: var(--green); color: var(--sand); }
.nav.dark .pill:hover { background: var(--green-deep); color: #FFFFFF; }

.hero { padding: 2.5rem 0 4.5rem; display: flex; flex-direction: column; gap: 2.5rem; }
.hero .kicker { font-family: var(--display); font-weight: 500; font-size: 1.15rem; color: var(--muted-on-green); }
.hero h1 { font-size: clamp(3.2rem, 10.5vw, 10.5rem); line-height: 0.92; max-width: 12ch; }
.hero .lede { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; align-items: end; }
.hero .lede p { font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.45; max-width: 34em; }
.hero .who { display: flex; align-items: center; gap: 1rem; }
.hero .who img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; border: 3px solid var(--sand); }
.hero .who span { font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--muted-on-green); max-width: 12em; line-height: 1.3; }

.section { padding: 4rem 0; }
.section + .section { border-top: 2px solid var(--green); }
.section h2 { font-size: clamp(2rem, 3.4vw, 2.6rem); margin-bottom: 1.75rem; }
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
.case { display: flex; flex-direction: column; gap: 0.9rem; }
.case .when { font-family: var(--display); font-weight: 500; color: var(--muted); font-size: 1rem; }
.case h3 { font-size: 1.7rem; }
.case a.more { font-family: var(--display); font-weight: 700; }

.now { max-width: var(--measure); display: flex; flex-direction: column; gap: 1rem; }
.now .cert-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 2rem; }

.contact { display: flex; flex-direction: column; gap: 1.5rem; }
.contact h2 { color: var(--sand); }
.contact .actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.btn { font-family: var(--display); font-weight: 700; font-size: 1.05rem; padding: 0.85rem 1.3rem; border-radius: 4px; border: 2px solid var(--sand); background: transparent; color: var(--sand); cursor: pointer; text-decoration: none; min-height: 44px; }
.btn.solid { background: var(--sand); color: var(--green); }
.btn.solid:hover { background: #FFFFFF; color: var(--green); }
.btn:hover { color: #FFFFFF; border-color: #FFFFFF; }
.reveal-out { font-family: var(--display); font-size: 1.2rem; font-weight: 600; min-height: 1.5em; }
.reveal-out a { color: var(--sand); }
.contact .note { color: var(--muted-on-green); font-size: 1rem; max-width: 46em; }

.footer { padding: 1.5rem 0 2.5rem; border-top: 1px solid rgba(239, 232, 216, 0.25); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--display); font-size: 1rem; }
.footer ul { display: flex; gap: 1.5rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }

.page-head { padding: 2rem 0 3rem; display: flex; flex-direction: column; gap: 1.25rem; }
.page-head h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); max-width: 18ch; }
.meta { display: flex; flex-direction: column; gap: 0.4rem; font-family: var(--display); font-size: 1.05rem; color: var(--muted-on-green); }
.meta .tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.meta .tags span { border: 1px solid var(--muted-on-green); border-radius: 999px; padding: 0.2rem 0.7rem; font-size: 0.95rem; }

.prose { max-width: var(--measure); padding: 3rem 0 4rem; }
.prose h2 { font-size: 1.9rem; margin: 2.2rem 0 0.8rem; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 1em; }
.prose ul { margin: 0.75em 0 1em; }
.prose p, .prose li { max-width: var(--measure); }
.prose em { color: var(--muted); }
.next { padding: 0 0 4rem; display: flex; gap: 2rem; flex-wrap: wrap; font-family: var(--display); font-weight: 600; }

.about { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 4rem; padding: 3rem 0 4rem; align-items: start; }
.about img { border-radius: 6px; }
.about .text { display: flex; flex-direction: column; gap: 1.5rem; max-width: var(--measure); }
.about h2 { font-size: 1.9rem; margin-top: 0.5rem; }
.skills { display: flex; flex-direction: column; gap: 0.6rem; }
.skills p strong { font-family: var(--display); font-weight: 600; }

@media (max-width: 900px) {
  .cases { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero .lede { grid-template-columns: 1fr; gap: 1.75rem; }
  .about { grid-template-columns: 1fr; gap: 2rem; }
  .about img { max-width: 320px; }
  .now .cert-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 1.05rem; }
  .wrap { width: min(1200px, 100% - 2rem); }
  .nav { flex-direction: column; align-items: flex-start; }
  .nav ul { justify-content: flex-start; gap: 1rem; }
  .hero { padding-bottom: 3rem; }
  .section { padding: 2.75rem 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .on-green { background: #FFFFFF; color: #000; } .nav, .contact, .footer { display: none; } }
