/* Avenor Tech — institutional site
   Type: system serif for display; DM Sans and IBM Plex Mono (SIL OFL, self-hosted). */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/dm-sans.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0c0b0a;
  --ink: #f2ece4;
  --soft: #cfc7bb;
  --muted: #a39c93;
  --line: #2a2724;
  --line-strong: #3f3b36;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --header: 4.25rem;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: var(--bg);
  padding: 0.55rem 0.8rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.shell {
  width: min(100% - 2.5rem, 74rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 11, 10, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: var(--header);
  padding-block: 0.85rem 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  min-height: 2.75rem;
}

.brand span {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.mark {
  width: 1.65rem;
  height: 1.65rem;
  flex: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  padding-top: clamp(3.25rem, 9vh, 6.5rem);
  padding-bottom: clamp(3rem, 8vh, 5.5rem);
}

.kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin-top: 1.25rem;
  max-width: 11em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.7rem, 6.6vw, 5.35rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lede {
  margin-top: 1.6rem;
  max-width: 36rem;
  color: var(--soft);
  font-size: 1.125rem;
  line-height: 1.6;
}

.identity {
  margin-top: 2.25rem;
  max-width: 40rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.section {
  border-top: 1px solid var(--line);
  padding-block: clamp(3.25rem, 7vw, 5.75rem);
  scroll-margin-top: calc(var(--header) + 0.75rem);
}

.split {
  display: grid;
  gap: 1.75rem;
}

.section-label h2 {
  margin-top: 0.7rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-body > .lede:first-child,
.section-intro {
  margin-top: 0;
}

.work {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.work li {
  padding: 1.55rem 0 1.7rem;
  border-top: 1px solid var(--line);
}

.work li:last-child {
  border-bottom: 1px solid var(--line);
}

.work h3 {
  margin: 0.55rem 0 0.6rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.3vw, 1.95rem);
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.work p:last-child,
.soft {
  max-width: 38rem;
  color: var(--soft);
}

.cnae {
  margin-top: 1.5rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.data {
  margin: 0;
  border-top: 1px solid var(--line);
}

.data > div {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.data dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.data dd {
  margin: 0;
  line-height: 1.5;
}

.data a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.contact-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.contact-link {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 4vw, 2.45rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.address-note {
  margin-top: 1.5rem;
  max-width: 32rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(2.4rem, 5vw, 3.75rem);
  padding-bottom: calc(2.25rem + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-name {
  margin-bottom: 0.8rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.site-footer p {
  margin: 0.15rem 0;
}

.site-footer a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.footer-base {
  display: grid;
  gap: 0.7rem;
  margin-top: 2.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.footer-base.plain {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.footer-note {
  max-width: 40rem;
  font-size: 0.82rem;
  line-height: 1.55;
}

.page-head {
  padding-top: clamp(2.75rem, 7vh, 4.75rem);
  padding-bottom: 0.5rem;
}

.page-head h1 {
  margin-top: 0.9rem;
  max-width: 14em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.page-meta {
  margin-top: 1.15rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.prose {
  width: min(100% - 2.5rem, 42rem);
  margin: 0 auto;
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.prose h2 {
  margin-top: 2.6rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.prose p,
.prose li {
  color: var(--soft);
}

.prose p {
  margin-top: 0.85rem;
}

.prose ul,
.prose ol {
  margin: 0.85rem 0 0;
  padding-left: 1.15rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose a {
  color: var(--ink);
  text-underline-offset: 0.16em;
}

.prose strong {
  color: var(--ink);
  font-weight: 500;
}

.not-found {
  min-height: calc(100vh - 16rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 4rem 5rem;
}

.not-found h1 {
  margin-top: 0.8rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.not-found p {
  margin-top: 1.1rem;
  max-width: 32rem;
  color: var(--soft);
}

.not-found .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.75rem;
}

.not-found .links a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 719px) {
  .section {
    scroll-margin-top: 8.25rem;
  }
}

@media (min-width: 720px) {
  .shell,
  .prose {
    width: min(100% - 5rem, 74rem);
  }

  .prose {
    width: min(100% - 5rem, 42rem);
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 0;
  }

  .data > div {
    grid-template-columns: 12.5rem minmax(0, 1fr);
    gap: 1.5rem;
    align-items: baseline;
    padding: 1.05rem 0;
  }
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(12rem, 15.5rem) minmax(0, 1fr);
    column-gap: clamp(2rem, 5vw, 5.5rem);
    align-items: start;
  }

  .section-label {
    position: sticky;
    top: calc(var(--header) + 1.5rem);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(12rem, 0.5fr);
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header {
    backdrop-filter: none;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: #fff;
    color: #161513;
  }

  .site-header {
    position: static;
    background: #fff;
    border-bottom: 1px solid #bbb;
  }

  .skip,
  .site-nav {
    display: none;
  }

  .lede,
  .soft,
  .work p:last-child,
  .prose p,
  .prose li,
  .cnae,
  .address-note,
  .site-footer {
    color: #222;
  }

  a {
    text-decoration: none;
  }
}
