/* SKRULLZ PRODUCTIONS LLC — skrullz.com
   White paper, black ink, and a closing block set in reverse like end credits.
   No third-party requests: fonts are served from this origin.
   Nothing here animates or transitions — the accessibility statement says so in writing. */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/plexmono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/plexmono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;          /* white paper by day; its negative when the device goes dark */
  --paper: #ffffff;
  --ink: #0b0b0c;
  --body: #3a3a3e;
  --meta: #6e6e73;
  --rule: #e2e2e4;
  --underline: #c9c9cc;

  /* the closing block: the same ink, reversed */
  --block: #0b0b0c;
  --on-ink: #f5f5f6;                 /* 18.4:1 on --ink */
  --on-ink-body: #c9c9ce;            /* 11.9:1 */
  --on-ink-meta: #a1a1a7;            /*  7.6:1 */
  --on-ink-rule: #2e2e33;

  --sans: "Archivo", "Helvetica Neue", Helvetica, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(1.25rem, 5vw, 7.5rem);
  --band: clamp(2.75rem, 5vw, 4.5rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --measure: 40rem;
  --column: 56rem;                   /* the divisions and the record share one width */

  --hero: clamp(1.875rem, 1rem + 4.4vw, 4.5rem);
  --band-title: clamp(1.875rem, 1.2rem + 2.8vw, 3.375rem);
  --page-title: clamp(1.875rem, 1.2rem + 2.8vw, 3.25rem);
  --lede: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --label: 0.75rem;
}

/* The negative. "screen" so a printout is always black on white. The logo swaps
   by itself in the markup (<picture>); the closing block stays dark, one step up
   from the page, so the two still read as separate. */
@media screen and (prefers-color-scheme: dark) {
  :root {
    --paper: #0b0b0c;
    --ink: #f5f5f6;                  /* 18.4:1 on --paper */
    --body: #c9c9ce;                 /* 11.9:1 */
    --meta: #a1a1a7;                 /*  7.6:1 */
    --rule: #2e2e33;
    --underline: #55555b;
    --block: #17171a;
  }
  .statement::before { filter: invert(1); opacity: 0.06; }   /* the watermark, in white */
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--meta); }
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, p { margin: 0; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1.25rem; z-index: 10;
}
.skip:focus { left: 0; color: var(--paper); }

/* ---------- shared scaffolding ---------- */

.wrap { max-width: 78rem; margin: 0 auto; padding-inline: var(--gutter); }

.label {
  font-family: var(--mono);
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--meta);
}
a.label { display: inline-block; padding-block: 0.375rem; }
a.label:hover { color: var(--ink); }

/* Hairline · lozenge · hairline. The one ornament; it stands wherever a section turns. */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
}
.ornament::before, .ornament::after {
  content: "";
  width: clamp(2.5rem, 6vw, 4.5rem);
  height: 1px;
  background: currentColor;
}
.ornament span {
  width: 0.4375rem;
  height: 0.4375rem;
  background: currentColor;
  transform: rotate(45deg);
}

/* Tracked capitals between two hairlines — the logo sets "LLC" exactly this way. */
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.section-title span { margin-right: -0.34em; }   /* the tracking after the last letter */
.section-title::before, .section-title::after {
  content: "";
  flex: 0 1 clamp(3rem, 9vw, 7.5rem);
  height: 1px;
  background: currentColor;
}

/* A hairline frame with its four corners struck in ink, like the marks on a title card.
   Drawn as backgrounds so the ink sits over the grey: first listed paints on top. */
.cornered {
  --corner: 1.25rem;
  background-image:
    linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--rule), var(--rule)), linear-gradient(var(--rule), var(--rule)),
    linear-gradient(var(--rule), var(--rule)), linear-gradient(var(--rule), var(--rule));
  background-repeat: no-repeat;
  background-position:
    top left, top left, top right, top right,
    bottom left, bottom left, bottom right, bottom right,
    top, bottom, left, right;
  background-size:
    var(--corner) 1px, 1px var(--corner), var(--corner) 1px, 1px var(--corner),
    var(--corner) 1px, 1px var(--corner), var(--corner) 1px, 1px var(--corner),
    100% 1px, 100% 1px, 1px 100%, 1px 100%;
}

