/* Scrapfuse Studio landing page.
   Only the three logo colours are used:
   charcoal #16181D, orange #FF7A1A, bone #F1ECE0.
   Orange is never used for body text on bone (contrast too low);
   on bone it appears only as blocks and underlines. */

:root {
  --bg: #F1ECE0;
  --ink: #16181D;
  --accent: #FF7A1A;
  --on-accent: #16181D;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181D;
    --ink: #F1ECE0;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
}

img { max-width: 100%; height: auto; }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

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

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--accent); color: var(--on-accent);
  padding: .5rem 1rem; font-weight: 700; z-index: 10;
}
.skip:focus { top: 1rem; }

/* Layout */
.top, main, footer { width: min(100% - 2rem, 60rem); margin-inline: auto; }

.top { padding-block: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.brand { display: inline-block; text-decoration: none; }
.brand img { display: block; width: 13.5rem; }
.top ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-family: var(--mono); }
.top li a { display: inline-block; padding: .5rem 0; }

section { padding-block: 2.5rem; border-top: 12px solid var(--accent); margin-top: 1rem; scroll-margin-top: 1rem; }
section.hero { border-top: 0; margin-top: 0; padding-top: 1.5rem; }

h1, h2, h3 { font-family: var(--mono); line-height: 1.2; margin: 0 0 .75rem; }
h1 { font-size: clamp(2.25rem, 9vw, 4rem); }
h2 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1rem; max-width: 42rem; }

/* Hero */
.hero { display: grid; gap: 1.5rem; align-items: center; }
.hero-symbol { width: 7.5rem; height: auto; }
.pitch { font-family: var(--mono); font-size: clamp(1.25rem, 5vw, 1.75rem); font-weight: 700; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.btn {
  display: inline-block; padding: .75rem 1.25rem; min-height: 2.75rem;
  border: 3px solid var(--ink); color: var(--ink); background: transparent;
  font-family: var(--mono); font-weight: 700; text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--ink); }
.btn:hover { background: var(--ink); color: var(--bg); }

/* Studio cards */

.px { image-rendering: pixelated; display: block; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.cards li { border: 3px solid var(--ink); padding: 1.25rem; }
.cards .px { width: 4rem; height: 4rem; margin-bottom: .75rem; }
.cards p { margin-bottom: 0; }

footer { padding-block: 2rem 3rem; border-top: 12px solid var(--accent); font-family: var(--mono); font-size: .9375rem; }
footer p { max-width: none; margin: 0; }

/* Cookie banner and footer button */
.link-btn {
  font: inherit; color: var(--ink); background: none; border: 0; padding: .5rem 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 3px;
}
.link-btn:hover { text-decoration-color: var(--ink); }

.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--bg); color: var(--ink); border-top: 12px solid var(--accent);
  padding: 1rem; display: flex; flex-direction: column; gap: .75rem;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; max-width: none; font-family: var(--mono); font-size: .9375rem; }

/* Wider screens */
@media (min-width: 40rem) {
  .top { flex-direction: row; align-items: center; justify-content: space-between; }
  .hero { grid-template-columns: auto 1fr; gap: 2.5rem; }
  .hero-symbol { width: 10rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .consent { flex-direction: row; align-items: center; justify-content: space-between; padding-inline: max(1rem, calc((100% - 60rem) / 2)); }
}

@media (forced-colors: active) {
  .btn-primary { border: 2px solid; }
}
