/* Blue and White Media. Two inks: enamel cobalt and white. */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;

  --blue: #1b3f9f;
  --white: #ffffff;

  --sans: "Barlow", system-ui, sans-serif;
  --sign: "Barlow Condensed", "Arial Narrow", sans-serif;

  /* 8px grid */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4rem;
  --s7: 6rem;
  --s8: 8rem;

  --gutter: 1rem;
  --page: 75rem;
  --measure: 40rem;

  --radius: 1.125rem;
  --rim-inset: 0.375rem;
  --rim: 2px;

  --track-sign: 0.01em;
  --track-label: 0.06em;
  --fs-row: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

@media (min-width: 48rem) {
  :root {
    --gutter: 2.5rem;
    --radius: 1.5rem;
    --rim-inset: 0.625rem;
    --rim: 3px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--blue) var(--white);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--blue);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 48rem) {
  body { font-size: 1.125rem; }
}

::selection { background: var(--blue); color: var(--white); }

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

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

address { font-style: normal; }

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

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

.wrap {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--blue);
  color: var(--white);
  padding: var(--s1) var(--s2);
  border-radius: 0.5rem;
  z-index: 10;
}
.skip:focus { top: var(--s2); }

/* The plaque: a cobalt enamel field with a white rim inset from its edge. */

.plaque {
  position: relative;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
}

.plaque::before {
  content: "";
  position: absolute;
  inset: var(--rim-inset);
  border: var(--rim) solid var(--white);
  border-radius: calc(var(--radius) - var(--rim-inset));
  pointer-events: none;
}

.plaque ::selection { background: var(--white); color: var(--blue); }

/* Header */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s1) var(--s2);
  padding-block: var(--s2);
}

@media (min-width: 48rem) {
  .masthead { padding-block: var(--s4); }
}

.mark {
  --radius: 0.5rem;
  --rim-inset: 0.1875rem;
  --rim: 1.5px;
  display: inline-block;
  padding: 0.5rem 0.75rem 0.4375rem;
  font-family: var(--sign);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  text-decoration: none;
}

/* A 44px hit area around the small mark. */
.mark::after {
  content: "";
  position: absolute;
  inset: -0.5rem -0.25rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s2);
  font-weight: 500;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.25rem;
  text-decoration-color: transparent;
}

.nav a[aria-current="page"] { text-decoration-color: currentColor; }

/* Page plaque: the page's name, as on a street sign. */

.sign {
  padding: var(--s4) var(--s3) var(--s3);
}

@media (min-width: 48rem) {
  .sign { padding: var(--s6) var(--s6) var(--s5); }
}

.sign h1 {
  font-family: var(--sign);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track-sign);
  line-height: 0.92;
  font-size: clamp(2.75rem, 11.5vw, 6rem);
  text-wrap: balance;
}

.sign--page h1 { font-size: clamp(2.5rem, 9vw, 5rem); }

.sign-line {
  margin-top: var(--s2);
  padding-top: var(--s2);
  border-top: var(--rim) solid var(--white);
  font-family: var(--sign);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  line-height: 1.25;
}

@media (min-width: 48rem) {
  .sign-line { margin-top: var(--s4); padding-top: var(--s3); font-size: 1.25rem; }
}

/* Claim: short bold line, one plain line under it. */

.claim {
  padding-block: var(--s5) var(--s6);
  max-width: 52rem;
}

@media (min-width: 48rem) {
  .claim { padding-block: var(--s6) var(--s7); }
}

.claim-lead {
  font-weight: 600;
  font-size: clamp(1.875rem, 1.25rem + 2.6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.claim-plain {
  margin-top: var(--s2);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.45;
  max-width: 38rem;
  text-wrap: pretty;
}

@media (min-width: 48rem) {
  .claim-plain { margin-top: var(--s3); }
}

.claim .button { margin-top: var(--s4); }

/* Pressables */

.button {
  --radius: 0.75rem;
  --rim-inset: 0.25rem;
  --rim: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.375rem;
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.button svg { flex: none; }

/* Sections: each opens with a small plaque as its heading. */

.section {
  padding-block: var(--s5);
}

@media (min-width: 48rem) {
  .section { padding-block: var(--s6) var(--s7); }
}

/* One grid: a 5/12 line that section bodies, the Yapp claim and the footer share. */
@media (min-width: 64rem) {
  .section,
  .product,
  .footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--s5);
  }
  .section > .tag { margin-bottom: 0; }
  .section > .section-body { grid-column: 2; }
  .section .directory > li { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
}

.tag {
  font-family: var(--sign);
  font-weight: 600;
  font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: var(--track-sign);
  text-transform: uppercase;
}

.section > .tag {
  margin-bottom: var(--s3);
  padding-top: var(--s2);
  border-top: var(--rim) solid var(--blue);
}

@media (min-width: 64rem) {
  .section > .tag { align-self: start; }
}

@media (min-width: 48rem) and (max-width: 63.99rem) {
  .section > .tag { margin-bottom: var(--s4); }
}

/* Directory: rows like a building's tenant board. */

.directory {
  list-style: none;
  padding: 0;
}

.directory > li {
  display: grid;
  gap: var(--s1);
  padding-block: var(--s3);
  border-top: 1px solid var(--blue);
}

.directory > li:last-child { border-bottom: 1px solid var(--blue); }

@media (min-width: 48rem) {
  .directory > li {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--s4);
    padding-block: var(--s4);
    align-items: baseline;
  }
}

.directory h3,
.directory .name {
  font-family: var(--sign);
  font-weight: 600;
  font-size: var(--fs-row);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: var(--track-sign);
}

.directory p { max-width: var(--measure); text-wrap: pretty; }

.directory > li > .app-row { grid-column: 1 / -1; }

.status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sign);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  line-height: 1.3;
}

