/* jener.dev: one stylesheet for every page. No build step. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #f6f1e7;
  --card: #fffcf6;
  --ink: #1f1913;
  --soft: #5f5244;
  --line: rgb(31 25 19 / 12%);
  --accent: #d97757;
  --link: #a6492b;
  --btn: #b9562f;
  --btn-hover: #9f4826;
  --focus: #a6492b;
  --tint: rgb(217 119 87 / 10%);
  --shadow: 0 1px 2px rgb(60 50 30 / 5%), 0 12px 32px rgb(60 50 30 / 7%);
  --ribbons: .3;
  --head: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --wrap: 1160px;
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1f1913;
    --card: #2b241c;
    --ink: #f6f1e7;
    --soft: #c9bfb1;
    --line: rgb(246 241 231 / 12%);
    --link: #eda083;
    --focus: #eda083;
    --tint: rgb(217 119 87 / 12%);
    --shadow: 0 1px 2px rgb(0 0 0 / 20%), 0 12px 32px rgb(0 0 0 / 22%);
    --ribbons: 1;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: 0; }

p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }

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

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

code {
  font-family: var(--mono);
  font-size: .9em;
  background: var(--tint);
  padding: .1em .35em;
  border-radius: 6px;
  overflow-wrap: anywhere;
}

pre {
  margin: 0 0 1.25em;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow-x: auto;
  font: .9rem/1.6 var(--mono);
}
pre code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
.narrow { max-width: 760px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Skip link */
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: .75rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 1.5rem;
  padding-block: .5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font: 700 1.3rem/1 var(--head);
  letter-spacing: -.01em;
}
.brand img { width: 30px; height: 30px; }
.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .8rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover { background: var(--tint); }
.nav a[aria-current="page"] { background: var(--tint); font-weight: 650; }
@media (max-width: 520px) {
  .bar { justify-content: center; }
  .nav ul { justify-content: center; }
  .nav a { padding: 0 .65rem; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 650 1rem/1.2 var(--body);
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--btn); color: #fff; }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--tint); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  max-width: none;
}
.hero-art .ribbons { opacity: var(--ribbons); }
.hero-art .shine { opacity: .5; }
@media (prefers-color-scheme: dark) {
  .hero-art .shine { opacity: .35; }
}
.hero-art .shine rect {
  animation: shine 14s cubic-bezier(.45, 0, .2, 1) 2s infinite;
  transform: translateX(-700px);
}
@keyframes shine {
  0% { transform: translateX(-700px); }
  45%, 100% { transform: translateX(1900px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art .shine { display: none; }
  .hero-art .shine rect { animation: none; }
}
.hero-inner {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-block: clamp(4rem, 9vw, 8.5rem);
}
.hero-inner::before {
  /* Soft wash behind the text so it reads clearly over the ribbons. */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 46% 52% at 50% 50%, var(--paper) 0%, transparent 100%);
  opacity: .75;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 1.75rem;
  padding: .35rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: .9rem;
  font-weight: 600;
}
.pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.wordmark { width: min(560px, 86vw); margin: 0 0 1.5rem; }
.wordmark img { width: 100%; height: auto; }
.promise {
  font: 700 clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem)/1.15 var(--head);
  letter-spacing: -.015em;
  margin: 0 0 .75rem;
}
.lede {
  max-width: 36rem;
  margin: 0 auto 2rem;
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
}
.hero .actions { justify-content: center; }

/* Page header (non-home pages) */
.page-head {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.page-head {
  background: url("ribbons-light.svg") right 30% center / cover no-repeat;
}
@media (prefers-color-scheme: dark) {
  .page-head { background-image: url("ribbons-dark.svg"); }
}
.page-head .wrap { position: relative; }
.page-head p { font-size: 1.15rem; max-width: 40rem; }

/* Sections */
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--soft); font-size: 1.15rem; margin: 0; }
.eyebrow {
  display: block;
  margin-bottom: .6rem;
  color: var(--soft);
  font-size: .95rem;
  font-weight: 650;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 3px;
  margin: 0 .55rem .25em 0;
  border-radius: 2px;
  background: var(--accent);
  vertical-align: middle;
}

