/* jarmer.app: the Desert palette from the app (ios/DibsKit/Theme/Theme.swift), light and dark. */

@font-face {
  font-family: "Fredoka";
  src: url("/assets/fredoka-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ground: #F4EBE1;
  --surface: #FDF9F4;
  --fill: #EFE1D3;
  --fill2: #E8D8C8;
  --line: #E3D2C1;
  --ink: #2A1F26;
  --ink2: #66545A;
  --sage: #E6EADB; --sage-ink: #5A6E4C;
  --apricot: #F3E2D3; --apricot-ink: #93603F;
  --lavender: #E7E1EC; --lavender-ink: #66577E;
  --sky: #DAE6EF; --sky-ink: #35607F;
  --rose: #F4DCE1; --rose-ink: #9A3F57;
  --honey: #F5E7C4; --honey-ink: #7E6119;
  --ember: #E0703F;
  --radius: 22px;
  --display: "Bricolage Grotesque", ui-rounded, system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1F1622;
    --surface: #2B1F2D;
    --fill: #3A2B3B;
    --fill2: #45344A;
    --line: #4B3A4D;
    --ink: #F4EBE1;
    --ink2: #C9B5B3;
    --sage: #2F3A2A; --sage-ink: #C3D1AE;
    --apricot: #45302A; --apricot-ink: #E8C4A6;
    --lavender: #352E48; --lavender-ink: #CBBFDF;
    --sky: #26333F; --sky-ink: #A9CBE6;
    --rose: #45293A; --rose-ink: #F1B3C4;
    --honey: #41381F; --honey-ink: #EBD08A;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--sage-ink); }
img { max-width: 100%; display: block; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }

/* Header and footer */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0;
}
.top .logo img { height: 34px; width: auto; }
.top nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 16px; }
.top nav a { text-decoration: none; color: var(--ink2); }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
@media (max-width: 520px) {
  .top nav { gap: 14px; font-size: 15px; }
  .top nav a[href$="#how"] { display: none; }
}

footer {
  margin-top: 72px; padding: 32px 0 48px; border-top: 1px solid var(--line);
  color: var(--ink2); font-size: 15px;
}
footer .row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { text-decoration: none; }

/* Type */
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 72px); font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; }
.eyebrow { font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink2); margin: 0 0 14px; }
.lede { font-size: clamp(19px, 2.2vw, 22px); color: var(--ink2); max-width: 36ch; margin: 20px 0 0; }
.muted { color: var(--ink2); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 16px;
  background: var(--ink); color: var(--ground); font-weight: 700; text-decoration: none;
}
.button:hover { color: var(--ground); opacity: 0.92; }
.button.soft { background: var(--fill); color: var(--ink); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 40px 0 24px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 36px; } }

/* The lock screen, drawn: a notification with its buttons, and Now's one card. */
/* Always light, like a wallpaper photo, in either mode. */
.phone {
  --ink: #2A1F26; --ink2: #66545A; --surface: #FDF9F4; --line: #E3D2C1; --sage-ink: #5A6E4C;
  color: var(--ink);
  background: linear-gradient(160deg, #E7E1EC, #F3E2D3 55%, #F5E7C4);
  border-radius: 44px; padding: 26px 18px 30px; max-width: 380px; margin-inline: auto; width: 100%;
  box-shadow: 0 30px 60px -30px rgba(42, 31, 38, 0.45);
}
.phone .clock { text-align: center; font-family: var(--display); font-weight: 700; font-size: 64px; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.phone .date { text-align: center; color: var(--ink2); font-size: 15px; margin: 6px 0 22px; }
.notif {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 22px; overflow: hidden;
}
.notif .head { display: flex; gap: 12px; padding: 14px; align-items: center; }
.notif .icon { width: 38px; height: 38px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; flex: none; }
.notif .icon img { width: 26px; height: 26px; }
.notif strong { display: block; font-size: 16px; }
.notif small { color: var(--ink2); font-size: 14px; }
.notif .when { margin-left: auto; align-self: flex-start; color: var(--ink2); font-size: 13px; }
.notif .btn { border-top: 1px solid var(--line); text-align: center; padding: 11px; font-size: 16px; }
.notif .btn.done { color: var(--sage-ink); font-weight: 700; }

/* Sections */
section { padding: 56px 0 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 28px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 22px; }
.card p { margin: 8px 0 0; color: var(--ink2); font-size: 16px; }
.tint { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; font-size: 22px; }
.tint.sage { background: var(--sage); color: var(--sage-ink); }
.tint.apricot { background: var(--apricot); color: var(--apricot-ink); }
.tint.lavender { background: var(--lavender); color: var(--lavender-ink); }
.tint.sky { background: var(--sky); color: var(--sky-ink); }
.tint.rose { background: var(--rose); color: var(--rose-ink); }
.tint.honey { background: var(--honey); color: var(--honey-ink); }

.steps { counter-reset: step; display: grid; gap: 14px; margin-top: 24px; }
.steps li { list-style: none; background: var(--surface); border-radius: var(--radius); padding: 20px 22px 20px 70px; position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 22px; top: 18px; width: 32px; height: 32px; border-radius: 10px;
  background: var(--fill); display: grid; place-items: center; font-weight: 700;
}
.steps li p { margin: 4px 0 0; color: var(--ink2); font-size: 16px; }
.steps { padding: 0; }

.band { background: var(--surface); border-radius: 30px; padding: 40px; margin-top: 56px; }
@media (max-width: 600px) { .band { padding: 26px 22px; } }
.nos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.nos span { background: var(--fill); border-radius: 999px; padding: 8px 14px; font-size: 15px; }

/* Text pages: help, legal, contact */
.page { padding: 24px 0 0; }
.page h1 { font-size: clamp(36px, 6vw, 56px); }
.page .updated { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink2); margin: 0 0 12px; }
.page .intro { font-size: 20px; color: var(--ink2); margin: 16px 0 8px; }
.page section { padding: 22px 0; border-top: 1px solid var(--line); }
.page section:first-of-type { margin-top: 24px; }
.page h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.page p, .page li { color: var(--ink2); font-size: 17px; }
.page ul { padding-left: 22px; margin: 8px 0; }
.page p { margin: 0 0 10px; }
details { background: var(--surface); border-radius: 18px; padding: 16px 20px; margin-top: 10px; }
details summary { cursor: pointer; font-weight: 700; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--ink2); }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--ink2); font-size: 17px; }
.mailboxes { display: grid; gap: 12px; margin-top: 24px; }
.mailboxes a { display: block; background: var(--surface); border-radius: 18px; padding: 18px 20px; text-decoration: none; }
.mailboxes strong { display: block; }
.mailboxes span { color: var(--ink2); font-size: 16px; }

:focus-visible { outline: 3px solid var(--sky-ink); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
