/* Textsidorna (policy, terms, support): samma natt som landningssidan,
   men stilla — grund, två glödar och EKG-pappret, inget instrument. Texten
   står på ett ark i världens papperston (PulsSheet: arket är varmare än
   marken det ligger på). Rubrikerna i Redaction, brödtexten i systemets
   linjära, etiketterna i mono — PulsType:s tre skärningar. */

@font-face {
  font-family: "Redaction";
  src: url("/fonts/Redaction-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Redaction";
  src: url("/fonts/Redaction-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #271C12;
  --paper-shade: #1B120A;
  --mark: #F5A15A;
}

html, body { height: auto; }

body {
  overflow: auto;
  overflow-x: hidden;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

/* Fältet ligger fast bakom; arket rullar över det. */
.field { z-index: 0; }

/* ---------- Huvudet ---------- */

.head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--margin) + env(safe-area-inset-top, 0px)) var(--margin) 0;
  max-width: 760px;
  margin: 0 auto;
  box-sizing: border-box;
}
.head a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.head img {
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 24%;
}
.head .brand {
  font-family: "Redaction", Georgia, serif;
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: 0.01em;
}
.head .kicker {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- Arket ---------- */

.sheet {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 28px auto calc(var(--margin) * 2);
  padding: 44px var(--margin) 52px;
  box-sizing: border-box;
  background: linear-gradient(to bottom, var(--paper), var(--paper-shade));
  border-radius: 6px;
  box-shadow:
    0 1px 0 rgba(232, 196, 154, 0.10) inset,
    0 24px 60px -20px rgba(9, 5, 2, 0.9),
    0 2px 6px rgba(9, 5, 2, 0.6);
}
@media (max-width: 600px) {
  .sheet { margin-left: 12px; margin-right: 12px; padding: 32px 20px 40px; }
}

.sheet h1 {
  font-family: "Redaction", Georgia, serif;
  font-weight: 700;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0 0 10px;
  color: var(--ink);
}
.sheet .meta {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--dim);
  margin: 0 0 36px;
}
.sheet .lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 8px;
}

.sheet h2 {
  font-family: "Redaction", Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  margin: 40px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  color: var(--ink);
}
.sheet h3 {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mark);
  margin: 26px 0 8px;
}
.sheet p, .sheet li {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 12px;
}
.sheet ul {
  padding-left: 0;
  margin: 0 0 14px;
  list-style: none;
}
.sheet li {
  position: relative;
  padding-left: 22px;
}
.sheet li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 1px;
  background: var(--mark);
}
.sheet li strong {
  color: var(--ink);
  font-weight: 600;
}
.sheet a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(232, 196, 154, 0.45);
}
.sheet a:hover { text-decoration-color: var(--mark); }

.sheet .signoff {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--dim);
}

/* ---------- Foten ---------- */

.foot {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--margin) calc(var(--margin) + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  display: flex;
  gap: 22px;
  justify-content: flex-end;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.foot a {
  color: var(--dim);
  opacity: 0.55;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: rgba(168, 152, 138, 0.45);
  transition: opacity 0.25s ease, color 0.25s ease;
}
.foot a:hover, .foot a:focus-visible { opacity: 1; color: var(--ink); outline: none; }
