/* =========================================================
   Fingerprint — interest page
   Colors and fonts live here. Everything else uses them.
   ========================================================= */
:root {
  /* Layout: full-screen photo hero, then cream sections laid out like a
     gallery wall (off-center, lots of space), ending on one green band. */

  /* Colors */
  --paper:      #f1e9d6;  /* cream background */
  --paper-deep: #e6dbc2;  /* behind photos while they load */
  --forest:     #1d3b2a;  /* dark green: text, buttons */
  --forest-deep:#17301f;  /* dark green: signup section */
  --moss:       #56695a;  /* muted green: labels, captions, body */
  --line:       #cfc3a8;  /* thin lines on cream */
  --on-forest:  #f1e9d6;  /* text on green */
  --on-forest-dim: #aab6a5;

  /* Fonts */
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --text:    "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono:    "DM Mono", ui-monospace, Menlo, Consolas, monospace;

  /* Spacing */
  --gutter: clamp(16px, 5vw, 80px);
  --max: 1280px;
  --section: clamp(7rem, 14vw, 13rem);

  /* Paper grain on cream and green (never on photos). Raise 0.34 to make it stronger. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.36 0 0 0 0 0.29 0 0 0 0 0.18 0 0 0 0.34 -0.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper) var(--grain);
  color: var(--forest);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, p, figure { margin: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 36px);
}

/* ---------- Placeholders ----------
   Shows where your text goes and roughly how much fits.
   --lines sets how many ruled lines to show. Delete class="ph" once real text is in. */
.ph {
  --lines: 1;
  min-height: calc(var(--lines) * 1lh);
  color: color-mix(in srgb, currentColor 58%, transparent);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 calc(1lh - 1px),
    color-mix(in srgb, currentColor 30%, transparent) calc(1lh - 1px) 1lh
  );
}
span.ph { display: inline-block; min-width: 7ch; }

/* ---------- Shared pieces ---------- */
.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
}
.body { font-size: 1.125rem; line-height: 1.65; color: var(--moss); max-width: 46ch; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  justify-self: start;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--on-forest);
  color: var(--forest);
  font: 500 1rem/1 var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn::after { content: "→"; transition: transform 0.25s; }
.btn:hover { background: transparent; color: var(--on-forest); border-color: var(--on-forest); }
.btn:hover::after { transform: translateX(3px); }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* photos laid out like prints on a wall */
.print { display: grid; gap: 0.9rem; }
.print img {
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--paper-deep);
}
.print figcaption,
.plaque-text {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--moss);
}

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: calc(env(safe-area-inset-top, 0px) + 26px) 0;
  padding-inline: var(--gutter);
  color: var(--on-forest);
}
.wordmark {
  color: inherit;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.header-link {
  color: inherit;
  text-decoration: none;
  font-size: 0.9375rem;
  border-bottom: 1px solid color-mix(in srgb, currentColor 50%, transparent);
  padding-bottom: 2px;
}
.header-link:hover { border-bottom-color: currentColor; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: max(560px, 100svh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--forest-deep);
  color: var(--on-forest);
}
.slides { position: absolute; inset: 0; z-index: -2; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide.is-active img { animation: drift 9s ease-out both; }
.slide figcaption { display: none; }
@keyframes drift { from { transform: scale(1.07); } to { transform: scale(1); } }

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgb(16 32 22 / 0.72), rgb(16 32 22 / 0.12) 55%, rgb(16 32 22 / 0) 70%),
    linear-gradient(to bottom, rgb(16 32 22 / 0.35), rgb(16 32 22 / 0) 22%);
}

