:root {
  color-scheme: light;
  --black: #080808;
  --ink: #171717;
  --muted: #666666;
  --line: #d9d9d9;
  --line-dark: #303030;
  --soft: #f5f5f5;
  --white: #ffffff;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--black);
  color: var(--white);
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

.hero a:focus-visible,
.about-section a:focus-visible,
.site-footer a:focus-visible,
.announcement-bar a:focus-visible {
  outline-color: var(--white);
}

.shell {
  width: min(100% - 2.5rem, 1180px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  translate: 0 -180%;
  padding: 0.7rem 1rem;
  background: var(--white);
  border: 2px solid var(--black);
  color: var(--black);
  font-weight: 750;
}

.skip-link:focus {
  translate: 0;
}

.announcement-bar {
  background: var(--black);
  color: var(--white);
  font-size: 0.78rem;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.1rem;
}

.announcement-inner a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  font-weight: 700;
  text-decoration: none;
}

.announcement-inner a:hover {
  text-decoration: underline;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 8.75rem;
  text-decoration: none;
}

.brand-logo,
.footer-logo {
  display: block;
  width: 100%;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  color: #333333;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.primary-nav a:hover {
  color: var(--black);
  text-decoration: underline;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  background: var(--black);
  border: 1px solid var(--black);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
}

.header-cta:hover {
  background: var(--white);
  color: var(--black);
}

.site-main {
  min-height: 65vh;
}

.hero {
  padding-block: clamp(3.75rem, 7vw, 6rem);
  background: var(--black);
  color: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(22rem, 0.75fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.hero-kicker,
.section-index,
.empty-label,
.footer-label {
  margin: 0 0 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #bdbdbd;
}

.hero h1 {
  max-width: 10ch;
  margin: 0;
  color: var(--white);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.hero-lede {
  max-width: 57ch;
  margin: 1.25rem 0 0;
  color: #c8c8c8;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--black);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
}

.button-light {
  min-width: 10.5rem;
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.button-light:hover {
  background: var(--black);
  color: var(--white);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.hero-link:hover {
  text-decoration: underline;
}

.workflow-card {
  border: 1px solid #4a4a4a;
  background: var(--black);
}

.workflow-top,
.workflow-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workflow-top {
  background: var(--white);
  color: var(--black);
}

.workflow-bottom {
  color: #a8a8a8;
}

.workflow-step {
  position: relative;
  min-height: 5.75rem;
  padding: 1rem 3.5rem 1rem 1rem;
  background: var(--white);
  border-top: 1px solid var(--line);
  color: var(--black);
}

.workflow-label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.workflow-step strong {
  display: block;
  font-size: 1rem;
  line-height: 1.3;
}

.workflow-number {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  color: #b7b7b7;
  font-family: var(--font-mono);
  font-size: 1.55rem;
}

.capability-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.capability-list span {
  padding: 0.85rem 0.75rem;
  border-left: 1px solid var(--line);
  color: #444444;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.capability-list span:last-child {
  border-right: 1px solid var(--line);
}

.directory {
  padding-block: clamp(3.5rem, 6vw, 5.25rem);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-heading.compact {
  grid-template-columns: minmax(0, 48rem);
}

.section-index {
  color: var(--muted);
}

h1,
h2,
h3 {
  margin-top: 0;
}

h2 {
  max-width: 18ch;
  margin-bottom: 0;
  color: var(--black);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 820;
  letter-spacing: -0.055em;
  line-height: 1;
}

h3 {
  color: var(--black);
  font-size: 1.2rem;
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

p {
  margin-block: 0 1rem;
}

.section-copy {
  max-width: 55ch;
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.tool-count {
  display: grid;
  justify-items: end;
  margin: 0;
  text-align: right;
}

.tool-count strong {
  color: var(--black);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.tool-count span {
  margin-top: 0.45rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-group + .tool-group {
  margin-top: 2.5rem;
}

.tool-group-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tool-group-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.tool-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-list li {
  min-width: 0;
}

.tool-list a {
  position: relative;
  display: block;
  min-height: 8rem;
  padding: 1.1rem 2.75rem 1.1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--black);
  text-decoration: none;
}

.tool-list a::after {
  content: "→";
  position: absolute;
  top: 0.95rem;
  right: 1rem;
  font-size: 1.2rem;
}

.tool-list a:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.tool-list strong {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
  line-height: 1.25;
}

.tool-list span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.tool-list a:hover span {
  color: #bdbdbd;
}

.empty-directory {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding-block: 2rem;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
}

.empty-symbol {
  color: var(--black);
  font-size: 3.25rem;
  font-weight: 850;
  letter-spacing: -0.07em;
  line-height: 1;
}

.empty-label {
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.empty-directory strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.08rem;
}

.empty-directory p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.arrow-link {
  display: inline-flex;
  gap: 1.5rem;
  align-items: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  color: var(--black);
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

.arrow-link:hover {
  text-decoration: underline;
}

.how-section {
  padding-block: clamp(3.5rem, 6vw, 5.25rem);
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--black);
}

.steps-grid article {
  min-height: 13rem;
  padding: 1.25rem 1.5rem 1.5rem;
}

.steps-grid article + article {
  border-left: 1px solid var(--black);
}

.step-number {
  display: block;
  margin-bottom: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.steps-grid h3 {
  margin-bottom: 0.75rem;
  font-size: 1.45rem;
}

.steps-grid p {
  max-width: 31ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.about-section {
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
  background: var(--black);
  color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.about-section .section-index {
  color: #9d9d9d;
}

.about-section h2 {
  color: var(--white);
}

.about-content > p {
  max-width: 55ch;
  color: #c6c6c6;
  font-size: 1.05rem;
}

.about-points {
  margin: 1.5rem 0;
  padding: 0;
  border-top: 1px solid var(--line-dark);
  list-style: none;
}

.about-points li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--line-dark);
}

.about-points strong {
  color: var(--white);
}

.about-points span {
  color: #a9a9a9;
}

.arrow-link.light {
  color: var(--white);
}

.legal-page,
.contact-page {
  width: min(100% - 3rem, 800px);
  margin-inline: auto;
  padding-block: clamp(3rem, 6vw, 4.75rem);
}

.site-main > [class^="tool-"] {
  width: min(100% - 3rem, 920px);
  margin-inline: auto;
  padding-block: clamp(3rem, 6vw, 4.75rem);
}

.site-main > [class^="tool-"] h1 {
  margin: 0 0 1rem;
  color: var(--black);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 850;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.site-main > [class^="tool-"] h2 {
  max-width: none;
  margin: 1.75rem 0 0.65rem;
  font-size: 1.65rem;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.site-main > [class^="tool-"] label {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
  font-weight: 750;
}

.page-header {
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--black);
}

.page-header .eyebrow {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-header h1 {
  max-width: 13ch;
  margin: 0;
  color: var(--black);
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.page-summary {
  max-width: 60ch;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.legal-meta {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.prose {
  margin-top: 2.25rem;
}

.prose h2 {
  max-width: none;
  margin: 2.25rem 0 0.75rem;
  font-size: 1.65rem;
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.prose h3 {
  margin: 1.5rem 0 0.55rem;
  font-size: 1rem;
}

.prose p,
.prose li {
  color: #4f4f4f;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose strong {
  color: var(--black);
}

.prose a {
  color: var(--black);
  font-weight: 650;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.contact-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
}

.contact-card h2 {
  max-width: none;
  margin: 0 0 0.8rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.contact-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.button-link {
  background: var(--black);
  color: var(--white);
}

.button-link:hover {
  background: var(--white);
  color: var(--black);
}

.site-footer {
  background: var(--black);
  border-top: 1px solid var(--line-dark);
  color: var(--white);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10rem 12rem;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: 3rem 2.5rem;
}

.footer-brand {
  display: block;
  width: 11rem;
  text-decoration: none;
}

.footer-logo {
  filter: invert(1);
}

.footer-intro p {
  max-width: 34ch;
  margin: 0.75rem 0 0;
  color: #a7a7a7;
  font-size: 0.88rem;
}

.footer-label {
  color: #808080;
}

.footer-links {
  display: grid;
  gap: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  color: #d0d0d0;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem 1.1rem;
  border-top: 1px solid var(--line-dark);
  color: #808080;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

button,
input,
select,
textarea {
  max-width: 100%;
  border: 1px solid #a7a7a7;
  border-radius: 0;
  background: var(--white);
  color: var(--black);
  font: inherit;
}

button {
  cursor: pointer;
  padding: 0.7rem 1rem;
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 750;
}

button:hover {
  background: #2d2d2d;
}

textarea,
pre,
code,
output,
.cipher-input,
.cipher-output,
.tool-input,
.tool-output {
  font-family: var(--font-mono);
}

textarea {
  width: 100%;
  min-height: 12rem;
  padding: 1rem;
  resize: vertical;
}

@media (max-width: 960px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 48rem;
  }

  .workflow-card {
    width: min(100%, 34rem);
  }

  .hero-grid,
  .about-grid {
    gap: 2.25rem;
  }

  .tool-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .site-header-inner {
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }

  .section-heading {
    gap: 1.25rem;
    margin-bottom: 1.75rem;
  }

  .capability-list {
    grid-template-columns: repeat(5, minmax(7rem, 1fr));
    overflow-x: auto;
  }

  .section-heading,
  .empty-directory,
  .contact-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .tool-count {
    justify-items: start;
    text-align: left;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid article {
    min-height: 0;
    padding: 1.25rem 0;
  }

  .steps-grid article + article {
    border-top: 1px solid var(--black);
    border-left: 0;
  }

  .step-number {
    margin-bottom: 1rem;
  }

  .empty-directory {
    gap: 1rem;
  }

  .arrow-link {
    justify-self: start;
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 2.5rem;
  }

  .footer-intro {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .shell,
  .legal-page,
  .contact-page,
  .site-main > [class^="tool-"] {
    width: min(100% - 1.5rem, 1180px);
  }

  .announcement-bar {
    display: none;
  }

  .brand {
    width: 7.75rem;
  }

  .site-header-inner {
    min-height: 3.75rem;
  }

  .header-cta {
    padding-inline: 0.75rem;
  }

  .hero {
    padding-block: 2.75rem 3.25rem;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 13vw, 3.5rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.9rem;
  }

  .button-light {
    width: 100%;
  }

  .workflow-card {
    width: 100%;
  }

  .tool-list {
    grid-template-columns: 1fr;
  }

  .about-points li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1rem;
    padding-block: 2.25rem 1.75rem;
  }

  .footer-intro {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .directory,
  .how-section,
  .about-section {
    padding-block: 2.75rem;
  }

  .legal-page,
  .contact-page,
  .site-main > [class^="tool-"] {
    padding-block: 2.25rem 3rem;
  }

  .page-header h1 {
    font-size: clamp(2.35rem, 12vw, 3.25rem);
  }

  .prose {
    margin-top: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