/* Cards and grids */
.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--soft); }
.card p + p { margin-top: .75em; }
.icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.1rem;
  border-radius: 16px;
  background: var(--tint);
  color: var(--ink);
}
.icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon svg .dot { fill: var(--accent); stroke: none; }
.tag {
  display: inline-block;
  margin-top: 1rem;
  padding: .2rem .65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: .85rem;
  font-weight: 600;
  color: var(--soft);
}
.tag.on { color: var(--ink); background: var(--tint); border-color: transparent; }
.note {
  margin-top: 1.75rem;
  color: var(--soft);
  font-size: 1rem;
}

/* Split section */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
.checks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .8rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--tint);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.art {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 3rem);
}
.art svg { width: 100%; height: auto; margin-inline: auto; max-width: 440px; }
.art .ink { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.art .warm { fill: var(--accent); }
.art .fill-ink { fill: var(--ink); }
.art .wash { fill: var(--tint); }

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.steps > li { counter-increment: step; }
.steps > li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  font: 700 1.25rem/1 var(--head);
}

/* Update flow */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.flow li { position: relative; }
.flow .card { height: 100%; }
.flow strong { display: block; font-family: var(--head); font-size: 1.15rem; margin-bottom: .3rem; }

/* Screenshots (real WebP captures in assets/shots/) */
.shots {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.shots figure { margin: 0; }
.shot {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot.phone-shot {
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(217 119 87 / 22%), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgb(124 80 53 / 18%), transparent 60%),
    var(--card);
}
.shot.phone-shot picture { display: contents; }
.shot.phone-shot img {
  width: auto;
  height: 86%;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--line), 0 10px 26px rgb(60 40 25 / 22%);
}
.shots figcaption { margin-top: .75rem; font-weight: 600; }
.shots figcaption small { display: block; font-weight: 400; color: var(--soft); font-size: .95rem; }

/* FAQ */
.faq { display: grid; gap: .75rem; max-width: 820px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  padding: .9rem 1.4rem;
  cursor: pointer;
  list-style: none;
  font: 700 1.15rem/1.3 var(--head);
  border-radius: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq .answer { padding: 0 1.4rem 1.2rem; color: var(--soft); }
.faq .answer p:last-child { margin: 0; }

/* Call to action band */
.cta {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}
.cta p { color: var(--soft); max-width: 34rem; margin-inline: auto; margin-bottom: 1.75rem; }
.cta .actions { justify-content: center; }

/* Callouts and tables */
.callout {
  display: grid;
  gap: .25rem;
  padding: 1.25rem 1.5rem;
  border-radius: 18px;
  background: var(--tint);
  border-left: 4px solid var(--accent);
  margin: 0 0 2rem;
}
.callout p { margin: 0; }
.callout strong { font-family: var(--head); font-size: 1.15rem; }

.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
th { font-weight: 650; }
thead th { color: var(--soft); font-size: .9rem; }

/* Long-form text pages */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); margin-top: 2.25em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.25em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--accent); }
.prose .meta { color: var(--soft); }

/* 404 */
.lost { text-align: center; padding-block: clamp(4rem, 12vw, 9rem); }
.lost .big {
  font: 700 clamp(4.5rem, 3rem + 8vw, 9rem)/1 var(--head);
  letter-spacing: -.03em;
  margin: 0 0 .25em;
}
.lost p { color: var(--soft); max-width: 30rem; margin-inline: auto; }
.lost .actions { justify-content: center; margin-top: 2rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  margin-top: clamp(2rem, 5vw, 4rem);
  font-size: .98rem;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: flex-start;
  justify-content: space-between;
}
.foot .brand { font-size: 1.15rem; }
.foot .brand img { width: 26px; height: 26px; }
.foot p { margin: .35rem 0 0; color: var(--soft); }
.foot ul { display: flex; flex-wrap: wrap; gap: 0 .25rem; margin: 0; padding: 0; list-style: none; }
.foot ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .7rem;
  color: var(--ink);
}
.foot .legal { flex-basis: 100%; margin: 0; color: var(--soft); font-size: .92rem; }

/* Ultrawide: give the content a little more room, keep lines readable. */
@media (min-width: 2200px) {
  :root { --wrap: 1360px; }
  body { font-size: 1.125rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .hero-art, .skip { display: none; }
  body { background: #fff; color: #000; }
}
