/* Retrofire LLC, retrofirecompany.com. One stylesheet, no scripts. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card-on-bg: #f5f5f7;
  --card-on-alt: #ffffff;
  --text: #1d1d1f;
  --muted: #5f5f66;
  --faint: #6e6e73;
  --rim: rgba(0, 0, 0, 0.08);
  --rim-strong: rgba(0, 0, 0, 0.16);
  --accent: #a85200;
  --accent-ink: #ffffff;
  --dot: #ff9f0a;
  --header: rgba(255, 255, 255, 0.82);
  --shot-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 22px 44px rgba(0, 0, 0, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px;
  --gutter: clamp(16px, 5vw, 24px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --bg-alt: #1a1a1a;
    --card-on-bg: #262626;
    --card-on-alt: #262626;
    --text: #f5f5f7;
    --muted: #a8a8ad;
    --faint: #8e8e93;
    --rim: rgba(255, 255, 255, 0.08);
    --rim-strong: rgba(255, 255, 255, 0.18);
    --accent: #ff9f0a;
    --accent-ink: #1a1000;
    --header: rgba(18, 18, 18, 0.8);
    --shot-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 22px 48px rgba(0, 0, 0, 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
p { margin: 0 0 1em; }
strong { font-weight: 600; }
section, h3 { scroll-margin-top: 72px; }
h2 { scroll-margin-top: 112px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 14px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--rim-strong);
  border-radius: 10px;
  z-index: 20;
}
.skip:focus { left: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap.narrow { max-width: calc(760px + var(--gutter) * 2); }

/* Top bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--rim);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
  padding: 12px 0;
}
.wordmark span { font-weight: 400; color: var(--muted); }
.wordmark:hover { text-decoration: none; }
.site-nav ul {
  display: flex;
  gap: clamp(16px, 4vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 13px 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); }

/* Type */
.eyebrow {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--muted);
}
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0 0 0.4em;
}
h1 {
  font-size: clamp(44px, 6.4vw, 80px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h3 {
  font-size: 21px;
  line-height: 1.24;
  font-weight: 600;
  letter-spacing: 0;
}
.lede {
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.42;
  color: var(--muted);
  max-width: 40em;
  text-wrap: pretty;
}
.muted { color: var(--muted); }
.small { font-size: 15px; }
.note { font-size: 15px; color: var(--faint); margin: 28px 0 0; }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section.alt { background: var(--bg-alt); }
.section.follow { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lede { margin-bottom: 0; }
.hero { padding: clamp(56px, 9vw, 96px) 0 clamp(56px, 8vw, 96px); }
.hero .lede { margin-top: 18px; }
.hero.short { padding-bottom: 8px; }

/* Hero with screenshots */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.hero-grid h1 { font-size: clamp(42px, 5.4vw, 66px); }
.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 560px;
  justify-self: end;
  width: 100%;
  align-items: start;
}
.pair > :nth-child(2) { margin-top: 64px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 500;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid transparent;
}
.button:hover { text-decoration: none; filter: brightness(1.08); }
.button.secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.textlink { font-weight: 500; font-size: 17px; }
.textlink::after { content: " \203A"; }
.after { margin: 32px 0 0; }

/* Availability line */
.status {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot);
  flex: none;
  transform: translateY(-1px);
}

/* Feature rows: Apple's style, no boxes */
.rows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 40px;
}
.rows.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rows.one { grid-template-columns: minmax(0, 1fr); gap: 0; }
.row { border-top: 1px solid var(--rim-strong); padding-top: 20px; }
.rows.one .row { padding: 18px 0 20px; }
.row h3 { font-size: 17px; line-height: 1.35; margin: 0 0 4px; }
.row p { color: var(--muted); margin: 0; }
.row p + p { margin-top: 0.6em; }

