:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #282828;
  --body-font: "Iowan Old Style BT", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --heading-font: "GT America", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --content-width: 660px;
  --page-gutter: 26.08px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 18.625px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
}

.masthead {
  padding: 1rem var(--page-gutter) 3rem;
  /* Keep the fade inside the SVG so fractional header heights cannot expose
     a blue row between separately rasterized background layers in WebKit. */
  background-color: var(--paper);
  background-image: url("./images/bonsai-background.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  text-align: center;
}

.brand {
  max-width: var(--content-width);
  margin: 0 auto;
}

.brand img {
  display: block;
  width: min(100%, 330px);
  height: auto;
  margin-inline: auto;
}

.brand-link {
  display: block;
}

main {
  padding: 1rem var(--page-gutter) 4rem;
}

article {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-top: 0.5rem;
  text-align: left;
  overflow-wrap: break-word;
}

p {
  margin: 0 0 28.8px;
}

h2 {
  margin: 44.8px 0 16px;
  font-family: var(--heading-font);
  font-size: 29.6px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.page-title {
  margin: 44.8px 0 16px;
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

em,
i,
strong,
b {
  font-family: inherit;
  font-style: italic;
  font-weight: inherit;
}

.document-page strong {
  font-style: normal;
  font-weight: 700;
}

a {
  color: #676767;
  text-decoration: underline;
  text-decoration-color: rgb(103 103 103 / 30%);
}

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

.download-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: var(--content-width);
  margin: 1.5rem auto 0;
}

.download-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  text-decoration: none;
}

.download-badge img {
  display: block;
  width: auto;
  height: 3rem;
  max-width: 100%;
  object-fit: contain;
}

.release-note {
  margin: 1rem auto 0;
  color: #676767;
  font-family: var(--heading-font);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}

.site-footer {
  padding: 0 var(--page-gutter) 3rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  max-width: var(--content-width);
  margin-inline: auto;
  font-family: var(--heading-font);
  font-size: 1rem;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-footer a[aria-current="page"] {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.trademark-notice {
  max-width: var(--content-width);
  margin: 1.5rem auto 0;
  color: #676767;
  font-family: var(--heading-font);
  font-size: 0.875rem;
  line-height: 1.5;
}

::selection {
  background: #e6e6e6;
  color: #111;
}

@media (max-width: 30rem) {
  .download-links {
    flex-direction: column;
    align-items: center;
  }

  main {
    padding-bottom: 3rem;
  }
}
