/* Punk Labs — one ink, one idea. Pure black on pure white. */

:root {
  --ink: #000;
  --paper: #fff;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Full-height page, content held to a clean column with generous gutters. */
.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 3rem) var(--gutter);
}

.rule {
  border: 0;
  border-top: 1.5px solid var(--ink);
  margin: 0;
}

/* --- Eyebrow / footer metadata: small, tracked, monospace. --- */
.eyebrow,
.meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: clamp(0.7rem, 1.4vw, 0.8rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-block: 0.9rem;
}

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

.eyebrow a:hover,
.eyebrow a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.eyebrow span:nth-child(2) {
  /* Center label is supporting, not essential on narrow screens. */
  flex: 1;
  text-align: center;
}

.meta a,
.meta span {
  color: var(--ink);
  text-decoration: none;
}

.meta a {
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
}

.meta a:hover,
.meta a:focus-visible {
  background: var(--ink);
  color: var(--paper);
  border-bottom-color: transparent;
}

/* --- The hero: the wordmark is the entire design. --- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  padding-block: clamp(2rem, 6vw, 4rem);
}

/* Big. Black. Bold. Both words forced to identical width so the two
   lines stack into one flush block — left and right edges aligned. */
.wordmark-heading {
  margin: 0;
}

.wordmark {
  display: block;
  width: 100%;
  max-width: min(100%, 62rem);
  height: auto;
}

.wordmark text {
  font-family: var(--display);
  font-weight: 900;
  fill: var(--ink);
}

/* --- Long-form document pages (privacy, etc.) --- */
.doc {
  flex: 1;
  max-width: 70ch;
  padding-block: clamp(2.5rem, 7vw, 5rem);
  font-family: var(--display);
  font-weight: 400;
}

.doc-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3rem, 11vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.doc-lead {
  margin: 1.25rem 0 0;
  font-weight: 500;
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 24ch;
}

.doc-meta {
  margin: 1.5rem 0 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.doc-section {
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
}

.doc-section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.doc-section p,
.doc-section li {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
}

.doc-section ul {
  margin: 0;
  padding-left: 1.1rem;
}

.doc-section li {
  padding-left: 0.3rem;
}

.doc-section li::marker {
  content: "— ";
}

.doc-section strong {
  font-weight: 700;
}

.doc a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 1px;
}

.doc a:hover,
.doc a:focus-visible {
  background: var(--ink);
  color: var(--paper);
  border-bottom-color: transparent;
}

/* 404 code — same heavy display face, single line. */
.error-code {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(5rem, 22vw, 16rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
}

.slug {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(0.95rem, 2.1vw, 1.25rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

/* --- One restrained load reveal. Quiet, fast, optional. --- */
@media (prefers-reduced-motion: no-preference) {
  .eyebrow,
  .hero .wordmark,
  .hero .slug,
  .meta {
    opacity: 0;
    transform: translateY(0.6rem);
    animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .hero .wordmark { animation-delay: 0.06s; }
  .hero .slug { animation-delay: 0.16s; }
  .meta { animation-delay: 0.24s; }

  @keyframes rise {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
