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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  min-height: 100%;
  background-color: var(--av-onyx);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: var(--av-paper);
  color: var(--av-ink);
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: var(--font-weight-body);
  line-height: var(--type-body-leading);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

#main {
  flex: 1 1 auto;
  width: 100%;
  background: var(--av-paper);
}

.cv-footer {
  flex-shrink: 0;
  margin-top: auto;
  width: 100%;
}

body.nav-open { overflow: hidden; }

::selection {
  background: var(--av-cinereous);
  color: var(--av-anti-flash);
}

img,
svg,
video,
iframe { max-width: 100%; }

img,
video { display: block; }

button,
input,
select,
textarea { font: inherit; }

button,
[role="button"],
a { -webkit-tap-highlight-color: transparent; }

a {
  color: inherit;
  text-decoration-thickness: .06em;
  text-underline-offset: .2em;
}

p,
h1,
h2,
h3,
h4,
figure,
blockquote { margin-top: 0; }

h1,
h2,
h3,
h4 {
  color: var(--type-color-title);
  font-family: var(--font-title);
  font-weight: var(--font-weight-title);
  line-height: 1.05;
  text-wrap: balance;
}

h1 {
  font-size: var(--type-title);
  color: var(--type-color-title);
  font-weight: var(--font-weight-title);
}
h2 {
  font-size: var(--type-subtitle);
  color: var(--type-color-subtitle);
  font-family: var(--font-subtitle);
  font-weight: var(--font-weight-subtitle);
  line-height: var(--type-subtitle-leading);
}
h3 {
  font-size: var(--step-2);
  color: var(--type-color-subtitle);
  font-family: var(--font-subtitle);
  font-weight: var(--font-weight-subtitle);
  line-height: var(--type-subtitle-leading);
}

p { text-wrap: pretty; }

ul,
ol { padding-left: 1.2em; }

[hidden] { display: none !important; }

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.container-narrow,
.container--narrow {
  width: min(100% - (var(--gutter) * 2), var(--container-narrow));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--space-9);
}

.section-muted { background: var(--av-paper-deep); }

.eyebrow,
.kicker,
.shop-app-kicker {
  margin: 0 0 var(--space-3);
  color: var(--type-color-annotation);
  font-family: var(--font-body);
  font-size: var(--type-annotation);
  font-weight: var(--font-weight-emphasis);
  letter-spacing: .18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.lede {
  max-width: 43rem;
  color: var(--type-color-body);
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: var(--font-weight-body);
  line-height: var(--type-body-leading);
}

.meta {
  color: var(--type-color-annotation);
  font-size: var(--type-annotation);
}

.title {
  color: var(--type-color-title);
  font-family: var(--font-title);
  font-size: var(--type-title);
  font-weight: var(--font-weight-title);
  line-height: 1.08;
}

.subtitle {
  color: var(--type-color-subtitle);
  font-family: var(--font-subtitle);
  font-size: var(--type-subtitle);
  font-weight: var(--font-weight-subtitle);
  line-height: var(--type-subtitle-leading);
}

.body-text,
.prose {
  color: var(--type-color-body);
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: var(--font-weight-body);
  line-height: var(--type-body-leading);
}

/* Linked titles keep the same ink on hover */
.title a,
.subtitle a,
h1 a,
h2 a,
h3 a,
h4 a {
  color: inherit;
  text-decoration: none;
}

.title a:hover,
.title a:focus-visible,
.subtitle a:hover,
.subtitle a:focus-visible,
h1 a:hover,
h1 a:focus-visible,
h2 a:hover,
h2 a:focus-visible,
h3 a:hover,
h3 a:focus-visible,
h4 a:hover,
h4 a:focus-visible {
  color: inherit;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  background: var(--av-white);
  color: var(--av-forest-deep);
  border: 1px solid var(--av-brass);
  transform: translateY(-150%);
  transition: transform var(--duration-fast);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 2px solid var(--av-brass);
  outline-offset: 4px;
}

main { min-height: 55vh; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
