/* mrthetrain — light table, contact sheets, grease pencil.
   Palette: the lightbox the frames sit on, film base, grease-pencil red, amber edge print,
   and the same blue the apps use for actions. */
:root {
  --lightbox: #F2F4F6;
  --paper: #FFFFFF;
  --ink: #15171C;
  --graphite: #5A606B;
  --rule: #D9DDE3;
  --film: #1B1C1F;
  --edge: #CFA14A;
  --grease: #D7322B;
  --action: #2A5FD6;
  --action-hover: #2250BA;

  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --measure: 60ch;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--lightbox);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--action); text-underline-offset: 3px; }
a:hover { color: var(--action-hover); }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 {
  font-size: clamp(2.75rem, 7vw, 5.6rem);
  font-weight: 800;
  font-stretch: 72%;
  line-height: 0.94;
  letter-spacing: -0.01em;
  max-width: 13ch;
}
h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 760;
  font-stretch: 78%;
  line-height: 1.02;
  max-width: 20ch;
}
h3 {
  font-size: 1.6rem;
  font-weight: 760;
  font-stretch: 85%;
  line-height: 1.1;
}
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: 1.3rem; line-height: 1.5; color: var(--graphite); max-width: 52ch; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  background: var(--action);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  padding: 0.85em 1.4em;
  border-radius: 4px;
  line-height: 1.2;
}
.button:hover { background: var(--action-hover); color: #fff; }
.button.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.button.quiet:hover { background: var(--ink); color: var(--paper); }

/* ---------- Header ---------- */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 72%;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 1rem; }
.site-nav a:not(.button) { color: var(--ink); text-decoration: none; }
.site-nav a:not(.button):hover { text-decoration: underline; }
.site-nav .button { padding: 0.6em 1.1em; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 40px; overflow-x: clip; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero h1 + .lede { margin-top: 28px; }

/* Contact sheet: two strips of film lying on the light table */
.sheet { margin-top: clamp(48px, 7vw, 84px); position: relative; }
.strip {
  background-color: var(--film);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='10'%3E%3Crect x='7' y='1' width='12' height='8' rx='2' fill='%23F2F4F6'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='10'%3E%3Crect x='7' y='1' width='12' height='8' rx='2' fill='%23F2F4F6'/%3E%3C/svg%3E");
  background-repeat: repeat-x, repeat-x;
  background-position: 0 8px, 0 calc(100% - 8px);
  padding: 28px 14px 30px;
  box-shadow: 0 18px 40px -18px rgba(21, 23, 28, 0.55);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.strip.one { transform: rotate(-1.2deg); }
.strip.two { transform: rotate(0.7deg) translateX(3%); margin-top: 26px; width: 97%; }
.frame { margin: 0; position: relative; }
.frame img { aspect-ratio: 3 / 2; width: 100%; height: auto; object-fit: cover; }
.frame figcaption {
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--edge);
  margin-top: 5px;
  letter-spacing: 0.04em;
}
.mark {
  position: absolute;
  inset: -6% -5% auto;
  width: 110%;
  aspect-ratio: 3 / 2;
  overflow: visible;
  pointer-events: none;
}
.mark path {
  fill: none;
  stroke: var(--grease);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.92;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 0.45s ease-out forwards;
  animation-delay: var(--d, 0.6s);
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .mark path { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
.sheet-key { margin-top: 30px; font-size: 0.95rem; color: var(--graphite); max-width: none; }
.sheet-key svg { width: 26px; height: 18px; vertical-align: -4px; margin-right: 6px; }
.sheet-key svg path { stroke: var(--grease); stroke-width: 3; fill: none; stroke-linecap: round; }
.sheet-key span { white-space: nowrap; margin-right: 22px; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-intro { margin-bottom: 44px; }
.section-intro h2 + p { margin-top: 18px; color: var(--graphite); }

/* Tools: rows on paper, not a grid of identical cards */
.tools, .paper { background: var(--paper); }
.tool {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  padding: 44px 0;
  border-top: 1px solid var(--rule);
}
.tool:last-child { border-bottom: 1px solid var(--rule); }
.tool-status { font-size: 0.95rem; font-weight: 650; margin: 10px 0 4px; }
.tool-for { font-size: 0.95rem; color: var(--graphite); margin: 0 0 18px; }
.tool-status.available { color: #1F7A3A; }
.tool-status.beta { color: #9A5B00; }
.tool-status.soon { color: var(--graphite); }
.tool ul { margin: 0 0 24px; padding-left: 1.1em; max-width: var(--measure); }
.tool li { margin-bottom: 0.45em; }
.tool li::marker { color: var(--grease); }
.tool-media img { border-radius: 6px; box-shadow: 0 16px 36px -20px rgba(21, 23, 28, 0.6); }
.aside-note { margin-top: 16px; font-size: 1rem; color: var(--graphite); }

/* Burst Cull: the description field, as it appears in the app */
.describe { background: var(--lightbox); border-radius: 6px; padding: 22px; }
.describe-label { font-size: 0.95rem; font-weight: 650; margin: 0 0 8px; }
.describe-box {
  margin: 0;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 1.05rem;
  line-height: 1.5;
}

/* Metadata: a draft laid out like a metadata panel */
.meta-panel { display: grid; grid-template-columns: 180px 1fr; gap: 20px; background: var(--lightbox); border-radius: 6px; padding: 22px; }
.meta-panel img { border-radius: 3px; }
.meta-panel dl { margin: 0; font-size: 0.95rem; }
.meta-panel dl div { padding: 8px 0; border-top: 1px solid var(--rule); }
.meta-panel dl div:first-child { border-top: 0; padding-top: 0; }
.meta-panel dt { color: var(--graphite); font-size: 0.85rem; }
.meta-panel dd { margin: 2px 0 0; }

/* Workflow: a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 18px; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 72%;
  font-size: 3.4rem;
  line-height: 1;
  margin-bottom: 12px;
}
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--graphite); }

/* Details */
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; }
.details h3 { font-size: 1.25rem; margin-bottom: 8px; font-stretch: 95%; }
.details p { color: var(--graphite); margin: 0; }

/* Maker note (testimonials go here once beta users share them) */
.maker-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; align-items: center; }
.print { margin: 0; background: var(--paper); padding: 14px 14px 10px; box-shadow: 0 20px 44px -22px rgba(21, 23, 28, 0.55); transform: rotate(1.5deg); }
.print figcaption { font-size: 0.85rem; color: var(--graphite); margin-top: 8px; }
.maker { background: var(--lightbox); }
.maker blockquote {
  margin: 0;
  font-family: var(--display);
  font-stretch: 88%;
  font-weight: 500;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.3;
  max-width: 34ch;
}
.maker blockquote p { max-width: none; }
.maker cite { display: block; margin-top: 18px; font-style: normal; font-size: 1rem; color: var(--graphite); }

.quote { margin: 0; font-size: 1.2rem; }
.quote cite { display: block; margin-top: 10px; font-style: normal; font-size: 0.95rem; color: var(--graphite); }

/* Closing call to action, set on film base */
.cta { background: var(--film); color: #fff; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { max-width: none; }
.cta p { color: #A9B0BC; margin: 14px 0 0; }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; }
.site-footer h2 { font-size: 1.9rem; max-width: none; }
.site-footer h2 + p { margin-top: 12px; color: var(--graphite); }
.signup { display: flex; gap: 10px; margin-top: 22px; max-width: 480px; }
.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 0.8em 1em;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
}
.signup button { border: 0; font: inherit; font-weight: 650; cursor: pointer; }
.hidden-field { position: absolute; left: -9999px; }
.fine { font-size: 0.9rem; color: var(--graphite); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; align-content: start; }
.footer-links a { color: var(--ink); }
.legal { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 0.85rem; color: var(--graphite); }
.legal p { max-width: none; margin: 0 0 6px; }

/* Simple inner pages */
.page { padding: 40px 0 96px; }
.page h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); max-width: 20ch; margin-bottom: 28px; }
.page h2 { font-size: 1.5rem; margin: 36px 0 10px; }

/* ---------- Small screens ---------- */
@media (max-width: 1060px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .tool, .footer-grid, .maker-grid { grid-template-columns: 1fr; gap: 28px; }
  .meta-panel { grid-template-columns: 1fr; }
  .print { max-width: 360px; }
  .steps { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(3, 1fr); }
  .strip.two { transform: rotate(0.7deg); width: 100%; }
  .site-nav a:not(.button) { display: none; }
}
@media (max-width: 480px) {
  .signup { flex-direction: column; }
  .sheet-key span { display: block; white-space: normal; margin: 0 0 8px; }
  .hero-actions .button { width: 100%; text-align: center; }
}
