/*
 * Fleuron Studio. Set in EB Garamond (SIL Open Font License, see
 * /fonts/OFL.txt), subset to Latin at weight 400 by tools/subset-fonts.sh.
 */

@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f8f7f5;
  --text: #33312e;
  --muted: #6b6760;
  --rubric: #a13b27; /* the printer's red for ornaments and links */
  --rule: #dcd8d0;
  --amber: #e3ce7f; /* Quoth's accent */
  --amber-hover: #d8c06a;
  --amber-text: #4a332c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1b19;
    --text: #e8e5df;
    --muted: #a9a49b;
    --rubric: #e8907a;
    --rule: #3a3833;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.1875rem/1.6 "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums proportional-nums;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 35rem;
  margin: 0 auto;
  padding: clamp(3rem, 12vh, 6.5rem) 1rem 2rem;
}

header {
  text-align: center;
}

.mark {
  display: block;
  width: 5.25rem;
  height: auto;
  margin: 0 auto 1.75rem;
  color: var(--rubric);
}

h1 {
  margin: 0;
  font-size: clamp(2.375rem, 9vw, 3.25rem);
  font-weight: 400;
  font-variant-caps: small-caps;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.tagline {
  margin: 0.625rem 0 0;
  color: var(--muted);
  font-size: 1.375rem;
  font-style: italic;
}

hr {
  width: 4rem;
  margin: 2.75rem auto;
  border: 0;
  border-top: 1px solid var(--rule);
}

h2 {
  margin: 0 0 0.5rem;
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.2;
}

.kicker {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 1rem;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.12em;
}

p {
  margin: 0 0 1rem;
}

section + section {
  margin-top: 2.75rem;
}

.center {
  text-align: center;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

/* An address is copied letter by letter: no "fl" ligature. */
a[href^="mailto:"] {
  font-variant-ligatures: none;
}

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

.button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1.125rem 0.5625rem;
  border-radius: 0.5rem;
  background: var(--amber);
  color: var(--amber-text);
  font-size: 1.125rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 120ms ease;
}

.button:hover {
  background: var(--amber-hover);
}

footer {
  margin-top: auto;
  padding-top: 4rem;
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}

footer p {
  margin: 0;
}

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