/* Dozyface website. No frameworks, no third-party fonts, no trackers.
   The only font file is DSEG7 (OFL 1.1, bundled with the app), self-hosted. */
@font-face {
  font-family: "DSEG7";
  src: url("/assets/fonts/DSEG7Classic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  --black: #000;
  --ink: #0e0b09;
  --ash: #1c1714;
  --line: #241c17;
  --amber: #ffb547;
  --amber-deep: #e08a1e;
  --candle: #ffe2b0;
  --sleep-red: #c01800;
  --red-deep: #5c0a06;
  --ember: #ff5a3c;      /* readable red for text on black (contrast 6.8:1) */
  --grey: #a59a90;       /* muted text, 7.6:1 on black */
  --text: #efe6dc;
  --radius: 18px;
  --max: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --seg: "DSEG7", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--black); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--amber); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--candle); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--candle); margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--grey); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ash); padding: 8px 12px; z-index: 10; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- header / footer ---- */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(0,0,0,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid #16110e; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--candle); text-decoration: none; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.brand svg { width: 30px; height: 30px; flex: none; color: var(--amber); }
.nav { display: flex; gap: 20px; font-size: .95rem; }
.nav a { color: var(--grey); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--amber); }
.site-footer { border-top: 1px solid #16110e; margin-top: 96px; padding: 40px 0 56px; color: var(--grey); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--grey); }
.site-footer a:hover { color: var(--amber); }

/* ---- buttons / badges ---- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; min-width: 186px; height: 56px; padding: 0 20px;
  border: 1px solid #4a3a2c; border-radius: 12px; color: var(--candle); text-decoration: none; background: var(--ink);
  font-size: .8rem; line-height: 1.15;
}
.badge strong { display: block; font-size: 1.1rem; font-weight: 600; }
.badge svg { width: 24px; height: 24px; flex: none; }
.badge[aria-disabled="true"] { cursor: default; }
a.badge[href] { background: var(--amber); color: #1a1006; border-color: var(--amber); }
a.badge[href]:hover { background: var(--candle); }
.btn { display: inline-flex; align-items: center; height: 56px; padding: 0 22px; border-radius: 12px; border: 1px solid #4a3a2c; color: var(--candle); text-decoration: none; font-weight: 600; }
.btn:hover { border-color: var(--amber); color: var(--amber); }
.btn.primary { background: var(--amber); border-color: var(--amber); color: #1a1006; }
.btn.primary:hover { background: var(--candle); color: #1a1006; }
.note { font-size: .88rem; color: var(--grey); margin-top: 12px; }

/* ---- hero: a slow day-to-night cycle ---- */
.hero { position: relative; padding: 64px 0 56px; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none; }
.hero::before { background: radial-gradient(48% 46% at 70% 42%, rgba(255,181,71,.20), rgba(255,181,71,0) 70%); }
.hero::after { background: radial-gradient(48% 46% at 70% 42%, rgba(192,24,0,.30), rgba(192,24,0,0) 70%); opacity: 0; }
.hero .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.hero-mark { width: 76px; height: 76px; border-radius: 18px; margin-bottom: 20px; }
.tagline { color: var(--amber); font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.8vw, 1.8rem); margin: -.1em 0 .7em; }
.lead { font-size: 1.22rem; max-width: 34ch; }
.device { position: relative; border-radius: 34px; padding: 12px; background: linear-gradient(145deg, #2a221d, #0d0a08); box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 0 0 1px #3a2f27; }
.device .screen { position: relative; border-radius: 24px; overflow: hidden; background: #000; aspect-ratio: 2622 / 1206; }
.device .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.device .night { opacity: 0; }
.cycle { display: flex; justify-content: center; gap: 8px; margin-top: 14px; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.cycle span { padding: 4px 12px; border-radius: 999px; border: 1px solid #3a2f27; color: var(--grey); }
.cycle .d { color: var(--amber); border-color: var(--amber-deep); }
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: fadeDay 24s ease-in-out infinite; }
  .hero::after { animation: fadeNight 24s ease-in-out infinite; }
  .device .night { animation: fadeNight 24s ease-in-out infinite; }
  .cycle .d { animation: chipDay 24s ease-in-out infinite; }
  .cycle .n { animation: chipNight 24s ease-in-out infinite; }
}
@keyframes fadeNight { 0%, 38% { opacity: 0; } 50%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fadeDay { 0%, 38% { opacity: 1; } 50%, 88% { opacity: 0; } 100% { opacity: 1; } }
@keyframes chipDay { 0%, 38% { color: var(--amber); border-color: var(--amber-deep); } 50%, 88% { color: var(--grey); border-color: #3a2f27; } 100% { color: var(--amber); border-color: var(--amber-deep); } }
@keyframes chipNight { 0%, 38% { color: var(--grey); border-color: #3a2f27; } 50%, 88% { color: var(--ember); border-color: var(--sleep-red); } 100% { color: var(--grey); border-color: #3a2f27; } }

/* ---- sections ---- */
section { padding: 64px 0; scroll-margin-top: 64px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--amber); margin-bottom: 10px; }
.intro { max-width: 60ch; color: #d8cdc2; }
.seg { font-family: var(--seg); font-weight: 700; color: var(--amber); letter-spacing: .02em; }

/* feature tour: alternating rows */
.tour { display: grid; gap: 72px; margin-top: 40px; }
.row { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.row:nth-child(even) .shotframe { order: 2; }
.row h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.row p { color: #d8cdc2; }
.row ul { margin: 0; padding-left: 1.1em; color: #d8cdc2; }
.row li { margin: .3em 0; }
.row .tag { display: inline-block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); border: 1px solid #4a3a2c; border-radius: 999px; padding: 2px 10px; margin-bottom: 12px; }
.row.red h3, .row.red .tag { color: var(--ember); }
.row.red .tag { border-color: var(--red-deep); }
.shotframe { margin: 0; border-radius: 22px; padding: 8px; background: linear-gradient(145deg, #241d18, #0b0907); box-shadow: inset 0 0 0 1px #2e251f; }
.shotframe img { width: 100%; height: auto; border-radius: 16px; background: #000; }
.shotframe figcaption { font-size: .85rem; color: var(--grey); padding: 10px 6px 2px; }

/* privacy pledge */
.pledge { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; list-style: none; padding: 0; }
.pledge li { background: var(--ink); border: 1px solid #1d1713; border-radius: 14px; padding: 18px; }
.pledge strong { display: block; color: var(--candle); font-family: var(--serif); font-size: 1.15rem; margin-bottom: 4px; }
.pledge span { color: var(--grey); font-size: .93rem; }

/* faces showcase */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; list-style: none; padding: 0; }
.shot { margin: 0; background: var(--ink); border: 1px solid #1d1713; border-radius: var(--radius); overflow: hidden; }
.shot img { width: 100%; height: auto; aspect-ratio: 720 / 332; background: #000; border-bottom: 1px solid #1d1713; }
.shot figcaption { padding: 12px 16px 14px; font-size: .92rem; color: var(--candle); }
.shot figcaption .cat { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--amber); margin-bottom: 2px; }
.shot figcaption strong { font-weight: 600; }
.shot figcaption .blurb { color: var(--grey); }
.shot figcaption .blurb::before { content: " \00b7  "; }
.night-shots .shot { border-color: #2a0c08; }
.night-shots .shot figcaption .cat { color: var(--ember); }
.night-band { margin-top: 48px; padding: 32px; border-radius: 24px; background: linear-gradient(180deg, #0a0100, #150302 60%, #070000); border: 1px solid #2a0c08; }
.night-band h3 { color: var(--ember); }
.night-band p { color: #e3b2a8; max-width: 62ch; }

.ideas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; list-style: none; padding: 0; }
.ideas li { background: var(--ink); border: 1px dashed #3a2f27; border-radius: 14px; padding: 18px; }
.ideas .label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.ideas h3 { font-size: 1.1rem; margin: 6px 0 6px; }
.ideas p { color: #d8cdc2; font-size: .93rem; margin: 0; }

/* closing call to action */
.cta { text-align: center; }
.cta .panel { padding: 56px 24px; border-radius: 28px; background: radial-gradient(60% 80% at 50% 0%, rgba(255,181,71,.16), rgba(0,0,0,0) 70%), var(--ink); border: 1px solid #2a211b; }
.cta .clock { font-size: clamp(2.6rem, 9vw, 4.6rem); line-height: 1; margin-bottom: 18px; }
.cta .actions { justify-content: center; }
.cta p { color: #d8cdc2; max-width: 52ch; margin-left: auto; margin-right: auto; }

/* ---- prose pages ---- */
.page { padding: 56px 0 0; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.8em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.prose code { background: var(--ash); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0 1.6em; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #241d18; vertical-align: top; }
.prose th { color: var(--candle); font-weight: 600; }
.updated { color: var(--grey); font-size: .9rem; }

.coffee { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 12px 20px; border-radius: 999px; background: var(--amber); color: #1a1006; font-weight: 600; text-decoration: none; }
.coffee:hover { background: var(--candle); color: #1a1006; }
.coffee svg { width: 20px; height: 20px; }

details { background: var(--ink); border: 1px solid #1d1713; border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
details summary { cursor: pointer; color: var(--candle); font-weight: 600; }
details[open] summary { margin-bottom: 8px; }

/* ---- feedback form ---- */
.form { display: grid; gap: 18px; margin-top: 8px; }
.field label, .field legend { display: block; font-weight: 600; color: var(--candle); margin-bottom: 6px; }
.field .hint { display: block; font-size: .88rem; color: var(--grey); margin-top: 4px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; color: var(--text); background: var(--ink); border: 1px solid #3a2f27; border-radius: 999px; padding: 8px 14px; cursor: pointer; margin: 0; }
.choices input { accent-color: var(--amber); width: 18px; height: 18px; margin: 0; }
.choices label:has(input:checked) { border-color: var(--amber); color: var(--candle); }
.choices label:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 2px; }
input[type="email"], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--ink); border: 1px solid #4a3a2c; border-radius: 12px; padding: 12px 14px;
}
textarea { min-height: 170px; resize: vertical; }
input[type="email"]:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }
.counter { font-size: .85rem; color: var(--grey); text-align: right; margin-top: 4px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
button.btn { font: inherit; font-weight: 600; cursor: pointer; }
button.btn[disabled] { opacity: .6; cursor: progress; }
.status { padding: 14px 16px; border-radius: 12px; border: 1px solid #3a2f27; background: var(--ink); }
.status.ok { border-color: #3d6b3a; color: #cfe8c9; }
.status.err { border-color: var(--sleep-red); color: #ffc9bd; }
.fallback { padding: 18px; border-radius: 14px; border: 1px solid #3a2f27; background: var(--ink); }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-mark { margin: 0 auto 18px; }
  .lead { margin: 0 auto 1em; }
  .hero .actions { justify-content: center; }
  .row { grid-template-columns: 1fr; gap: 20px; }
  .row:nth-child(even) .shotframe { order: 0; }
  .pledge, .ideas { grid-template-columns: 1fr 1fr; }
  .nav { gap: 14px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .gallery, .pledge, .ideas { grid-template-columns: 1fr; }
  .nav a.opt { display: none; }
  .device { border-radius: 24px; padding: 8px; }
  .device .screen { border-radius: 16px; }
  section { padding: 48px 0; }
  .badge, .btn { width: 100%; justify-content: center; }
  .hero { padding-top: 40px; }
  .hero-mark { width: 60px; height: 60px; }
  .nav { gap: 12px; font-size: .9rem; }
}
[hidden] { display: none !important; }
