/* hi'amba — landing page
   Type: Kuhlman (Adobe Fonts, variable: wdth 50–125 + SEED 0–2) for the headline,
         Exposure -40 (205TF, self-hosted) for the announcement lines,
         DM Mono (self-hosted) for utility text. */

@font-face {
  font-family: "DM Mono";
  src: url("/assets/fonts/dm-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Mono";
  src: url("/assets/fonts/dm-mono-400-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Exposure -40";
  src: url("/assets/fonts/205TF-Exposure-%5B-40%5D.woff2") format("woff2"),
       url("/assets/fonts/205TF-Exposure-%5B-40%5D.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Exposure -40";
  src: url("/assets/fonts/205TF-Exposure-%5B-40%5DItalic.woff2") format("woff2"),
       url("/assets/fonts/205TF-Exposure-%5B-40%5DItalic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --cream: #f5f1e9;
  --green: #05382e;
  --green-bright: #49b170;
  --green-deep: #0b2017;

  --font-display: "kuhlman-vf", "Kuhlman", "Haettenschweiler", "Arial Narrow", Impact, sans-serif;
  --font-serif: "Exposure -40", Georgia, "Times New Roman", serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 36px at a 1512px viewport, as drawn */
  --pad: clamp(1.25rem, 2.38vw, 2.25rem);
  --gutter: clamp(1.5rem, 3vw, 3.5rem);
  /* left column: 28.3% matches the drawing, with a floor so the copy column
     keeps its measure down to the stacked breakpoint */
  --col: max(21rem, 28.3%);
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--green); color: var(--cream); }

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-thickness: from-font;
}
a:hover { text-decoration-color: color-mix(in srgb, var(--green) 45%, transparent); }
a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------------------------------------------------------------- layout */

.page {
  min-height: 100svh;
  padding: var(--pad);
  display: flex;
  flex-direction: column;
}

.logo { display: inline-block; text-decoration: none; }
.logo__mark {
  display: block;
  width: clamp(7.5rem, 11.4vw, 10.75rem);
  height: auto;
}

.stage {
  margin-top: auto;
  padding-top: clamp(2rem, 5vh, 4rem);
  display: grid;
  grid-template-columns: var(--col) 1fr;
}

/* keep the full-bleed image from inflating its own grid track */
.stage > * { min-inline-size: 0; }

.stage__copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(2.5rem, 6vh, 5rem);
  padding-right: var(--gutter);
}

/* bleeds off the right edge of the viewport, sits on the bottom margin */
.stage__visual {
  position: relative;
  margin: 0 calc(var(--pad) * -1) 0 0;
  align-self: end;
}

/* sits astride the top edge of the photo, slightly tilted.
   A mailto link, so it keeps the anchor semantics and the browser's own
   affordances — it is styled as a control rather than as body copy. */
.badge {
  position: absolute;
  top: 0;
  left: clamp(2rem, 3.7vw, 3.5rem);
  transform: translateY(-50%) rotate(-3.5deg);
  margin: 0;
  padding: 0.5em 0.9em 0.55em;
  background: var(--green-bright);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.19vw, 1.3125rem);
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
              background-color 0.25s ease;
}

/* straightens up and lifts a little on the way to being clicked */
.badge:hover,
.badge:focus-visible {
  background: color-mix(in srgb, var(--green-bright) 88%, var(--green));
  transform: translateY(-50%) rotate(-1.5deg) scale(1.04);
}
.badge:active { transform: translateY(-50%) rotate(-3.5deg) scale(0.99); }

@media (prefers-reduced-motion: reduce) {
  .badge { transition: none; }
  .badge:hover,
  .badge:focus-visible,
  .badge:active { transform: translateY(-50%) rotate(-3.5deg); }
}
.stage__visual img {
  display: block;
  width: 100%;
  height: auto;
  /* on very wide / short viewports, crop rather than push the page taller */
  max-block-size: calc(100svh - 19rem);
  object-fit: cover;
  object-position: 50% 45%;
}

/* ------------------------------------------------------------- headline */

.intro__title {
  margin: 0;
  color: var(--green-deep);
  font-family: var(--font-display);
  font-variation-settings: "wdth" 100, "SEED" 0;
  font-weight: 400;
  font-size: clamp(2.25rem, 2.75vw, 3.375rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.intro__lines {
  margin: clamp(2.25rem, 4.8vh, 3.75rem) 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 1.39vw, 1.5rem);
  line-height: 1.1;
  text-wrap: balance;
}

/* -------------------------------------------------------------- details */

.details {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  column-gap: clamp(1.5rem, 2.6vw, 2.5rem);
  row-gap: 1.75rem;
}

.contact {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75em;
}
.contact__label { opacity: 0.75; }

.contact__social {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  text-decoration: none;
}
.contact__social span { text-decoration: underline; text-underline-offset: 0.25em; }
.contact__social:hover span { text-decoration-color: color-mix(in srgb, var(--green) 45%, transparent); }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

/* ---------------------------------------------------- narrow / stacked */

@media (max-width: 900px) {
  :root { --gutter: 0rem; }

  .page { gap: clamp(2.5rem, 7vh, 4rem); }

  .stage {
    margin-top: 0;
    padding-top: clamp(2.5rem, 7vh, 4rem);
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 6vh, 4rem);
  }

  .stage__copy {
    order: 1;
    gap: clamp(2.5rem, 6vh, 4rem);
    padding-right: 0;
  }
  .stage__visual {
    order: 2;
    margin-inline: calc(var(--pad) * -1);
    align-self: stretch;
  }

  /* line the badge up with the text column */
  .badge { left: var(--pad); }

  .intro__title { font-size: clamp(2.5rem, 12vw, 4.5rem); }
  .intro__lines { font-size: clamp(1.1875rem, 5vw, 1.625rem); }

  body { font-size: 0.8125rem; }
}

@media (max-width: 420px) {
  .details { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------------------- entrance */

/* only ever runs once the fonts have settled — see the gate in index.html */
@media (prefers-reduced-motion: no-preference) {
  .ready .page > * { animation: rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
  .ready .page__head { animation-delay: 0.05s; }
  .ready .stage { animation-delay: 0.15s; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(0.75rem); }
    to   { opacity: 1; transform: none; }
  }
}
