/*
 * pacenda.com – one static page, no JavaScript, no cookies, no third-party requests.
 * Palette and type follow the app (apps/web/src/ui/tokens.css): espresso is the primary look,
 * cream follows prefers-color-scheme: light. Fonts are self-hosted (OFL, see fonts/).
 * Layout: a dawn-lit hero, then three promises, your data, install, and a closing call.
 */

@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Marcellus SC';
  src: url('fonts/marcellus-sc-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #17110c;
  --surface: #221a12;
  --raised: #2b2118;
  --line: #2e241a;
  --text: #fbf1e2;
  --muted: #cdbca3;
  --accent: #f5a72e;
  --on-accent: #17110c;
  --accent-text: #f5a72e;
  --glow: rgba(255, 138, 61, 0.22);
  --wordmark: linear-gradient(90deg, #f5a72e 0%, #ff6b4a 100%);
  --display: 'Marcellus SC', Georgia, 'Times New Roman', serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    color-scheme: light;
    --bg: #fbf1e2;
    --surface: #fffaf2;
    --raised: #f6e9d5;
    --line: #e6d6bd;
    --text: #17110c;
    --muted: #5e4f3d;
    --accent-text: #8a4a08;
    --glow: rgba(245, 167, 46, 0.28);
    --wordmark: linear-gradient(90deg, #b8650a 0%, #d9472b 100%);
  }
}
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #fbf1e2;
  --surface: #fffaf2;
  --raised: #f6e9d5;
  --line: #e6d6bd;
  --text: #17110c;
  --muted: #5e4f3d;
  --accent-text: #8a4a08;
  --glow: rgba(245, 167, 46, 0.28);
  --wordmark: linear-gradient(90deg, #b8650a 0%, #d9472b 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent-text);
}
a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}
h2 {
  font-size: clamp(28px, 4vw, 40px);
}
h3 {
  font-size: 22px;
}
p {
  margin: 0;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus {
  left: 8px;
}

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section {
  padding-block: clamp(56px, 9vw, 104px);
}
.eyebrow {
  font: 700 13px/1.2 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* header */
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
  flex-wrap: wrap;
}
.brand img {
  height: 34px;
  width: auto;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  flex-wrap: wrap;
}
.site-nav a:not(.button) {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.site-nav a:not(.button):hover {
  color: var(--text);
}
/* on a phone the header is the logo and Open Pacenda; the sections follow right below */
@media (max-width: 620px) {
  .site-header .wrap {
    flex-wrap: nowrap;
  }
  .site-nav a:not(.button) {
    display: none;
  }
  .brand img {
    height: 28px;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font: 700 16px/1 var(--body);
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 999px;
  min-height: 48px;
}
.button:hover {
  filter: brightness(1.06);
}
.button--small {
  padding: 10px 16px;
  min-height: 40px;
  font-size: 15px;
}

/* hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 8vw, 96px);
}
.hero::before {
  /* the dawn glow from the logo animation, behind the phone */
  content: '';
  position: absolute;
  right: -10%;
  top: -20%;
  width: min(80vw, 760px);
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--glow) 0%, transparent 65%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  gap: clamp(32px, 6vw, 72px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) {
  .hero .wrap {
    grid-template-columns: 1.15fr 0.85fr;
  }
}
.hero-copy {
  display: grid;
  gap: 22px;
  min-width: 0;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  background: var(--wordmark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .subline {
  font-size: clamp(19px, 2.4vw, 23px);
  color: var(--muted);
}
.helps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 18px;
  max-width: 34em;
}
.helps li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
}
.helps li::before {
  content: '';
  width: 14px;
  height: 22px;
  margin-top: 3px;
  background: var(--wordmark);
  border-radius: 0 999px 999px 0;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 6px;
}
.promise {
  font-weight: 700;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.02em;
}

/* phone shots */
.phone {
  margin: 0;
  justify-self: center;
  width: min(78vw, 320px);
  border-radius: 40px;
  padding: 10px;
  background: #0d0906;
  box-shadow:
    0 0 0 1px rgba(251, 241, 226, 0.12),
    0 30px 60px rgba(0, 0, 0, 0.35);
}
.phone img {
  border-radius: 30px;
  width: 100%;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  background: var(--raised);
}
.phone figcaption {
  position: absolute;
  left: -9999px;
}

/* three promises */
.promises .wrap {
  display: grid;
  gap: 40px;
}
.intro {
  display: grid;
  gap: 14px;
  max-width: 46em;
  align-content: start;
}
.intro p {
  color: var(--muted);
  font-size: 18px;
}
.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 24px 28px;
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}
.card {
  grid-template-rows: auto auto 1fr;
}
.card .phone {
  width: min(100%, 260px);
  border-radius: 34px;
  padding: 8px;
  align-self: end;
}
.card .phone img {
  border-radius: 26px;
}
.card ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}
.card li::marker {
  color: var(--accent-text);
}

/* your rules */
.rules {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.rules .wrap {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .rules .wrap {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }
}
.rules blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.25;
  text-wrap: balance;
}
.rules p {
  color: var(--muted);
  font-size: 18px;
}
.for-whom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}
.for-whom li {
  border: 1px solid var(--line);
  background: var(--raised);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--text);
}

/* your data */
.data .wrap {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .data .wrap {
    grid-template-columns: 0.8fr 1.2fr;
  }
}
.facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.facts li {
  display: grid;
  grid-template-columns: minmax(0, 12em) 1fr;
  gap: 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.facts b {
  font-weight: 700;
}
.facts span {
  color: var(--muted);
}
@media (max-width: 560px) {
  .facts li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* install */
.install .wrap {
  display: grid;
  gap: 32px;
}
.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}
.step-card ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
}
.step-card li::marker {
  color: var(--accent-text);
  font-weight: 700;
}
.step-card .note {
  color: var(--muted);
  font-size: 15px;
}
kbd {
  font: 700 0.92em/1 var(--body);
  background: var(--raised);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 6px;
  white-space: nowrap;
}
.install .last {
  color: var(--muted);
}

/* founder */
.founder .wrap {
  display: grid;
  gap: clamp(24px, 5vw, 56px);
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: start;
}
@media (min-width: 760px) {
  .founder .wrap {
    grid-template-columns: auto 1fr;
    max-width: 940px;
  }
}
.founder picture img {
  width: clamp(140px, 22vw, 200px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0 0 0 6px var(--raised),
    0 0 60px var(--glow);
}
.founder-copy {
  display: grid;
  gap: 14px;
  max-width: 40em;
  min-width: 0;
}
.founder-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}
.founder-copy .signature {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

/* closing */
.closing {
  text-align: center;
}
.closing .wrap {
  display: grid;
  gap: 22px;
  justify-items: center;
}
.closing img {
  width: 72px;
}
.closing h2 {
  max-width: 18em;
}

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 32px 40px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
}
.site-footer address {
  font-style: normal;
  max-width: 60em;
}
/* the privacy page: one readable column */
.legal {
  padding-block: clamp(40px, 7vw, 80px);
}
.legal .wrap {
  display: grid;
  gap: 18px;
  max-width: 46em;
}
.legal h1 {
  font-size: clamp(32px, 5vw, 44px);
}
.legal p {
  color: var(--muted);
}
.legal p strong {
  color: var(--text);
}
.site-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.placeholder {
  background: rgba(245, 167, 46, 0.18);
  outline: 1px dashed var(--accent);
  border-radius: 4px;
  padding: 0 4px;
}
