/* Coming-soon template: base, layout and components. Every colour, font and size comes from tokens.css, webfonts
   from fonts.css. A project's copy is generated by node lab/projects.mjs --write: never edit it there, change this
   file. The project owns its index.html, fonts.css and tokens.css, started from the ones next to this file. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

/* Long words (Dutch compounds like burgerschapsonderwijs) never push the page sideways: body breaks them only
   when nothing else fits, and on small screens with a hyphen (the page is lang="nl") */
@media (max-width: 30rem) { body { hyphens: auto; } }

p { margin: 0; }

/* ---------- Layout ---------- */
/* Three rows: author, highlight (takes the free space), notice */
.page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: minmax(0, 1fr);
  padding: var(--space-gutter);
  gap: clamp(2.5rem, 7vh, 5rem);
}

.author {
  display: grid;
  gap: 0.35rem;
  max-width: 34rem;
}

.author-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  font-variation-settings: "opsz" 24;
  letter-spacing: 0.005em;
}

.author-role {
  color: var(--color-text-soft);
  font-size: 0.9375rem;
}

/* ---------- Components ---------- */
/* Highlight and portrait side by side on wide screens, stacked below */
.feature {
  align-self: center;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 56rem) {
  .feature {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    padding-left: clamp(0rem, 8vw, 8rem);
  }
}

/* The one bold element: the highlight title */
.highlight { max-width: 46rem; }

.portrait {
  margin: 0;
  max-width: 34rem;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  -webkit-mask-image: var(--portrait-mask);
  mask-image: var(--portrait-mask);
}

.photo-credit { margin-top: 0.5rem; font-family: var(--font-ui); font-size: 0.75rem; color: var(--color-text-soft); }

@media (max-width: 55.99rem) {
  .portrait { max-width: 24rem; }
}

.highlight-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.25rem, 9vw, 8.5rem);
  font-variation-settings: "opsz" 72;
  line-height: 0.92;
  letter-spacing: -0.025em;
}

.highlight-subtitle {
  margin-top: clamp(1rem, 2.5vw, 1.75rem);
  max-width: 30ch;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-variation-settings: "opsz" 24;
  line-height: 1.3;
}

.highlight-meta {
  margin-top: 1.5rem;
  padding-top: 1rem;
  max-width: 30rem;
  border-top: 1px solid var(--color-line);
  color: var(--color-text-soft);
}

.highlight-cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 1.35rem;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--radius-box);
  transition: background-color 150ms ease;
}

.highlight-cta:hover { background: var(--color-accent-hover); }

.highlight-cta:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.notice {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 3rem;
  color: var(--color-text-soft);
  font-size: 0.875rem;
}
.notice > p { max-width: 34rem; }

/* Contact: dark text, underline in the accent (which a photo mode in tokens.css can change) */
.contact { color: var(--color-text); }
.contact a {
  color: inherit;
  font-weight: 600;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}
.contact a:hover { color: var(--color-accent); }
.contact a:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* ---------- Motion ---------- */
/* Single page-load moment, skipped with prefers-reduced-motion: the title settles into place */
@media (prefers-reduced-motion: no-preference) {
  .highlight-title {
    animation: settle 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .highlight-subtitle, .highlight-meta, .highlight-cta {
    animation: appear 600ms ease-out 450ms both;
  }
}

@keyframes settle {
  from { opacity: 0; letter-spacing: 0.02em; }
  to   { opacity: 1; letter-spacing: -0.025em; }
}

@keyframes appear {
  from { opacity: 0; }
  to   { opacity: 1; }
}
