:root {
  --red: #cd2c32;
  --red-deep: #8f1a1f;
  --cream: #ece5d3;
  --ink: #0b0909;

  --edge: clamp(1.25rem, 5vw, 4.5rem);
  --measure: 34rem;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

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

body {
  margin: 0;
  min-height: 100svh;
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  line-height: 1.55;
  color: var(--cream);
  background-color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  z-index: 10;
  padding: 0.75rem 1.25rem;
  background: var(--cream);
  color: var(--ink);
  font-weight: 700;
  translate: 0 -120%;
}

.skip-link:focus-visible {
  translate: 0 0;
}

/* Shared photographic backdrop ------------------------------------------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--ink);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, transparent 25%, rgba(11, 9, 9, 0.75) 100%),
    linear-gradient(to bottom, rgba(11, 9, 9, 0.55) 0%, rgba(11, 9, 9, 0.35) 42%, rgba(11, 9, 9, 0.92) 100%);
}

.backdrop--tinted::after {
  background:
    radial-gradient(130% 80% at 50% 10%, transparent 0%, rgba(11, 9, 9, 0.7) 100%),
    linear-gradient(to bottom, rgba(143, 26, 31, 0.34) 0%, rgba(143, 26, 31, 0.1) 45%, transparent 75%),
    linear-gradient(to bottom, rgba(11, 9, 9, 0.74) 0%, rgba(11, 9, 9, 0.62) 30%, rgba(11, 9, 9, 0.88) 70%, rgba(11, 9, 9, 0.97) 100%);
}

/* Logo lockup ------------------------------------------------------------ */

.mark {
  display: block;
  width: auto;
}

.lockup {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.lockup__rule {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 44rem;
}

.lockup__rule::after {
  content: "";
  flex: 1;
  height: 2px;
  background: currentColor;
  opacity: 0.28;
}

.eyebrow {
  margin: 0;
  font-size: clamp(0.75rem, 0.7rem + 0.3vw, 0.9375rem);
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Spells out the mark, as the white paper masthead does. Tracked a little
   tighter than the short eyebrows so it survives a narrow phone, and allowed
   to wrap rather than force a horizontal scrollbar when it cannot. */
.eyebrow--name {
  letter-spacing: 0.24em;
  white-space: normal;
  color: rgba(236, 229, 211, 0.92);
}

.eyebrow--accent {
  color: var(--red);
  /* Lift the brand red off the photograph so it stays legible. */
  filter: brightness(1.45);
}

/* Landing page ----------------------------------------------------------- */

.landing {
  display: grid;
  grid-template-rows: 1fr;
  min-height: 100svh;
  padding: clamp(2.5rem, 7vh, 5rem) var(--edge) clamp(1.5rem, 4vh, 2.5rem);
}

.landing__body {
  align-self: end;
}

.landing .mark {
  width: clamp(11rem, 30vw, 19rem);
  margin-bottom: 1.75rem;
}

.landing__tagline {
  margin: 1.5rem 0 0;
  max-width: 44rem;
  font-size: clamp(1.375rem, 0.95rem + 1.85vw, 2.5rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Calls to action -------------------------------------------------------- */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2.25rem;
  padding: 1rem 1.6rem;
  border: 1px solid transparent;
  background: var(--red);
  color: var(--cream);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
    translate 0.25s var(--ease);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.cta-row .cta {
  margin-top: 0;
}

/* One red action, the rest quieter, so the row reads as a hierarchy rather
   than three competing buttons. */
.cta--secondary {
  background: rgba(236, 229, 211, 0.08);
  border-color: rgba(236, 229, 211, 0.35);
  backdrop-filter: blur(6px);
}

.cta--secondary:hover {
  background: rgba(236, 229, 211, 0.16);
  border-color: rgba(236, 229, 211, 0.6);
}

.cta svg {
  flex: none;
  transition: translate 0.25s var(--ease);
}

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

.cta:hover svg {
  translate: 4px 0;
}

/* Links page ------------------------------------------------------------- */

.links-page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(2rem, 6vh, 3.5rem);
  min-height: 100svh;
  padding: clamp(2.5rem, 8vh, 4.5rem) var(--edge) clamp(2rem, 5vh, 3rem);
}

.column {
  width: min(100%, 32rem);
  margin-inline: auto;
}

.profile {
  text-align: center;
}

.profile .mark {
  width: clamp(8.5rem, 26vw, 11.5rem);
  margin-inline: auto;
}

.profile__region {
  margin: 1.1rem 0 0;
  font-size: clamp(0.8125rem, 0.75rem + 0.3vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.42em;
  /* Optical correction: tracking adds trailing space on the last glyph. */
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--red);
  filter: brightness(1.45);
}

.profile__avatar {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(236, 229, 211, 0.3);
}

.profile__title {
  margin: 1.4rem 0 0;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.profile__tagline {
  margin: 0.6rem auto 0;
  max-width: 26rem;
  color: rgba(236, 229, 211, 0.75);
  text-wrap: pretty;
}

/* Link list -------------------------------------------------------------- */

.links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.links__heading {
  margin: 1.4rem 0 0.15rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: rgba(236, 229, 211, 0.55);
  text-align: center;
}

.links__heading:first-child {
  margin-top: 0;
}

.link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.35rem;
  background: rgba(236, 229, 211, 0.07);
  border: 1px solid rgba(236, 229, 211, 0.22);
  color: var(--cream);
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: background-color 0.22s var(--ease), border-color 0.22s var(--ease),
    translate 0.22s var(--ease);
}

.link:hover {
  background: rgba(236, 229, 211, 0.14);
  border-color: rgba(236, 229, 211, 0.45);
  translate: 0 -2px;
}

.link--primary {
  background: var(--red);
  border-color: var(--red);
}

.link--primary:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
}

.link--solid {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}

.link--solid:hover {
  background: #fff;
  border-color: #fff;
}

.link__text {
  flex: 1;
  min-width: 0;
}

.link__label {
  display: block;
  font-weight: 700;
  line-height: 1.3;
}

.link__description {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.875rem;
  line-height: 1.35;
  opacity: 0.72;
}

.link__thumb {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 4px;
  object-fit: cover;
}

.link__chevron {
  flex: none;
  opacity: 0.5;
  transition: translate 0.22s var(--ease), opacity 0.22s var(--ease);
}

.link:hover .link__chevron {
  opacity: 1;
  translate: 3px 0;
}

/* Socials ---------------------------------------------------------------- */

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.social {
  display: grid;
  place-items: center;
  width: 2.875rem;
  height: 2.875rem;
  border-radius: 50%;
  color: var(--cream);
  transition: background-color 0.22s var(--ease), translate 0.22s var(--ease);
}

.social:hover {
  background: rgba(236, 229, 211, 0.14);
  translate: 0 -2px;
}

/* Status + footers ------------------------------------------------------- */

.status {
  margin: 0;
  padding: 2rem 0;
  text-align: center;
  color: rgba(236, 229, 211, 0.6);
}

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 3rem 0;
}

.loading__spinner {
  /* A span is inline by default, where width and height do not apply. */
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid rgba(236, 229, 211, 0.22);
  border-top-color: var(--cream);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.loading__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes spin {
  to {
    rotate: 1turn;
  }
}

/* A spinner that cannot spin conveys nothing, so show the words instead. */
@media (prefers-reduced-motion: reduce) {
  .loading__spinner {
    display: none;
  }

  .loading__label {
    position: static;
    width: auto;
    height: auto;
    clip-path: none;
    color: rgba(236, 229, 211, 0.6);
  }
}

.page-footer {
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(236, 229, 211, 0.5);
}

.page-footer p {
  margin: 0.35rem 0;
}

.page-footer a {
  color: inherit;
  text-underline-offset: 3px;
}

.page-footer a:hover {
  color: var(--cream);
}

/* Entrance --------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: rise 0.7s var(--ease) both;
  }

  @keyframes rise {
    from {
      opacity: 0;
      translate: 0 12px;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Backdrop image element ------------------------------------------------- */

.backdrop__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal, center);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Confirmation pages have one short message, which reads better centred than
   anchored bottom-left like the landing page. */
.landing--centred .landing__body {
  align-self: center;
  margin-inline: auto;
  text-align: center;
}

.landing--centred .mark {
  margin-inline: auto;
}

.landing--centred .landing__tagline {
  margin-inline: auto;
}

.landing--centred .cta-row {
  justify-content: center;
}

.landing--centred .lockup__rule {
  justify-content: center;
}

.landing--centred .lockup__rule::after {
  display: none;
}
