@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-latin.woff2") format("woff2");
}

:root {
  --font-body: "Atkinson Hyperlegible Next", Verdana, "DejaVu Sans", "Noto Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, "DejaVu Serif", serif;
  --bg: #f8f5ef;
  --text: #1f1b17;
  --text-muted: #5f574f;
  --rule: #d9d1c6;
  --container: 70rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.125rem/1.65 var(--font-body);
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { text-decoration-thickness: 2px; }

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.5rem 1rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
}

.skip-link:focus { top: 0.75rem; }

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

/* Top bar: wordmark and section links. */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  text-decoration: none;
}

.brand img { width: 1.875rem; height: auto; }

.nav { display: flex; gap: 0.25rem; }

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover { color: var(--text); }

/* Hero: the raven faces right, toward the headline. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6.5rem);
  border-top: 1px solid var(--rule);
}

.hero img {
  justify-self: end;
  width: 100%;
  max-width: 15rem;
  height: auto;
}

.hero h1 {
  font-size: clamp(3rem, 1.5rem + 6vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
}

/* Each section is a row: name on the left, details on the right. */
.rows { border-top: 1px solid var(--text); }

.row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 1rem clamp(2rem, 5vw, 4.5rem);
  padding: clamp(2.25rem, 5vw, 3.5rem) 0;
  border-bottom: 1px solid var(--rule);
}

.row h2, .row h3 {
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem);
  line-height: 1.05;
}

.details > * + * { margin-top: 1rem; }

/* A heavier rule ends the apps and starts the company sections. */
.apps { border-bottom: 2px solid var(--text); }
.apps > .row:last-child { border-bottom: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.status {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 700;
}

.lead {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  line-height: 1.2;
}

.more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

.email {
  display: inline-block;
  padding: 0.375rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1.2;
}

address {
  color: var(--text-muted);
  font-style: normal;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.5rem;
  min-height: 5.5rem;
  padding-block: 1rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
}

.footer-links a:hover { color: var(--text); }

/* Privacy policy and other text pages. */
.prose {
  max-width: 42rem;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(3.5rem, 8vw, 6rem);
  border-top: 1px solid var(--rule);
}

.prose h1 {
  font-size: clamp(2.75rem, 1.8rem + 3.5vw, 4rem);
  line-height: 1;
}

.prose h2 {
  margin-top: 2.75rem;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  line-height: 1.1;
}

.prose p, .prose address { margin-top: 1rem; }

.prose .effective {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 700;
}

@media (max-width: 48rem) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero img { justify-self: start; max-width: 7rem; }
  .row { grid-template-columns: minmax(0, 1fr); row-gap: 1.5rem; }
}

/* Phones: the page is short, so drop the section links. */
@media (max-width: 30rem) {
  .nav { display: none; }
  .brand { font-size: 1.5rem; }
}
