/* Uzora — the static pages (home, policies, support) in Selvage, the app's
   design system (skein/packages/skein_design), like the catalogue
   (web/catalogue/src/styles/global.css): linen ground, ink text, Arsenal SC
   headings and Inter text, madder for links and the one action, myrtle only
   for the brand's own voice. Fonts are the catalogue's OFL subsets. */

@font-face {
  font-family: "Arsenal SC";
  src: url("fonts/ArsenalSC-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Arsenal SC";
  src: url("fonts/ArsenalSC-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --linen: #f6f1e7;
  --milk: #fbf7f1;
  --ink: #2a241f;
  --ink-2: #5c5147;
  --line: #e0d6c4;
  --myrtle: #2f5245;
  --madder: #ae3a4e;
  --madder-press: #8e2c3d;
  --on-madder: #fbf7f1;
  --weave: rgba(42, 36, 31, 0.035);
  --shadow: 0 18px 50px rgba(42, 36, 31, 0.08);
  --display: "Arsenal SC", "Iowan Old Style", Georgia, serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --linen: #1c1611;
    --milk: #251d16;
    --ink: #f1e9db;
    --ink-2: #c2b6a4;
    --line: #3e332a;
    --myrtle: #8fb3a2;
    --madder: #d86073;
    --madder-press: #c2475a;
    --on-madder: #1c1611;
    --weave: rgba(241, 233, 219, 0.03);
    --shadow: none;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--linen);
  /* Linen: a faint plain weave, warp and weft. */
  background-image:
    repeating-linear-gradient(90deg, var(--weave) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, var(--weave) 0 1px, transparent 1px 4px);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}

main,
header,
footer {
  width: min(760px, calc(100% - 32px));
  margin-inline: auto;
}

header {
  padding: 64px 0 24px;
}

main {
  min-height: 55vh;
  padding: 24px clamp(20px, 5vw, 54px) 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--milk);
  box-shadow: var(--shadow);
}

footer {
  padding: 28px 0 56px;
  color: var(--ink-2);
  font-size: 14px;
}

/* Arsenal SC is a small-caps cut: headings read in two cap heights by
   design, so never upper-case them by hand. */
h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 8vw, 62px);
  line-height: 1;
}

h2 {
  margin: 2em 0 0.5em;
  font-size: clamp(24px, 4vw, 30px);
}

p,
li {
  max-width: 68ch;
}

a {
  color: var(--madder);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--madder-press);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--myrtle);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lede {
  color: var(--ink-2);
  font-size: 20px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 0;
  list-style: none;
}

.contact {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--madder);
  color: var(--on-madder);
  font-weight: 600;
  text-decoration: none;
}

.contact:hover {
  background: var(--madder-press);
  color: var(--on-madder);
}

@media (max-width: 520px) {
  header {
    padding-top: 36px;
  }

  main {
    width: calc(100% - 32px);
    padding-inline: 20px;
  }
}
