/* Kuldra Capital AB — monochrome, drawn from the emblem */

@font-face {
  font-family: "Gloock";
  src: url("fonts/gloock-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  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: "Gloock";
  src: url("fonts/gloock-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400;
  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: "Familjen Grotesk";
  src: url("fonts/familjen-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  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: "Familjen Grotesk";
  src: url("fonts/familjen-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  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;
}

:root {
  --black: #000;
  --white: #fff;
  --stone: #e6e6e1;      /* the emblem's original paper */
  --graphite: #5f5f5a;   /* secondary text on white */
  --ash: #a9a9a3;        /* secondary text on black */
  --rule: #d6d6d0;
  --rule-dark: #2e2e2c;

  --display: "Gloock", "Bodoni 72", "Didot", Georgia, serif;
  --text: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;  /* 14 */
  --step-0: 1.125rem;   /* 18 */
  --step-1: 1.3125rem;  /* 21 */
  --step-2: 1.5rem;     /* 24 */
  --step-3: 2.25rem;    /* 36 */
  --step-4: 3rem;       /* 48 */

  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.55;
  font-feature-settings: "kern", "liga";
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 1px;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* The wordmark: the one place caps are used, as in the logo */
.wordmark {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  line-height: 1;
}

/* Header */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand img { width: 2.25rem; }
.brand .wordmark { font-size: 1.1875rem; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  font-size: var(--step--1);
  text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; }

/* Hero: the crest, centered like the logo lockup */
.hero {
  border-top: 1px solid var(--rule);
}
.hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3.5rem, 9vw, 7rem);
}
.hero .crest { width: clamp(13rem, 30vw, 20rem); }
.hero h1 {
  margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
  font-size: clamp(2.6rem, 8.2vw, 6.25rem);
}
.hero .lead {
  max-width: 34ch;
  margin: 1.5rem 0 0;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--graphite);
}

@media (prefers-reduced-motion: no-preference) {
  .hero .crest,
  .hero h1,
  .hero .lead { animation: rise 900ms cubic-bezier(.2, .7, .2, 1) both; }
  .hero h1 { animation-delay: 120ms; }
  .hero .lead { animation-delay: 240ms; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
}

/* Section scaffold: heading on the left, content on the right */
.section .wrap {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 1rem clamp(2rem, 5vw, 4.5rem);
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section + .section .wrap {
  background: linear-gradient(var(--rule), var(--rule)) no-repeat;
  background-size: calc(100% - 2 * var(--gutter)) 1px;
  background-position: var(--gutter) 0;
}
.section h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1.05;
  letter-spacing: 0.005em;
}
.section .body { max-width: var(--measure); }
.section p { margin: 0 0 1em; }
.section .body > :last-child { margin-bottom: 0; }

.activity + .activity { margin-top: 1.75rem; }
.activity h3 {
  margin: 0 0 0.35rem;
  font-size: var(--step-0);
  font-weight: 650;
}
.activity p { margin: 0; }

/* Projects: the black panel, as on the brand board */
.projects {
  background: var(--black);
  color: var(--white);
}
.projects .wrap {
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.projects h2 {
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1.05;
}
.project {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.5rem clamp(2rem, 5vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--rule-dark);
}
.project-name {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 0.85;
  letter-spacing: -0.01em;
}
.project + .project { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.project-soon .project-name {
  font-size: var(--step-3);
  line-height: 1.1;
  color: var(--ash);
}
.project-soon .project-body p { color: var(--ash); margin: 0; }
.project-soon .project-tagline { margin-bottom: 0.4rem; }
.project-tagline {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: var(--step-2);
  line-height: 1.25;
}
.project-body { max-width: var(--measure); }
.project-body p { margin: 0 0 1em; color: #e9e9e4; }
.project .facts { margin-top: 1.75rem; }
.project .facts .row { border-color: var(--rule-dark); }
.project .facts dt { color: var(--ash); }
.project-link {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.7rem 1.25rem 0.75rem;
  border: 1px solid var(--white);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
}
.project-link:hover { background: var(--white); color: var(--black); }

/* Definition lists */
.facts { margin: 0; max-width: var(--measure); }
.facts .row {
  display: grid;
  grid-template-columns: minmax(9rem, 2fr) minmax(0, 3fr);
  gap: 0.25rem 1.5rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule);
}
.facts .row:first-child { padding-top: 0; }
.facts dt { color: var(--graphite); font-size: var(--step--1); padding-top: 0.2rem; }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }

/* Unfilled values: visible until replaced, so nothing ships half-done */
.todo {
  background: #fbe9a6;
  color: #3d3200;
  padding: 0 0.25em;
  border-radius: 2px;
}

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--ash);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  font-size: var(--step--1);
}
.site-footer .brand { color: var(--white); }
.site-footer .brand img { width: 2.75rem; }
.site-footer .meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--white); }

/* Long-form pages (privacy policy) */
.doc .wrap {
  padding-top: clamp(2.5rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.doc { border-top: 1px solid var(--rule); }
.doc article { max-width: var(--measure); }
.doc h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, var(--step-4));
  line-height: 1.05;
}
.doc .updated { margin: 0.9rem 0 2.5rem; color: var(--graphite); font-size: var(--step--1); }
.doc h2 {
  margin: 2.5rem 0 0.6rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-2);
  line-height: 1.2;
}
.doc p { margin: 0 0 0.9em; }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin: 0 0 0.3em; }

/* Small screens */
@media (max-width: 760px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .section .wrap,
  .project { grid-template-columns: 1fr; }
  .facts .row { grid-template-columns: 1fr; }
  .facts dt { padding-top: 0; }
}
