@charset "utf-8";

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-roman.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;

  --paper: #f4f0e6;
  --paper-deep: #ebe5d6;
  --ink: #1d1a16;
  --ink-soft: #4b453c;
  --muted: #7b7366;
  --rule: rgba(29, 26, 22, 0.85);
  --hairline: rgba(29, 26, 22, 0.18);
  --accent: #7a1f24;
  --accent-ink: #5e171b;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --measure: 1240px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --space-section: clamp(4.5rem, 10vw, 8.5rem);
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
  font-optical-sizing: auto;
  line-height: 1.55;
  background-color: var(--paper);
  /* Faint paper grain. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.10 0 0 0 0 0.08 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure,
blockquote {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  font-weight: 400;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

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

::selection {
  color: var(--paper);
  background: var(--accent);
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.5rem 0.9rem;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Small caps label style shared by eyebrows and meta text. */
.masthead-side,
.masthead-nav a,
.definition-tag,
.section-mark,
.section-note,
.service-number,
.notary-role,
.notary-contact dt,
.button,
.colophon-base {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Masthead ---------- */

.masthead {
  width: min(var(--measure), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding-top: clamp(1rem, 3vw, 1.75rem);
}

.masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-block: 0.9rem 1rem;
  border-top: 3px double var(--rule);
  border-bottom: 1px solid var(--rule);
}

.masthead-side {
  color: var(--ink-soft);
}

.masthead-side--end {
  text-align: right;
}

.wordmark {
  font-size: clamp(1.35rem, 1rem + 1.3vw, 2rem);
  font-weight: 500;
  font-variant-ligatures: common-ligatures;
  letter-spacing: 0.22em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.masthead-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1.25rem, 5vw, 3.5rem);
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--hairline);
}

.masthead-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 160ms ease;
}

.masthead-nav a span {
  color: var(--accent);
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: none;
}

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

/* ---------- Hero ---------- */

main,
.colophon-inner {
  width: min(var(--measure), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4rem);
  padding-block: clamp(3rem, 9vw, 7rem) var(--space-section);
  border-bottom: 1px solid var(--rule);
}

.hero-word {
  display: block;
  margin-left: -0.04em;
  font-size: clamp(4.4rem, 1rem + 16vw, 13.5rem);
  font-style: italic;
  font-weight: 300;
  line-height: 0.86;
  letter-spacing: -0.035em;
}

.hero-sub {
  display: block;
  margin-top: clamp(1.25rem, 3vw, 2rem);
  font-size: clamp(1.15rem, 0.9rem + 1vw, 1.65rem);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.definition {
  max-width: 34rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--hairline);
}

.definition-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.9rem;
  margin-bottom: 0.6rem;
}

.definition-syllables {
  font-size: 1.15em;
  font-weight: 600;
}

.definition-tag {
  color: var(--accent);
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: none;
}

.definition-senses {
  list-style: none;
  counter-reset: sense;
  color: var(--ink-soft);
  font-style: italic;
}

.definition-senses li {
  counter-increment: sense;
}

.definition-senses li::before {
  content: counter(sense) ". ";
  color: var(--ink);
  font-style: normal;
  font-weight: 600;
}

.hero-aside {
  align-self: end;
  max-width: 30rem;
}

.hero-lede {
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.6rem);
  line-height: 1.4;
}

