/* Hallmark · shape: single-column manifesto · genre: editorial · theme: custom · job: visit · idea: "A studio that proves free software can be excellent, stated plainly in one column." · vibe: "quiet, exact, unadorned, typographic, austere" · surface: absolute · copy: verbatim
 * paper: oklch(100% 0 0) · accent: oklch(28% 0 0) · display: Special Gothic · body: Special Gothic · hero: wordmark and manifesto in one narrow column · nav: corner mark only · footer: none · imagery: none · signature: the split-circle moon mark beside the wordmark
 * axes: light/grotesk/neutral · posture: settled · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H4 E5 S4 R5 V4 · weakest: V, the brief is one screen of verbatim copy and allows no second composition */
/* Hallmark · waive 7b · surface: absolute · the supplied landing is pure white with black ink */
@import url("./tokens.css");
@import url("./base.css");

html {
  scroll-behavior: smooth;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.page {
  position: relative;
  padding-block: var(--page-top) var(--space-3xl);
  animation: page-in var(--dur-page-in) ease both;
}

@media (prefers-reduced-motion: reduce) {
  .page { animation: none; }
}

.topbar {
  position: sticky;
  inset-block-start: 0;
  z-index: var(--z-sticky-nav);
  display: flex;
  align-items: center;
  block-size: var(--topbar-height);
  padding-inline: var(--space-lg);
  background: color-mix(in oklab, var(--color-paper) 72%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform var(--dur-bar) var(--ease-bar);
}

.topbar.is-hidden {
  transform: translateY(-100%);
}

.topbar.is-hidden:focus-within {
  transform: none;
}

.corner-mark {
  display: block;
  inline-size: var(--mark-corner);
  block-size: var(--mark-corner);
  color: var(--color-ink);
}

.corner-mark img {
  inline-size: 100%;
  block-size: 100%;
}

.corner-mark:active {
  opacity: 0.7;
}

.content {
  width: 100%;
  max-width: calc(var(--content-width) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.masthead {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
}

.masthead__mark {
  inline-size: var(--mark-masthead);
  block-size: var(--mark-masthead);
  flex: none;
  color: var(--color-ink);
}

.masthead h1 {
  font-size: var(--text-wordmark);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  text-wrap: normal;
}

.prose {
  margin-block-start: var(--space-3xl);
}

.lede {
  font-size: var(--text-body);
  line-height: 1.55;
}

.principles {
  display: grid;
  gap: var(--space-lg);
  margin-block-start: var(--space-md);
}

.principles p {
  font-size: var(--text-body);
  line-height: 1.55;
}

.principles strong {
  font-weight: 500;
}

.principles s {
  position: relative;
  text-decoration: none;
}

.principles s::after {
  content: "";
  position: absolute;
  inset-inline: -0.1em;
  inset-block-start: 50%;
  block-size: 0.09em;
  background: currentColor;
  transform: translateY(calc(-50% + 0.095em));
}

@media (max-width: 40rem) {
  .page {
    padding-block: var(--page-top) var(--space-2xl);
  }

  .topbar {
    padding-inline: var(--space-md);
  }

  .masthead {
    gap: var(--space-md);
  }

  .masthead__mark {
    inline-size: var(--space-2xl);
    block-size: var(--space-2xl);
  }

  .masthead h1 {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .prose {
    margin-block-start: var(--space-2xl);
  }

  .principles {
    gap: var(--space-lg);
    margin-block-start: var(--space-lg);
  }
}
