/* AI Prompt Paster, a DojoGenesis app.
   Design: DojoGenesis Design Language v2.0 (dojo-genesis/docs/DojoGenesisDesignLanguage.md)
   and Brand Voice (dojo-genesis/BRAND_VOICE.md): deep teal-navy base, sunset accents used
   sparingly, glass panels, Outfit headings, Inter body, JetBrains Mono for prompts.
   Layout: "Sunrise at the Dojo" — the bonsai mark rises as the sun over layered mountain
   horizons; every prompt is a paste-ready card. Single dark look by design. */

:root {
  --bg: #0a1e2e;
  --bg-2: #0f2a3d;
  --bg-3: #143847;
  --glass: rgba(19, 45, 66, 0.72);
  --glass-line: rgba(138, 168, 184, 0.22);
  --line: rgba(138, 168, 184, 0.18);
  --ink: #e8edf2;
  --ink-2: #b8cad6;
  --ink-3: #8aa8b8;
  --gold: #ffd166;
  --orange: #f4a261;
  --terracotta: #e76f51;
  --amber: #e8b04a;
  --sage: #7fb88c;
  --steel: #7fa9c9;
  --danger: #ff8a80;
  --on-sun: #0a1e2e;
  --sunset: linear-gradient(135deg, #ffd166 0%, #f4a261 50%, #e76f51 100%);
  --depth: linear-gradient(180deg, #0a1e2e 0%, #143847 100%);
  --f-head: "Outfit", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 8px;
  --r-card: 12px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  /* stage colours */
  --st-start: #f4a261;
  --st-understand: #8ec5e8;
  --st-decide: #ffd166;
  --st-plan: #7fb88c;
  --st-act: #f2967d;
  --st-review: #b9a6e8;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); padding-block: 0; }
.eyebrow { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 38ch; }
.muted { color: var(--ink-3); }
.fine { font-size: 0.9rem; color: var(--ink-3); }
.sun-text { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 40px; height: 40px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px var(--glass-line), 0 0 22px rgba(244, 162, 97, 0.25); }
.brand b { display: block; font-family: var(--f-head); font-weight: 650; font-size: 1.12rem; line-height: 1.1; }
.brand small { display: block; font-size: 0.74rem; color: var(--ink-3); letter-spacing: 0.02em; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 820px) { .top nav { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--f-body); border-radius: var(--r); padding: 14px 20px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.btn-primary { background: var(--sunset); color: var(--on-sun); box-shadow: 0 4px 12px rgba(244, 162, 97, 0.3); }
.btn-primary:hover { color: var(--on-sun); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(244, 162, 97, 0.4); }
.btn-secondary { background: rgba(138, 168, 184, 0.1); color: var(--ink); border-color: rgba(138, 168, 184, 0.4); }
.btn-secondary:hover { color: var(--ink); background: rgba(138, 168, 184, 0.18); }
.btn-small { padding: 9px 14px; font-size: 0.9rem; }
.btn-quiet { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-quiet:hover { color: var(--ink); border-color: var(--glass-line); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.lang-toggle { font: 600 0.82rem/1 var(--f-mono); letter-spacing: 0.06em; padding: 9px 11px; }

/* Glass card */
.card { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r-card); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* Stage chips */
.stage { display: inline-flex; align-items: center; gap: 7px; font: 600 0.78rem/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--c, var(--ink-3)); }
.stage::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ink-3)); }
.st-start { --c: var(--st-start); }
.st-understand { --c: var(--st-understand); }
.st-decide { --c: var(--st-decide); }
.st-plan { --c: var(--st-plan); }
.st-act { --c: var(--st-act); }
.st-review { --c: var(--st-review); }
.tag { display: inline-block; font: 600 0.7rem/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 7px; border-radius: 4px; border: 1px solid var(--line); color: var(--ink-3); }
.tag-live { border-color: transparent; background: var(--sunset); color: var(--on-sun); }

/* Prompt block */
.prompt { font: 400 0.88rem/1.6 var(--f-mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); background: rgba(10, 30, 46, 0.65); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin: 0; max-height: 26rem; overflow: auto; }

/* Horizon motif */
.horizon { display: block; width: 100%; height: auto; }
.horizon .m1 { fill: #143847; }
.horizon .m2 { fill: #0f2a3d; }
.horizon .m3 { fill: #0a1e2e; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; }
.field .help { font-size: 0.9rem; color: var(--ink-3); }
input[type="email"], input[type="text"], textarea {
  width: 100%; font: 1rem/1.5 var(--f-body); color: var(--ink); background: rgba(10, 30, 46, 0.7);
  border: 1px solid rgba(138, 168, 184, 0.35); border-radius: var(--r); padding: 12px 14px;
}
textarea { min-height: 7.5rem; resize: vertical; }
textarea.tall { min-height: 14rem; font-family: var(--f-mono); font-size: 0.88rem; }
input::placeholder, textarea::placeholder { color: #6f8c9c; }
input:focus-visible, textarea:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.18); }
.notice { border-left: 3px solid var(--amber); background: rgba(232, 176, 74, 0.08); padding: 10px 14px; border-radius: 0 var(--r) var(--r) 0; color: var(--ink-2); font-size: 0.95rem; }
.notice.warn { border-left-color: var(--terracotta); background: rgba(231, 111, 81, 0.1); }
.notice.ok { border-left-color: var(--sage); background: rgba(127, 184, 140, 0.1); }

footer.site { border-top: 1px solid var(--line); margin-top: 48px; padding-block: 24px 40px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 0.88rem; color: var(--ink-3); }
footer.site a { color: var(--ink-2); }
