/* leinemann.name — a nameplate. One family, one action, one bold moment. */

:root {
  --paper: #eef0ec;
  --ink: #1b211e;
  --mute: #626a66;
  --mark: #efdd3a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121513;
    --ink: #eceee9;
    --mute: #98a19b;
    --mark: #d8c736;
  }
}

@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/fonts/schibsted-grotesk.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family:
    'Schibsted Grotesk',
    system-ui,
    -apple-system,
    'Segoe UI',
    Helvetica,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100dvh;
}

.plate {
  box-sizing: border-box;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1.25rem, 4vw, 3rem) clamp(1.25rem, 7vw, 7rem);
}

.mark {
  justify-self: start;
  color: var(--mute);
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.mark:hover {
  color: var(--ink);
}

.plate-body {
  align-self: center;
  max-width: 40rem;
  padding: 2.5rem 0 3rem;
}

.name {
  margin: 0 0 0.7em;
  font-size: clamp(3.25rem, 11vw, 7.5rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.name span {
  display: block;
}

.note {
  margin: 0 0 1em;
  max-width: 34ch;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.45;
}

.note.small {
  color: var(--mute);
  font-size: 0.9375rem;
}

.bell {
  margin-top: 2.5rem;
}

.bell-button {
  appearance: none;
  cursor: pointer;
  margin: 0;
  padding: 0.85em 1.25em;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    opacity 150ms ease;
}

.bell-button:hover,
.bell-button:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.bell-button[aria-busy='true'] {
  cursor: progress;
  opacity: 0.6;
}

.bell-status {
  margin: 0.75rem 0 0;
  min-height: 1.4em;
  color: var(--mute);
  font-size: 0.9375rem;
}

.turnstile {
  margin-top: 0.75rem;
}

.turnstile:empty {
  display: none;
}

.bell-result[hidden] {
  display: none;
}

.bell-result {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
}

.address {
  color: var(--ink);
  font-size: clamp(1.375rem, 5vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 90% / 0% 0.32em;
  transition: background-size 550ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.bell-result.is-shown .address {
  background-size: 100% 0.32em;
}

.copy {
  appearance: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mute);
  font: inherit;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.copy:hover,
.copy:focus-visible {
  color: var(--ink);
}

.plate-foot {
  color: var(--mute);
  font-size: 0.9375rem;
}

.plate-foot p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .address,
  .bell-button {
    transition: none;
  }
}
