/* ==========================================================================
   Base: reset, document defaults, and page layout primitives.
   ========================================================================== */

:root {
  box-sizing: border-box;
  /* Keep content clear of phone status/home bars when drawn edge to edge. */
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
  -webkit-text-size-adjust: 100%;
}

html,
body { overflow-x: clip; }

body {
  position: relative;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

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

/* Content column, layered above the background art. */
.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--rule);
}

h2 {
  margin: 0 0 1.75rem;
  font-family: var(--display);
  font-weight: var(--head-weight);
  font-size: 1.5rem;
  letter-spacing: -0.005em;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
