/* Loose Rocket site styles. Every value here comes from the design export
   (Loose Rocket Site.dc.html); the artboards are 1280 desktop and 390 mobile. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/archivo-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Tokens */
:root {
  color-scheme: light dark;
  --bg: #F4F2ED;
  --ink: #0F1519;
  --mute: #4A5054;
  --line: rgba(15, 21, 25, .15);
  --line-strong: rgba(15, 21, 25, .25);
  --surface: #FBFAF7;
  --accent: #FF5A1F;
  --on-accent: #F4F2ED;
  --gutter: 64px;
  --grain-opacity: .035;
  --mark-shadow: 0 14px 24px rgba(15, 21, 25, .08);
}

/* Dark scheme: a warm charcoal, not the design export's blue-black. The light palette
   and the accent are warm, and orange on cool black read as hollow (WO-0004). */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17140F;
    --ink: #F4F2ED;
    --mute: #A9A296;
    --line: rgba(244, 242, 237, .14);
    --line-strong: rgba(244, 242, 237, .28);
    --surface: #201C16;
    --grain-opacity: .06;
    --mark-shadow: 0 18px 30px rgba(0, 0, 0, .35);
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Grain: a tiled SVG noise, fixed, beneath the content. Makes the flat ground read as a
   material. Served inline as a data URI, which the CSP allows under img-src. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

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

h1, h2, h3, p, ul, dl { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }

.site-header, main, .site-footer {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

main { flex: 1; }

.mute { color: var(--mute); }
.accent { color: var(--accent); }

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px var(--gutter);
}

.brand { display: block; line-height: 0; }
.lockup { height: 40px; width: auto; }

.site-nav { display: flex; gap: 32px; font-size: 15px; font-weight: 500; }
.site-nav a[aria-current="page"] { border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

/* Shared pieces */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bg);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
}
.pill:hover { background: var(--accent); color: var(--on-accent); }

.underline { border-bottom: 1.5px solid var(--line-strong); padding-bottom: 2px; }

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

/* Home */
.home {
  padding: 80px var(--gutter) 96px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
}

.hero { display: flex; flex-direction: column; gap: 32px; }

.hero h1 {
  font-size: clamp(42px, 5.625vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 14ch;
  text-wrap: pretty;
}

.lede { font-size: 20px; line-height: 1.5; max-width: 44ch; color: var(--mute); text-wrap: pretty; }

.cta-row { display: flex; gap: 24px; align-items: center; font-size: 16px; font-weight: 500; }

.latest { display: flex; flex-direction: column; padding-top: 0; }

/* The mark, large, as the hero's counterweight. The SVG already leans eight degrees. */
.hero-mark { display: flex; justify-content: flex-end; padding: 0 24px 28px 0; }
.hero-mark img {
  width: clamp(180px, 22vw, 300px);
  height: auto;
  animation: drift 7s ease-in-out infinite alternate;
  filter: drop-shadow(var(--mark-shadow));
}
@keyframes drift {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(-10px) rotate(-1.5deg); }
}

.latest-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.latest-text { display: flex; flex-direction: column; gap: 4px; }
.latest-name { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.latest-line { font-size: 15px; color: var(--mute); }
.latest-kind { font-size: 13px; color: var(--mute); white-space: nowrap; }
.all-link { display: inline-block; padding-top: 20px; font-size: 15px; font-weight: 500; }

/* Products, press and contact page head */
.products, .press, .contact, .about {
  padding: 80px var(--gutter) 96px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.page-head h1 { font-size: 56px; line-height: 1; letter-spacing: -0.03em; font-weight: 800; }
.page-head p { font-size: 17px; color: var(--mute); max-width: 38ch; text-wrap: pretty; }

/* Product card (artboard 1d) */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 28px;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .2s;
}
/* While there are fewer than three products the first card spans two columns, so one
   card reads as a feature rather than a leftover. products.njk sets the class. */
.card--wide { grid-column: span 2; min-height: 260px; }
.card--wide .card-name { font-size: 34px; }
.card--wide .card-line { font-size: 18px; max-width: 40ch; }
a.card:hover { transform: rotate(-1deg) translateY(2px); border-color: var(--accent); color: var(--ink); }

.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--mute); }
.card-body { display: flex; flex-direction: column; gap: 8px; }
.card-name { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.card-line { font-size: 16px; line-height: 1.45; color: var(--mute); text-wrap: pretty; }
.card-domain { font-size: 14px; font-weight: 500; margin-top: 8px; display: flex; gap: 6px; align-items: center; }

/* Press page */
.press-section { display: flex; flex-direction: column; gap: 16px; max-width: 72ch; }
.press-section h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.press-section h3 { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-top: 8px; }
.press-section p { font-size: 17px; line-height: 1.55; }
.press .page-head { flex-direction: column; align-items: flex-start; gap: 24px; }
.press .page-head p { font-size: 17px; max-width: 60ch; }

.facts { display: grid; grid-template-columns: 10em minmax(0, 1fr); gap: 10px 24px; font-size: 16px; }
.facts dt { color: var(--mute); }
.facts dd { margin: 0; }

.logo-table { border-collapse: collapse; width: 100%; font-size: 15px; }
.logo-table th { text-align: left; font-weight: 500; color: var(--mute); padding: 0 16px 10px 0; border-bottom: 1px solid var(--line); }
.logo-table td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }

