/* Primautomate. Decisions live in DESIGN.md. */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-700-latin.woff2") format("woff2");
}

/* One variable file covers 400 to 700. */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
}

:root {
  --paper: #ffffff;
  --shelf: #f6f7f7;
  --ink: #17191c;
  --graphite: #5a5f66;
  --rule: #e2e4e7;
  --accent: #1b1e34;        /* the logo navy */
  --accent-hover: #33385e;

  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --text: "Atkinson Hyperlegible Next", "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: 24px;
  --section: 72px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(1080px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 8px 16px;
  background: var(--paper);
  color: var(--ink);
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { width: 24px; height: 34px; }
.brand span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: 8px;
  margin: 0 -8px 0 0;  /* the last link's padding sits outside the column */
  padding: 0;
  list-style: none;
}
.nav a {
  display: block;
  padding: 10px 8px;
  text-decoration: none;
}

/* Links: a quiet underline on hover, nothing else. */
.nav a:hover,
.text-link:hover,
.site-footer a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--text);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition: background-color 150ms ease;
}
.button:hover { background: var(--accent-hover); }

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 var(--section);
  text-align: center;
}
.hero h1 {
  max-width: 14em;
  margin: 0 auto;
  font-size: 40px;
  line-height: 1.05;
}
.hero .lead {
  max-width: 28em;
  margin: 24px auto 40px;
  color: var(--graphite);
  font-size: 18px;
  line-height: 1.5;
  text-wrap: balance;
}

/* ---------- Sections ---------- */

.band { padding: var(--section) 0; }
.band--shelf { background: var(--shelf); }
.band--ruled { border-top: 1px solid var(--rule); }

.statement {
  max-width: 18em;
  margin: 0 auto;
  text-align: center;
  font-size: 28px;
  line-height: 1.15;
}

/* ---------- Products ---------- */

.products {
  display: grid;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 0;
}
.product + .product { border-top: 1px solid var(--rule); }

.product img {
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
}
.product h3 {
  font-size: 32px;
  line-height: 1.05;
}

.status {
  margin-top: 12px;
  padding: 2px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--graphite);
  font-size: 14px;
  line-height: 1.5;
}
.status--live {
  border-color: var(--ink);
  color: var(--ink);
}

.product p {
  max-width: 20em;
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.5;
}
.product .button { margin-top: 28px; }

/* The signature: a dictionary entry for "poa". */
.gloss {
  max-width: 30em;
  margin: 40px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
  text-align: center;
  color: var(--graphite);
  text-wrap: balance;
}
.gloss dfn {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-style: normal;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.gloss .lang { font-style: italic; }

/* ---------- About ---------- */

.about p {
  max-width: 34em;
  margin: 24px auto 0;
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ---------- Contact ---------- */

.contact .intro {
  max-width: 30em;
  margin: 20px auto 0;
  text-align: center;
  color: var(--graphite);
  text-wrap: balance;
}

.contact-list {
  display: grid;
  gap: 32px;
  margin: 40px 0 0;
  text-align: center;
}
.contact-list dt {
  color: var(--graphite);
  font-size: 15px;
}
.contact-list dd { margin: 4px 0 0; }

.text-link {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 32px 0;
  background: var(--shelf);
  color: var(--graphite);
  font-size: 15px;
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.site-footer ul {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

/* ---------- Plain pages: privacy, 404 ---------- */

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 0 var(--section);
}
.page h1 {
  font-size: 36px;
  line-height: 1.1;
}
.page h2 {
  margin-top: 40px;
  font-size: 22px;
  line-height: 1.25;
}
.page p,
.page ul {
  margin: 16px 0 0;
  font-size: 18px;
}
.page ul { padding-left: 20px; }
.page li + li { margin-top: 8px; }
.page a:not(.button) {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.page .updated {
  margin-top: 12px;
  color: var(--graphite);
  font-size: 15px;
}

.not-found {
  text-align: center;
  padding: 120px 0;
}
.not-found h1 { font-size: 40px; }
.not-found p {
  margin: 20px auto 40px;
  max-width: 24em;
  color: var(--graphite);
  font-size: 18px;
}

/* ---------- Phones: brand mark only, so the three links fit ---------- */

@media (max-width: 479px) {
  .brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .nav { gap: 4px; margin-right: -6px; }
  .nav a { padding: 10px 6px; font-size: 15px; }
}

/* ---------- Tablet and up ---------- */

@media (min-width: 720px) {
  :root {
    --gutter: 40px;
    --section: 96px;
  }

  .hero { padding: 120px 0 var(--section); }
  .hero h1 { font-size: 72px; }
  .hero .lead { font-size: 21px; margin: 32px auto 48px; }

  .statement { font-size: 40px; }

  .products {
    grid-template-columns: 1fr 1fr;
    margin-top: 72px;
  }
  .product { padding: 8px 40px; }
  .product + .product {
    border-top: 0;
    border-left: 1px solid var(--rule);
  }
  .product img { width: 80px; height: 80px; }
  .product h3 { font-size: 48px; }

  .gloss { margin-top: 72px; padding-top: 56px; }
  .gloss dfn { font-size: 40px; }

  .contact-list {
    grid-template-columns: auto auto;
    justify-content: center;
    gap: 96px;
    margin-top: 48px;
  }
  .text-link { font-size: 24px; }

  .site-footer .wrap {
    flex-direction: row;
    justify-content: space-between;
  }

  .page { padding-top: 96px; }
  .page h1 { font-size: 48px; }

  .not-found { padding: 160px 0; }
  .not-found h1 { font-size: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
