/* Warranty Claim Prep: a warranty claim folder seen open.
   Pressboard ground, repair-order paper sheets, ballpoint ink, canary copy. */

@font-face {
  font-family: "Archivo Narrow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/archivo-narrow-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/archivo-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/archivo-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/courier-prime-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/courier-prime-latin-700-normal.woff2") format("woff2");
}

:root {
  --board: #6b4528;        /* clipboard brown: the pressboard folder */
  --board-deep: #563720;   /* pressboard fibre and edge shade */
  --paper: #f1efe7;        /* repair-order paper */
  --ink: #1b1f2e;          /* ballpoint ink */
  --canary: #f3df74;       /* canary copy */
  --rule: rgba(27, 31, 46, 0.22);
  --rule-strong: rgba(27, 31, 46, 0.55);
  --head: "Archivo Narrow", "Arial Narrow", sans-serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --typed: "Courier Prime", "Courier New", monospace;
}

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

html {
  background-color: var(--board);
  scrollbar-color: var(--board-deep) var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  background-color: var(--board); /* pressboard, flat: no texture is faked */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--canary); color: var(--ink); }

a { color: var(--board); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--head); font-weight: 700; text-wrap: balance; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--canary);
  color: var(--ink);
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- masthead: the folder tab */
.masthead {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 16px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 24px;
}
.tab {
  display: block;
  order: 1;
  background: var(--paper);
  padding: 12px 22px 10px 18px;
  border-radius: 12px 12px 0 0;
  line-height: 0;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.18) inset;
}
.tab img { height: 40px; width: auto; }
.tab:focus-visible { outline-color: var(--canary); }
.nav { order: 2; padding-bottom: 12px; }
.nav ul { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nav a {
  color: var(--paper);
  font-family: var(--head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] { border-bottom-color: var(--canary); }
.nav a:focus-visible,
.foot a:focus-visible,
.close a:focus-visible { outline-color: var(--canary); }

/* ---------------------------------------------------------------- the folder and its sheets */
.folder {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

.sheet {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: 26px 22px;
  margin: 0 0 20px;
  box-shadow: 0 1px 0 rgba(27, 15, 6, 0.35), 0 10px 18px -12px rgba(27, 15, 6, 0.7);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
/* the printed frame of the form, inset from the paper's edge */
.sheet::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--rule-strong);
  pointer-events: none;
}
.sheet:hover,
.sheet:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 2px 0 rgba(27, 15, 6, 0.3), 0 18px 26px -14px rgba(27, 15, 6, 0.75);
}
.folder > .sheet:first-child { border-top-left-radius: 0; }

/* the sheet's printed box label: the section heading in a ruled box at the top left,
   its header rule running on to the sheet's right edge, one constant scale on every sheet */
.box {
  display: flex;
  align-items: flex-end;
  color: var(--board);
  font-size: 1.5rem;
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin-bottom: 28px;
}
.box span {
  display: block;
  max-width: 100%;
  padding: 10px 16px 9px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
}
.box::after {
  content: "";
  flex: 1 1 0;
  min-width: 16px;
  border-bottom: 1.5px solid var(--ink);
}

.measure { max-width: 46rem; }
.big { font-size: 1.3rem; line-height: 1.5; max-width: 36em; }
.fig { font-family: var(--typed); font-weight: 700; font-size: 1em; letter-spacing: -0.01em; line-height: 0; }
.st {
  font-family: var(--typed);
  font-weight: 700;
  font-size: 0.94em;
  line-height: 0;
  background: var(--canary);
  padding: 0 0.22em;
  box-shadow: 0 0 0 1px var(--ink) inset;
}

/* ---------------------------------------------------------------- the top sheet */
.top {
  padding-top: 52px;
}
/* the two-prong fastener through the top of the sheet */
.top::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 132px;
  height: 22px;
  margin-left: -66px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 22'%3E%3Crect x='1' y='5' width='130' height='12' rx='6' fill='%23a7a49c' stroke='%235f5c55' stroke-width='1.2'/%3E%3Crect x='6' y='8' width='120' height='3' rx='1.5' fill='%23d9d6cd'/%3E%3Ccircle cx='22' cy='11' r='3.6' fill='%231b1f2e'/%3E%3Ccircle cx='110' cy='11' r='3.6' fill='%231b1f2e'/%3E%3C/svg%3E") no-repeat center / contain;
}
.top h1 {
  font-size: 2.45rem;
  line-height: 0.96;
  letter-spacing: -0.015em;
  max-width: 17ch;
  margin-bottom: 20px;
}
.lede { font-size: 1.12rem; line-height: 1.5; max-width: 46rem; margin: 0 0 24px; }

