@import url("tokens.css");

html {
  background: var(--teal);
  color: var(--ink);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  max-width: 1180px;
  margin: var(--frame) auto;
  border-radius: 1.35rem;
  overflow-x: hidden;
  box-sizing: border-box;
}

@media (max-width: 48rem) {
  body {
    margin: 0.55rem;
    border-radius: 1rem;
  }
}

::selection {
  background: var(--teal);
  color: var(--teal-ink);
}

body > header,
body > main,
body > footer {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: var(--gutter);
  --pico-block-spacing-horizontal: 0;
}

body > header {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  background: var(--paper);
  border-bottom: 0;
}

body > header nav {
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

@media (max-width: 40rem) {
  body > header nav {
    flex-direction: column;
    align-items: flex-start;
    row-gap: 0.55rem;
  }

  body > header nav ul:last-of-type {
    display: none;
  }
}

body > header strong a {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

body > header strong a span {
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.3rem;
}

body > header nav ul:nth-of-type(2) a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

body > header nav ul:nth-of-type(2) a:hover,
body > header nav ul:nth-of-type(2) a[aria-current="page"] {
  color: var(--teal-dark);
}

body > header nav ul:last-of-type a {
  display: inline-block;
  background: var(--teal);
  color: var(--teal-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
}

body > header nav ul:last-of-type a:hover {
  background: var(--teal-dark);
  color: var(--paper);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
}

.skip:focus {
  top: 0.5rem;
}

h1,
h2,
h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-1);
  line-height: 1.08;
  max-width: 16ch;
  margin-top: 0.4rem;
}

h2 {
  font-size: var(--text-2);
  line-height: 1.15;
  max-width: 16ch;
}

h3 {
  font-size: var(--text-3);
  letter-spacing: -0.02em;
}

p,
li,
dd,
td,
th {
  font-size: var(--text-body);
  overflow-wrap: break-word;
}

a {
  color: var(--teal-dark);
  text-underline-offset: 0.16em;
}

time {
  color: var(--verified);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

body > main {
  padding-inline: 0;
  padding-top: 0;
  padding-bottom: 0;
}

body > main > header {
  padding: 2.5rem var(--gutter) 0.5rem;
}

body > main > header p:first-child {
  font-size: var(--text-small);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

body > main > header > p:last-of-type {
  max-width: var(--measure);
  color: var(--muted);
}

body > main > section {
  margin-top: 0;
  padding: 2.1rem var(--gutter);
}

#intro,
#tasks,
#operators,
#dated {
  padding: var(--section) var(--gutter);
}

#hero {
  position: relative;
  margin: 0;
  background: #1a2430;
}

#hero img {
  display: block;
  width: 100%;
  height: min(34rem, 72vw);
  object-fit: cover;
  border-radius: 0;
}

#hero figcaption {
  position: absolute;
  left: var(--gutter);
  bottom: 8%;
  max-width: min(28rem, 86%);
  color: #fff;
}

#hero figcaption p:first-child {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-small);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

#hero h1 {
  color: #fff;
  max-width: 13ch;
  margin-bottom: 1.1rem;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

#hero figcaption p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

#hero figcaption a {
  display: inline-block;
  background: var(--teal);
  color: var(--teal-ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-pill);
}

#hero figcaption a:last-child {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

#intro {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  background: var(--paper);
  overflow: hidden;
}

@media (min-width: 52rem) {
  #intro {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

#intro article p {
  max-width: min(32rem, 100%);
  overflow-wrap: anywhere;
}

#intro article a {
  display: inline-block;
  margin-top: 0.4rem;
  background: var(--teal);
  color: var(--teal-ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-pill);
}

#intro figure {
  position: relative;
  margin: 0;
}

#intro figure img {
  width: 100%;
  height: 22rem;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

#intro figure::after {
  content: "";
  position: absolute;
  right: 6%;
  top: 10%;
  width: 9.5rem;
  height: 9.5rem;
  border: 0.9rem solid var(--teal);
  border-radius: 50%;
  border-left-color: transparent;
  border-bottom-color: transparent;
  pointer-events: none;
}