.status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: currentColor;
  border-radius: 1px;
}

.app-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s3);
  align-items: start;
  text-decoration: none;
}

.app-row .app-icon { width: 4.5rem; height: 4.5rem; border-radius: 22.5%; }

@media (min-width: 48rem) {
  .app-row .app-icon { width: 5.5rem; height: 5.5rem; }
}

.app-text { display: grid; gap: var(--s1); }

.app-row h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
}

.app-row h3 svg { width: 1.75rem; height: 1.75rem; flex: none; }

.app-name {
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.12em;
}

.app-line { max-width: var(--measure); }

.app-row .status { margin-top: var(--s1); }

/* Contact */

.contact-email {
  display: inline-block;
  padding-block: 0.375rem;
  font-weight: 600;
  font-size: clamp(1.5rem, 0.9rem + 3.2vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}

.contact-note { margin-top: var(--s2); max-width: var(--measure); }

/* The address plate: the company's place and number, set as a sign. */
.plate {
  display: grid;
  gap: 0.25rem;
  width: fit-content;
  max-width: 100%;
  margin-top: var(--s5);
  padding: var(--s4) var(--s4) var(--s3);
  font-family: var(--sign);
  text-transform: uppercase;
  line-height: 1.1;
}

@media (min-width: 48rem) {
  .plate { padding: var(--s5) var(--s5) var(--s4); }
}

.plate-name {
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: var(--track-label);
}

.plate-number {
  font-weight: 600;
  font-size: clamp(3.5rem, 2.5rem + 4vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: var(--track-sign);
  margin-block: var(--s1);
}

.plate-street {
  font-weight: 600;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem);
  letter-spacing: 0.03em;
}

/* Yapp page */

.product {
  display: grid;
  gap: var(--s4);
  padding-block: var(--s5) var(--s6);
}

@media (min-width: 48rem) {
  .product {
    padding-block: var(--s6) var(--s7);
    align-items: start;
  }
}

.product-icon {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 22.5%;
}

@media (min-width: 48rem) {
  .product-icon { width: 11rem; height: 11rem; }
}

.product .claim { padding: 0; }

.product .status { margin-top: var(--s4); }

.links {
  list-style: none;
  padding: 0;
}

.links > li { border-top: 1px solid var(--blue); }
.links > li:last-child { border-bottom: 1px solid var(--blue); }

.links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  min-height: 4.5rem;
  padding-block: var(--s2);
  font-family: var(--sign);
  font-weight: 600;
  font-size: var(--fs-row);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: var(--track-sign);
  text-decoration: none;
}

.links a span {
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.12em;
}

/* Reading pages */

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  margin-bottom: var(--s1);
  font-weight: 500;
}

.prose {
  max-width: var(--measure);
  padding-block: var(--s5) var(--s6);
}

@media (min-width: 48rem) {
  .prose { padding-block: var(--s6) var(--s7); }
}

.prose .lede {
  font-weight: 600;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: var(--s4);
}

.prose h2 {
  font-family: var(--sign);
  font-weight: 600;
  font-size: 1.625rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: var(--s5);
  margin-bottom: var(--s1);
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-family: var(--sign);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: var(--s4);
  margin-bottom: var(--s1);
}

.prose h3:first-child { margin-top: 0; }

.prose a { overflow-wrap: anywhere; }

.section-body.prose { padding-block: 0; }

.prose p + p { margin-top: var(--s2); }

.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: var(--s1); }

.prose .lede + h2 { margin-top: var(--s5); }

/* Footer: the wall turns cobalt. */

.footer {
  margin-top: var(--s5);
  background: var(--blue);
  color: var(--white);
  padding-block: var(--s5) var(--s4);
}

@media (min-width: 48rem) {
  .footer { margin-top: var(--s6); padding-block: var(--s6) var(--s5); }
}

.footer ::selection { background: var(--white); color: var(--blue); }

.footer :focus-visible { outline-color: var(--white); }

.footer-grid {
  display: grid;
  gap: var(--s4);
}

.footer-cols {
  display: grid;
  gap: var(--s4);
}

@media (min-width: 40rem) {
  .footer-cols { grid-template-columns: minmax(0, 4fr) minmax(0, 3fr); gap: var(--s5); }
}

.footer address a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  overflow-wrap: anywhere;
}

.footer-name {
  font-family: var(--sign);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.footer-sub { margin-top: var(--s1); }

.footer-links {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 500;
}

.footer-legal {
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid var(--white);
  font-size: 0.9375rem;
}

/* Hover and press. Nothing else moves. */

a, .button, .app-row {
  transition:
    text-decoration-color 150ms ease,
    text-decoration-thickness 150ms ease,
    transform 120ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration-thickness: 2px; }
  .nav a:hover { text-decoration-color: currentColor; }
  .links a:hover span,
  .app-row:hover .app-name { text-decoration-color: currentColor; }
  .button:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
  .contact-email:hover { text-decoration-thickness: 4px; }
}

.button:active,
.links a:active,
.app-row:active {
  transform: scale(0.97);
}

.app-row:active { transform-origin: left center; }

.button:active { transform-origin: center; }
.links a:active { transform-origin: left center; }

@media (prefers-reduced-motion: reduce) {
  a, .button { transition: none; }
  .button:active,
  .links a:active,
  .app-row:active { transform: none; }
  .app-row:active .app-name { text-decoration-color: currentColor; }
  /* Press still shows, without movement. */
  .button:active { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
  .links a:active span { text-decoration-color: currentColor; }
}
