:root {
  --bg:      #0d0f12;
  --surface: #14171c;
  --text:    #e8e6e1;
  --muted:   #9a9791;
  --accent:  #c9a227;
  --rule:    #24282f;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Times New Roman", serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter,
           "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;
  --gap: clamp(3rem, 7vh, 5rem);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Shared horizontal frame: header, main and footer align on one edge. */
.site-head,
main,
.site-foot { padding-inline: clamp(1.5rem, 7vw, 7rem); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #16130a;
  padding: 0.65rem 1rem;
  font-weight: 600;
  z-index: 10;
}
.skip:focus { left: 0; }

/* ---------- wordmark ---------- */

.site-head { padding-top: clamp(2rem, 6vh, 3.5rem); }

.wordmark {
  display: inline-block;
  line-height: 0;
}

.wordmark svg {
  height: 1.75rem;
  width: auto;
  display: block;
}

/* vorlogo.svg ships with a dark charcoal wordmark (.cls-1) meant for a light
   background; retheme it to the site's off-white text on this dark page.
   The gold ö (.cls-2) is the brand accent and stays as authored. */
.wordmark .cls-1 { fill: var(--text); }

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(4rem, 15vh, 9rem) var(--gap);
  max-width: 52rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 1.4rem + 5.6vw, 5.25rem);
  line-height: 1.04;
  letter-spacing: -0.021em;
  margin: 0 0 1.75rem;
  text-wrap: balance;
}

.lede {
  margin: 0;
  max-width: var(--measure);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- blocks ---------- */

.block {
  padding-block: var(--gap);
  border-top: 1px solid var(--rule);
}

.block.narrow > p { max-width: var(--measure); }

h2 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 2.25rem;
}

.block.narrow p { margin: 0 0 1.1rem; color: var(--muted); }
.block.narrow p:last-child { margin-bottom: 0; }

/* ---------- services ---------- */

.services {
  margin: 0;
  display: grid;
  gap: 2rem 3.5rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  max-width: 62rem;
}

.service dt {
  font-family: var(--serif);
  font-size: 1.3125rem;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.service dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 30rem;
}

/* ---------- principles ---------- */

.principles {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.35rem;
  max-width: 44rem;
}

.principles li {
  color: var(--muted);
  padding-left: 1.4rem;
  position: relative;
}

.principles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.5rem;
  height: 1px;
  background: var(--accent);
}

.principles strong { color: var(--text); font-weight: 600; }

/* ---------- contact ---------- */

.contact {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.1rem + 1.3vw, 2.125rem);
}

a {
  color: var(--text);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 120ms ease;
}
a:hover { color: var(--accent); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--rule);
  padding-block: 2rem clamp(2rem, 6vh, 3.5rem);
}

.site-foot p {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ---------- light mode ---------- */

@media (prefers-color-scheme: light) {
  :root {
    --bg:      #faf9f6;
    --surface: #ffffff;
    --text:    #17191d;
    --muted:   #5d5f66;
    --accent:  #8a6d10;
    --rule:    #e2ded3;
  }
}

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

@media print {
  body { background: #fff; color: #000; }
  .skip { display: none; }
}
