/* Noriba for the web: the app's tokens, dark "night platform" by default, light when the visitor prefers it.
   Colour lives on the lines; the page is charcoal, white and gray. No scripts, no external requests. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/Archivo-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --canvas: #1E1E1E;
  --surface-1: #262626;
  --surface-2: #303030;
  --border: #3A3A3A;
  --text: #FFFFFF;
  --text-2: #BDBDBD;
  --text-3: #A3A3A3;
  --accent: #ABEE59;
  --accent-fill: #8FD63A;
  --on-accent: #1E1E1E;
  --line-1: #4AA05C;
  --line-2: #3398CA;
  --line-t: #F38B00;
  --caution: #FFD23F;
  --radius-sm: 4px;
  --radius-md: 6px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --canvas: #F7F7F4;
    --surface-1: #FFFFFF;
    --surface-2: #EFEFEB;
    --border: #D9D9D4;
    --text: #1E1E1E;
    --text-2: #474747;
    --text-3: #636363;
    --accent: #4A7514;
    --line-1: #1D7937;
    --line-2: #07709C;
    --line-t: #9D5802;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

html {
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 100%;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--accent-fill); color: var(--on-accent); padding: 0.6rem 1rem; border-radius: var(--radius-md);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 1rem; }

.draft {
  margin: 0; padding: 0.75rem 1rem; text-align: center; font-weight: 700;
  color: #1E1E1E;
  background: repeating-linear-gradient(-45deg, var(--caution) 0 6px, #F2C232 6px 12px);
}

.site-header, main, .site-footer { width: min(100% - 2rem, 46rem); margin-inline: auto; }

.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--text); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; text-decoration: none;
}
.wordmark img { border-radius: 8px; }
.site-header ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.site-header nav a {
  display: inline-block; padding-block: 0.6rem; color: var(--text-2); text-decoration: none; font-weight: 600;
}
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }

main { padding-block: 1.5rem 3rem; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 2.75rem); font-weight: 800; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.4rem; font-weight: 700; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.1rem; font-weight: 700; margin: 1.75rem 0 0.5rem; }
p, li { color: var(--text-2); }
strong { color: var(--text); }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: 0.35rem; }
.site-header li + li, .features li + li, .shots li + li { margin-top: 0; }

.eyebrow {
  margin: 0; color: var(--text-3); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.meta { color: var(--text-3); font-size: 0.95rem; }

/* The bleed rail: Noriba's signature, a solid line-colour stripe on the left of key panels. */
.panel {
  position: relative; margin: 1.5rem 0; padding: 1.1rem 1.25rem 1.1rem 1.75rem;
  background: var(--surface-1); border: 1px solid var(--border); border-radius: 0;
}
.panel::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--line-2); }
.panel--1::before { background: var(--line-1); }
.panel--t::before { background: var(--line-t); }
.panel p { margin: 0.25rem 0; }

.hero { display: grid; gap: 1.5rem; align-items: center; padding-block: 1rem 1.5rem; }
.hero img.app-icon { width: 112px; height: 112px; border-radius: 26px; }
.hero p.lede { font-size: 1.2rem; color: var(--text); }

.button {
  display: inline-block; margin: 0.5rem 0; padding: 0.8rem 1.25rem; min-height: 44px;
  background: var(--accent-fill); color: var(--on-accent); font-weight: 700; text-decoration: none;
  border-radius: var(--radius-md);
}
.button--soon { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }

.features { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); padding: 0; list-style: none; }
.features li { margin: 0; padding: 1rem 1.1rem; background: var(--surface-1); border: 1px solid var(--border); }
.features h3 { margin-top: 0; }

.shots { display: flex; gap: 1rem; overflow-x: auto; padding: 0.5rem 0 1rem; margin: 0; list-style: none; }
.shots li { flex: 0 0 auto; margin: 0; }
.shots img { width: 220px; height: auto; border-radius: 18px; border: 1px solid var(--border); display: block; }

table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }

th, td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text); }
caption.caption { text-align: left; padding-bottom: 0.5rem; }
td { color: var(--text-2); }

.site-footer { padding-block: 2rem 3rem; border-top: 1px solid var(--border); font-size: 0.9rem; }
.site-footer p { color: var(--text-3); margin: 0.4rem 0; }

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

/* Phones: table rows become stacked cards. */
@media (max-width: 34rem) {
  table, thead, tbody, tr, th, td, caption { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
  td { border: 0; padding: 0.15rem 0; }
  td:first-child { color: var(--text); font-weight: 700; }
}
