/* boxtrail.app: the information site for the Boxtrail app, in the app's look (direction D). */
@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: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0e1b2c;
  --panel: #15263b;
  --line: #24405f;
  --text: #eef2f6;
  --muted: #a9b8c9;
  --orange: #ff6a2b;
  --on-orange: #1a0e06;
  --mint: #5ed6a0;
  --link: #ff8a57;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --ink: #f4f6f9;
    --panel: #ffffff;
    --line: #c9d4e1;
    --text: #0e1b2c;
    --muted: #46566a;
    --link: #b8400f;
    --mint: #1f7a52;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font:
    17px/1.6 "IBM Plex Sans",
    system-ui,
    sans-serif;
}
a {
  color: var(--link);
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
img,
svg {
  max-width: 100%;
}

.wrap {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 0 20px;
}
.pattern {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 260px;
  color: var(--line);
  pointer-events: none;
}

.bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding-block: 18px;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font: 800 22px var(--display);
}
.bar nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}
.bar nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 800;
  margin: 0;
}
h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  margin: 0 0 12px;
}
h3 {
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 6px;
}

.hero {
  position: relative;
  padding-block: 56px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}
.hero__copy {
  flex: 1 1 420px;
  min-width: 0;
  display: grid;
  gap: 18px;
}
.lede {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  max-width: 36ch;
}
.soon {
  justify-self: start;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--on-orange);
  font-weight: 600;
}
.hero__art {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.section {
  padding-block: 40px;
}
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.steps li {
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--panel);
}
.steps li p,
.features p {
  margin: 0;
  color: var(--muted);
}
.num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 15px;
  background: var(--mint);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px 40px;
}
.callout {
  padding: 22px 24px;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.callout p {
  margin: 0;
}

.doc {
  position: relative;
  max-width: 720px;
  padding-block: 40px 56px;
}
.doc h1 {
  font-size: clamp(36px, 6vw, 52px);
  margin-bottom: 8px;
}
.doc h2 {
  font-size: 26px;
  margin-top: 36px;
}
.doc .updated {
  color: var(--muted);
  margin: 0 0 20px;
}
.doc .summary {
  font-size: 19px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--panel);
}
.doc li + li {
  margin-top: 8px;
}

footer {
  border-top: 1px solid var(--line);
  padding-block: 24px 40px;
  color: var(--muted);
  font-size: 15px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