.hero-lede::first-letter {
  float: left;
  margin: 0.06em 0.1em 0 0;
  color: var(--accent);
  font-size: 3.4em;
  font-weight: 400;
  line-height: 0.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button--solid {
  padding: 0 1.4rem;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
}

.button--solid:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.button--text {
  border-bottom: 1px solid var(--hairline);
  min-height: 2rem;
}

.button--text:hover {
  color: var(--accent);
  border-color: currentColor;
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--space-section);
  border-bottom: 1px solid var(--rule);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.section-mark {
  color: var(--accent);
  font-style: italic;
  letter-spacing: 0.08em;
}

.section-head h2 {
  font-size: clamp(2.6rem, 1.5rem + 4.5vw, 5.25rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.section-note {
  max-width: 24rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  line-height: 1.7;
}

/* Services: an index of entries separated by hairlines. */

.services {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  list-style: none;
  border-top: 1px solid var(--rule);
}

.service {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.35rem 1rem;
  padding-block: 1.6rem 1.9rem;
  border-bottom: 1px solid var(--hairline);
}

.service-number {
  grid-row: span 2;
  padding-top: 0.55rem;
  color: var(--accent);
  font-variant-numeric: oldstyle-nums;
}

.service h3 {
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.service p {
  max-width: 30rem;
  color: var(--ink-soft);
}

/* Pull quote */

.pullquote {
  padding-block: var(--space-section);
  border-bottom: 1px solid var(--rule);
}

.pullquote blockquote {
  max-width: 54rem;
  margin: 0 auto;
  text-align: center;
}

.pullquote p {
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.25rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.pullquote p::before,
.pullquote p::after {
  color: var(--accent);
}

.pullquote p::before {
  content: "“";
}

.pullquote p::after {
  content: "”";
}

/* Notaries: two facing columns, like a byline spread. */

.notaries {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--rule);
}

.notary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block: 2rem 2.4rem;
  border-bottom: 1px solid var(--hairline);
}

.notary-role {
  color: var(--accent);
}

.notary h3 {
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.notary-contact {
  display: grid;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 1rem;
}

.notary-contact div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: baseline;
  gap: 1rem;
}

.notary-contact dt {
  color: var(--muted);
}

.notary-contact dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.notary-contact a {
  font-size: 1.15em;
  text-decoration-color: var(--hairline);
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

.notary-contact a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

/* ---------- Colophon ---------- */

.section:last-child {
  border-bottom: 0;
}

/* App teaser on the home page. */

.app-teaser-link {
  display: grid;
  grid-template-columns: minmax(6.5rem, 9rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  text-decoration: none;
  border-top: 1px solid var(--rule);
}

.app-teaser-link img {
  display: block;
  width: 100%;
  height: auto;
  background: #0b0b10;
  border: 0.3rem solid var(--ink);
  border-radius: 1.1rem;
  box-shadow: 0 20px 40px -22px rgba(29, 26, 22, 0.55);
  transform: rotate(-2deg);
  transition: transform 260ms ease;
}

.app-teaser-link:hover img {
  transform: rotate(0deg) translateY(-4px);
}

.app-teaser-copy {
  display: grid;
  justify-items: start;
  gap: 1.5rem;
}

.app-teaser-lede {
  max-width: 34rem;
  font-size: clamp(1.25rem, 1rem + 1.1vw, 1.9rem);
  line-height: 1.3;
}

.app-teaser-link:hover .button--text {
  color: var(--accent);
  border-color: currentColor;
}

.colophon {
  color: var(--paper);
  background: var(--ink);
}

.colophon-inner {
  padding-block: var(--space-section) 2rem;
}

.colophon .section-mark {
  color: #d9a7a2;
}

.colophon-title {
  max-width: 16ch;
  margin-top: 0.75rem;
  font-size: clamp(2.6rem, 1.4rem + 5vw, 6rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.colophon-title em {
  font-weight: 300;
}

.colophon-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.25rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  list-style: none;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
}

.colophon-links a {
  overflow-wrap: anywhere;
  text-decoration-color: rgba(244, 240, 230, 0.3);
}

.colophon-links a:hover {
  text-decoration-color: currentColor;
}

.colophon-base {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding-top: 1.25rem;
  color: rgba(244, 240, 230, 0.62);
  border-top: 1px solid rgba(244, 240, 230, 0.22);
}

.colophon-wordmark {
  color: var(--paper);
  font-size: 1rem;
  letter-spacing: 0.24em;
}

/* ---------- Wider screens ---------- */

@media (min-width: 720px) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 5vw, 4rem);
  }

  .notaries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notary {
    padding-inline: 0 clamp(1.5rem, 4vw, 3.5rem);
  }

  .notary + .notary {
    padding-inline: clamp(1.5rem, 4vw, 3.5rem) 0;
    border-left: 1px solid var(--hairline);
  }

  .colophon-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }
}

@media (min-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    column-gap: clamp(3rem, 6vw, 6rem);
  }

  .section-head {
    grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 20rem);
    align-items: end;
    column-gap: 2rem;
  }

  .section-head .section-mark {
    padding-bottom: 0.9rem;
  }

  .section-note {
    padding-bottom: 0.6rem;
  }
}

/* ---------- Small screens ---------- */

@media (max-width: 560px) {
  .masthead-inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 0.35rem;
    text-align: center;
  }

  .masthead-side {
    font-size: 0.66rem;
  }

  .masthead-side--end {
    display: none;
  }

  .masthead-nav {
    gap: 1rem;
  }

  .masthead-nav a {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .notary-contact div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.1rem;
  }
}

/* ---------- Entrance motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-word,
  .hero-sub,
  .definition,
  .hero-aside {
    animation: rise 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero-sub {
    animation-delay: 120ms;
  }

  .definition {
    animation-delay: 240ms;
  }

  .hero-aside {
    animation-delay: 380ms;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}

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

@media print {
  body {
    background: none;
  }

  .masthead-nav,
  .hero-actions,
  .skip-link {
    display: none;
  }

  .colophon {
    color: var(--ink);
    background: none;
  }
}
