:root {
  --cream: #f2e6cf;
  --stone: #e4d4b8;
  --ink: #16233a;
  --rust: #c2410c;
  --ink-70: rgba(22, 35, 58, 0.7);
  --ink-75: rgba(22, 35, 58, 0.75);
  --ink-line: rgba(22, 35, 58, 0.15);
  --cream-75: rgba(242, 230, 207, 0.75);
  --cream-60: rgba(242, 230, 207, 0.6);
  --cream-line: rgba(242, 230, 207, 0.15);
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

#practice,
#briefing {
  scroll-margin-top: 4.5rem;
}

::selection {
  background: var(--rust);
  color: var(--cream);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.wrap {
  width: min(64rem, 100%);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 4rem;
  border-bottom: 1px solid rgba(22, 35, 58, 0.1);
  background: rgba(242, 230, 207, 0.9);
  backdrop-filter: blur(12px);
}

.header .wrap {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.brand,
.lockup,
.footer-brand {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.625rem;
}

.wordmark {
  font-weight: 500;
  letter-spacing: -0.02em;
}

.wordmark-nav {
  font-size: 1.25rem;
}

.wordmark .x,
.nav-brief,
.kicker,
.num {
  color: var(--rust);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.nav-link {
  color: var(--ink-70);
}

.nav-link:hover {
  color: var(--ink);
}

.nav-brief,
.cta {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  transition: background-color 200ms, color 200ms, transform 200ms;
}

.nav-brief:active,
.cta:active,
#replay:active {
  transform: scale(0.96);
}

.nav-brief {
  height: 2.5rem;
  padding-inline: 1rem;
  background: var(--ink);
  color: var(--cream);
}

.nav-brief:hover,
.cta:hover {
  background: var(--rust);
  color: var(--cream);
}

.hero {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

#replay {
  display: block;
  width: fit-content;
  margin-top: 2rem;
  text-align: left;
}

.lockup {
  gap: 1rem;
}

.mark {
  display: block;
  overflow: visible;
}

.mark-nav {
  width: 1.5rem;
  height: 1.5rem;
}

.mark-hero {
  width: 4rem;
  height: 4rem;
}

.mark-foot {
  width: 1rem;
  height: 1rem;
}

.wordmark-hero {
  font-size: 3rem;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2 {
  text-wrap: balance;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h1 {
  max-width: 48rem;
  margin: 2.5rem 0 0;
  font-size: 2.25rem;
}

.lede,
.section-copy,
.item p,
.close p {
  color: var(--ink-75);
}

.lede {
  max-width: 36rem;
  margin: 1.5rem 0 0;
  font-size: 1.125rem;
  line-height: 1.7;
}

.framework {
  background: var(--stone);
}

.framework .wrap,
.close .wrap {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.intro {
  max-width: 36rem;
}

h2 {
  margin: 1rem 0 0;
  font-size: 1.875rem;
}

.section-copy {
  margin: 1rem 0 0;
  line-height: 1.7;
}

.items {
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink-line);
}

.items li {
  display: grid;
  gap: 0.75rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--ink-line);
}

.num {
  font-family: var(--mono);
  font-size: 0.875rem;
}

h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
}

.item p {
  max-width: 36rem;
  margin: 0.5rem 0 0;
  line-height: 1.7;
}

.close {
  background: var(--ink);
  color: var(--cream);
}

.close h2 {
  max-width: 42rem;
  font-size: 1.875rem;
}

.close p {
  max-width: 36rem;
  margin: 1.5rem 0 0;
  color: var(--cream-75);
  font-size: 1.125rem;
  line-height: 1.7;
}

.cta {
  height: 3rem;
  margin-top: 2.5rem;
  padding-inline: 1.25rem;
  background: var(--cream);
  color: var(--ink);
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cream-line);
  color: var(--cream-60);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.footer-brand {
  gap: 0.5rem;
}

.footer a:hover {
  color: var(--cream);
}

.mark.is-animated .shield-field {
  transform-box: fill-box;
  transform-origin: center;
  animation: field-in 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mark.is-animated .arm {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: mark-draw 680ms cubic-bezier(0.45, 0, 0.2, 1) forwards;
}

.mark.is-animated .arm:nth-child(1) { animation-delay: 40ms; }
.mark.is-animated .arm:nth-child(2) { animation-delay: 140ms; }
.mark.is-animated .arm:nth-child(3) { animation-delay: 240ms; }
.mark.is-animated .arm:nth-child(4) { animation-delay: 340ms; }

.lockup .guard,
.lockup .x {
  display: inline-block;
  animation: lockup-rise 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lockup .guard { animation-delay: 460ms; }
.lockup .x { animation-delay: 600ms; }

@keyframes field-in {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: none; }
}

@keyframes mark-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes lockup-rise {
  from { opacity: 0; transform: translateY(12px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

@media (min-width: 640px) {
  .lockup { gap: 1.25rem; }
  .mark-hero { width: 5rem; height: 5rem; }
  .wordmark-hero { font-size: 3.75rem; }
  h1 { font-size: 3rem; }
  .footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 768px) {
  .hero { padding-top: 6rem; padding-bottom: 7rem; }
  .mark-hero { width: 6rem; height: 6rem; }
  .wordmark-hero { font-size: 4.5rem; }
  h1 { font-size: 3.75rem; }
  .framework .wrap,
  .close .wrap { padding-top: 6rem; padding-bottom: 6rem; }
  h2 { font-size: 2.25rem; }
  .close h2 { font-size: 3rem; }
  .items li {
    grid-template-columns: 7rem 1fr;
    gap: 2rem;
  }
}

@media (max-width: 639px) {
  .nav-link { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mark.is-animated .arm,
  .mark.is-animated .shield-field,
  .lockup .guard,
  .lockup .x {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
    stroke-dashoffset: 0;
  }
}
