/* ─── Fonts (trial versions) ───────────────────────────────────────── */

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

@font-face {
  font-family: "Signal";
  src: url("./fonts/Signal-Light-Trial.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ─── Tokens (tuned to match mockup) ───────────────────────────────── */

:root {
  --bg: #7d934a;            /* olive — matched against mockup */
  --ink: #0e0d09;           /* near-black, warm */
  --body-col: 45ch;         /* body paragraph width */
  --body-inset: clamp(1rem, 3.5vw, 3.5rem); /* horizontal inset from left edge */
  --right-col: clamp(15rem, 24vw, 22rem); /* shared right column for quote + footer */
}

/* ─── Reset ────────────────────────────────────────────────────────── */

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

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Signal", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  line-height: 1.42;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;          /* no page scroll on desktop */
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Page frame ───────────────────────────────────────────────────── */

.page {
  position: relative;
  height: 100vh;
  height: 100dvh;
  padding: clamp(1.75rem, 3vw, 3rem) clamp(1.25rem, 2.6vw, 2.5rem) 1.5rem;
  display: grid;
  /* wordmark / content (auto height) / spacer / footer */
  grid-template-rows: auto auto 1fr auto;
  overflow: hidden;
}

/* ─── Wordmark ─────────────────────────────────────────────────────── */

.wordmark {
  margin: 0 0 clamp(1.5rem, 3vw, 3rem);
  padding: 0;
  line-height: 0;
  display: flex;
  justify-content: flex-start;
}

.wordmark img {
  width: auto;
  height: auto;
  max-width: 95%;
  max-height: clamp(22vh, 30vh, 36vh);  /* logo can breathe now body is shorter */
  display: block;
}

/* ─── Body + pull quote (anchored right column) ────────────────────── */

.content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  max-width: 100%;
}

.content__body {
  font-family: "Signal", sans-serif;
  font-weight: 300;
  font-size: clamp(0.88rem, 0.95vw, 1rem);
  line-height: 1.5;
  letter-spacing: 0.005em;
  width: var(--body-col);
  max-width: 100%;
  margin-left: var(--body-inset);
  display: flex;
  flex-direction: column;
  gap: 1em;
  /* default flex-end inherited from .content — quote will share that bottom */
}

.content__quote {
  width: var(--right-col);
  /* explicit: bottom-aligned with body's bottom (same flex row) */
  align-self: flex-end;
}

.content__quote p {
  font-family: "Affairs", "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(1.35rem, 1.7vw, 2rem);
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* ─── Footer — locked to same right column as quote ────────────────── */

.page__footer {
  display: flex;
  justify-content: flex-end;
  padding-top: clamp(1rem, 2vw, 2rem);
}

.page__footer nav {
  width: var(--right-col);          /* same width as quote */
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  font-family: "Signal", sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page__footer nav a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s ease;
}

.page__footer nav a:hover,
.page__footer nav a:focus-visible {
  text-decoration: none;
}

/* ─── Mobile (≤ 720px) ─────────────────────────────────────────────── */

@media (max-width: 720px) {
  /* Allow natural scroll on phones where 100vh is too tight (iPhone mini etc) */
  body {
    overflow: auto;
  }

  /* Natural content flow on mobile: no min-height fill, explicit gaps.
     Lets content sit where it lands instead of being pushed to bottom. */
  .page {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: auto;
    padding: 2.5rem 1.25rem 3.5rem;
    overflow: visible;
  }

  .content {
    display: contents;
  }

  /* Generous gap between wordmark and body — matches reference */
  .wordmark {
    margin: 0 0 5.5rem;
  }

  .wordmark img {
    max-width: 100%;
    max-height: none;
  }

  /* Body justified for that block-of-text feel from the mockup */
  .content__body {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    text-align: justify;
    hyphens: auto;
  }

  /* Quote flows below body with measured gap, anchored right */
  .content__quote {
    width: 100%;
    margin-top: 4rem;
    margin-bottom: 3rem;
    padding-top: 0;
    align-self: flex-start;
  }

  .content__quote p {
    font-family: "Affairs", "Times New Roman", serif;
    font-size: clamp(1.4rem, 6.5vw, 2rem);
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-transform: uppercase;
    /* anchor block to right side; size to fit the widest line ("BUILDING BRANDS") */
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    text-align: left;
  }

  /* Footer follows content flow, stays bottom-left */
  .page__footer {
    width: 100%;
    justify-content: flex-start;
    padding-top: 0;
  }

  .page__footer nav {
    width: auto;
    gap: 1.5rem;
    font-size: 0.75rem;
  }
}

/* ─── Tablet (721–1024px) ──────────────────────────────────────────── */

@media (min-width: 721px) and (max-width: 1024px) {
  .content {
    gap: 3rem;
  }
  .content__body {
    max-width: 32ch;
    font-size: 0.85rem;
  }
}