/* ---------- masthead ---------- */

.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--rule);
}

.masthead { text-align: center; }

.titlecard {
  margin-top: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(3rem, 7vw, 6.5rem) clamp(1rem, 5vw, 5rem) clamp(3.25rem, 7.5vw, 7rem);
}

.masthead__logo { width: clamp(12rem, 26vw, 22rem); margin: 0 auto; }
.masthead__logo--small { width: clamp(8rem, 15vw, 11rem); }

.masthead--doc { padding-bottom: clamp(0.5rem, 1.5vw, 1rem); }
.masthead__home { display: inline-block; margin-top: clamp(2rem, 4.5vw, 3.5rem); }

.titlecard .ornament { margin-top: clamp(2rem, 4.5vw, 3.75rem); }

.hero {
  margin: clamp(2rem, 4.5vw, 3.75rem) auto 0;
  max-width: 58rem;
  font-size: var(--hero);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.lede {
  margin: clamp(1.5rem, 2.5vw, 2.125rem) auto 0;
  max-width: 38rem;
  font-size: var(--lede);
  line-height: 1.6;
  color: var(--body);
  text-wrap: pretty;
}

/* ---------- statement ---------- */

.statement {
  position: relative;
  overflow: hidden;
  padding-block: var(--section);
  text-align: center;
}
.statement::before {                 /* the monogram as a watermark, as on letterhead */
  content: "";
  position: absolute;
  inset: 6% 0;
  background: url("assets/sp-mark-alpha-600.webp") center / contain no-repeat;
  opacity: 0.045;
  pointer-events: none;
}
.statement p {
  position: relative;
  margin: 0 auto;
  max-width: 52rem;
  font-size: clamp(1.3125rem, 0.95rem + 1.5vw, 2.125rem);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.014em;
  text-wrap: pretty;
}

/* ---------- divisions ---------- */

.divisions { padding-bottom: var(--section); }

.divisions__list, .record dl {
  max-width: var(--column);
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding: 0;
  list-style: none;
  border-top: 3px double var(--ink);
  border-bottom: 1px solid var(--ink);
}

.division {
  padding-block: var(--band);
  text-align: center;
}
.division + .division { border-top: 1px solid var(--rule); }
.division__name {
  margin-top: clamp(0.75rem, 1.4vw, 1.125rem);
  font-size: var(--band-title);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.028em;
}
.division__note {
  margin: clamp(0.875rem, 1.5vw, 1.25rem) auto 0;
  max-width: 34rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--body);
  text-wrap: pretty;
}

/* ---------- company record ---------- */

.record { padding-bottom: var(--section); }

.record__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2.5rem;
  align-items: baseline;
  padding: 1.25rem clamp(0rem, 2vw, 1.5rem);
}
.record__row + .record__row { border-top: 1px solid var(--rule); }
.record dt {
  flex: 0 0 13rem;
  font-family: var(--mono);
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meta);
}
.record dd { margin: 0; flex: 1 1 16rem; font-size: 1.0625rem; line-height: 1.6; }

/* ---------- the closing block: contact and footer, reversed ---------- */

.on-ink { background: var(--block); color: var(--on-ink); }
.on-ink a { color: var(--on-ink); }
.on-ink a:focus-visible { outline-color: var(--on-ink); }

.contact {
  padding-block: var(--section);
  text-align: center;
}
.contact__address {
  display: inline-block;
  margin-top: clamp(2rem, 4vw, 3.25rem);
  font-size: clamp(1.5rem, 1rem + 2.4vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  border-bottom: 1px solid var(--on-ink);
  padding-bottom: 0.35rem;
}
.contact__address:hover { border-bottom-color: var(--on-ink-meta); }
.contact__note {
  margin: clamp(1.75rem, 3vw, 2.5rem) auto 0;
  max-width: 32rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--on-ink-meta);
}
.contact__note a { text-decoration: underline; text-underline-offset: 0.18em; }

