/* The password page. Self-contained on purpose: it is the only stylesheet a
   visitor without the password can load, so it describes nothing else. */

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

:root {
  --paper: #F4F4F1;
  --ink: #000000;
  --graphite: #5C5C58;
  --sun: #FF4A1C;
  --gutter: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); }

body {
  color: var(--ink);
  font-family: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, p { margin: 0; }
h1 { font-size: clamp(2rem, 3.6vw + 0.8rem, 4rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.d-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) var(--gutter) env(safe-area-inset-bottom);
  overflow: hidden;
  /* Nothing to scroll here, so every drag belongs to the orbits. */
  touch-action: none;
}
.d-hero__orbits { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }

.d-wordmark { display: block; width: min(100%, 880px); height: auto; overflow: visible; color: var(--ink); }
.d-wordmark circle { fill: none; stroke: currentColor; stroke-width: 22; }
.d-wordmark .solid { fill: currentColor; }
.d-wordmark .sun { fill: var(--sun); stroke: none; }

.g-top { padding-block: clamp(20px, 3vh, 28px); font-size: 0.9375rem; font-weight: 600; }
.g-mark { display: grid; align-content: center; padding-block: clamp(28px, 6vh, 88px); }

.g-panel {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 1.75rem;
  align-items: end;
  padding-bottom: clamp(28px, 6vh, 72px);
}
.g-panel h1 { grid-column: 1 / span 7; }
.g-form { grid-column: 9 / span 4; touch-action: auto; }
.g-form label { display: block; margin-bottom: 0.5rem; font-size: 0.9375rem; font-weight: 600; }
.g-row { display: flex; gap: 0.5rem; }
.g-row input {
  flex: 1;
  min-width: 0;
  padding: 0.8rem 1.2rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  /* 16px or more, so phones do not zoom the page when the field is tapped. */
  font-size: 1.0625rem;
  letter-spacing: 0.08em;
}
.g-row button {
  flex: none;
  padding: 0.8rem 1.35rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.g-row button:hover { background: var(--sun); border-color: var(--sun); color: #fff; }
.g-error { margin-top: 0.75rem; color: var(--sun); font-weight: 600; }
.g-hint { margin-top: 0.75rem; color: var(--graphite); font-size: 0.875rem; }

@media (max-width: 900px) {
  .g-panel h1, .g-form { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .g-row button { transition: none; }
}
