/* Roger Hill — a quiet, photographic memorial. No build step or dependencies. */

:root {
  color-scheme: light;
  --paper: #f5f2eb;
  --ink: #30392c;
  --olive: #58624e;
  --rule: #cdcfc2;
  --page-width: 1120px;
}

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

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

.page {
  width: min(var(--page-width), calc(100% - 112px));
  margin-inline: auto;
}

.masthead {
  padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 56px);
}

.dedication {
  margin: 0 0 14px;
  color: var(--olive);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 7.4vw, 96px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.photographs {
  display: grid;
  grid-template-columns: minmax(0, 680fr) minmax(0, 320fr);
  align-items: end;
  gap: clamp(32px, 7vw, 120px);
}

.photograph {
  min-width: 0;
  margin: 0;
}

.photograph--portrait {
  border: 1px solid #d9d7cf;
}

picture,
img {
  display: block;
}

img {
  width: 100%;
  height: auto;
}

.footer {
  margin-top: clamp(40px, 5vw, 72px);
  padding-block: 22px 32px;
  border-top: 1px solid var(--rule);
  color: var(--olive);
  font-size: 12px;
  letter-spacing: 0.025em;
}

.footer p {
  margin: 0;
}

.footer span {
  padding-inline: 10px;
}

/* The only control is a native skip link; all photographs are available without JS. */
.skip-link {
  position: absolute;
  top: 12px;
  left: 20px;
  z-index: 1;
  padding: 12px 18px;
  color: var(--paper);
  background: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.skip-link:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}

.skip-link:focus-visible {
  outline-offset: 3px;
}

@media (max-width: 899px) {
  .page {
    width: calc(100% - 64px);
  }
}

@media (max-width: 699px) {
  .page {
    width: calc(100% - 40px);
  }

  .masthead {
    padding-block: 44px 32px;
  }

  .dedication {
    margin-bottom: 10px;
  }

  h1 {
    font-size: clamp(48px, 13vw, 72px);
  }

  .photographs {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .photograph--portrait {
    width: min(78%, 320px);
    justify-self: end;
  }

  .footer {
    margin-top: 36px;
    padding-block: 18px 26px;
  }
}

/* There is intentionally no animation, parallax, or smooth scrolling. */
@media print {
  :root {
    --paper: #fff;
  }

  .page {
    width: 100%;
  }

  .masthead {
    padding-top: 0;
  }

  .photograph {
    break-inside: avoid;
  }

  .skip-link {
    display: none;
  }
}
