/* RDH Engineering — static styles. Navy and white, drafting-sheet layout. */

:root {
  --ink: #0c2340;
  --ink-soft: #24344c;
  --line: rgba(12, 35, 64, 0.22);
  --paper: #e4edf6;
  --sheet: #ffffff;
  --max: 1080px;
  --sans: "Liberation Sans", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Liberation Mono", ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

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

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

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

body {
  margin: 0;
  padding: 12px 0 28px;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(12, 35, 64, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12, 35, 64, 0.1) 1px, transparent 1px),
    linear-gradient(to right, rgba(12, 35, 64, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12, 35, 64, 0.045) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

img {
  max-width: 100%;
  height: auto;
}

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

a {
  color: inherit;
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 5;
  padding: 0.55rem 0.8rem;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.frame {
  max-width: var(--max);
  margin: 20px auto;
  padding: 6px;
  border: 2px solid var(--ink);
  background: var(--sheet);
}

.sheet {
  border: 1px solid var(--ink);
  background-color: var(--sheet);
  background-image:
    linear-gradient(to right, rgba(12, 35, 64, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12, 35, 64, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--ink);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 100%;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.word {
  min-width: 0;
}

.name {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tag {
  display: block;
  margin-top: 0.12rem;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.mast nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.15rem;
}

.mast nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid transparent;
  color: inherit;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.mast nav a:hover {
  border-bottom-color: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(16.5rem, 0.82fr);
  gap: 2.25rem;
  align-items: stretch;
  padding: 2.5rem 1.5rem 2.15rem;
}

.kicker {
  margin: 0 0 0.7rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 12.5em;
  font-size: clamp(2.05rem, 4.5vw, 3.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}

.lede {
  max-width: 36em;
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.5;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 1.4rem;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: #17345c;
}

.button:focus-visible {
  outline-color: var(--ink);
}

.titleblock {
  border: 1px solid var(--ink);
  background: #fff;
}

.titleblock dl {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.titleblock dl > div {
  display: grid;
  flex: 1;
  grid-template-columns: 7.4rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--ink);
}

.titleblock dl > div:last-child {
  border-bottom: 0;
}

.titleblock dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.titleblock dd {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.titleblock a {
  text-underline-offset: 0.15em;
}

.band {
  border-top: 1px solid var(--ink);
  scroll-margin-top: 12px;
}

.section-head {
  padding: 1rem 1.5rem;
}

h2 {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

h3 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
}

.cards article {
  padding: 1.4rem 1.5rem 1.6rem;
}

.cards article + article {
  border-left: 1px solid var(--ink);
}

.idx {
  margin-bottom: 0.85rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.cards p:last-child {
  max-width: 36em;
  margin-top: 0.45rem;
}

.states {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.states li {
  padding: 1.6rem 1.5rem 1.75rem;
  font-size: clamp(2.1rem, 4.6vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.states li + li {
  border-left: 1px solid var(--ink);
}

.note {
  padding: 1.35rem 1.5rem 1.55rem;
  border-top: 1px solid var(--ink);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.94),
      rgba(255, 255, 255, 0.94) 8px,
      rgba(12, 35, 64, 0.035) 8px,
      rgba(12, 35, 64, 0.035) 9px
    );
  font-size: 1.25rem;
  line-height: 1.45;
}

.contact {
  padding: 1.7rem 1.5rem 1.85rem;
  background: var(--ink);
  color: #fff;
}

.contact h2 {
  color: #fff;
}

.contact p {
  margin-top: 0.45rem;
}

.email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.35rem;
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  text-underline-offset: 0.16em;
}

.contact a:focus-visible {
  outline-color: #fff;
}

.email:hover {
  text-decoration-thickness: 2px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  flex-wrap: wrap;
  padding: 0.2rem 1.5rem;
  border-top: 1px solid var(--line);
  background: #fff;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.site-footer p {
  margin: 0;
}

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

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.prose {
  padding: 2rem 1.5rem 2.4rem;
}

.prose h1 {
  font-family: var(--sans);
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-transform: none;
}

.prose p {
  max-width: 62ch;
  margin-top: 0.9rem;
}

.prose a {
  text-underline-offset: 0.15em;
}

@media (max-width: 840px) {
  .frame {
    margin: 12px;
  }

  .hero,
  .cards,
  .states {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 1.5rem;
    padding: 1.6rem 1.15rem 1.35rem;
  }

  .hero h1 {
    max-width: none;
  }

  .titleblock dl > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    align-items: start;
  }

  .cards article + article,
  .states li + li {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .mast,
  .section-head,
  .cards article,
  .states li,
  .note,
  .contact,
  .site-footer,
  .prose {
    padding-right: 1.15rem;
    padding-left: 1.15rem;
  }

  .mast nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.25rem;
  }

  .mast nav a {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 350px) {
  .frame {
    margin: 8px;
  }

  .name {
    letter-spacing: 0.06em;
  }

  .mast nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 0.75rem;
    justify-content: stretch;
  }

  .mast nav a {
    justify-content: flex-start;
    letter-spacing: 0.08em;
  }
}

@media (prefers-contrast: more) {
  :root {
    --ink-soft: #0c2340;
    --line: #0c2340;
  }
}

@media (forced-colors: active) {
  .frame,
  .sheet,
  .titleblock,
  .button,
  .band,
  .cards,
  .cards article,
  .states,
  .note,
  .contact {
    border: 1px solid CanvasText;
  }

  .mark,
  .button,
  .contact {
    background: Canvas;
    color: CanvasText;
    forced-color-adjust: none;
  }
}

@media print {
  body {
    padding: 0;
    background: #fff;
  }

  .frame {
    max-width: none;
    margin: 0;
    border-color: #000;
  }

  .contact {
    background: #fff;
    color: #000;
  }

  .button {
    background: #fff;
    color: #000;
    border: 1px solid #000;
  }

  a[href^="http"]::after,
  a[href^="mailto:"]::after {
    content: " (" attr(href) ")";
    font-weight: 400;
    font-size: 0.85rem;
  }
}