#tasks {
  display: grid;
  gap: 1.75rem 2.5rem;
  background: var(--wash);
}

#tasks > h2 {
  margin-bottom: 0.25rem;
}

@media (min-width: 48rem) {
  #tasks {
    grid-template-columns: 1fr 1fr;
  }

  #tasks > h2 {
    grid-column: 1 / -1;
  }
}

#tasks article {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

#tasks svg {
  width: 1.65rem;
  height: 1.65rem;
  stroke: var(--teal-dark);
  fill: none;
  stroke-width: 1.8;
  margin-bottom: 0.7rem;
}

#tasks h3 {
  margin: 0 0 0.35rem;
}

#tasks p {
  color: var(--muted);
  max-width: 28rem;
}

#operators {
  display: grid;
  gap: 1.25rem;
  background: var(--paper);
}

@media (min-width: 48rem) {
  #operators {
    grid-template-columns: 1fr 1fr;
  }
}

#operators > h2 {
  grid-column: 1 / -1;
}

#operators article {
  background: var(--wash);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  border: 0;
  box-shadow: none;
}

#operators img {
  width: 100%;
  height: 12.5rem;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

#operators article h2,
#operators article p,
#operators article a {
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}

#operators article h2 {
  margin-top: 1.1rem;
  max-width: none;
  font-size: 1.45rem;
}

#operators article p:last-of-type {
  margin-bottom: 1.25rem;
}

#operators a {
  font-weight: 600;
  text-decoration: none;
}

#dated {
  background: var(--wash);
}

#answer {
  margin: 0 var(--gutter) 0;
  padding: 1.4rem 1.5rem;
  background: var(--teal-soft);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 42rem;
}

#answer p:first-child {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: var(--text-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

#answer kbd {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 500;
  background: transparent;
  color: var(--ink);
  padding: 0;
  margin-bottom: 0.55rem;
}

article {
  background: transparent;
  box-shadow: none;
  border: 0;
}

#conflicts {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 48rem) {
  #conflicts {
    grid-template-columns: 1fr 1fr;
  }
}

#conflicts > article {
  background: var(--wash);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  border-top: 4px solid var(--warn);
}

table {
  width: 100%;
  table-layout: fixed;
  background: var(--paper);
}

table caption {
  caption-side: top;
  text-align: left;
  color: var(--muted);
  font-size: var(--text-small);
  margin-bottom: 0.85rem;
}

thead th {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--ink);
}

tbody th,
tbody td {
  padding: 0.9rem 0.6rem 0.9rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  border-radius: 0.35rem;
}

#faq details {
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
  background: transparent;
}

#faq summary {
  font-weight: 650;
  list-style: none;
}

#faq summary::-webkit-details-marker {
  display: none;
}

#faq summary::after {
  content: "+";
  float: right;
  color: var(--teal-dark);
  font-weight: 500;
}

#faq details[open] summary::after {
  content: "–";
}

aside {
  margin: 0 var(--gutter) var(--section);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  max-width: var(--measure);
}

aside h2,
#related h2,
body > footer h2 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: none;
  font-weight: 650;
}

#related {
  padding: 1.5rem var(--gutter) var(--section);
}

#related ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
}

#related a {
  text-decoration: none;
  font-weight: 600;
}

body > footer {
  display: grid;
  gap: 1.5rem;
  background: var(--wash);
  padding: 2.4rem var(--gutter) 2.2rem;
}

@media (min-width: 48rem) {
  body > footer {
    grid-template-columns: 1fr 1fr;
  }

  body > footer > p {
    grid-column: 1 / -1;
  }
}

body > footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

body > footer a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

body > footer a:hover {
  color: var(--teal-dark);
}

body > footer small {
  color: var(--muted);
  font-size: var(--text-small);
}

#not h2,
#methods h2 {
  font-size: 1.4rem;
  max-width: 20ch;
}

* {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