/* the canary carbon copy along the foot of the top sheet: what is free, and the action */
.copy-strip {
  position: relative;
  background: var(--canary);
  color: var(--ink);
  margin: 0 -22px -26px;
  padding: 20px 22px 24px;
  border-top: 2px dashed rgba(27, 31, 46, 0.5);
}
.copy-strip p { margin-bottom: 14px; }
.strip-label {
  font-family: var(--head);
  font-size: 1.3rem;
  line-height: 1.1;
}
.strip-label a { color: var(--ink); text-decoration-thickness: 2px; }

/* the one action: an ink stamp that inverts under the pointer */
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 30px;
  background: var(--canary);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: inset 0 0 0 3px var(--canary), inset 0 0 0 4.5px var(--ink); /* a stamp's double edge */
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.18s ease-out, color 0.18s ease-out, box-shadow 0.18s ease-out;
}
.action:hover,
.action:focus-visible { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4.5px var(--paper); }
.action.on-brown:focus-visible { outline-color: var(--canary); }
.close .action:hover,
.close .action:focus-visible { border-color: var(--paper); }

/* ---------------------------------------------------------------- what we prepare: the entry sheet */
.entries { margin-top: 10px; border-top: 1px solid var(--rule-strong); display: grid; }
.entries li {
  position: relative;
  padding: 14px 0 14px 40px;
  border-bottom: 1px solid var(--rule);
}
/* READY mark: a box with a check */
.entries li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
}
.entries li::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 19px;
  width: 7px;
  height: 13px;
  border: solid var(--board);
  border-width: 0 3px 3px 0;
  transform: rotate(40deg);
}

/* ---------------------------------------------------------------- the line sheet: the canary copy */
.canary { background: var(--canary); }
.canary .box { color: var(--ink); }
.canary .box span { background: var(--canary); }
.limits { margin: 4px 0 22px; border-top: 1px solid var(--rule-strong); max-width: 74ch; }
.limits li {
  position: relative;
  padding: 11px 0 11px 40px;
  border-bottom: 1px solid var(--rule);
}
/* a printed blank: the line where an entry would go */
.limits li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.35em;
  width: 22px;
  border-top: 2px solid var(--ink);
}
.ask { font-weight: 600; font-size: 1.12rem; margin: 0; }
.canary a { color: var(--ink); }

/* ---------------------------------------------------------------- how it works: the routing slip */
.slip { counter-reset: step; position: relative; }
/* one custody rule down through every step box */
.slip::before {
  content: "";
  position: absolute;
  left: 21.5px;
  top: 24px;
  bottom: 40px;
  width: 3px;
  background: var(--board);
}
.slip li {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  column-gap: 20px;
  padding: 0 0 22px;
}
.slip li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--canary);
  border: 2px solid var(--ink);
  font-family: var(--typed);
  font-weight: 700;
  font-size: 1.35rem;
}
.slip h3 { font-size: 1.4rem; line-height: 1.1; padding-top: 10px; margin-bottom: 6px; }
.slip p { margin: 0; max-width: 62ch; }

/* ---------------------------------------------------------------- price: the fee sheet */
.rates { margin: 0 0 26px; max-width: 46rem; border-top: 1px solid var(--rule-strong); }
.rates li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-strong);
  font-size: 1.16rem;
  line-height: 1.45;
}
.rates li:first-child { font-size: 1.3rem; font-weight: 600; }
.terms { display: grid; gap: 10px 36px; margin-bottom: 34px; }
.terms li { position: relative; padding-left: 22px; font-size: 1rem; }
.terms li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--board);
}
.out { padding-top: 6px; }
.out h3 { font-size: 1.55rem; color: var(--ink); margin-bottom: 14px; }
.struck { display: grid; gap: 0 36px; }
.struck li {
  position: relative;
  padding: 11px 0 11px 40px;
  border-bottom: 1px solid var(--rule);
}
/* EXCEPTION mark: a box struck through with one diagonal */
.struck li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--ink);
  background: linear-gradient(to top right, transparent calc(50% - 1.2px), var(--ink) calc(50% - 1.2px),
      var(--ink) calc(50% + 1.2px), transparent calc(50% + 1.2px));
}

