:root {
  color-scheme: light;
  --paper: #f9f5eb;
  --ink: #21211e;
  --blue: #233fba;
  --line: #d7d0c2;
  --display: Georgia, 'Times New Roman', serif;
  font-family: 'Trebuchet MS', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #a13d27; outline-offset: 5px; }
.wrap { width: min(1200px, calc(100% - 6rem)); margin-inline: auto; }
.skip { position: absolute; inset: .5rem auto auto .5rem; background: white; padding: .75rem; translate: 0 -200%; z-index: 3; }
.skip:focus { translate: 0; }
.top, .bottom { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .75rem 2rem; padding-block: 1.4rem; }
.top { border-bottom: 1px solid var(--line); }
.bottom { border-top: 1px solid var(--line); }
.brand { font: bold 1.65rem/1.15 var(--display); letter-spacing: -.06em; text-decoration: none; }
.brand span { color: var(--blue); }
nav { display: flex; gap: .65rem 1.5rem; flex-wrap: wrap; }
nav a { font-weight: 700; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 2rem; padding-block: clamp(3.25rem, 7vw, 6.5rem); }
.intro .hand { width: fit-content; margin: 0 0 1rem; padding: .35rem .8rem .45rem; background: #f5d75a; rotate: -3deg; font: italic bold 1.35rem/1.1 var(--display); }
h1, h2, h3 { font-family: var(--display); }
h1 { margin: 0; font-size: clamp(3.4rem, 7.15vw, 7.35rem); font-weight: 700; line-height: .91; letter-spacing: -.085em; }
h1 em { color: var(--blue); }
.intro > p:not(.hand) { max-width: 34ch; margin: 1.5rem 0 1.45rem; font-size: clamp(1.06rem, 1.75vw, 1.25rem); line-height: 1.55; }
.pill { display: inline-block; background: var(--blue); color: #fff; padding: .72rem 1rem; border-radius: 99px; font-weight: 700; text-decoration: none; }
.pill:hover { background: #192b87; }
.collage { position: relative; padding: .5rem 14% 1.5rem 1rem; }
.print { display: block; margin: 0; padding: .68rem; background: #fffef9; text-decoration: none; box-shadow: 0 2px 7px #3325172b; }
.print img { aspect-ratio: 1.22; object-fit: cover; }
.print figcaption, .print span { display: block; padding: .66rem .2rem .26rem; font: italic bold 1.03rem/1.3 var(--display); }
.main-print { rotate: -6deg; }
.main-print img { object-position: 50% 36%; }
.small-print { position: absolute; width: 43%; right: 0; bottom: 0; rotate: 9deg; }
.small-print img { object-position: 50% 35%; }
.section { padding-block: 2.1rem 3.3rem; border-top: 1px solid var(--line); }
h2 { margin: 0 0 1.3rem; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: .98; letter-spacing: -.07em; }
.interests-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.feature { --image-width: 45%; position: relative; min-height: 15rem; display: flex; align-items: center; overflow: hidden; border-radius: 1.1rem; text-decoration: none; }
.feature-copy { width: calc(100% - var(--image-width)); padding: clamp(1.25rem, 3vw, 2rem); }
h3 { margin: 0; font-size: clamp(1.6rem, 3.1vw, 2.75rem); line-height: 1; letter-spacing: -.055em; }
.feature p, .other p { margin: .65rem 0 .85rem; line-height: 1.45; }
.feature img { position: absolute; inset: 0 0 0 auto; width: var(--image-width); height: 100%; object-fit: cover; }
.movies { color: #fff; background: var(--blue); }
.movies img { object-position: 56% 50%; }
.phones { background: #e5ed9c; }
.phones img { object-position: 50% 40%; }
.action { font-weight: bold; text-decoration: underline; }
.feature:hover .action, .other-grid a:hover h3 { text-decoration-style: wavy; }
.favorites { padding: 1.35rem clamp(1.2rem, 3vw, 1.85rem); border-radius: 1.1rem; }
.team-favorites { background: #f2d3c8; }
.book-favorites { background: #f5e29c; }
.favorites h3 { font-size: clamp(1.7rem, 2.7vw, 2.35rem); }
.favorites ul { display: flex; flex-wrap: wrap; gap: .55rem; padding: 0; margin: .85rem 0 0; list-style: none; }
.favorites a { display: flex; align-items: center; gap: .4rem; background: #fff9e8; border-radius: 99px; padding: .48rem .7rem; line-height: 1.1; font-weight: 700; text-decoration: none; min-height: 2.35rem; }
.favorites a:hover { text-decoration: underline; }
.favorites img { width: 1.35rem; height: 1.35rem; object-fit: contain; }
.snapshots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.snapshots .print { transition: rotate .16s ease; }
.snapshots .print:hover { rotate: -2deg; }
.phone-gallery { margin-top: 1.25rem; border-block: 1px solid var(--line); }
.phone-gallery summary { padding: .95rem 0; font-size: 1.1rem; font-weight: 700; }
.phone-gallery summary span { margin-left: .55rem; font-size: .95rem; font-weight: 400; }
.phone-photos { display: grid; grid-template-columns: repeat(5, 1fr); gap: .65rem; padding-bottom: .95rem; }
.phone-photos img { aspect-ratio: 3/4; object-fit: cover; border-radius: .3rem; }
.other-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.other-grid a { overflow: hidden; background: #fffaf0; border: 1px solid var(--line); border-radius: .8rem; text-decoration: none; }
.other-grid img { aspect-ratio: 2/1; object-fit: cover; object-position: center 37%; }
.other-grid div { padding: 1rem; }
.other-grid h3 { font-size: 1.65rem; text-decoration: underline; text-underline-offset: .15em; }
.other-grid p { margin-bottom: 0; }
dialog { max-width: min(960px, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: .6rem; border: none; border-radius: .65rem; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #181716d9; }
dialog form { display: flex; justify-content: end; }
dialog button { border: none; border-radius: 50%; width: 2.75rem; height: 2.75rem; background: var(--blue); color: white; font-size: 1.65rem; line-height: 1; margin: .1rem .1rem .55rem; }
dialog figure { margin: 0; }
dialog img { width: auto; max-width: 100%; max-height: 72dvh; object-fit: contain; margin-inline: auto; }
dialog figcaption { padding: .6rem .25rem .2rem; }
@media (max-width: 850px) {
  .wrap { width: calc(100% - 3rem); }
  .hero { gap: .75rem; }
  .wide-break { display: none; }
  .feature { --image-width: 36%; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 2rem); }
  .top { align-items: center; }
  nav { gap: .55rem .85rem; }
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-block: 3rem 2.65rem; }
  h1 { max-width: 11ch; font-size: clamp(3.35rem, 12vw, 5rem); }
  .collage { margin: 0 .7rem; width: min(calc(100% - 1.4rem), 420px); justify-self: center; }
  .section { padding-block: 1.75rem 2.65rem; }
  .interests-grid, .other-grid { grid-template-columns: 1fr; }
  .feature { --image-width: 39%; min-height: 12.4rem; }
  .snapshots { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .phone-photos { grid-template-columns: repeat(3, 1fr); }
  .other-grid img { aspect-ratio: 2.5/1; }
}
@media (prefers-reduced-motion: reduce) { .snapshots .print { transition: none; } }
