/* Outerfield Labs Inc. One stylesheet, no scripts, no external requests. */

:root {
  color-scheme: light dark;
  --bg: #faf9f6;
  --ink: #16191b;
  --muted: #51585c;
  --rule: #dcd9d1;
  --accent: #1c5b43;
  --focus: #1c5b43;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111513;
    --ink: #eceeea;
    --muted: #a6aea9;
    --rule: #2b322e;
    --accent: #8fd3b2;
    --focus: #8fd3b2;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

.page {
  max-width: 56rem;
  margin: 0 auto;
  padding: 4.5rem 2rem 2.5rem;
}

/* Masthead */

.mark {
  display: block;
  margin-bottom: 2rem;
}

.mark-ring {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
}

.mark-dot {
  fill: var(--accent);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 0.9rem + 4.4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lead {
  max-width: 34rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1.1875rem, 1.1rem + 0.5vw, 1.375rem);
  line-height: 1.5;
}

/* Sections: label on the left, content on the right */

main {
  margin-top: 4.5rem;
}

section {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  column-gap: 2rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--rule);
}

h2 {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.body {
  max-width: 36rem;
}

.body p {
  margin: 0;
}

.services {
  margin: 0;
  padding: 0;
  list-style: none;
}

.services li + li {
  margin-top: 1.5rem;
}

h3 {
  margin: 0 0 0.25rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
}

.services p {
  color: var(--muted);
}

/* Contact */

.contact {
  margin: 0;
}

.contact > div + div {
  margin-top: 1.5rem;
}

.contact dt {
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.contact dd {
  margin: 0;
  color: var(--muted);
}

address {
  font-style: normal;
}

a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--ink);
}

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

/* Footer */

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
}

footer p {
  margin: 0;
}

/* The "page not found" page */

.notfound main {
  margin-top: 0;
}

.notfound .lead a {
  display: block;
  margin-top: 0.75rem;
}

/* Phones and narrow windows */

@media (max-width: 44rem) {
  .page {
    padding: 2.75rem 1.25rem 2rem;
  }

  .mark {
    margin-bottom: 1.5rem;
  }

  main {
    margin-top: 3rem;
  }

  section {
    display: block;
    padding: 1.75rem 0;
  }

  h2 {
    margin-bottom: 0.875rem;
  }

  footer {
    display: block;
  }

  footer p + p {
    margin-top: 0.25rem;
  }
}

@media print {
  :root {
    --bg: #fff;
    --ink: #000;
    --muted: #333;
    --rule: #bbb;
    --accent: #000;
  }
}
