/* ==========================================================================
   HERBERT — brand launch landing page
   Mobile-first, dependency-free CSS.

   Layout principle: everything is left-aligned to a single margin, so the
   page reads down one consistent edge. Nothing is centred except the
   hero lockup, which is artwork rather than text.
   ========================================================================== */

/* TYPEFACES — both self-hosted, both generated from the exact files
   supplied in "Herbert Assets.zip". No third-party font service.

   Pavilion Regular — primary / display. Used only for the two large
   display lines; the wordmark and monograms are SVG artwork.
   Archivo — secondary / UI, per the guidelines. */

@font-face {
  font-family: 'Pavilion';
  src: url('../assets/fonts/Pavilion-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/Archivo-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/Archivo-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --obsidian:  #000000;
  --porcelain: #F5F5F5;
  --stone:     #BFB7AC;
  --violet:    #D7CBFF;

  --edge: clamp(1.5rem, 6vw, 5rem);   /* the single left margin */
  --gap:  clamp(0.5rem, 1.5vw, 0.75rem);
}

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

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

/* Some people get motion sickness from scroll/transition animation. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  -webkit-tap-highlight-color: transparent;
  overflow-wrap: break-word;
  background: var(--porcelain);
  color: var(--obsidian);
  font-family: 'Archivo', Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; }

::selection {
  background: var(--violet);
  color: var(--obsidian);
}

/* --------------------------------------------------------------------------
   NAV
   -------------------------------------------------------------------------- */

.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 3vw, 1.75rem) var(--edge);
  color: var(--obsidian);
  gap: 1.5rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--obsidian);
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--obsidian);
  text-underline-offset: 4px;
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--edge);

  background-color: var(--violet);
  background-image: url('../assets/images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__lockup {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.75rem, 5vw, 2.75rem);
}

.hero__logo { width: min(78vw, 900px); height: auto; }

.hero__anchor {
  width: clamp(11px, 1.4vw, 16px);
  height: auto;
}

/* --------------------------------------------------------------------------
   ABOUT — left aligned to the page margin.
   -------------------------------------------------------------------------- */

.about {
  padding: clamp(4.5rem, 12vw, 9rem) var(--edge) clamp(3.5rem, 9vw, 6rem);
  background: var(--porcelain);
}

.about__essence {
  font-family: 'Pavilion', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
  max-width: 18ch;
  margin-left: -0.04em;   /* optical: aligns the A to the margin */
}

/* Set small and on a tight measure — editorial rather than web-body. */
.about__line {
  max-width: 46ch;
  margin: 0;
  font-size: clamp(0.8125rem, 0.95vw, 0.875rem);
  line-height: 1.65;
  letter-spacing: 0.005em;
  color: var(--obsidian);
}

/* --------------------------------------------------------------------------
   LANDSCAPE BAND — one wide image, full bleed.

   DROP-IN: replace assets/images/band.jpg to change it.
   -------------------------------------------------------------------------- */

.band {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 5 / 2;
  display: flex;
  align-items: flex-end;
  padding: clamp(2rem, 5vw, 3rem) var(--edge);
  background-color: var(--stone);
  background-image: url('../assets/images/band.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* A soft Obsidian scrim rising from the base. The beach shot is high-key
   and busy, so small type needs a quiet field to sit on. It fades out well
   below the figures, so the image still reads as itself. */
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
              rgba(0, 0, 0, 0.8) 0%,
              rgba(0, 0, 0, 0.45) 16%,
              rgba(0, 0, 0, 0) 42%);
}

/* The statement, set small in the lower corner — quiet, like a caption
   rather than a headline. */
.band__statement {
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: 'Pavilion', Georgia, serif;
  font-size: clamp(1rem, 1.45vw, 1.375rem);
  line-height: 1.45;
  color: var(--porcelain);
}

@media (max-width: 640px) {
  /* Taller on phones so the image still has presence behind the type. */
  .band { aspect-ratio: 3 / 4; }
}

/* --------------------------------------------------------------------------
   CTA LINKS — underlined text, never a filled box. Quieter, and in step
   with "quiet branding only".
   -------------------------------------------------------------------------- */

.cta-link {
  display: inline-block;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--obsidian);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--stone);
  transition: border-color 0.25s ease;
}

