/* Temporary stub: the main design's palette and type, cut down to photo, name and title. */

/* Source Serif 4 (Adobe, SIL Open Font License 1.1): see fonts/source-serif-4-OFL.txt */
@font-face {
  font-family: "Source Serif 4";
  src: url(/fonts/source-serif-4-wght.woff2) format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

/* Palette taken from the portrait: the wall (paper) and the olive hoodie (accent). */
:root {
  --bg: #f3f0eb;
  --ink: #1c1b18;
  --ink-2: #4b473f;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

/* Dark follows the system; no switch on the stub. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #2a2825;
    --ink: #e4dfd5;
    --ink-2: #b9b2a6;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { background: var(--bg); }
html, body { margin: 0; min-height: 100%; }

body {
  color: var(--ink);
  background: var(--bg);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.card {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 48px 22px;
  text-align: center;
}

.portrait { display: block; width: min(300px, 80vw); height: auto; }

h1 {
  margin: 20px 0 0;
  font: 500 38px/1.1 var(--serif);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.aka {
  color: var(--ink-2);
  font-weight: 400;
  font-size: 0.55em;
  letter-spacing: 0;
  white-space: nowrap;
}

.role {
  margin: 12px 0 0;
  color: var(--ink-2);
  text-wrap: balance;
}

@media (min-width: 900px) {
  .portrait { width: clamp(340px, 30vw, 440px); }
  h1 { margin-top: 24px; font-size: clamp(46px, 4vw, 56px); }
  .role { font-size: 17px; }
}

/* Short laptop windows (e.g. 1366x650): everything stays on one screen. */
@media (min-width: 900px) and (max-height: 760px) {
  .portrait { width: 320px; }
  h1 { font-size: 44px; }
}