/* App identity */
.app-id { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 22.37%;
  box-shadow: 0 0 0 1px var(--rim), 0 10px 24px rgba(0, 0, 0, 0.16);
  flex: none;
}
.app-icon.large { width: 112px; height: 112px; }
.app-id h1, .app-id h2 { margin: 0; }
.app-id .by { margin: 4px 0 0; color: var(--muted); font-size: 17px; }

/* Screenshots: one shape for all, 11:20 */
.shot { margin: 0; }
.shot img {
  width: 100%;
  aspect-ratio: 11 / 20;
  object-fit: cover;
  border-radius: 9% / 4.95%;
  box-shadow: 0 0 0 1px var(--rim-strong), var(--shot-shadow);
  background: var(--bg-alt);
}
.shot figcaption {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
}
.shot figcaption strong { display: block; color: var(--text); font-weight: 600; }

/* Split: words beside a picture */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split.flip { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .split.flip > .split-media { order: -1; }
.split-media { position: sticky; top: 96px; }
.split-media .shot { max-width: 300px; margin: 0 auto; }
.split-media .pair { justify-self: center; margin: 0 auto; max-width: 520px; }
.split h2 { margin-bottom: 0.3em; }
.below { margin-top: clamp(56px, 8vw, 88px); }

/* Mission board: two rows of seven equal columns */
.board {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 40px 14px;
  margin-top: clamp(56px, 8vw, 88px);
}
.group { display: grid; gap: 14px; align-content: start; }
.group-head { grid-column: 1 / -1; }
.group-head h3 { font-size: 17px; margin: 0; }
.group-head p { font-size: 15px; color: var(--muted); margin: 2px 0 0; }
.g-mind { grid-column: 1 / span 5; grid-row: 1; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-prove { grid-column: 6 / span 2; grid-row: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-body { grid-column: 1 / span 4; grid-row: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-find { grid-column: 5 / span 3; grid-row: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile {
  background: var(--card-on-bg);
  border-radius: 18px;
  padding: 18px 12px 16px;
  text-align: center;
}
.section.alt .tile { background: var(--card-on-alt); }
.tile img { width: 64px; height: 64px; margin: 0 auto 10px; }
.tile h4 { font-size: 15px; font-weight: 600; line-height: 1.3; margin: 0 0 4px; }
.tile p { font-size: 13px; line-height: 1.38; color: var(--muted); margin: 0; }

.badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.badges .tile { padding: 22px 14px 18px; }

/* Company facts */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-radius: 18px;
  background: var(--card-on-alt);
  overflow: hidden;
}
.facts > div, .facts > a { padding: 22px 24px; border-top: 1px solid var(--rim); border-left: 1px solid var(--rim); }
.facts > :nth-child(-n+3) { border-top: 0; }
.facts > :nth-child(3n+1) { border-left: 0; }
.facts dt { font-size: 13px; font-weight: 600; color: var(--faint); }
.facts dd { margin: 4px 0 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
.facts > a { display: block; align-self: stretch; font-weight: 600; }
.facts > a::after { content: "\00a0\203A"; }

/* Info table */
.info-wrap { border-radius: 18px; overflow: hidden; background: var(--card-on-bg); }
.section.alt .info-wrap { background: var(--card-on-alt); }
.info { width: 100%; border-collapse: collapse; border-spacing: 0; }
.info th, .info td {
  text-align: left;
  vertical-align: top;
  padding: 16px 22px;
  border-top: 1px solid var(--rim);
  font-size: 16px;
  line-height: 1.45;
}
.info tr:first-child th, .info tr:first-child td { border-top: 0; }
.info th { width: 40%; font-weight: 500; color: var(--muted); }
.info td { font-weight: 500; }

/* Contact cards */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(36px, 5vw, 52px); }
.contact-item { background: var(--card-on-bg); border-radius: 18px; padding: clamp(22px, 3vw, 30px); }
.contact-item .label { font-size: 15px; font-weight: 600; color: var(--faint); margin: 0 0 6px; }
.contact-item .value { font-size: 19px; font-weight: 600; margin: 0 0 8px; }
.contact-item address.value { font-size: 17px; font-weight: 400; color: var(--text); font-style: normal; }
.contact-item p:last-child { color: var(--muted); margin: 0; }
address { font-style: normal; }

/* Long-form legal pages */
.prose { font-size: 17px; line-height: 1.6; }
.prose p, .prose li { color: var(--text); }
.prose h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 48px 0 10px; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.5em; }
.prose .callout { background: var(--bg-alt); border-radius: 18px; padding: 20px 24px; }
.updated { font-size: 15px; color: var(--faint); margin: 12px 0 0; }

/* Call to action */
.cta { text-align: center; }
.cta .lede { margin-left: auto; margin-right: auto; }
.cta .actions { justify-content: center; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rim);
  background: var(--bg-alt);
  padding: 48px 0 40px;
  font-size: 15px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 40px;
}
.site-footer .name { font-weight: 600; color: var(--text); margin-bottom: 6px; }
.site-footer p { margin: 0 0 6px; }
.site-footer address p { margin-bottom: 10px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: block; padding: 6px 0; }
.site-footer .heading { font-size: 13px; font-weight: 600; color: var(--faint); margin-bottom: 4px; }
.legal-line {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--rim);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  font-size: 14px;
}

/* Tablet */
@media (max-width: 900px) {
  .hero-grid, .split, .split.even, .split.flip { grid-template-columns: minmax(0, 1fr); }
  .split-media { position: static; order: 1; margin-top: 8px; }
  .split.flip > .split-media { order: 1; }
  .split-media .shot { max-width: 230px; }
  .pair { justify-self: center; max-width: 520px; width: 86%; }
  .pair > :nth-child(2) { margin-top: 40px; }
  .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > :nth-child(n) { border-top: 1px solid var(--rim); border-left: 1px solid var(--rim); }
  .facts > :nth-child(-n+2) { border-top: 0; }
  .facts > :nth-child(2n+1) { border-left: 0; }
  /* Missions as a list */
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
  .group, .g-mind, .g-prove, .g-body, .g-find { grid-column: auto; grid-row: auto; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .group-head { margin-bottom: 8px; }
  .tile {
    background: none;
    border-radius: 0;
    border-top: 1px solid var(--rim);
    padding: 12px 0;
    min-height: 72px;
    text-align: left;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
  }
  .section.alt .tile { background: none; }
  .tile img { width: 48px; height: 48px; margin: 0; grid-row: span 2; }
  .tile h4 { margin: 0; align-self: end; }
  .tile p { align-self: start; font-size: 14px; }
  .badges .tile { display: block; text-align: center; background: var(--card-on-bg); border: 0; border-radius: 18px; padding: 18px 12px; }
  .section.alt .badges .tile { background: var(--card-on-alt); }
  .badges .tile img { width: 64px; height: 64px; margin: 0 auto 10px; }
}

/* Phone */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .rows, .rows.two { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .rows.one { gap: 0; }
  .board { grid-template-columns: minmax(0, 1fr); }
  .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .facts dd { font-size: 16px; }
  .facts > div, .facts > a { padding: 16px 18px; }
  .app-icon { width: 72px; height: 72px; }
  .app-icon.large { width: 88px; height: 88px; }
  .info th, .info td { display: block; width: 100%; padding: 4px 18px; border-top: 0; }
  .info th { padding-top: 14px; font-size: 14px; }
  .info td { padding-bottom: 14px; }
  .info tr + tr th { border-top: 1px solid var(--rim); }
  .actions .button { flex: 1 1 100%; min-height: 50px; }
  .pair { width: 100%; gap: 16px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .site-footer li a { padding: 11px 0; }
  .wordmark { font-size: 18px; }
}
@media (max-width: 380px) {
  .site-nav ul { gap: 12px; }
  .site-nav a { font-size: 14px; }
  .wordmark { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header { position: static; }
  .skip { display: none; }
}
