:root {
  --red: #c2191b;
  --paper: #fff;
  --ink: #000;
  --text: #333;
  --sky-light: #f8fcff;
  --sky: #9dcef7;
  --sans: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans", "Liberation Sans", sans-serif;
  --serif: Georgia, "Bitstream Charter", "Charis SIL", serif;
  --gutter: clamp(1rem, 3.5vw, 1.75rem);
  color-scheme: light;
}

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

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

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: clamp(0.75rem, 4vw, 3rem);
  background: var(--red);
  color: var(--text);
  font: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem)/1.65 var(--serif);
}

::selection {
  background: var(--red);
  color: var(--paper);
}

.sheet {
  container-type: inline-size;
  width: 100%;
  max-width: 61.25rem;
  margin-inline: auto;
  padding: clamp(0.625rem, 2vw, 1.25rem);
  background: var(--paper);
}

.hero {
  /* 250 × 198 is the portrait's native size: never scale it up. */
  --portrait-h: clamp(6.5rem, 21cqi, 12.375rem);
  --portrait-w: calc(var(--portrait-h) * 250 / 198);
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  border-top: 4px solid var(--ink);
  border-bottom: 10px solid var(--ink);
  /* The portrait's own backdrop is flat --sky, so the gradient must end where the portrait starts. */
  background: linear-gradient(90deg, var(--sky-light), var(--sky) calc(100% - var(--portrait-w)));
}

.hero-text {
  flex: 1;
  min-width: 0;
  align-self: center;
  padding: 1rem 0 1rem var(--gutter);
}

h1 {
  margin: 0;
  color: var(--ink);
  font: 700 clamp(1.75rem, 7.5cqi, 4.5rem)/0.95 var(--sans);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.tagline {
  margin: 0.5em 0 0;
  font-size: clamp(0.9375rem, 0.75rem + 1.2cqi, 1.25rem);
  font-style: italic;
  line-height: 1.3;
  text-wrap: balance;
}

.portrait {
  display: block;
  flex: none;
  width: var(--portrait-w);
  height: var(--portrait-h);
}

main {
  padding: clamp(1.75rem, 5vw, 3rem) var(--gutter) clamp(1.25rem, 3vw, 2rem);
}

.intro {
  max-width: 38rem;
  margin: 0 0 clamp(2rem, 5vw, 3rem);
}

.details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
  gap: 2rem clamp(1.5rem, 4vw, 3rem);
}

.details section {
  padding-top: 0.75rem;
  border-top: 2px solid var(--ink);
}

h2 {
  margin: 0 0 0.5rem;
  color: var(--ink);
  font: 700 1.0625rem/1.3 var(--sans);
}

.details ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.details li + li {
  margin-top: 0.3em;
}

.imdb {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.7em 1.1em;
  background: var(--ink);
  color: var(--paper);
  font: 700 0.9375rem/1.2 var(--sans);
  text-decoration: none;
}

.imdb:hover {
  background: var(--red);
}

.imdb:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