.hero-inner {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2.5rem 3rem;
  padding-block: 160px clamp(40px, 6vw, 80px);
  padding-inline: var(--gutter);
}
.hero-text { display: grid; gap: 1.5rem; align-content: end; flex: 1 1 520px; min-width: 0; }
.hero h1 {
  max-width: 13ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.75rem, 6.6vw, 6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-sub { max-width: 34ch; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.55; }
.hero .btn { margin-top: 0.5rem; }

.hero-meta { display: grid; gap: 1rem; justify-items: end; min-width: 0; }
.plaque { display: grid; gap: 0.4rem; justify-items: end; text-align: right; }
.plaque-count {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
.plaque-text { justify-content: flex-end; color: var(--on-forest); }

.dots { display: flex; gap: 0.25rem; }
.dots button {
  width: 40px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.dots button::before {
  content: "";
  position: absolute;
  inset: 11px 4px;
  background: var(--on-forest);
  opacity: 0.35;
  transition: opacity 0.3s;
}
.dots button[aria-current="true"]::before { opacity: 1; }
.dots button:hover::before { opacity: 0.7; }

/* ---------- Mission ---------- */
.mission { padding-block: var(--section) calc(var(--section) * 0.75); }
.mission .label { grid-column: 1 / 3; padding-top: 1.1rem; align-self: start; }
.mission-copy { grid-column: 3 / 9; display: grid; gap: 2.5rem; align-self: start; align-content: start; min-width: 0; }
.statement {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.3vw, 2.875rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.mission-photo { grid-column: 9 / 13; align-self: start; margin-top: clamp(4rem, 12vw, 11rem); }
.mission-photo img { aspect-ratio: 3 / 4; }

/* ---------- Artists / Buyers ---------- */
.audiences { padding-block: calc(var(--section) * 0.5) var(--section); }
.aud { display: grid; gap: 1.25rem; align-content: start; min-width: 0; }
.aud h2 {
  margin-top: 1.25rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 2.6vw, 2.375rem);
  line-height: 1.1;
}
.aud--artists { grid-column: 1 / 7; }
.aud--artists img { aspect-ratio: 4 / 3; }
.aud--buyers { grid-column: 8 / 12; margin-top: clamp(6rem, 18vw, 16rem); }
.aud--buyers img { aspect-ratio: 4 / 5; }

/* ---------- Signup ---------- */
.join {
  padding-block: var(--section);
  background: var(--forest-deep) var(--grain);
  color: var(--on-forest);
}
.join .grid { row-gap: 3rem; align-items: start; }
.join-head { grid-column: 1 / 6; display: grid; gap: 1.5rem; align-content: start; min-width: 0; }
.join h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.join .body { color: var(--on-forest-dim); }
.join-form { grid-column: 7 / 13; min-width: 0; padding-top: 0.75rem; }

#signup-form { display: grid; gap: 2.25rem; }
.field label,
.roles legend {
  display: block;
  margin-bottom: 0.75rem;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-forest-dim);
}
.field input {
  width: 100%;
  padding: 0.4rem 0 0.8rem;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--on-forest) 35%, transparent);
  border-radius: 0;
  background: transparent;
  color: var(--on-forest);
  font-family: var(--display);
  font-size: clamp(1.375rem, 2vw, 1.75rem);
}
.field input::placeholder { color: color-mix(in srgb, var(--on-forest) 40%, transparent); }
.field input:focus { outline: none; border-bottom-color: var(--on-forest); }

.roles { margin: 0; padding: 0; border: 0; min-width: 0; }
.role-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.role { position: relative; }
.role input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.role span {
  display: inline-block;
  padding: 0.65rem 1.3rem;
  border: 1px solid color-mix(in srgb, var(--on-forest) 35%, transparent);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.role:hover span { border-color: var(--on-forest); }
.role input:checked + span { background: var(--on-forest); color: var(--forest); border-color: var(--on-forest); }
.role input:focus-visible + span { outline: 2px solid var(--on-forest); outline-offset: 3px; }

.form-status { min-height: 1.5em; margin-top: -1rem; color: var(--on-forest); font-size: 0.95rem; }
.form-status:empty { min-height: 0; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-done { padding-top: 1rem; }
.form-done:focus { outline: none; }
.done-title { font-family: var(--display); font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep) var(--grain); color: var(--on-forest-dim); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 2rem;
  padding-block: 2rem calc(2rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid color-mix(in srgb, var(--on-forest) 14%, transparent);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
.footer-mark { font-family: var(--display); font-size: 1.125rem; letter-spacing: 0; color: var(--on-forest); }

/* ---------- Phones and small tablets ---------- */
@media (max-width: 820px) {
  .grid > * { grid-column: 1 / -1 !important; }
  .mission .label { padding-top: 0; margin-bottom: 1.5rem; }
  .mission-photo { margin-top: 5rem; width: 72%; justify-self: end; }
  .aud--buyers { margin-top: 6rem; width: 82%; justify-self: end; }
  .join-form { padding-top: 0; }
  .hero-meta, .plaque { justify-items: start; text-align: left; }
  .plaque-text { justify-content: flex-start; }
}

/* ---------- Less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: none; }
  .slide.is-active img { animation: none; }
}
