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

* {
  margin: 0;
  padding: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  font-family: "Helvetica", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  overflow-y: auto;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

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

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

#root, #__next {
  isolation: isolate;
}

:root {
  --text: rgb(44, 44, 43);
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f8f8f8;
  --border: #e8e8e8;
  --radius: 8px;
  --accent: rgb(0, 0, 238);
  --visited: rgb(128, 0, 128);
}


header, footer {
  background: var(--bg);
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: fixed;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
}

header {
  top: 0;
  height: 48px;
  border-bottom: 1px solid var(--border);
}

footer {
  bottom: 0;
  padding-top: 12px;
  padding-bottom: 12px;
  border-top: 1px solid var(--border);
}

main {
  padding: 2rem;
  background: var(--bg);
}

p, a, li {
  line-height: 24px;
  margin: 0;
  padding: 0;
}

.cosmetic-grid {
  z-index: -1;
  pointer-events: none;
}

.interactive-grid {
  z-index: 1;
  pointer-events: auto;
}

.interactive-grid .grid-table {
  pointer-events: auto;
}

.interactive-grid .grid-table td {
  pointer-events: auto;
  background: transparent;
  border-color: transparent;
}

.interactive-grid .grid-table td:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

site-button,
site-card,
site-callout,
site-share-btn,
a,
button {
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.grid-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  pointer-events: none;
}

.grid-table {
  border-collapse: collapse;
  table-layout: fixed;
}

.grid-table td {
  width: 120px;
  height: 24px;
  border: 1px solid;
  padding: 2px 4px;
  user-select: text;
  cursor: pointer;
}

.cosmetic-grid .grid-table td {
  border-color: var(--border);
}

.grid-left {
  flex: 1;
}

.grid-center {
  width: 721px;
}

.grid-right {
  flex: 1;
}

.container {
  display: grid;
  grid-template-columns: 1fr 721px 1fr;
  min-height: 100vh;
  position: relative;
}

.container > * {
  grid-column: 2;
}

.container > header,
.container > footer {
  grid-column: 1 / -1;
}

.article-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  background-color: var(--bg-alt);
}

@media (max-width: 700px) {
  .container {
    grid-template-columns: auto 1fr auto;
    width: 100%;
  }
  .grid-center {
    width: auto !important;
  }
  .grid-table td {
    width: 120px !important;
    min-width: 120px;
    max-width: 120px;
  }
  site-button,
site-card,
site-callout,
site-image,
site-header,
site-hero,
site-banner,
share-extlink,
share-footer,
share-gallery,
site-share-btn {
    max-width: 100vw;
  }
}

site-button,
site-card,
site-callout,
site-image,
site-header,
site-hero,
site-banner,
share-extlink,
share-footer
share-gallery,
site-share-btn {
  max-width: 721px;
}