/* Online Reach Media — editorial homepage */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 460 640;
  font-display: swap;
  src: url("../assets/fonts/fraunces-roman.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: "Fraunces";
  font-style: italic;
  font-weight: 460 560;
  font-display: swap;
  src: url("../assets/fonts/fraunces-italic.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: "Outfit";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/outfit-latin.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 {
  --ink: #16211c;
  --ink-soft: #3a463f;
  --paper: #f3efe6;
  --line: rgba(22, 33, 28, 0.16);
  --reach: #114838;
  --reach-deep: #0c1612;
  --foam: #f6f3ec;
  --foam-dim: #d5d0c4;
  --signal: #c6531c;
  --gutter: 1.25rem;
  --measure: 1180px;
  color-scheme: light;
}

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

html {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

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

p,
h1,
h2,
h3 {
  text-wrap: pretty;
}

h1,
h2,
.service h3,
.about h2 {
  text-wrap: balance;
}

h1,
h2,
h3,
.em,
.num,
.nav-ix,
.wm-meta,
.contact-email,
.missing h1,
.reach-figure text {
  font-family: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  font-optical-sizing: auto;
}

.em {
  font-style: italic;
  font-weight: 460;
}

a {
  color: inherit;
}

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

:focus:not(:focus-visible) {
  outline: none;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.65rem 0.9rem;
  z-index: 80;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

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

.wrap,
.bar {
  width: min(var(--measure), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

[id] {
  scroll-margin-top: 6.25rem;
}

.kicker {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-top: 4px solid var(--reach);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  min-height: 4.75rem;
  padding-block: 0.75rem;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
}

.mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.wm-name {
  display: block;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.wm-meta {
  display: block;
  font-style: italic;
  font-weight: 460;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: var(--ink-soft);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.4rem 0.7rem;
  background: transparent;
  color: inherit;
  border: 1px solid var(--line);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-toggle-bars {
  display: grid;
  gap: 5px;
}

.nav-toggle-bars span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
}

#site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#site-nav a {
  text-decoration: none;
}

.nav-ix {
  display: none;
}

.nav-mail-kicker {
  display: none;
}

/* Hero */

.hero-plate {
  background:
    radial-gradient(880px 460px at 88% 78%, rgba(17, 72, 56, 0.95), transparent 62%),
    radial-gradient(640px 380px at 8% 0%, rgba(198, 83, 28, 0.14), transparent 58%),
    var(--reach-deep);
  color: var(--foam);
  padding: clamp(3.25rem, 7vw, 6.25rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
  gap: 2.5rem 4rem;
  align-items: center;
}

.hero-copy {
  border-left: 1px solid rgba(246, 243, 236, 0.22);
  padding-left: clamp(1rem, 2vw, 1.6rem);
  min-width: 0;
}

.hero .kicker {
  color: var(--foam-dim);
}

.hero-title {
  margin: 0;
  font-weight: 560;
  font-size: clamp(2.85rem, 5.5vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-title span {
  display: block;
}

.lede {
  margin: 1.6rem 0 0;
  max-width: 36rem;
  color: var(--foam-dim);
  font-size: 1.125rem;
}

.stage-jump {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.7rem;
  margin: 2rem 0 0;
  font-size: 0.95rem;
}

.stage-jump a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.stage-sep {
  color: var(--foam-dim);
}

.reach-figure {
  margin: 0;
  min-width: 0;
}

.reach {
  width: 100%;
  height: auto;
  display: block;
}

.reach .axis {
  fill: none;
  stroke: currentColor;
  stroke-opacity: 0.28;
  vector-effect: non-scaling-stroke;
}

.reach .arc,
.stage-arc .arc {
  fill: none;
  stroke: currentColor;
  vector-effect: non-scaling-stroke;
}

.reach .arc {
  stroke-width: 1.35;
}

.origin {
  fill: var(--signal);
}

.reach-figure figcaption {
  margin: 0.85rem 0 0;
  max-width: 28rem;
  color: var(--foam-dim);
  font-size: 0.92rem;
}

/* Principles */

.principles {
  padding: clamp(1.6rem, 3.5vw, 2.6rem) 0 0.25rem;
}

.principles ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.principles li {
  min-width: 0;
  padding: 1.7rem 1.75rem 1.8rem 0;
  margin-right: 1.75rem;
  border-right: 1px solid var(--line);
}

.principles li:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.rule {
  display: block;
  width: 1.75rem;
  height: 1px;
  margin-bottom: 1rem;
  background: var(--reach);
}

.principles h3 {
  margin: 0 0 0.55rem;
  font-weight: 560;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.principles p {
  margin: 0;
  max-width: 32ch;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* About */

.about,
.services {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.about-grid,
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem 4.5rem;
  align-items: end;
}

.about h2,
.services h2,
.contact h2,
.missing h1 {
  margin: 0;
  font-weight: 560;
  font-size: clamp(2.5rem, 4.6vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.services h2 span {
  display: block;
}

.about-copy p,
.service-body > p,
.section-dek,
.contact-lead,
.contact-note,
.contact-legal,
.missing p {
  margin: 0;
  color: var(--ink-soft);
}

.about-copy p + p,
.missing p + p {
  margin-top: 1.15rem;
}

.about-copy {
  max-width: 38rem;
  font-size: 1.08rem;
}

.section-dek {
  max-width: 32rem;
  font-size: 1.08rem;
  justify-self: end;
}

/* Services */

.section-head {
  margin-bottom: 1.25rem;
  align-items: end;
}

.services-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 8.75rem minmax(0, 1fr);
  gap: 1.25rem 2.75rem;
  align-items: start;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}

.service-index {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.num {
  font-style: italic;
  font-weight: 460;
  font-size: clamp(2.6rem, 4vw, 3.5rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--reach);
}

.stage-arc {
  width: 104px;
  height: 90px;
  color: var(--ink);
}

.stage-arc .arc {
  stroke-width: 1.25;
}

.service h3 {
  margin: 0 0 0.85rem;
  font-weight: 560;
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.service-body > p {
  max-width: 40rem;
  font-size: 1.06rem;
}

.points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 42rem;
  color: var(--ink);
  font-size: 0.98rem;
}

.points li:not(:last-child)::after {
  content: "·";
  margin: 0 0.7rem;
  color: var(--reach);
}

/* Contact */

.contact {
  background: var(--reach-deep);
  color: var(--foam);
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  border-top: 4px solid var(--reach);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 3rem 4rem;
  align-items: end;
}

.contact .kicker,
.contact-note,
.contact-legal,
.contact-aside h3 {
  color: var(--foam-dim);
}

.contact-lead {
  margin-top: 1.25rem;
  max-width: 36rem;
  color: var(--foam-dim);
  font-size: 1.08rem;
}

.contact-email {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 1.75rem;
  color: inherit;
  font-weight: 560;
  font-size: clamp(1.45rem, 3vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-email span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
  text-decoration-color: rgba(246, 243, 236, 0.55);
}

.contact-email:hover span {
  text-decoration-color: var(--foam);
}

.contact-note,
.contact-legal {
  margin-top: 1.15rem;
  max-width: 38rem;
  font-size: 0.98rem;
}

.contact-aside {
  border-top: 1px solid rgba(246, 243, 236, 0.28);
  padding-top: 1.2rem;
}

.contact-aside h3 {
  margin: 0 0 0.85rem;
  font-family: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-aside ul {
  margin: 0;
  padding-left: 1.15rem;
}

.contact-aside li {
  margin: 0.35rem 0;
}

.contact-aside li::marker {
  color: var(--foam);
}

/* Footer */

.site-footer {
  padding: 2.4rem 0 2.6rem;
  border-bottom: 4px solid var(--reach);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-top,
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  flex-wrap: wrap;
  align-items: end;
}

.footer-name {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.footer-role {
  margin: 0.15rem 0 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.footer-nav a,
.footer-mail {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  color: var(--ink);
}

.footer-bottom {
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.footer-bottom p {
  margin: 0;
}

/* 404 */

.missing {
  padding: clamp(4.5rem, 12vw, 8rem) 0 clamp(5rem, 14vw, 9rem);
}

.missing h1 {
  max-width: 12em;
}

.missing p {
  max-width: 36rem;
  margin-top: 1.25rem;
  font-size: 1.08rem;
}

.text-link {
  color: var(--reach);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

/* Desktop navigation */

@media (min-width: 1100px) {
  .bar {
    flex-wrap: nowrap;
  }

  #site-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-left: auto;
  }

  #site-nav ul {
    display: flex;
    align-items: center;
    gap: 1.35rem;
  }

  #site-nav ul a {
    font-weight: 500;
    font-size: 0.94rem;
    letter-spacing: 0.01em;
    padding-block: 0.4rem;
  }

  #site-nav ul a:hover,
  #site-nav ul a[aria-current="true"] {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.35em;
  }

  .nav-mail {
    border: 1px solid var(--line);
    padding: 0.55rem 0.75rem;
    font-size: 0.84rem;
    white-space: nowrap;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .nav-mail:hover {
    border-color: var(--ink);
  }
}

/* Narrow layouts */

@media (max-width: 1099px) {
  .nav-toggle {
    display: none;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  #site-nav {
    flex-basis: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 0.35rem 0 1rem;
    border-top: 1px solid var(--line);
  }

  #site-nav ul {
    display: grid;
    gap: 0.15rem;
  }

  #site-nav ul a {
    font-weight: 560;
    font-size: clamp(2.15rem, 8vw, 3rem);
    letter-spacing: -0.03em;
    line-height: 1.12;
    display: inline-flex;
    align-items: baseline;
    padding-block: 0.12rem;
  }

  .nav-ix {
    display: inline-block;
    margin-right: 0.55rem;
    font-style: italic;
    font-weight: 460;
    font-size: 0.42em;
    color: var(--reach);
  }

  #site-nav ul a[aria-current="true"] {
    text-decoration: underline;
    text-underline-offset: 0.12em;
  }

  .nav-mail {
    margin-top: 0.6rem;
    font-weight: 560;
    font-size: clamp(1.2rem, 4.5vw, 1.55rem);
    letter-spacing: -0.02em;
    line-height: 1.25;
    text-decoration: none;
    overflow-wrap: anywhere;
  }

  .nav-mail span:last-child {
    text-decoration: underline;
    text-underline-offset: 0.14em;
  }

  .nav-mail-kicker {
    display: block;
    margin-bottom: 0.3rem;
    font-family: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-decoration: none;
  }

  .js #site-nav {
    position: fixed;
    top: 5.35rem;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    flex-basis: auto;
    justify-content: center;
    margin: 0;
    padding: 1.25rem var(--gutter) 2.5rem;
    background: var(--paper);
    color: var(--ink);
    border-top: 0;
    visibility: hidden;
    opacity: 0;
    overflow: auto;
  }

  .js #site-nav.is-open {
    visibility: visible;
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .section-head,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-dek {
    justify-self: start;
  }

  .hero-plate {
    padding-top: 2.75rem;
  }

  .reach-figure {
    max-width: 460px;
  }
}

@media (max-width: 800px) {
  .points {
    display: grid;
    gap: 0.4rem;
  }

  .points li:not(:last-child)::after {
    content: none;
  }

  .principles ol {
    grid-template-columns: 1fr;
  }

  .principles li {
    margin-right: 0;
    padding: 1.35rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principles li:last-child {
    border-bottom: 0;
  }

  .service {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 2.35rem 0;
  }

  .service-index {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .stage-arc {
    width: 84px;
    height: 72px;
  }
}

@media (min-width: 1280px) {
  :root {
    --gutter: 4rem;
  }
}

@media (max-width: 389px) {
  .wm-name {
    font-size: 0.88rem;
  }

  .hero-title {
    font-size: 2.55rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .arc {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: arc-draw 1.15s cubic-bezier(0.22, 0.7, 0.2, 1) forwards;
  }

  .arc-2 {
    animation-delay: 0.12s;
  }

  .arc-3 {
    animation-delay: 0.24s;
  }

  .js #site-nav {
    transition: opacity 180ms ease, visibility 0s linear 180ms;
  }

  .js #site-nav.is-open {
    transition: opacity 180ms ease;
  }

  .nav-toggle-bars span {
    transition: transform 160ms ease;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child {
    transform: translateY(3.25px) rotate(40deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child {
    transform: translateY(-3.25px) rotate(-40deg);
  }
}

@keyframes arc-draw {
  to {
    stroke-dashoffset: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .hero-plate,
  .contact {
    background: Canvas;
    color: CanvasText;
  }

  .origin {
    fill: CanvasText;
  }

  .site-header,
  .site-footer {
    border-color: CanvasText;
  }
}

@media print {
  .nav-toggle,
  .skip {
    display: none !important;
  }

  .site-header {
    position: static;
  }

  #site-nav {
    display: flex !important;
    visibility: visible !important;
    position: static !important;
    opacity: 1 !important;
    background: transparent !important;
  }

  .hero-plate,
  .contact {
    background: white !important;
    color: black !important;
  }

  a {
    text-decoration: underline;
  }
}

::selection {
  background: var(--reach);
  color: var(--foam);
}
