:root {
  --paper: #edebe4;
  --ink: #1d1c1a;
  --rule: #b8b5ac;
  --on-image: #ffffff;
  --gutter: clamp(16px, 4vw, 48px);
  --column: 960px;
  /* Side padding that centres a --column-wide column, never less than the gutter */
  --inset: max(var(--gutter), calc((100% - var(--column)) / 2));
  --font: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* Backdrop: a fixed layer rather than background-attachment: fixed, which iOS ignores */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%; /* keep the plant in frame on narrow screens */
  display: block;
}

/* Hero: one screen of image with the name over the darker table edge */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--inset) clamp(32px, 7vh, 72px);
  color: var(--on-image);
  background: linear-gradient(to top, rgb(0 0 0 / 0.45), rgb(0 0 0 / 0) 40%);
}

.hero__name {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero__role {
  margin: 12px 0 0;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  letter-spacing: 0.06em;
}

.hero__scroll {
  font-size: 1.5rem;
  line-height: 1;
  text-decoration: none;
  padding: 8px;
}

/* Contact: solid panel that scrolls up over the fixed image */

.contact {
  background: var(--paper);
  padding: clamp(64px, 12vh, 120px) var(--inset);
  min-height: 60vh;
}

.contact__heading {
  margin: 0 0 24px;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact__link {
  font-weight: 300;
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  overflow-wrap: anywhere;
}

.contact__link:hover,
.contact__link:focus-visible { border-bottom-color: var(--ink); }