/* A larger variant for the hero's primary action. */
.cta-link--lg {
  font-size: clamp(0.8125rem, 1.05vw, 0.9375rem);
  letter-spacing: 0.22em;
  padding-bottom: 6px;
}

.cta-link:hover,
.cta-link:focus-visible { border-bottom-color: var(--obsidian); }

.cta-link:focus-visible {
  outline: 1px solid var(--obsidian);
  outline-offset: 6px;
}

.cta-link--dark {
  color: var(--porcelain);
}

.cta-link--dark:hover,
.cta-link--dark:focus-visible { border-bottom-color: var(--porcelain); }

.cta-link--dark:focus-visible { outline-color: var(--violet); }

/* Sign-up sits centred at the base of the hero — the only centred text on
   the page, matching the centred wordmark above it. Stone Taupe would all
   but vanish on Violet Ash, so the rule is a fine Obsidian tint instead. */
/* Full-width wrapper, so the link centres without its width being capped
   at half the hero (which is what left:50% would do, forcing a wrap). */
.hero__action {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(2.5rem, 6vw, 4rem);
  z-index: 2;
  padding: 0 var(--edge);
  text-align: center;
}

.hero__action .cta-link {
  border-bottom-color: rgba(0, 0, 0, 0.4);   /* Obsidian */
  /* Letter-spacing leaves a trailing gap after the final letter, which
     throws centred small caps slightly left. This nudges them back. */
  text-indent: 0.22em;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   TRIO — three images, one proportion, evenly set.
   -------------------------------------------------------------------------- */

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: var(--gap);
}

.trio__item {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--stone);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.trio__item--1 { background-image: url('../assets/images/photo-1.jpg'); }
.trio__item--2 { background-image: url('../assets/images/photo-2.jpg'); background-color: var(--violet); }
.trio__item--3 { background-image: url('../assets/images/photo-3.jpg'); background-color: var(--obsidian); }

/* --------------------------------------------------------------------------
   CLOSING BLOCK — one continuous black field holding the launch moment
   and the footer, separated by a hairline.
   -------------------------------------------------------------------------- */

/* Obsidian closes the page — per the guidelines it is "not used for
   decoration, but for structure", and it anchors the composition. */
.closing {
  background: var(--obsidian);
  color: var(--porcelain);
  padding: clamp(4.5rem, 13vw, 9rem) var(--edge) clamp(2rem, 5vw, 2.75rem);
}

/* --- the launch statement --------------------------------------------- */

.closing__launch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(2.5rem, 6vw, 3.5rem);
  padding-bottom: clamp(4rem, 10vw, 7rem);
}

.closing__drop {
  margin: 0 0 clamp(1rem, 2.5vw, 1.5rem);
  margin-left: -0.12em;   /* optical: cancels the trailing letter-space */
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
}

.closing__when {
  font-family: 'Pavilion', Georgia, serif;
  font-size: clamp(1.625rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  margin: 0 0 clamp(0.75rem, 1.75vw, 1rem);
}

.closing__where {
  margin: 0 0 0 -0.1em;   /* optical: cancels the trailing letter-space */
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
}

/* On wider screens the statement and the action sit on one line,
   aligned to the same baseline. */
@media (min-width: 820px) {
  .closing__launch {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
  }
}

/* --- the footer row ---------------------------------------------------- */

.closing__base {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  padding-top: clamp(1.75rem, 4vw, 2.25rem);
  border-top: 1px solid rgba(191, 183, 172, 0.3);   /* Stone Taupe */
}

.closing__stamp {
  width: clamp(30px, 3vw, 36px);
  height: auto;
  flex: none;
}

.closing__social {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--porcelain);
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(191, 183, 172, 0.5);   /* Stone Taupe */
  transition: border-color 0.25s ease, color 0.25s ease;
}

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

/* Pushes the copyright to the far right, so the row reads
   stamp — Instagram ................................. © Herbert 2026 */
.closing__copy {
  margin: 0 0 0 auto;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--stone);
}

@media (max-width: 520px) {
  .closing__base {
    flex-wrap: wrap;
    row-gap: 1.25rem;
  }
  .closing__copy {
    margin-left: 0;
    flex-basis: 100%;
  }
}
