@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f5f1eb;
  --canvas-soft: #faf8f4;
  --text: #181818;
  --muted: #555450;
  --quiet: #696660;
  --line: #b7b1a9;
  --line-soft: #d9d3cb;
  --accent: #f2531b;
  --accent-ink: #bd350b;
  --accent-action: #cf3f0d;
  --accent-hover: #b8330b;
  --field: rgba(250, 248, 244, 0.94);
  --error: #a72c12;
  --success: #246340;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page-width: 1400px;
  font-family: var(--mono);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.landing-page {
  position: relative;
  isolation: isolate;
  background: transparent;
}

body.landing-page::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  background-color: var(--canvas);
  background-image: url("/assets/malimus-blocks.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  pointer-events: none;
}

::selection {
  background: var(--accent);
  color: #fff;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.72rem 0.9rem;
  transform: translateY(-160%);
  border: 1px solid var(--text);
  background: var(--canvas-soft);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 500;
}

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

.site-frame {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(calc(100% - 8.5rem), var(--page-width));
  min-height: 100svh;
  margin: 0 auto;
  flex-direction: column;
}

.masthead {
  display: flex;
  min-height: 9.25rem;
  align-items: center;
  justify-content: space-between;
}

.brand-lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 0.72rem;
  text-decoration: none;
}