.footer {
  padding-block: clamp(3rem, 5vw, 4.25rem);
  border-top: 1px solid var(--on-ink-rule);   /* parts it from the contact block above */
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  justify-content: space-between;
}
.footer__id { display: flex; gap: 1.5rem; align-items: flex-start; }
.footer__mark { width: 2.75rem; flex: 0 0 auto; }
.footer__name {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.footer__meta {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--on-ink-body);
}
.footer__meta a { color: var(--on-ink-body); }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(2.5rem, 5vw, 4.5rem);
}
.footer__links ul { list-style: none; margin: 0; padding: 0; }
.footer__links li { font-size: 0.875rem; line-height: 2.1; }
.footer__links a, .footer__meta a { color: var(--on-ink-body); }
.footer__links a:hover, .footer__meta a:hover { color: var(--on-ink); }
.footer__links a[aria-current="page"] { color: var(--on-ink); font-weight: 600; }

.footer__bottom {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  border-top: 1px solid var(--on-ink-rule);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--on-ink-meta);
}

/* ---------- documents (legal pages) ---------- */

.doc-head {
  text-align: center;
  padding-block: clamp(2.5rem, 5vw, 4rem) 0;
}
.doc-head h1 {
  margin: clamp(1rem, 2vw, 1.5rem) auto 0;
  max-width: 48rem;
  font-size: var(--page-title);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.doc-head__dates {
  margin-top: clamp(1rem, 2vw, 1.375rem);
  font-family: var(--mono);
  font-size: var(--label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--meta);
}
.doc-head .ornament { margin-top: clamp(2rem, 4vw, 3rem); }

.doc {
  max-width: var(--measure);
  margin: 0 auto;
  padding-block: clamp(2.5rem, 5vw, 3.75rem) clamp(2.5rem, 5vw, 3.5rem);
}
.doc h2 {
  margin-top: clamp(2.5rem, 4.5vw, 3.25rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  border-top: 1px solid var(--rule);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.25;
}
.doc__num {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--mono);
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--meta);
}
.doc h3 {
  margin-top: 2rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.doc p, .doc li { color: var(--body); }
.doc p { margin-top: 1.125rem; }
.doc ul, .doc ol { margin: 1.125rem 0 0; padding-left: 1.375rem; }
.doc li { margin-top: 0.625rem; }
.doc li::marker { color: var(--meta); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc code { font-family: var(--mono); font-size: 0.875em; color: var(--ink); }
.doc a { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-color: var(--underline); }
.doc a:hover { text-decoration-color: var(--ink); }

.doc__summary { padding: clamp(1.5rem, 3.5vw, 2.25rem); }
.doc .doc__summary p { margin-top: 0.75rem; }
.doc .doc__summary p:first-child { margin-top: 0; }
.doc .doc__summary .label { color: var(--ink); }

.doc__table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: 0.9375rem; }
.doc__table th, .doc__table td {
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--rule);
  padding: 0.875rem 1rem 0.875rem 0;
  color: var(--body);
}
.doc__table th {
  border-top: 3px double var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.doc__table tr:last-child td { border-bottom: 1px solid var(--ink); }

.doc .doc__address {
  display: inline-block;
  min-width: min(100%, 22rem);
  margin-top: 1.5rem;
  padding: 1.125rem 1.5rem 1.125rem 1.375rem;
  border: 1px solid var(--rule);
  border-left: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.9;
}

.doc-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  padding-bottom: var(--section);
}

/* ---------- 404 ---------- */

.notfound { text-align: center; padding-block: clamp(3rem, 8vw, 6rem) var(--section); }
.notfound h1 {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  font-size: var(--page-title);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.08;
}
.notfound .ornament { margin-top: clamp(2rem, 4vw, 3rem); }
.notfound .lede a { text-decoration: underline; text-underline-offset: 0.18em; }

@media (max-width: 40rem) {
  .record dt { flex: 1 1 100%; }
  .footer__top { gap: 2.5rem; }
  .footer__links { gap: 0 2.5rem; }
  .cornered { --corner: 0.875rem; }
}

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

@media print {
  body { color: #000; }
  .on-ink, .on-ink a, .footer__meta, .footer__bottom, .contact__note { background: none; color: #000; }
  .contact__address { border-bottom-color: #000; }
  .footer { border-top: 1px solid #000; }
  .footer__links, .footer__mark, .skip, .doc-end, .topline a { display: none; }
  .doc { max-width: none; }
}
