/* JRII Designs — one shared stylesheet. No external fonts, scripts or trackers.
   Navy and green are taken from the PrintBinder icon. */

:root {
  --navy: #0e2233;
  --navy-top: #112c40;
  --navy-deep: #0b1a26;
  --green: #9ddc2f;
  --green-deep: #78af22;
  --rim-blue: #5ab0d4;

  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #0e2233;
  --muted: #485a69;
  --border: #d3dbe2;
  --link: #2c5a08;
  --focus: #0e2233;
  --slot-bg: #e9eef2;
  --slot-line: #9aa9b5;
  --note-bg: #f1f8e2;
  --note-line: #78af22;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08141d;
    --surface: #0f2536;
    --text: #e9eff4;
    --muted: #a9b9c6;
    --border: #24425a;
    --link: #9ddc2f;
    --focus: #9ddc2f;
    --slot-bg: #0c1e2c;
    --slot-line: #44627a;
    --note-bg: #14301f;
    --note-line: #9ddc2f;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 4vw, 1.75rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.5em; }
code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.92em;
  background: var(--slot-bg);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: var(--navy);
  padding: 0.5em 1em;
  font-weight: 600;
  z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* ---- The navy band: header and hero. Navy in both light and dark, like the icon. ---- */

.band {
  background: linear-gradient(180deg, var(--navy-top), var(--navy-deep));
  color: #ffffff;
  border-bottom: 4px solid var(--green);
  border-image: linear-gradient(90deg, var(--green), var(--rim-blue)) 1;
}
.band :focus-visible { outline-color: var(--green); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.topbar .name {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.topbar nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.topbar nav li { margin: 0; }
.topbar nav a {
  display: block;
  color: #dfe8ee;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
}
.topbar nav a:hover { background: rgba(255, 255, 255, 0.1); color: #ffffff; }
.topbar nav a[aria-current="page"] { color: var(--green); font-weight: 600; }

.hero { padding-top: 40px; padding-bottom: 56px; }
.hero p.lead {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  color: #dfe8ee;
  max-width: 38rem;
}
.hero-home { text-align: center; }
.hero-home img { margin: 0 auto 24px; width: min(324px, 80%); }
.hero-home p.lead { margin-left: auto; margin-right: auto; }

.hero-app {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
}
.hero-app img { width: 168px; }
.hero-app h1 { margin-bottom: 0.1em; }
.byline { color: var(--green); font-weight: 600; margin-bottom: 0.9em; }
.byline a { color: inherit; }
.small { font-size: 0.92rem; }
.hero .small { color: #c3d0da; margin: 0; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 14px; }

.btn {
  display: inline-block;
  padding: 0.7em 1.3em;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary { background: var(--green); color: var(--navy); }
.btn-primary:hover { background: #b2ea4f; }
.btn-ghost { border-color: #8fa3b3; color: #ffffff; }
.btn-ghost:hover { border-color: #ffffff; }

/* ---- Page body ---- */

main section { padding: 44px 0 8px; }
main section:last-child { padding-bottom: 48px; }
.prose { max-width: 44rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}
.grid > li { margin: 0; }
.grid h3 { margin-bottom: 0.35em; }
.grid p:last-child { margin-bottom: 0; }

.rules .card { border-left: 5px solid var(--green-deep); }

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}
.feature img { width: 112px; }
.feature p:last-child { margin-bottom: 0; }
.feature .btn-primary { margin-top: 4px; }

/* Placeholders: clearly marked, to be replaced. */
.placeholder {
  border: 2px dashed var(--slot-line);
  background: var(--slot-bg);
  border-radius: 10px;
  padding: 16px;
  color: var(--muted);
}
.placeholder p:last-child { margin-bottom: 0; }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--navy);
  color: #ffffff;
  border-radius: 4px;
  padding: 0.15em 0.55em;
  margin-right: 0.4em;
  vertical-align: 0.1em;
}
@media (prefers-color-scheme: dark) {
  .tag { background: var(--green); color: var(--navy); }
}

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 16px;
}
.shots figure { margin: 0; }
.shots .slot {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed var(--slot-line);
  background: var(--slot-bg);
  border-radius: 10px;
  color: var(--muted);
  padding: 12px;
}
.shots figcaption { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }

.note {
  background: var(--note-bg);
  border-left: 5px solid var(--note-line);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 0 0 1em;
}
.note p:last-child { margin-bottom: 0; }

ol.steps > li { margin-bottom: 0.9em; padding-left: 0.2em; }

.muted { color: var(--muted); }

footer {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding: 24px 0 36px;
  color: var(--muted);
  font-size: 0.95rem;
}
footer p { margin: 0 0 0.4em; }

@media (max-width: 34rem) {
  .hero { padding-top: 28px; padding-bottom: 40px; }
  .hero-app { grid-template-columns: 1fr; gap: 18px; }
  .hero-app img { width: 104px; }
  .feature { grid-template-columns: 1fr; gap: 14px; }
  .feature img { width: 80px; }
  .actions .btn { flex: 1 1 100%; text-align: center; }
  main section { padding-top: 36px; }
}

/* the list of published models on the home page */
.model-list { list-style: none; margin: 1.25rem 0 0; padding: 0; columns: 2; column-gap: 2rem; max-width: 46rem; }
.model-list li { break-inside: avoid; padding: 0.3rem 0; }
@media (max-width: 600px) { .model-list { columns: 1; } }

/* screenshots on the PrintBinder page */
.shots a { display: block; border-radius: 10px; }
.shots img { width: 100%; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }

/* the feature tour on the PrintBinder page */
.tour-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 0.5em; }
.tour-head h2 { margin: 0; }
.themepick { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--surface); }
.themepick button { font: inherit; font-size: 0.92rem; font-weight: 600; border: 0; background: none; color: var(--muted); padding: 0.35em 1em; cursor: pointer; }
.themepick button[aria-pressed="true"] { background: var(--navy); color: #ffffff; }
@media (prefers-color-scheme: dark) { .themepick button[aria-pressed="true"] { background: var(--green); color: var(--navy); } }
video.clip { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--border); border-radius: 12px; background: var(--slot-bg); }
video.clip-hero { margin: 8px 0 12px; box-shadow: 0 10px 30px rgba(14, 34, 51, 0.18); }
.tour { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.tour-item { margin: 0; padding: 36px 0 0; scroll-margin-top: 16px; }
.tour-text { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline; max-width: 46rem; margin-bottom: 12px; }
.tour-text .num { grid-row: span 2; font-weight: 800; font-size: 1.5rem; line-height: 1; color: var(--green-deep); font-variant-numeric: tabular-nums; }
.tour-text h3 { font-size: 1.3rem; margin: 0 0 0.3em; }
.tour-text p { margin: 0; color: var(--muted); }
@media (prefers-color-scheme: dark) { .tour-text .num { color: var(--green); } }
