/* Aastroem Group front door. Warm paper, black type, one mark:
   the red hanko stamp, and Andreas in watercolour on the same paper. */
:root {
  --paper: #F3EFE8;      /* warm paper; the portrait is toned to match */
  --ink: #141414;
  --ink-soft: #3E3B37;
  --ink-quiet: #7A746B;
  --rule: #DDD6CA;
  --face: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(20px, 6vw, 96px);
  /* Golden-ratio sizing (phi = 1.618). The headline sets the scale.
     stamp = headline / phi; space above the logo = stamp / phi;
     space from the logo to the headline = stamp x phi = the headline size.
     The stamp is 52% of the lockup's width (lockup viewBox 1000 x 802). */
  --phi: 1.618;
  --h1: clamp(52px, 8.2vw, 132px);
  --stamp: calc(var(--h1) / var(--phi));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0; min-height: 100vh;
  background: var(--paper); color: var(--ink);
  font-family: var(--face); font-weight: 400; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: 0 var(--gutter);
  padding-block: env(safe-area-inset-top, 0px) env(safe-area-inset-bottom, 0px);
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }

.top, main, footer { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
/* The network behind the paper (network.js). ?bg=paper turns it off. */
canvas.network { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.top { display: flex; justify-content: space-between; align-items: flex-start; padding-top: calc(var(--stamp) / var(--phi)); }
.logo img { display: block; width: max(72px, calc(var(--stamp) / 0.52)); height: auto; }
.top-link { font-size: 15px; text-underline-offset: 5px; }

.hero { padding-top: calc(var(--stamp) * var(--phi)); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 72px); align-items: end; }
.portrait { display: block; width: clamp(220px, 24vw, 340px); height: auto; margin-bottom: -24px; }
h1 {
  margin: 0; font-weight: 800; letter-spacing: -0.04em; line-height: 0.96;
  font-size: var(--h1); max-width: 15ch; text-wrap: balance;
}
.lead {
  margin: 32px 0 0; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.32;
  color: var(--ink-soft); max-width: 34ch; text-wrap: pretty;
}

.themes {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(64px, 10vh, 112px); padding-top: 32px; border-top: 1px solid var(--rule);
}
.themes h2 { margin: 0 0 10px; font-size: 18px; font-weight: 800; letter-spacing: -0.005em; }
.themes p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.6; max-width: 36ch; }

.close {
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
  margin-top: clamp(64px, 10vh, 112px); padding-top: 32px; border-top: 1px solid var(--rule);
}
.name { margin: 0; font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.role { margin: 6px 0 24px; color: var(--ink-quiet); font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.button {
  display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none;
  font-weight: 500; font-size: 16px; padding: 14px 28px; border-radius: 2px;
}
.button:hover { background: #000; }
.link { font-size: 16px; text-underline-offset: 6px; }

footer { padding: clamp(48px, 8vh, 80px) 0 40px; }
footer p { margin: 0; color: var(--ink-quiet); font-size: 13.5px; }

@media (max-width: 900px) {
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  /* On a phone the stamp takes the headline size itself (one step of phi up
     from the desktop rule), so the logo holds its own on a narrow screen. */
  :root { --h1: clamp(46px, 13vw, 64px); --stamp: var(--h1); }
  .hero { grid-template-columns: 1fr; }
  .portrait { width: 62%; justify-self: end; margin: -8px 0 -40px; order: -1; }
  .themes { grid-template-columns: 1fr; gap: 28px; }
  .themes p { max-width: none; }
}
