/* Rise Schilling ApS
   A holding shell. The copy does not sell; the typography carries the signal —
   which is why the typeface is self-hosted rather than left to a system stack
   that resolves to a different serif on every platform.
   Self-contained, no external requests — no third-party font CDN (GDPR). */

/* Source Serif 4, SIL Open Font License (see fonts/LICENSE.md).
   Latin subset, wght pinned to 400, opsz axis 8–60 retained: 119KB → 31KB.
   The retained optical-size axis is the point — the browser fits finer,
   higher-contrast forms to the 27px lead and sturdier ones to the 13px
   entity block, from a single file. */
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/SourceSerif4-subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper:   #FBFAF8;
  --ink:     #1B1A16;
  /* 5.40:1 on paper. Was #77736A — 4.53:1, which cleared AA by 0.03 while
     carrying 10px labels. Still clearly recessive, no longer marginal. */
  --muted:   #6B675F;
  --rule:    #E4E0D8;

  --serif: "Source Serif 4", "Iowan Old Style", Palatino, "Palatino Linotype",
           "Hoefler Text", Georgia, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
           "Helvetica Neue", Arial, sans-serif;

  --measure: 38rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131211;
    --ink:   #EDEAE3;
    --muted: #8E8980;
    --rule:  #2C2A26;
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* Without this the UA treats the page as light-only and paints a bright
     scrollbar against the dark background. */
  color-scheme: light dark;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  /* rem, not px — px would silently override the reader's browser font-size
     preference. The audience skews 45+; let them set their own size. */
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

.sheet {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 14vh 1.75rem 6rem;
}

@media (min-width: 40em) {
  .sheet { padding: 18vh 2rem 8rem; }
  body   { font-size: 1.125rem; }
}

/* ---- Masthead ------------------------------------------------------- */

.masthead {
  margin-bottom: 4.5rem;
}

.wordmark {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

/* ---- Statement ------------------------------------------------------ */

.statement p {
  margin: 0 0 1.15em;
  font-size: 1.3125rem;
  line-height: 1.5;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

.statement p:first-child {
  /* The defining sentence sits at full weight; the rest recedes. */
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: 1.4rem;
  /* balance, not pretty: this is a 2–3 line display statement, where even
     line lengths matter more than avoiding a short last line. */
  text-wrap: balance;
}

.statement p:not(:first-child) {
  color: var(--muted);
}

.statement p:last-child {
  margin-bottom: 0;
}

@media (min-width: 40em) {
  .statement p:first-child { font-size: 1.6875rem; }
  .statement p             { font-size: 1.375rem; }
}

.nowrap { white-space: nowrap; }

/* ---- Rules ---------------------------------------------------------- */

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 3.5rem 0;
}

/* ---- Section labels ------------------------------------------------- */

.label {
  margin: 0 0 1.75rem;
  font-family: var(--sans);
  /* 11px, was 10px — uppercase and letterspaced at 0.2em, 10px was the
     weakest text on the page. */
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Entity --------------------------------------------------------- */

.entity {
  margin: 0;
}

.entity-row {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 2rem;
  padding: 0.5rem 0;
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.7;
}

.entity-row dt {
  color: var(--muted);
  letter-spacing: 0.01em;
}

.entity-row dd {
  margin: 0;
}

@media (max-width: 39.99em) {
  .entity-row {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0.6rem 0;
  }
}

/* ---- Links ---------------------------------------------------------- */

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.05em;
  transition: border-color 140ms ease;
}

a:hover {
  border-bottom-color: var(--ink);
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---- Footer --------------------------------------------------------- */

footer {
  margin-top: 6rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

footer p {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.6875rem;
  /* Deliberately NOT text-transform: uppercase. This line carries the legal
     name, and uppercasing rendered it "APS" — an anpartsselskab is exactly
     "ApS". Same bug the masthead had; the masthead dropped the legal form,
     this line needs it, so the transform goes instead. */
  letter-spacing: 0.02em;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---- Print ---------------------------------------------------------- */

@media print {
  :root {
    --paper: #FFFFFF;
    --ink:   #000000;
    --muted: #444444;
    --rule:  #CCCCCC;
  }

  .sheet {
    max-width: none;
    padding: 0;
  }

  /* The screen page leans on generous vertical air; on paper that just
     wastes a sheet. */
  hr     { margin: 1.75rem 0; }
  footer { margin-top: 2.5rem; }

  .masthead   { margin-bottom: 2rem; }
  .statement  { break-inside: avoid; }
  .entity-row { break-inside: avoid; }

  /* A printed page loses the mailto, so spell the link out. */
  a { border-bottom: none; }
  a[href^="mailto:"]::after { content: none; }
}
