:root {
  --paper: #0b1217;
  --ink: #edf4f7;
  --muted: #a7b5bd;
  --line: #34444e;
  --accent: #ff9d57;
  --focus: #7fb4ff;
  --max: 72rem;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --paper: #fdf6e3;
  --ink: #243b3f;
  --muted: #586e75;
  --line: #7b8f8f;
  --accent: #ff9d57;
  --focus: #1b6f8a;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 100%;
  line-height: 1.5;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 0 clamp(1.25rem, 5vw, 5rem);
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

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

.skip-link {
  background: var(--ink);
  color: var(--paper);
  left: 1rem;
  padding: 0.65rem 0.85rem;
  position: fixed;
  top: 1rem;
  transform: translateY(-200%);
  z-index: 10;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
footer {
  margin-inline: auto;
  max-width: var(--max);
}

.site-header {
  align-items: center;
  display: flex;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.76rem;
  justify-content: space-between;
  letter-spacing: 0.06em;
  padding: 1.6rem 0;
  text-transform: uppercase;
}

.wordmark {
  align-items: center;
  display: inline-flex;
  font-weight: 700;
  gap: 0.55rem;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark-mark {
  display: block;
  flex: 0 0 auto;
  height: 1.5rem;
  width: 1.75rem;
}

.wordmark-name {
  display: block;
}

.utility-strip {
  border: 1px solid var(--line);
  display: flex;
  flex: 0 0 auto;
  height: 2.25rem;
}

.language-switcher {
  display: grid;
  grid-template-columns: repeat(2, 2.5rem);
}

.language-switcher > * {
  align-items: center;
  color: var(--muted);
  display: grid;
  justify-items: center;
  line-height: 1;
  position: relative;
  text-decoration: none;
}

.language-switcher > * + * {
  border-left: 1px solid var(--line);
}

.language-switcher a:hover {
  color: var(--accent);
}

.language-switcher [aria-current="page"] {
  color: var(--ink);
}

.language-switcher [aria-current="page"]::after {
  background: var(--accent);
  bottom: -1px;
  content: "";
  height: 2px;
  inset-inline: 0.65rem;
  position: absolute;
}

.theme-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  height: 100%;
  justify-content: center;
  padding: 0;
  width: 2.25rem;
}

.theme-toggle:hover {
  color: var(--accent);
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.theme-icon {
  fill: none;
  height: 1rem;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.75;
  width: 1rem;
}

.theme-icon-moon,
:root[data-theme="light"] .theme-icon-sun {
  display: none;
}

:root[data-theme="light"] .theme-icon-moon {
  display: block;
}

.intro {
  align-items: center;
  border-top: 1px solid var(--ink);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, 1.6fr);
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.section-title {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.73rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.code-block {
  border: 1px solid var(--line);
  min-height: clamp(14rem, 21vw, 18rem);
}

.code-sequence {
  display: grid;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(1.7rem, 3.35vw, 3.15rem);
  font-weight: 400;
  grid-template-rows: repeat(3, 1fr);
  letter-spacing: -0.045em;
  line-height: 0.94;
  padding: 0;
}

.code-sequence .code-line {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
  text-align: center;
}

.code-sequence .code-line:nth-child(3) {
  border-bottom: 0;
}

html[lang="en"] .code-sequence .code-line:nth-child(3) {
  padding-bottom: 0.28em;
}

.solo-code-block {
  grid-column: 1 / -1;
  margin: 0 auto;
  max-width: 52rem;
  width: 100%;
}

.lede {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  grid-column: 1 / -1;
  margin: 0.75rem auto 0;
  max-width: 38rem;
  text-align: center;
}

.ventures {
  border-bottom: 1px solid var(--ink);
  border-top: 1px solid var(--ink);
}

.section-title {
  padding: 1.1rem 0 0.75rem;
}

.venture {
  align-items: baseline;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, 1.6fr);
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(2rem, 4vw, 3rem);
}

.venture + .venture {
  border-top: 1px solid var(--line);
}

.venture h3,
.venture p {
  margin: 0;
}

.venture h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.venture h3 a {
  text-decoration: none;
}

.venture h3 span {
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72em;
}

.venture p {
  color: var(--muted);
  max-width: 35rem;
}

.privacy-content {
  border-bottom: 1px solid var(--ink);
  border-top: 1px solid var(--ink);
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.privacy-content > h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 clamp(2.5rem, 6vw, 5rem);
}

.privacy-section {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, 1.6fr);
  padding: 1.5rem 0;
}

.privacy-section + .privacy-section {
  border-top: 1px solid var(--line);
}

.privacy-section h2,
.privacy-section p {
  margin: 0;
}

.privacy-section h2 {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.73rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.privacy-section p {
  color: var(--muted);
  max-width: 40rem;
}

footer {
  color: var(--muted);
  display: grid;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.68rem;
  gap: 1rem;
  grid-template-columns: 1fr 4fr 1fr;
  letter-spacing: 0.03em;
  padding-top: clamp(3rem, 8vw, 6rem);
}

footer p {
  margin: 0;
}

footer p:last-child {
  text-align: right;
}

.privacy-note {
  text-align: center;
}

@media (max-width: 42rem) {
  .intro,
  .venture,
  .privacy-section,
  footer {
    grid-template-columns: 1fr;
  }

  .intro {
    padding-block: 3.5rem 5rem;
  }

  .code-block {
    min-height: 12rem;
  }

  .code-sequence {
    font-size: clamp(1rem, 5vw, 1.25rem);
  }

  .solo-code-block {
    margin-inline: 0;
    max-width: none;
    min-height: 12rem;
    width: 100%;
  }

  .venture {
    gap: 0.75rem;
  }

  footer,
  footer p:last-child,
  .privacy-note {
    text-align: left;
  }
}

@media (prefers-reduced-motion: no-preference) {
  a,
  .theme-toggle {
    transition: border-color 140ms ease, color 140ms ease;
  }
}

@media (forced-colors: active) {
  .ventures,
  .venture,
  .intro {
    border-color: CanvasText;
  }

  .language-switcher [aria-current="page"]::after {
    background: CanvasText;
  }
}
