@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-italic.woff2") format("woff2");
}

/* Brand colours sampled from the A.R.W. & Co. email signature. Muted and gold
   text are a shade darker than the signature to keep small text readable. */
:root {
  color-scheme: light;
  --paper: #fbfaf6;
  --navy: #0b2246;
  --ink: #2c3a52;
  --muted: #687184;
  --gold: #9a7b2d;
  --gold-text: #8a6c22;
  --line: #e5e0d4;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

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

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 6rem) 1rem 2.5rem;
  text-align: center;
}

/* Logo lockup: short gold rule over the tracked wordmark, as in the signature */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-rule {
  display: block;
  width: clamp(4.5rem, 14vw, 8.5rem);
  height: 2px;
  background: var(--gold);
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.wordmark {
  margin: 0;
  /* Trailing letter-spacing would push the word off centre */
  padding-left: 0.16em;
  color: var(--navy);
  font-size: clamp(2.1rem, 1rem + 5.4vw, 4.4rem);
  font-weight: 500;
  font-variation-settings: "opsz" 22;
  letter-spacing: 0.16em;
  word-spacing: 0.12em;
  line-height: 1.1;
  white-space: nowrap;
}

.practice {
  list-style: none;
  margin: clamp(2.5rem, 7vw, 3.75rem) 0 0;
  padding: clamp(1.5rem, 4vw, 2rem) 0 0;
  width: 100%;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  line-height: 2.1;
  text-transform: uppercase;
}

.practice li {
  display: block;
}

.status {
  margin: clamp(2rem, 6vw, 3rem) 0 0;
  max-width: 34rem;
  color: var(--ink);
  font-style: italic;
  font-size: 1.0625rem;
  text-wrap: balance;
}

.contact {
  margin-top: clamp(1.75rem, 5vw, 2.5rem);
  font-style: normal;
}

.contact p {
  margin: 0;
}

.contact-name {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.contact-role {
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-lines {
  display: inline-grid;
  grid-template-columns: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.25rem;
  margin: 1.1rem 0 0;
  text-align: left;
}

.contact-lines div {
  display: contents;
}

.contact-lines dt {
  color: var(--gold-text);
  font-weight: 600;
}

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

.contact a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.contact a:hover {
  border-bottom-color: var(--gold);
}

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

.footer {
  padding: 1.5rem 1rem 2rem;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-align: center;
}

/* Wide screens: practice areas on two bulleted rows, as in the signature */
@media (min-width: 62rem) {
  .practice li {
    display: inline;
    white-space: nowrap;
  }

  .practice li + li::before {
    content: "\2022";
    margin: 0 0.9em;
    color: var(--gold);
  }

  .practice li:nth-child(3)::after {
    content: "\A";
    white-space: pre;
  }

  .practice li:nth-child(4)::before {
    content: none;
  }
}

/* Small phones: keep the longest practice area and the email on fewer lines */
@media (max-width: 22.5rem) {
  .practice {
    letter-spacing: 0.1em;
  }

  .contact-lines {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact a {
    transition: none;
  }
}