.wordmark {
  font-size: 1.37rem;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.brand-cursor {
  display: block;
  width: 0.68rem;
  height: 0.15rem;
  background: var(--accent);
}

.masthead-link,
.section-label,
.updated {
  color: var(--quiet);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.masthead-link {
  text-decoration: none;
}

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

.landing {
  display: flex;
  flex: 1;
  align-items: center;
  padding: 1.5rem 0 3.25rem;
}

.hero {
  width: min(100%, 42.5rem);
  padding-bottom: 1rem;
}

h1 {
  margin: 0;
  font-size: clamp(3.75rem, 5vw, 5.05rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

h1 > span {
  display: block;
}

.accent-line {
  color: var(--accent);
}

.headline-stop {
  display: inline;
  color: var(--text);
}

.intro {
  max-width: 40rem;
  margin: 2.45rem 0 0;
  color: var(--muted);
  font-size: clamp(0.94rem, 1.3vw, 1.08rem);
  line-height: 1.9;
}

.intro span {
  display: block;
}

.signup-panel {
  width: min(100%, 42rem);
  margin-top: clamp(3.15rem, 6.4vh, 4.35rem);
}

.signup-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.waitlist {
  margin: 1.85rem 0 0;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) auto;
  gap: 1.25rem;
}

.form-row input,
.form-row button {
  min-height: 4.35rem;
  border-radius: 0.42rem;
}

.form-row input {
  min-width: 0;
  border: 1px solid #99958f;
  outline: 0;
  background: var(--field);
  color: var(--text);
  padding: 1rem 1.3rem;
  font-size: 0.94rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.form-row input::placeholder {
  color: #64615d;
  opacity: 1;
}

.form-row input:hover {
  border-color: #6f6b65;
}

.form-row input:focus-visible {
  border-color: var(--text);
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.form-row button {
  display: inline-flex;
  min-width: 13.1rem;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  border: 1px solid var(--accent-action);
  cursor: pointer;
  background: var(--accent-action);
  color: #fff;
  padding: 1rem 1.45rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.form-row button::after {
  content: "→";
  font-size: 1.25rem;
  line-height: 0;
  transition: transform 120ms ease;
}

.form-row button:hover:not(:disabled) {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.form-row button:hover:not(:disabled)::after {
  transform: translateX(0.18rem);
}

.form-row button:active:not(:disabled) {
  transform: translateY(1px);
}

.form-row button:disabled {
  cursor: wait;
  opacity: 0.67;
}

.form-row button:disabled::after {
  display: none;
}

.turnstile-slot {
  width: 100%;
  height: 0;
  margin: 0;
  overflow: hidden;
}

.turnstile-slot.is-interactive {
  height: auto;
  min-height: 65px;
  margin-top: 1rem;
  overflow: visible;
}

.form-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  margin-top: 0.85rem;
}

.form-note,
.form-status {
  margin: 0;
  color: var(--quiet);
  font-size: 0.68rem;
  line-height: 1.6;
}

.form-note a {
  color: var(--text);
}

.form-note a:hover {
  color: var(--accent-ink);
}

.form-status {
  min-height: 1.1em;
  font-weight: 500;
  text-align: right;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--error);
}

.honeypot,
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding: 1.3rem 0 2.25rem;
  color: var(--quiet);
  font-size: 0.69rem;
  line-height: 1.5;
}

.site-footer a {
  color: var(--accent-ink);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-divider {
  color: var(--quiet);
}

.privacy-page {
  background: var(--canvas);
}

.privacy-frame {
  width: min(calc(100% - 8.5rem), 75rem);
}

.privacy-frame .masthead {
  border-bottom: 1px solid var(--line-soft);
}

.privacy-layout {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(16rem, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(3rem, 8vw, 7.5rem);
  padding: clamp(4.75rem, 9vw, 7.25rem) 0 7rem;
}

.privacy-heading {
  position: sticky;
  top: 2.5rem;
  align-self: start;
}

.section-label {
  margin: 0 0 1.25rem;
  color: var(--accent-ink);
}

.privacy-heading h1 {
  font-size: clamp(2.75rem, 4.7vw, 4.25rem);
  line-height: 1.04;
}

.updated {
  margin: 1.6rem 0 0;
}

.privacy-copy .privacy-lede {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  line-height: 1.65;
}

.privacy-copy section {
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--line-soft);
}

.privacy-copy h2 {
  margin: 0 0 0.85rem;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.privacy-copy p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.85;
}

.privacy-copy a {
  color: var(--text);
}

.privacy-copy a:hover {
  color: var(--accent-ink);
}

@media (max-height: 820px) and (min-width: 901px) {
  .masthead {
    min-height: 6.75rem;
  }

  .landing {
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
  }

  h1 {
    font-size: clamp(3.45rem, 4.7vw, 4.5rem);
  }

  .intro {
    margin-top: 1.65rem;
    line-height: 1.75;
  }

  .signup-panel {
    margin-top: 2.35rem;
  }

  .waitlist {
    margin-top: 1.35rem;
  }

  .form-row input,
  .form-row button {
    min-height: 3.8rem;
  }

  .site-footer {
    padding-bottom: 1.3rem;
  }
}

@media (max-width: 1100px) {
  .site-frame {
    width: min(calc(100% - 5rem), var(--page-width));
  }

  .hero {
    width: min(58vw, 38rem);
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
  }

  .form-row button {
    min-width: 11.25rem;
  }
}

@media (max-width: 800px) {
  body.landing-page::before {
    background-position: 69% center;
    background-size: auto 100%;
    opacity: 0.56;
  }

  .site-frame,
  .privacy-frame {
    width: min(calc(100% - 3rem), var(--page-width));
  }

  .masthead {
    min-height: 6.8rem;
  }

  .landing {
    align-items: flex-start;
    padding: 3.2rem 0 4.25rem;
  }

  .hero {
    width: min(100%, 37rem);
  }

  h1 {
    font-size: clamp(3.05rem, 11vw, 4.5rem);
  }

  .intro {
    max-width: 34rem;
    font-size: 0.95rem;
  }

  .signup-panel {
    max-width: 35rem;
  }

  .privacy-layout {
    display: block;
    padding: 4.5rem 0 5.5rem;
  }

  .privacy-heading {
    position: static;
  }

  .privacy-copy {
    max-width: 40rem;
    margin-top: 4rem;
  }
}

@media (max-width: 580px) {
  body.landing-page::before {
    background-position: 72% center;
    opacity: 0.5;
  }

  .site-frame,
  .privacy-frame {
    width: min(calc(100% - 2.5rem), var(--page-width));
  }

  .masthead {
    min-height: 5.75rem;
  }

  .wordmark {
    font-size: 1.15rem;
  }

  .landing {
    padding: 2.35rem 0 3.25rem;
  }

  h1 {
    font-size: clamp(2.75rem, 13vw, 3.8rem);
    letter-spacing: -0.06em;
  }

  .intro {
    margin-top: 1.75rem;
    font-size: 0.84rem;
    line-height: 1.75;
  }

  .intro span {
    display: inline;
  }

  .intro span + span::before {
    content: " ";
  }

  .signup-panel {
    margin-top: 2.6rem;
  }

  .signup-title {
    max-width: 19rem;
    font-size: 0.88rem;
  }

  .waitlist {
    margin-top: 1.3rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .form-row input,
  .form-row button {
    width: 100%;
    min-height: 3.9rem;
  }

  .form-row button {
    min-width: 0;
  }

  .form-meta {
    display: block;
  }

  .form-note,
  .form-status {
    font-size: 0.64rem;
  }

  .form-status {
    margin-top: 0.55rem;
    text-align: left;
  }

  .site-footer {
    padding-bottom: 1.5rem;
    font-size: 0.64rem;
  }

  .privacy-frame .masthead {
    align-items: center;
  }

  .privacy-layout {
    padding-top: 3.75rem;
  }

  .privacy-copy {
    margin-top: 3.25rem;
  }
}

@media (max-width: 370px) {
  .site-frame,
  .privacy-frame {
    width: min(calc(100% - 2rem), var(--page-width));
  }

  .masthead-link {
    font-size: 0.62rem;
  }

  h1 {
    font-size: 2.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
