/* 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, 780px);
}

html, body { overflow-x: clip; }

body {
  box-sizing: border-box;
  max-width: 1200px;
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 32px;
  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;
  max-width: 680px;
  padding: 40px 0 24px;
}

h1, p { margin: 0; }

h1 {
  margin-bottom: 28px;
  font-family: var(--sans);
  font-weight: 500;
  /* "Transforming software" sets 9.91em wide in Hanken Grotesk; a tenth of the column keeps the designed break */
  font-size: clamp(28px, 10cqi, 56px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.statement p {
  max-width: 470px;
  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 {
  position: relative;
  height: calc(0.288 * var(--mark-w));
  margin-top: 40px;
}
.summit .mark {
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--mark-w);
  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; }
}
