/**
 * @file
 * Tokens, fonts and base typography.
 */

@font-face {
  font-family: "Crimson Pro";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/crimson-pro-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Crimson Pro";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/crimson-pro-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Crimson Pro";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/crimson-pro-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Crimson Pro";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/crimson-pro-italic-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Limestone of the Ohrid shore. */
  --paper: #eeefea;
  /* Photo mats and boxed blocks. */
  --paper-lift: #f7f7f3;
  /* Engraving blue: links, dates, accents. */
  --ink: #2443a0;
  /* Lake depth: headings. */
  --deep: #172a5c;
  --text: #262a33;
  --muted: #5a6273;
  /* Hairlines and borders. */
  --mist: #c8d2e8;
  --danger: #9b2c2c;

  --serif: "Crimson Pro", "Iowan Old Style", Georgia, serif;
  --gutter: clamp(20px, 4vw, 56px);
  --measure: 680px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.6;
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 1.6em 0 0.5em;
  color: var(--deep);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.3rem; }
h5,
h6 { font-size: 1.15rem; }

p,
ul,
ol,
dl,
blockquote,
table,
figure {
  margin: 0 0 1em;
}

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

a:hover {
  color: var(--deep);
  text-decoration-thickness: 2px;
}

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

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

iframe {
  max-width: 100%;
}

hr {
  height: 12px;
  margin: 2.5em 0;
  border: 0;
  background: repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 4px);
  opacity: 0.35;
}

blockquote {
  margin-inline: 0;
  padding-left: 1.2em;
  border-left: 2px solid var(--mist);
  color: var(--deep);
  font-style: italic;
}

small {
  font-size: 0.85em;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.05rem;
  line-height: 1.4;
}

th,
td {
  padding: 0.45em 0.6em 0.45em 0;
  border-bottom: 1px solid var(--mist);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--deep);
  font-weight: 600;
}

/* Forms. */
input,
select,
textarea,
button {
  font: inherit;
  font-size: 1.1rem;
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
input[type="number"],
select,
textarea {
  max-width: 100%;
  padding: 0.35em 0.6em;
  border: 1px solid #9aa6c4;
  border-radius: 3px;
  background: var(--paper-lift);
  color: var(--text);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--ink);
  outline-offset: 1px;
}

label {
  display: block;
  margin-bottom: 0.2em;
  color: var(--deep);
  font-weight: 600;
}

.form-item {
  margin-bottom: 1.1em;
}

.form-item .description {
  color: var(--muted);
  font-size: 1rem;
}

.form-required::after {
  content: " *";
  color: var(--danger);
}

.button,
input[type="submit"],
button.button {
  display: inline-block;
  padding: 0.3em 1.1em;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-lift);
  cursor: pointer;
  text-decoration: none;
}

.button:hover,
input[type="submit"]:hover {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--paper-lift);
}

.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  word-wrap: normal;
}

.visually-hidden.focusable:focus {
  position: static !important;
  overflow: visible;
  clip: auto;
  width: auto;
  height: auto;
}

.skip-link:focus {
  display: inline-block;
  margin: 8px;
  padding: 6px 14px;
  background: var(--deep);
  color: var(--paper-lift);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
