/* Fonts are stored on this site (SIL Open Font Licence), so no request goes to Google or anyone else. */
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #1c1c1c; }

.card {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: #f4f1ea;
}

/* The photograph fills the screen; the phone gets its own portrait crop. */
.photo, .photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.photo img { object-fit: cover; object-position: center 40%; }

/* A dark fade rising from the bottom keeps the lettering legible. */
.scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.6) 0%, rgba(10,10,10,0.18) 45%, rgba(10,10,10,0.04) 100%);
}

.content {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem clamp(1.5rem, 5vw, 4.5rem);
}

h1 {
  margin: 0 0 0.9rem;
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 450;
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: 0.02em;
}

.role {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.8125rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #e4e0d6;
}

.links {
  display: flex;
  gap: 1.75rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
/* The red underline is the only colour on the page, so it draws the eye to the links. */
.links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #f4f1ea;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
  text-decoration-color: #e03c31;
}
.links a:hover, .links a:focus-visible { color: #fff; text-decoration-color: #ff5a4e; }
.links a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* Phones: stack name above links at the foot of the screen, with a deeper fade behind them. */
@media (max-width: 700px) {
  .content {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 1.25rem;
    padding-bottom: 2.5rem;
  }
  .scrim {
    background: linear-gradient(to top, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.4) 35%, rgba(10,10,10,0.05) 65%);
  }
}