/* ---------------------------------------------------------------- the question list */
.questions { display: grid; gap: 0 48px; }
.qa { border-top: 1px solid var(--rule-strong); padding: 18px 0 8px; }
.qa h3 {
  font-family: var(--text);
  font-weight: 600;
  font-size: 1.14rem;
  line-height: 1.3;
  margin-bottom: 8px;
}
.qa p { max-width: 64ch; }

/* ---------------------------------------------------------------- the close: the folder's back cover */
.close {
  color: var(--paper);
  padding: 44px 0 52px;
}
.close h2 {
  font-size: 2.3rem;
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  max-width: 16ch;
}
.close p { font-size: 1.15rem; margin-bottom: 26px; }
.close a:not(.action) { color: var(--paper); }

/* ---------------------------------------------------------------- reading sheets: about, contact, policies, updates */
.read > * { max-width: 70ch; }
.read h1 {
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: -0.01em;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 3px solid var(--ink);
}
.read h2 {
  color: var(--board);
  font-size: 1.65rem;
  line-height: 1.1;
  margin: 2.1em 0 0.6em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule-strong);
}
.read h3 { font-size: 1.28rem; line-height: 1.15; margin: 1.6em 0 0.5em; }
.read p,
.read li { line-height: 1.62; }
.read ul { margin: 0 0 1.2em; }
.read li { position: relative; padding-left: 22px; margin-bottom: 0.5em; }
.read li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--board);
}
.read .meta,
.read time { font-family: var(--typed); font-size: 0.98rem; }
.read .meta { margin-bottom: 1.6em; }
.read .action { margin-top: 8px; }
.update { border-top: 3px solid var(--ink); margin-top: 2.4em; padding-top: 0.4em; }
.update h2 { border-bottom: 0; margin-top: 0.4em; padding-bottom: 0; color: var(--ink); }
.update time { color: var(--board); font-weight: 700; }

/* ---------------------------------------------------------------- footer on the pressboard */
.foot {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 16px 34px;
  color: var(--paper);
  font-size: 0.95rem;
  border-top: 1px solid rgba(241, 239, 231, 0.28);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 28px;
}
.foot p { margin: 0; }
.foot a { color: var(--paper); }
.foot ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ---------------------------------------------------------------- wider screens */
@media (min-width: 760px) {
  .masthead, .foot { padding-left: 28px; padding-right: 28px; }
  .folder { padding: 0 28px; }
  .sheet { padding: 44px 44px; }
  .top { padding-top: 72px; }
  .box { font-size: 1.9rem; }
  .top h1 { font-size: 4.1rem; margin-bottom: 30px; }
  .copy-strip { margin: 0 -44px -44px; padding: 24px 44px 30px; display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto; gap: 8px 32px; align-items: center; }
  .copy-strip p { margin: 0; }
  .lede { font-size: 1.3rem; margin-bottom: 34px; }
  .close { padding: 72px 0 84px; }
  .close h2 { font-size: 3.5rem; }
  .read h1 { font-size: 3.1rem; }
  .tab img { height: 48px; }
  .terms { grid-template-columns: 1fr 1fr; }
  .slip li { grid-template-columns: 46px minmax(0, 15rem) minmax(0, 1fr); }
  .slip li::before { grid-row: auto; }
  .slip h3 { padding-top: 8px; }
  .slip p { padding-top: 10px; }
  .slip li { padding-bottom: 26px; }
}
@media (min-width: 1040px) {
  .sheet { padding: 58px 60px; }
  .top { padding-top: 88px; }
  .box { font-size: 2.1rem; }
  .top h1 { font-size: 4.45rem; line-height: 0.95; letter-spacing: -0.02em; margin-bottom: 30px; max-width: none; }
  .copy-strip { margin: 0 -60px -58px; padding: 26px 60px 34px; }
  .close { padding: 92px 0 100px; }
  .close h2 { font-size: 4.4rem; }
  .read h1 { font-size: 3.8rem; }
  .entries { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .struck { grid-template-columns: 1fr 1fr; }
  .questions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 759px) {
  .masthead { padding-top: 10px; }
  .nav { order: 0; width: 100%; padding-bottom: 0; }
  .nav ul { gap: 2px 18px; }
  .nav a { font-size: 0.92rem; }
  .tab { padding: 10px 14px 8px 12px; }
  .top::after { top: 14px; }
  .top h1 { margin-bottom: 16px; }
  .lede { font-size: 1.02rem; }
  .action { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .sheet,
  .action { transition: none; }
  .sheet:hover,
  .sheet:focus-within { transform: none; }
}
.read h1 + .update { border-top: 0; margin-top: 0; padding-top: 0; }
