@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #f3f5ef;
  --surface: #ffffff;
  --ink: #10231c;
  --muted: #51635b;
  --line: #d3dad1;
  --green: #17694f;
  --signal: #f4b81a;
  --signal-ink: #2a2000;
  --band: #10231c;
  --band-ink: #eef3ee;
  --band-muted: #a5b8ae;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1512;
    --surface: #12201b;
    --ink: #e8efe9;
    --muted: #9db0a6;
    --line: #24352e;
    --green: #6fd0a8;
    --band: #14261f;
    --band-ink: #eef3ee;
    --band-muted: #a5b8ae;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.06rem;
  line-height: 1.65;
}

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

a {
  color: var(--green);
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.label {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Header */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.4rem;
}

.mark {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 1.6rem;
}

.site-header nav a {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 500;
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--green);
  text-decoration: underline;
}

/* Hero */

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  gap: 3rem 4rem;
  align-items: center;
  padding-block: 4.5rem 6rem;
}

.hero .label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.hero .label::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  background: var(--signal);
}

h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6.2vw, 4.5rem);
  font-weight: 650;
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 0.13em;
  text-underline-offset: 0.12em;
}

.lede {
  max-width: 34rem;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.3rem;
  border-radius: 4px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.btn:hover {
  background: var(--green);
}

.actions .mail {
  color: var(--ink);
  font-weight: 500;
}

/* Waybill: the hero's shipping-label summary */

.waybill {
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 1.1rem 1.25rem 1.25rem;
  transform: rotate(1.5deg);
}

.wb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.9rem;
}

.wb-top .mark {
  font-size: 1.05rem;
}

.chip {
  padding: 0.2rem 0.5rem;
  background: var(--signal);
  color: var(--signal-ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.waybill dl div {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding-block: 0.6rem;
  border-top: 1px dashed var(--line);
}

.waybill dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.waybill dd {
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.35;
}

.wb-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.4;
  color: var(--muted);
  text-align: right;
}

.barcode {
  flex: none;
  width: 6.5rem;
  height: 2.1rem;
  background: linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 5px,
    var(--ink) 5px 6px,
    transparent 6px 8px,
    var(--ink) 8px 11px,
    transparent 11px 13px,
    var(--ink) 13px 14px,
    transparent 14px 18px,
    var(--ink) 18px 20px,
    transparent 20px 21px,
    var(--ink) 21px 22px,
    transparent 22px 26px
  );
  background-size: 26px 100%;
}

/* Sections */

.section {
  border-top: 1px solid var(--line);
  scroll-margin-top: 1rem;
}

.section .wrap {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 1.5rem 3rem;
  padding-block: 5rem;
}

.section .label {
  padding-top: 0.7rem;
}

.statement {
  max-width: 40rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.prose {
  max-width: 36rem;
  margin-top: 1.5rem;
  color: var(--muted);
}

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 2rem 2.5rem;
  margin-top: 3rem;
}

.points div {
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
}

.points h3 {
  margin-bottom: 0.5rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.points p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Contact band */

.contact {
  background: var(--band);
  color: var(--band-ink);
  scroll-margin-top: 0;
}

.contact .wrap {
  padding-block: 5.5rem;
}

.contact .label {
  color: var(--band-muted);
}

.contact p {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--band-muted);
  font-size: 1.15rem;
}

.contact .big {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--band-ink);
  font-family: var(--display);
  font-size: clamp(2.4rem, 9vw, 5.5rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.14em;
}

.contact .big:hover {
  color: var(--signal);
}

.contact .big:focus-visible {
  outline-color: var(--signal);
}

/* Footer */

.site-footer {
  background: var(--band);
  color: var(--band-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  border-top: 1px solid rgb(255 255 255 / 0.14);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 3rem;
  padding-block: 1.75rem 2.5rem;
}

.site-footer .ar {
  display: block;
  font-family: "Segoe UI", Tahoma, "Geeza Pro", "Noto Sans Arabic", "Noto Naskh Arabic", sans-serif;
  text-align: left;
}

.site-footer a {
  color: var(--band-ink);
}

/* Privacy page */

.doc {
  max-width: 46rem;
  padding-block: 3.5rem 5rem;
}

.doc h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.2rem);
}

.doc .label {
  margin: 1rem 0 2.5rem;
}

.doc h2 {
  margin: 2.25rem 0 0.5rem;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.doc p,
.doc ul {
  margin: 0 0 1rem;
}

.doc ul {
  padding-left: 1.2rem;
}

@media (max-width: 56rem) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 2.5rem 4rem;
  }

  .waybill {
    max-width: 22rem;
    transform: rotate(1deg);
  }

  .section .wrap {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 3.25rem;
  }

  .section .label {
    padding-top: 0;
  }

  .points {
    margin-top: 2.25rem;
  }

  .contact .wrap {
    padding-block: 3.75rem;
  }
}

@media (max-width: 30rem) {
  .wrap {
    padding-inline: 1.25rem;
  }

  .site-header nav {
    gap: 1.1rem;
  }

  .lede {
    font-size: 1.1rem;
  }
}

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