@font-face { font-family: "Alegreya FB"; font-style: normal; src: local("Georgia"); size-adjust: 92.7%; ascent-override: 109.6%; descent-override: 37.2%; line-gap-override: 0%; }
@font-face { font-family: "Alegreya FB"; font-style: italic; src: local("Georgia Italic"), local("Georgia-Italic"); size-adjust: 81.2%; ascent-override: 125.2%; descent-override: 42.5%; line-gap-override: 0%; }
@font-face { font-family: "Alegreya Sans FB"; font-style: normal; src: local("Arial"), local("ArialMT"); size-adjust: 87%; ascent-override: 103.5%; descent-override: 34.5%; line-gap-override: 0%; }

:root {
  color-scheme: only light;
  --paper: #F4F1EA;
  --text: #1F1E1C;
  --text-soft: #4A4741;
  --ink: #223049;
  --hair: rgba(34, 48, 73, .16);
  --serif: "Alegreya", "Alegreya FB", Georgia, "Times New Roman", serif;
  --sans: "Alegreya Sans", "Alegreya Sans FB", Arial, sans-serif;
  --gut: max(clamp(20px, 3.6vw, 60px), env(safe-area-inset-left, 0px) + 32px, env(safe-area-inset-right, 0px) + 32px);
  --grain: url("img/paper.webp");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper) var(--grain) 0 0 / 384px;
  color: var(--text);
  font: 400 clamp(1.15625rem, 1rem + .3vw, 1.3125rem) / 1.6 var(--serif);
  font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
p, h1, h2, h3, ul { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
[tabindex="-1"]:focus { outline: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; display: inline-flex; align-items: center; min-height: 44px; background: #FAF8F3; color: var(--text); padding: 10px 14px; font: 500 .9375rem var(--sans); }
.skip:focus { top: 12px; }

.head__row { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; padding: 12px var(--gut); border-bottom: 1px solid var(--hair); }
.brand { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 44px; text-decoration: none; color: var(--text); }
.brand__name { font: 500 1rem/1.15 var(--sans); letter-spacing: .01em; }
.brand__line { font: italic 400 .90625rem/1.3 var(--serif); color: var(--text-soft); }
.back { display: inline-flex; align-items: center; min-height: 44px; font: 400 1.03125rem/1 var(--sans); color: var(--text-soft); text-decoration: none; }
.back:hover, .back:focus-visible { color: var(--text); text-decoration: underline; text-underline-offset: 5px; }

main { flex: 1 0 auto; width: 100%; max-width: calc(42rem + 2 * var(--gut)); margin: 0 auto; padding: clamp(40px, 6vw, 88px) var(--gut) clamp(56px, 8vw, 104px); }
h1 { font: 400 clamp(2rem, 1.4rem + 2.4vw, 3.25rem) / 1.15 var(--serif); margin-bottom: .7em; }
h2 { font: 500 1.125rem / 1.3 var(--sans); letter-spacing: .01em; color: var(--ink); margin: 2.4em 0 .5em; }
h3 { font: italic 400 1.1875rem / 1.35 var(--serif); margin: 1.8em 0 .4em; }
p { margin-bottom: 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }
main a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.foot { padding: 0 var(--gut) calc(40px + env(safe-area-inset-bottom)); font: 400 1rem/1.5 var(--sans); color: var(--text-soft); }
.foot__base { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding-top: 18px; border-top: 1px solid var(--hair); }
.foot__legal { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot__legal a, .foot__base p { margin: 0; }
.foot__legal a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: none; color: var(--text-soft); }
.foot__legal a:hover, .foot__legal a:focus-visible, .foot__legal a[aria-current] { color: var(--text); text-decoration: underline; text-underline-offset: 5px; }
