/* Culmen Equity. One screen, dark only. Values follow the design tokens (v2, dark block). */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #15130F;          /* page surface */
  --bone: #F7F7F4;         /* text, mark */
  --slate: #8A857B;        /* metadata */
  --rule: #3A362F;         /* hairlines */
  --gold: #D4AC4A;         /* wedge, accents on dark */

  /* Licensed faces lead. Swapping the stand-ins out touches three things: these two lines,
     the @font-face blocks, and the h1 divisor below, which is measured for Hanken Grotesk. */
  --serif: "Martina Plantijn", "Source Serif 4", "Iowan Old Style", "STIX Two Text", Georgia, serif;
  --sans: "Untitled Sans", "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --mark-w: clamp(420px, 60vw, 920px);
}

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

body {
  box-sizing: border-box;
  width: 100%;
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 clamp(32px, calc(8vw - 64px), 160px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto auto;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 2px;
}

.peak { fill: var(--bone); }
.wedge { fill: var(--gold); }

.masthead {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}
.wordmark-name { font-size: 22px; letter-spacing: 0.06em; }
.wordmark-kind { font-size: 10px; letter-spacing: 0.16em; margin-top: 2px; color: var(--gold); }

.reach {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--sans);
}

.reach-linkedin {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--slate);
  transition: color 150ms;
}
.reach-linkedin:hover { color: var(--bone); }
.reach-linkedin svg { fill: currentColor; }

/* Underlined links: Contact shows its rule on hover only, links in running text always */
.reach-contact, .inline {
  text-decoration: underline transparent 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 150ms;
}
.inline { text-decoration-color: var(--rule); }
.reach-contact:hover, .inline:hover { text-decoration-color: var(--gold); }

.reach-contact {
  padding: 12px 0;       /* 21px line box + 24px = a 45px touch target */
  font-size: 15px;
  line-height: 1.4;
}

.statement {
  container-type: inline-size;
  width: 100%;
  max-width: clamp(680px, 48vw, 960px);
  padding: 40px 0 24px;
}

h1, p { margin: 0; }

h1 {
  margin-bottom: 28px;
  font-family: var(--sans);
  font-weight: 500;
  /* "TRANSFORMING SOFTWARE" sets 13.36em wide in Hanken Grotesk caps at 0.02em tracking; 7.3cqi keeps the designed break.
     The floor is 20px, not 24px: at 24px the first line is 321px and breaks on a 375px phone (311px column). */
  font-size: clamp(20px, 7.3cqi, 70px);
  line-height: 1.06;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.statement p {
  max-width: clamp(470px, 34vw, 620px);
  font-size: clamp(20px, 5.4vw, 24px);
  line-height: 1.4;
  text-wrap: pretty;
}

/* Summit: the mark again, large, anchored bottom right above the rule */
.summit {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  margin-top: 40px;
  padding-bottom: 16px;
}
.summit .mark {
  display: block;
  width: min(100%, var(--mark-w));
  height: auto;
  flex-shrink: 0;
  pointer-events: none;
}

.colophon {
  padding: 20px 0 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--slate);
}

/* Narrow screens: the masthead at full size needs 338px; a 375px phone offers 311px.
   The mark stays at or above its 32px minimum height for the regular cut. */
@media (max-width: 419px) {
  .masthead .mark { width: 76px; height: 32px; }
  .lockup { gap: 12px; }
  .wordmark-name { font-size: 19px; }
  .wordmark-kind { font-size: 9px; }
  .reach { gap: 8px; }
}
@media (max-width: 359px) {
  body { padding: 0 20px; }
}
