/* Tokens, fonts, type and the parts every section shares. */
@font-face { font-family: "Young Serif"; src: url("../assets/fonts/young-serif.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../assets/fonts/schibsted.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; font-style: italic; src: url("../assets/fonts/schibsted-italic.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --primer: #f3ede2;
  --paper: #fbf8f2;
  --ink: #1a1813;
  --muted: #5e584d;
  --rule: #d8cebd;
  --coat: #2338b8;
  --coat-deep: #17257d;
  --coat-wet: #3b52d6;
  --tape: #e9d9a6;
  --tape-edge: #d6c48c;
  --serif: "Young Serif", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: clamp(18px, 4.4vw, 64px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--primer);
  color: var(--ink);
  font: 400 clamp(17px, 1.05vw + 12px, 19px)/1.55 var(--sans);
  font-feature-settings: "kern", "liga";
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--coat); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
:focus-visible { outline: 3px solid var(--coat); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--coat); color: #fff; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 50; }
.skip:focus { top: 12px; }

/* Header */
.top { display: flex; align-items: center; gap: 28px; padding-block: 18px; position: relative; z-index: 5; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 26px/1 var(--serif); letter-spacing: -.01em; }
.mark svg { width: 34px; height: 34px; }
.top nav { display: flex; gap: 26px; margin-left: auto; font-size: 16px; }
.top nav a, .top__mail { text-decoration: none; }
.top nav a:hover, .top__mail:hover { text-decoration: underline; }
.top__mail { font-size: 16px; font-weight: 600; border-bottom: 2px solid var(--coat); }
@media (max-width: 860px) { .top nav { display: none; } .top__mail { margin-left: auto; font-size: 15px; } }

/* Type */
.h2 { font: clamp(38px, 5.4vw, 80px)/1 var(--serif); letter-spacing: -.025em; text-wrap: balance; margin-bottom: .35em; }
.intro { font-size: clamp(19px, 1.4vw + 10px, 24px); line-height: 1.4; max-width: 34em; color: var(--ink); }
.kicker { font-weight: 600; font-size: 16px; color: var(--coat); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 28px; height: 10px; border-radius: 3px; background: var(--coat); }

/* Buttons and links */
.btn {
  display: inline-block; background: var(--coat); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 18px; padding: 17px 26px 18px; border-radius: 6px;
  box-shadow: 0 2px 0 var(--coat-deep), 0 10px 24px -12px rgb(23 37 125 / .6);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 4px 0 var(--coat-deep), 0 16px 30px -14px rgb(23 37 125 / .7); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--coat-deep); }
.fine { font-size: 15px; color: var(--muted); margin: 0; max-width: 30em; }

/* Masking tape: the label on every sample */
.tape {
  display: inline-block; position: absolute; z-index: 4; font: 600 14px/1 var(--sans); color: #3d3524;
  background: var(--tape); padding: 9px 16px 10px; rotate: -2.5deg;
  box-shadow: 0 1px 2px rgb(0 0 0 / .14);
  clip-path: polygon(0 6%, 3% 0, 7% 7%, 12% 1%, 18% 6%, 100% 0, 98% 30%, 100% 62%, 97% 100%, 90% 94%, 84% 100%, 0 100%, 2% 70%, 0 40%);
  background-image: linear-gradient(90deg, rgb(255 255 255 / .25), transparent 30%, rgb(255 255 255 / .18) 70%, transparent);
}

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding-block: 28px 40px; font-size: 15px; color: var(--muted); border-top: 1px solid var(--rule); }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