.swatch { display: inline-flex; align-items: center; justify-content: center; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); }
.swatch--light { background: #F4F2ED; }
.swatch--dark { background: #0F1519; }
.logo-table td:first-child { width: 220px; }

.press-products { display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 1.5; }

.badge-previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.badge-previews .swatch { padding: 36px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px 0 8px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.badge strong { font-weight: 800; }
.badge--light { color: #0F1519; background: #F4F2ED; border-color: rgba(15, 21, 25, .2); }
.badge--dark { color: #F4F2ED; background: #0F1519; border-color: rgba(244, 242, 237, .25); }
.badge:hover { border-color: var(--accent); }

pre {
  margin: 0;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Contact page */
.contact-email { font-size: clamp(26px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.contact-email .underline { border-bottom-width: 3px; padding-bottom: 4px; }

.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contact-block { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.contact-block h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.contact-block p { font-size: 16px; line-height: 1.45; color: var(--mute); text-wrap: pretty; }
.contact-block .underline { color: var(--ink); }

.contact-note { font-size: 17px; line-height: 1.55; color: var(--mute); max-width: 52ch; text-wrap: pretty; }

/* About page */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.about-grid--photo { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; }
.about-text { display: flex; flex-direction: column; gap: 22px; max-width: 60ch; }
.about-text p { font-size: 20px; line-height: 1.5; text-wrap: pretty; }
.about-text .facts { margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.about-note { font-size: 17px; color: var(--mute); }
.about-photo { margin: 0; }
.about-photo img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }

/* 404 */
.notfound { padding: 112px var(--gutter) 96px; display: flex; flex-direction: column; gap: 24px; }
.notfound h1 { font-size: clamp(42px, 5.625vw, 72px); line-height: 1; letter-spacing: -0.03em; font-weight: 800; }
.notfound p { font-size: 17px; font-weight: 500; }

/* Footer (artboard 1e) */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--mute);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 22px; height: 22px; }
.footer-links { display: flex; gap: 28px; }

/* Between the two artboards */
@media (max-width: 1024px) {
  .card-grid, .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile (artboard 1b, 390 wide) */
@media (max-width: 720px) {
  :root { --gutter: 24px; }

  .site-header { padding: 22px var(--gutter); }
  .lockup { height: 32px; }
  .site-nav { gap: 18px; font-size: 14px; }

  .home { display: flex; flex-direction: column; gap: 48px; padding: 56px var(--gutter) 64px; }
  .hero { gap: 22px; }
  .hero h1 { line-height: 1.02; max-width: none; }
  .lede { font-size: 17px; }
  .cta-row { flex-direction: column; gap: 18px; align-items: flex-start; font-size: 15px; }
  .pill { min-height: 48px; font-size: 15px; }

  .latest { padding-top: 0; }
  .hero-mark { justify-content: flex-start; padding: 0 0 8px 6px; }
  .hero-mark img { width: 120px; }
  .card--wide { grid-column: auto; min-height: 220px; }
  .card--wide .card-name { font-size: 26px; }
  .card--wide .card-line { font-size: 16px; }
  .eyebrow { font-size: 12px; padding-bottom: 14px; }
  .latest-row { flex-direction: column; gap: 3px; padding: 16px 0; min-height: 44px; }
  .latest-name { font-size: 17px; }
  .latest-line { font-size: 14px; }
  .latest-kind { white-space: normal; }
  .all-link { padding-top: 16px; min-height: 44px; }

  .products, .press, .contact, .about { padding: 56px var(--gutter) 64px; gap: 40px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .page-head h1 { font-size: 42px; }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-block { padding: 22px; }

  .facts { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .facts dt { margin-top: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
  .badge-previews { grid-template-columns: minmax(0, 1fr); }
  .logo-table td:first-child { width: 120px; }
  .swatch { padding: 8px 10px; }

  .about-grid--photo { grid-template-columns: minmax(0, 1fr); }
  .about-text p { font-size: 17px; }
  .notfound { padding: 56px var(--gutter) 64px; }

  .site-footer { flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px var(--gutter); }
  .footer-brand { gap: 10px; }
  .footer-brand img { width: 20px; height: 20px; }
  .footer-links { gap: 20px; }
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  a.card:hover { transform: none; }
  .hero-mark img { animation: none; }
}
