/* futura.farm — full-screen picture, logo, one button. */
:root {
  --ink: #101314;
  --paper: #f2ece0;
  --coral: #f78a6f;
  --coral-deep: #d9654b;
  --muted: #6b675e;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --type: "American Typewriter", "Courier New", monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--ink); color: var(--paper); font: 16px/1.5 var(--sans); }
a { color: inherit; }
img { display: block; }

/* ---------- landing ---------- */
body.landing { min-height: 100vh; min-height: 100dvh; overflow: hidden; }
.bg { position: fixed; inset: 0; background: var(--ink) center / cover no-repeat; opacity: 0;
  transform: scale(1.04); transition: opacity .7s ease, transform 8s ease-out; }
.bg.ready { opacity: 1; transform: scale(1); }
/* darken the centre a touch so the logo reads on any picture */
.bg::after { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 62% 34% at 50% 50%, rgba(16, 19, 20, .72) 0%, rgba(16, 19, 20, .38) 60%, rgba(16, 19, 20, 0) 100%),
    linear-gradient(rgba(16, 19, 20, .18), rgba(16, 19, 20, .30)); }
.stage { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: grid; place-content: center;
  justify-items: center; gap: clamp(28px, 5vh, 56px); padding: 24px 16px; text-align: center; }
.stage h1 { margin: 0; }
.hero-logo { display: block; width: min(86vw, 1100px); height: auto; overflow: visible;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .45)) drop-shadow(0 6px 30px rgba(0, 0, 0, .6)); }
.hero-logo path { fill: var(--coral); fill-rule: evenodd; stroke: transparent; stroke-width: 2.6px; vector-effect: non-scaling-stroke;
  transition: fill .4s ease, stroke .4s ease; }
/* Dark picture: white outline, see-through letters; the button follows. */
body.dark-bg .hero-logo { filter: drop-shadow(0 0 18px rgba(0, 0, 0, .35)); }
body.dark-bg .hero-logo path { fill: transparent; stroke: #fff; }
body.dark-bg .cta { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
body.dark-bg .cta:hover, body.dark-bg .cta:focus-visible { background: #fff; color: var(--ink); }
body.dark-bg .bg::after { background: linear-gradient(rgba(16, 19, 20, .10), rgba(16, 19, 20, .25)); }
.cta { font: 500 clamp(15px, 1.4vw, 17px)/1.2 var(--ui); color: var(--ink); background: var(--coral);
  border: 0; border-radius: 999px; padding: 15px 30px; cursor: pointer; box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
  transition: background .2s ease, color .2s ease; }
.cta { display: inline-flex; align-items: center; gap: 10px; }
.cta-icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cta:hover, .cta:focus-visible { background: var(--paper); }
.cta:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.corner { position: fixed; z-index: 1; right: 20px; bottom: 16px; display: flex; gap: 18px; font-size: 13px; }
.corner a { color: rgba(242, 236, 224, .8); text-decoration: none; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.corner a:hover { color: var(--paper); text-decoration: underline; }

/* ---------- request dialog ---------- */
dialog { font-family: var(--ui); width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 0; border-radius: 14px; padding: 0;
  background: #fff; color: var(--ink); box-shadow: 0 24px 80px rgba(0, 0, 0, .5); }
dialog::backdrop { background: rgba(16, 19, 20, .6); backdrop-filter: blur(3px); }
dialog form, .panel { display: grid; gap: 14px; padding: 26px clamp(18px, 4vw, 30px) 28px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; }
.dialog-head h2 { margin: 0; font: 600 21px var(--ui); }
.close { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }
.close:hover { color: var(--ink); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
input, textarea { width: 100%; font: 16px var(--ui); color: var(--ink); background: #fff; border: 1px solid #d9d9d9;
  border-radius: 8px; padding: 10px 12px; }
input:focus, textarea:focus { outline: 2px solid var(--coral); outline-offset: 0; border-color: transparent; }
textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.button { border: 0; cursor: pointer; background: var(--ink); color: var(--paper); font: 600 15px var(--sans);
  border-radius: 999px; padding: 12px 26px; }
.button:hover { background: var(--coral-deep); }
.button:disabled { opacity: .6; cursor: progress; }
.status { margin: 0; font-size: 14px; }
.status.ok { color: #2b6f74; } .status.err { color: #b13b22; }
.fine { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- documentation ---------- */
body.docs-page { background: var(--paper); color: var(--ink); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(16px, 4vw, 48px);
  background: var(--ink); }
.topbar img { height: 30px; width: auto; }
.topbar a.back { color: var(--paper); font-size: 14px; text-decoration: none; opacity: .8; }
.topbar a.back:hover { opacity: 1; }
.docs { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); max-width: 1180px; margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) clamp(16px, 4vw, 48px); }
.docs > div { min-width: 0; }
.docs aside { position: sticky; top: 24px; align-self: start; display: grid; gap: 10px; font-size: 14px; }
.docs aside a { text-decoration: none; color: var(--muted); }
.docs aside a:hover { color: var(--ink); }
.gate { max-width: 520px; }
.gate h2 { font: 700 30px var(--sans); margin: 0 0 8px; }
.gate .panel { padding: 0; margin-top: 18px; }
.doc h2 { font: 700 clamp(24px, 3vw, 32px) var(--sans); margin: 44px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font: 700 16px var(--sans); margin: 26px 0 8px; }
.doc p, .doc li { max-width: 72ch; }
.doc code { font: 14px ui-monospace, Menlo, monospace; background: rgba(247, 138, 111, .18); padding: 1px 5px; border-radius: 4px; }
.doc pre { font: 13px/1.6 ui-monospace, Menlo, monospace; background: var(--ink); color: var(--paper); padding: 18px 20px; border-radius: 10px; overflow-x: auto; }
.doc pre code { background: none; padding: 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 8px 12px; border-bottom: 1px solid #d8d1c3; vertical-align: top; }
.doc th { font-size: 13px; color: var(--muted); font-weight: 600; }
.usage { font-size: 13px; color: var(--muted); margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.usage button { background: none; border: 1px solid #c9c1b2; border-radius: 999px; padding: 3px 12px; cursor: pointer; font: inherit; }

/* ---------- sign-in ---------- */
body.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
body.login main { width: 100%; max-width: 380px; }
.signin { display: grid; gap: 18px; justify-items: stretch; text-align: left; }
.signin img { width: 100%; height: auto; margin-bottom: 18px; }
.signin label { color: rgba(242, 236, 224, .7); }
.signin .button { background: var(--coral); color: var(--ink); }
.signin .button:hover { background: var(--paper); }
.signin .status.err { color: var(--coral); }

@media (max-width: 760px) {
  .docs { grid-template-columns: 1fr; }
  .docs aside { position: static; display: flex; flex-wrap: wrap; gap: 8px 16px; }
}
@media (max-width: 520px) {
  .row { grid-template-columns: 1fr; }
  .corner { left: 0; right: 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .bg { transition: none; transform: none; }
}
