/* ============================================================
   benisen — teaser title page
   No build step. Fonts are self-hosted; see fonts.css
   ============================================================ */

:root {
  color-scheme: light dark;

  --bg:   #fbfbf9;
  --fg:   #15150f;
  --dim:  #8b8b80;
  --line: #e4e4dc;

  --sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", "Noto Sans SC", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --pad: clamp(1.25rem, 3.2vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:   #0f0f0e;
    --fg:   #f1f1ec;
    --dim:  #7c7c74;
    --line: #272725;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--pad);
  overflow: clip;
}

/* ---------- masthead ---------- */

.bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  color: var(--dim);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  white-space: nowrap;
}

.dot {
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- statement + logotype ---------- */

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: clamp(4rem, 22vh, 16rem);
}

.note {
  margin: 0 0 clamp(1.5rem, 3.5vw, 3rem);
  max-width: 30ch;
  font-size: clamp(1rem, 1.5vw, 1.375rem);
  font-weight: 350;
  line-height: 1.45;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.note .dim { color: var(--dim); }

.note p { margin: 0; }

.note a {
  display: inline-block;
  margin-top: 0.4em;
  color: var(--dim);
}

.note a:hover { color: var(--fg); }

.bar a { border-bottom: 0; }
.bar a:hover { color: var(--fg); }

.logotype {
  position: relative;
  top: 0.068em;
  margin: 0 0 0 -0.028em;
  /* fits the content column exactly: the advance width of the wordmark is
     2.92em, so divide the available width by that. */
  font-size: calc((100vw - 2 * var(--pad)) / 2.92);
  font-weight: 380;
  line-height: 0.82;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

@media (max-width: 40rem) {
  .stage { padding-top: clamp(2.25rem, 7vh, 4rem); }
  .note { margin-bottom: auto; }
}

/* the wordmark's optical left shift would push the numerals too far left */
.logotype.is-404 { margin-left: 0; }

::selection { background: var(--fg); color: var(--bg); }

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: border-color 0.15s ease;
}
a:hover { border-bottom-color: currentColor; }

@media (prefers-reduced-motion: no-preference) {
  .dot { animation: pulse 2.8s ease-in-out infinite; }

  .logotype {
    animation: mark-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
  }

  .note,
  .bar {
    animation: fade-in 0.7s ease both;
  }

  @keyframes pulse {
    0%, 100% { opacity: 0.35; }
    50%      { opacity: 1; }
  }

  @keyframes mark-in {
    from { opacity: 0; transform: translateY(0.6em); }
    to   { opacity: 1; transform: none; }
  }

  @keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
}
