@font-face {
  font-family: "Metropolis";
  src: url("../fonts/Metropolis-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Metropolis";
  src: url("../fonts/Metropolis-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Metropolis";
  src: url("../fonts/Metropolis-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #faf9f6;
  --black: #0b0b0b;
  --hover-black: #1a1a1a;
  --border: rgba(11, 11, 11, 0.72);
  --body-copy: rgba(11, 11, 11, 0.68);

  --button-width: 320px;
  --button-height: 54px;
  --button-radius: 3px;
  --button-font-size: 12px;
  --button-letter-spacing: 0.16em;

  /* Shared brand anchors: use these on every standard page. */
  --logo-anchor-top: clamp(58px, 10.5vh, 96px);
  --logo-width: clamp(202px, 21vw, 244px);
  --logo-heading-gap: 10px;
}

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

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

html {
  background: var(--background);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--background);
  color: var(--black);
  font-family: "Metropolis", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 0, 0, 0.018), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(0, 0, 0, 0.014), transparent 32%);
  opacity: 0.25;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding:
    max(18px, env(safe-area-inset-top))
    20px
    max(15px, env(safe-area-inset-bottom));
}

.main {
  width: min(100%, var(--main-width));
  margin: 0 auto;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding-top: var(--logo-anchor-top);
}

.brand {
  display: flex;
  justify-content: center;
  width: 100%;
}

.brand-logo {
  display: block;
  width: var(--logo-width);
  height: auto;
  object-fit: contain;
}

.editorial-heading {
  font-family: "Bodoni 72", Didot, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.035em;
}

@media (min-width: 768px) {
  .page {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 640px) {
  :root {
    --button-width: 296px;
    --button-height: 48px;
    --button-font-size: 11px;
  }

  :root {
    --logo-anchor-top: clamp(34px, 7vh, 58px);
    --logo-width: clamp(178px, 46vw, 205px);
  }

  .page {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-height: 736px) {
  :root {
    --button-height: 42px;
  }

  :root {
    --logo-anchor-top: clamp(18px, 3.5vh, 32px);
    --logo-width: clamp(156px, 19.5vh, 188px);
  }

  .page {
    padding-top: max(10px, env(safe-area-inset-top));
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
}
