/* svenhq.com: shared brand tokens and page frame. Brand locked Aug 2026 (areas/svenhq-work/svenhq-brand.md). */
:root {
  --cream: #F5F1EA;
  --ink: #37352F;
  --red: #920707;
  --red-dk: #550707;
  --grey: #959183;
  --rose: #EBD6D6;
  --panel: #ECE5D9;          /* one tone step below cream */
  --panel-2: #E3DACB;        /* two steps */
  --ink-2: #5E5A51;          /* secondary text, 6.4:1 on cream */
  --ok: #4E7444;
  --warn: #A8740F;
  --slate: #61798C;
  --serif: 'Cormorant', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --m: 32px;                 /* outer margin */
  --gap-sec: 176px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 760px) { :root { --m: 16px; --gap-sec: 104px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--rose); color: var(--red-dk); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(52px, 8.4vw, 136px); line-height: .92; }
h2 { font-size: clamp(40px, 5vw, 76px); line-height: .96; }
h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.05; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* Frame */
.wrap { padding-inline: var(--m); max-width: 1480px; margin-inline: auto; }
.bar { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px var(--m); max-width: 1480px; margin-inline: auto; }
.mark { font-family: var(--serif); font-weight: 600; font-size: 30px; letter-spacing: -0.01em; text-decoration: none; line-height: 1; }
.mark:hover { color: var(--red); }
.nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a[aria-current="page"] { color: var(--red); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (max-width: 520px) { .nav { gap: 18px; font-size: 14px; } .mark { font-size: 26px; } }

.sec { margin-top: var(--gap-sec); }
.lede { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; max-width: 46ch; }
.body { max-width: 62ch; }
.body p + p { margin-top: 1em; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; line-height: 1.5; }

/* Buttons: square corners, one fill. */
.btn { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 600; font-size: 16px; padding: 14px 22px; background: var(--red); color: var(--cream); border: 0; cursor: pointer; text-decoration: none; transition: background .2s var(--ease), transform .15s var(--ease); }
.btn:hover { background: var(--red-dk); color: var(--cream); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 12px 20px; }
.btn.ghost:hover { background: var(--ink); color: var(--cream); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* Fields of colour */
.field-rose { background: var(--rose); }
.field-panel { background: var(--panel); }
.field-dark { background: var(--red-dk); color: var(--cream); }
.field-dark a:hover { color: var(--rose); }
.field-dark :focus-visible { outline-color: var(--cream); }

/* Closing footer: the name returns at full width. */
.close { margin-top: var(--gap-sec); padding: 72px var(--m) 28px; }
.close-in { max-width: 1480px; margin-inline: auto; display: grid; gap: 40px; }
.close-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; align-items: end; }
.close-links { display: flex; flex-wrap: wrap; gap: 14px 32px; font-weight: 500; }
.close-big { font-family: var(--serif); font-weight: 600; font-size: clamp(96px, 23vw, 380px); line-height: .78; letter-spacing: -0.04em; margin: 0; }
.close-fine { font-size: 14px; opacity: .8; }

/* Entrances (content is visible without script; script adds .pre then .in). */
.rise.pre { opacity: 0; transform: translateY(24px); }
.rise.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) { .rise.pre { opacity: 1; transform: none; } .rise.in { transition: none; } }
