/* Deer Journal — marketing site
   ---------------------------------------------------------------------------
   Deliberately dark-only. The palette below is lifted from the app's own design
   tokens (stalk-journal/src/components/UI.jsx and index.css) so the site and the
   app read as one product. These are copies, not imports — a token change in the
   app does NOT reach here, the same caveat the in-app user guide carries.

   No build step, no framework, no JavaScript. If you find yourself wanting any
   of those, that is the moment to reconsider, not to add them quietly. */

/* Self-hosted, the same three weights the app ships. Google Fonts is
   deliberately not used: the app is offline-first and self-hosts, and there is
   no reason to hand a third party a log of every visitor to the site. */
@font-face{font-family:'Inter';src:url('assets/fonts/inter-400.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Inter';src:url('assets/fonts/inter-700.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'Inter';src:url('assets/fonts/inter-800.woff2') format('woff2');font-weight:800;font-style:normal;font-display:swap}

:root{
  --bg:#14161a;
  --surface1:#1c1f24;
  --surface2:#22262c;
  --line:rgba(255,255,255,0.09);
  --line-strong:rgba(255,255,255,0.16);
  --text:#f2f2ee;
  --muted:#c2c5c9;
  --accent:#4ade80;      /* the app's interactive accent */
  --brand:#5a9842;       /* the wordmark green, from the logo lockup */
  --radius:16px;
  --wrap:1080px;
}

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

html{
  font-size:16px;
  scroll-behavior:smooth;
  /* The sticky header would otherwise cover whatever an in-page link lands on. */
  scroll-padding-top:88px;
  -webkit-text-size-adjust:100%;
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

body{
  background:var(--bg);
  color:var(--muted);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  font-size:1rem;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;height:auto;display:block}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}

.wrap{max-width:var(--wrap);margin:0 auto;padding:0 20px;width:100%}

.skip{position:absolute;left:-9999px;top:0;background:var(--surface2);color:var(--text);padding:10px 16px;border-radius:0 0 8px 0;z-index:100}
.skip:focus{left:0}

/* ---------------------------------------------------------------- header --- */

.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(20,22,26,0.88);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--line);
}
.site-header .wrap{display:flex;align-items:center;gap:20px;height:68px}
.site-header .brand{display:flex;align-items:center;margin-right:auto}
.site-header .brand img{height:30px;width:auto}
.site-nav{display:flex;align-items:center;gap:26px}
.site-nav a{color:var(--muted);font-size:0.875rem;font-weight:600}
.site-nav a:hover{color:var(--text);text-decoration:none}
@media (max-width:720px){
  .site-nav{display:none}          /* four words of nav are not worth a burger menu */
  .site-header .wrap{height:60px}
}

/* ---------------------------------------------------------------- buttons -- */

.btn{
  display:inline-block;
  padding:12px 22px;
  border-radius:999px;
  font-size:0.9375rem;
  font-weight:700;
  letter-spacing:0.01em;
  border:1px solid transparent;
  white-space:nowrap;
  transition:background-color .15s ease,border-color .15s ease,color .15s ease;
}
.btn:hover{text-decoration:none}
.btn-primary{background:var(--accent);color:#0e1512;border-color:var(--accent)}
.btn-primary:hover{background:#6ee79b;border-color:#6ee79b}
.btn-ghost{background:transparent;color:var(--text);border-color:var(--line-strong)}
.btn-ghost:hover{background:var(--surface2);border-color:var(--muted)}
.btn-sm{padding:9px 16px;font-size:0.8125rem}
@media (prefers-reduced-motion:reduce){.btn{transition:none}}

/* ------------------------------------------------------------------- hero -- */

.hero{
  position:relative;
  padding:88px 0 96px;
  border-bottom:1px solid var(--line);
  overflow:hidden;
}
/* The app's own mobile background photo. It is a 1100px-wide portrait image, so
   on a wide desktop hero it is upscaled and slightly soft — the heavy overlay
   below is doing double duty, keeping the text legible and hiding that
   softness. Swap in a landscape original before making the hero any taller. */
.hero::before{
  content:'';
  position:absolute;inset:0;
  background:
    linear-gradient(180deg,rgba(20,22,26,0.72) 0%,rgba(20,22,26,0.86) 55%,var(--bg) 100%),
    url('assets/bg-woodland.jpg') center 30% / cover no-repeat;
  z-index:0;
}
.hero .wrap{position:relative;z-index:1;text-align:center}
.hero-mark{width:min(360px,78vw);margin:0 auto 26px}
.hero h1{
  color:var(--text);
  font-size:clamp(1.75rem,4.4vw,2.75rem);
  font-weight:800;
  line-height:1.2;
  letter-spacing:-0.02em;
  max-width:16em;
  margin:0 auto 18px;
}
.hero p{
  font-size:clamp(1rem,2vw,1.125rem);
  max-width:34em;
  margin:0 auto 32px;
}
.hero-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.hero-note{margin-top:22px;font-size:0.8125rem;color:var(--muted);opacity:0.85}

/* --------------------------------------------------------------- sections -- */

section{padding:76px 0}
section + section{border-top:1px solid var(--line)}
.section-label{
  font-size:0.6875rem;
  letter-spacing:0.22em;
  text-transform:uppercase;
  color:var(--accent);
  font-weight:700;
  margin-bottom:10px;
}
h2{
  color:var(--text);
  font-size:clamp(1.375rem,3vw,1.875rem);
  font-weight:700;
  letter-spacing:-0.015em;
  line-height:1.25;
  margin-bottom:14px;
}
.lede{font-size:1.0625rem;max-width:44em;margin-bottom:12px}
.section-head{margin-bottom:40px}

/* --------------------------------------------------------------- features -- */

.features{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:18px;
}
.card{
  background:var(--surface1);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px 22px;
}
.card h3{
  color:var(--text);
  font-size:1.0625rem;
  font-weight:700;
  margin-bottom:8px;
  letter-spacing:-0.01em;
}
.card p{font-size:0.9375rem}
.card .tag{
  display:inline-block;
  background:rgba(74,222,128,0.14);
  color:var(--accent);
  font-size:0.625rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
  font-weight:700;
  padding:4px 9px;
  border-radius:6px;
  margin-bottom:12px;
}

/* ------------------------------------------------------------ screenshots -- */

.shots{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:24px;
}
.shot figure{margin:0}
/* aspect-ratio holds each slot open at the real screenshot's proportions, so the
   page does not reflow as the images load — and so the placeholders sit at
   exactly the size a real screenshot will. */
.shot img{
  aspect-ratio:900/1950;
  object-fit:cover;
  width:100%;
  background:var(--surface1);
  border:1px solid var(--line-strong);
  border-radius:20px;
}
.shot figcaption{
  margin-top:12px;
  font-size:0.8125rem;
  color:var(--muted);
  text-align:center;
}
.shot-wide{margin-top:36px}
.shot-wide img{
  aspect-ratio:1600/1000;
  object-fit:cover;
  width:100%;
  background:var(--surface1);
  border:1px solid var(--line-strong);
  border-radius:var(--radius);
}
.shot-wide figcaption{margin-top:12px;font-size:0.8125rem;text-align:center}

/* ------------------------------------------------------------------ media -- */

.media-frame{
  background:var(--surface1);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px;
}
.media-frame video{width:100%;border-radius:10px;display:block;background:#000}
.media-empty{
  aspect-ratio:16/9;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-align:center;
  background:var(--surface2);
  border:1px dashed var(--line-strong);
  border-radius:10px;
  padding:24px;
}
.media-empty strong{color:var(--text);font-weight:700;font-size:1rem}
.media-empty span{font-size:0.875rem;max-width:30em}

/* ----------------------------------------------------------------- access -- */

.panel{
  background:var(--surface1);
  border:1px solid var(--line);
  border-left:3px solid var(--accent);
  border-radius:var(--radius);
  padding:28px 26px;
}
.panel h2{margin-bottom:12px}
.panel .btn{margin-top:20px}

/* -------------------------------------------------------------- longform --- */
/* privacy.html, and anything else that is mostly prose */

.prose{max-width:44em}
.prose h2{margin:36px 0 12px;font-size:1.25rem}
.prose h2:first-of-type{margin-top:0}
.prose p{margin-bottom:14px}
.prose ul{margin:0 0 16px 22px}
.prose li{margin-bottom:8px}
.prose strong{color:var(--text);font-weight:600}
.updated{font-size:0.8125rem;opacity:0.8;margin-bottom:32px}

/* ---------------------------------------------------------------- footer --- */

.site-footer{
  border-top:1px solid var(--line);
  padding:40px 0 56px;
  font-size:0.875rem;
}
.site-footer .wrap{display:flex;flex-wrap:wrap;gap:16px 28px;align-items:center}
.site-footer img{height:24px;width:auto;opacity:0.85}
.site-footer nav{display:flex;gap:22px;margin-left:auto;flex-wrap:wrap}
.site-footer a{color:var(--muted)}
.site-footer a:hover{color:var(--text)}
.site-footer .copy{width:100%;opacity:0.7;font-size:0.8125rem;padding-top:8px}

/* one-off spacing utility, so the page needs no inline style attributes and
   the CSP can stay on style-src 'self' */
.more{margin-top:32px}
