/* ReplyDesk. Libre Baskerville is under the SIL Open Font License. See fonts/OFL.txt. */

@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/libre-baskerville-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/libre-baskerville-bold.woff2") format("woff2");
}

@font-face {
  font-family: "Libre Baskerville";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/libre-baskerville-italic.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #f6f1e8;
  --ink: #2b241c;
  --muted: #5e564c;
  --accent: #6f4536;
  --accent-dark: #553428;
  --on-accent: #f8f4ee;
  --line: #e2d7c8;
  --sample: #eadfcb;
  --measure: 38.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  border-top: 7px solid var(--accent);
  font-family: "Libre Baskerville", Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-size: 1.1875rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  hyphens: none;
}

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

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

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

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-140%);
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  z-index: 2;
}

.skip:focus {
  transform: none;
  top: 1rem;
}

.skip:visited {
  color: var(--on-accent);
}

.wrap {
  width: min(var(--measure), calc(100% - 2.5rem));
  margin-inline: auto;
}

h1,
h2 {
  font-weight: 400;
}

h3,
p,
li {
  text-wrap: pretty;
}

h1,
h2 {
  text-wrap: balance;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent-dark);
}

a:visited {
  color: var(--accent);
}

strong {
  font-weight: 700;
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding-top: 1.25rem;
}

.wordmark {
  color: inherit;
  text-decoration: none;
  font-size: 1.4rem;
  line-height: 1.2;
}

.wordmark:hover,
.wordmark:focus-visible {
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.05rem;
}

@media (max-width: 520px) {
  .nav {
    display: grid;
    grid-template-columns: max-content max-content;
    column-gap: 1.35rem;
    row-gap: 0.4rem;
  }
}

main {
  padding-top: 2.15rem;
}

main:focus {
  outline: none;
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

h1 {
  margin: 0 0 1.15rem;
  font-size: 2.15rem;
  line-height: 1.22;
  letter-spacing: -0.012em;
}

h2 {
  margin: 0 0 1rem;
  font-size: 1.55rem;
  line-height: 1.3;
}

.opening > p:last-child {
  margin-bottom: 0;
}

.cta {
  margin-top: 1.35rem;
}

a.button {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  padding: 0.78rem 1.12rem;
  border-radius: 2px;
  line-height: 1.3;
}

a.button:hover,
a.button:focus-visible {
  background: var(--accent-dark);
  color: var(--on-accent);
}

a.button:visited {
  color: var(--on-accent);
}

section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 1.25rem;
}

ol {
  margin: 0.25rem 0 0;
  padding: 0 0 0 1.35rem;
}

ol li {
  margin: 0.75rem 0;
  padding-left: 0.35rem;
}

ol li::marker {
  color: var(--accent);
  font-weight: 700;
}

.sample {
  background: var(--sample);
  border-left: 4px solid var(--accent);
  margin: 1.35rem 0;
  padding: 1.2rem 1.15rem 1.35rem;
}

.flag {
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.45;
}

.sample .label {
  margin: 1.2rem 0 0.45rem;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
}

.sample .flag + .label {
  margin-top: 0;
}

.sample blockquote {
  margin: 0;
  font-style: italic;
}

.sample blockquote.reply {
  font-style: normal;
}

.sample blockquote p {
  margin: 0 0 0.85rem;
}

.sample blockquote p:last-child {
  margin-bottom: 0;
}

.fee {
  margin: 0 0 0.85rem;
  font-size: 1.85rem;
  line-height: 1.3;
}

#questions h3 {
  margin: 1.65rem 0 0.4rem;
  font-size: 1.18rem;
  line-height: 1.35;
  font-weight: 700;
}

#questions h3:first-of-type {
  margin-top: 0.15rem;
}

.site-footer {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.footer-name {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-size: 1.3rem;
}

address {
  font-style: normal;
  margin: 0 0 1rem;
}

.fine {
  margin-top: 1.15rem;
  font-size: 0.95rem;
}

@media (min-width: 720px) {
  .wrap {
    width: min(var(--measure), calc(100% - 4rem));
  }

  .site-header {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 1.65rem;
  }

  main {
    padding-top: 2.85rem;
  }

  h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  section {
    margin-top: 3.75rem;
    padding-top: 3.75rem;
  }

  .sample {
    padding: 1.4rem 1.45rem 1.55rem;
  }
}

@media (forced-colors: active) {
  a.button {
    border: 1px solid ButtonText;
  }

  .sample {
    border: 1px solid CanvasText;
  }
}

@media print {
  body {
    border-top: none;
    background: #fff;
    font-size: 12pt;
  }

  .nav {
    display: none;
  }

  a.button {
    background: transparent;
    color: #000;
    padding: 0;
  }

  .sample {
    background: transparent;
  }
}
