* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
}

blockquote, body, dd, dl, figure, h1, h2, h3, h4, p {
  margin: 0;
}

h1, h2, h3, h4 {
  line-height: 1.1;
}

/* For images to not be able to exceed their container */
img {
  max-inline-size: 100%;
  max-block-size: 100%;
}

picture {
  display: contents;
}

source {
  display: none;
}

img, svg, video, canvas {
  height: auto;
}

p:not([class]) {
  max-width: 60ch;
}

html {
  --step-0: clamp(1rem, 3vw, 1.5rem);
  --step-1: clamp(1.5rem, 6vw, 3rem);
  --step-2: clamp(3rem, 12vw, 6rem);
  --gap: var(--step-0);
  --shim: calc(var(--gap) / 2);
  --content-width: 768px;
  --neutral: #535353;
  --highlight: #B75300;
  color-scheme: light dark;
}

body {
  font-family: system-ui, sans-serif;
  font-weight: normal;
  line-height: 1.6;
  font-size: 1.125rem;
}

body {
  color: #333;
  background-color: ghostwhite;
}

a[href] {
  text-decoration-thickness: 0.03875em;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--highlight);
  color: var(--highlight);
}
a[href]:hover {
  text-decoration-thickness: 0.125em;
  text-underline-offset: 0.15em;
  text-decoration-color: currentColor;
}

body {
  display: grid;
  grid-template: "nav" auto "main" 1fr;
  gap: var(--gap);
  padding-block-start: var(--gap);
  overflow-x: hidden;
}

#top-nav {
  grid-area: nav;
  max-width: var(--content-width);
  width: calc(100% - 2 * var(--gap));
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--shim);
  justify-content: space-between;
  align-items: baseline;
}

#main {
  grid-area: main;
  padding-block-end: calc(var(--step-2) * 1.5);
}

[data-layout] {
  --full: minmax(var(--gap), 1fr);
  --content: min(var(--content-width), 100% - var(--gap) * 2);
  --popout: minmax(0, 2rem);
  --feature: minmax(0, 5rem);
  display: grid;
  grid-template-columns: [full-start] var(--full) [feature-start] var(--feature) [popout-start] var(--popout) [content-start] var(--content) [content-end] var(--popout) [popout-end] var(--feature) [feature-end] var(--full) [full-end];
}
[data-layout] > * {
  grid-column: content;
}
[data-layout] .popout {
  grid-column: popout;
}
[data-layout] .feature {
  grid-column: feature;
}
[data-layout] .full {
  grid-column: full;
}
@media screen and (max-width: 816px) {
  [data-layout] .image {
    grid-column: full;
  }
}

[data-flow] > * + * {
  margin-block-start: var(--flow-space, 1em);
}

#page-header {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--shim);
}
#page-header h1 {
  margin-right: var(--shim);
}
#page-header time {
  color: var(--neutral);
}

.nav-links {
  font-size: 0.9rem;
}