/* Sleep Wind — the palette is lifted from App/DesignSystem/Palette.swift so the page and the
   app are recognisably the same thing. Dark is not a preference here: the app is opened in a
   dark room by someone about to sleep, and the site should not be a white flash from a link
   tapped inside it. */
:root {
  --ink: #090A10;
  --surface: #13151D;
  --raised: #1B1D27;
  --text: #EDE8DE;
  --dim: rgba(237, 232, 222, 0.58);
  --faint: rgba(237, 232, 222, 0.34);
  --amber: #FAB861;
  --amber-deep: #D98038;
  --hairline: rgba(255, 255, 255, 0.07);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 50% -10%, #161a2b 0%, rgba(9,10,16,0) 60%),
    var(--ink);
  color: var(--text);
  font: 400 17px/1.65 ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
        "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 44rem; margin: 0 auto; padding: 4.5rem 1.5rem 6rem; }

header { margin-bottom: 3rem; }

.mark {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 1.05rem; letter-spacing: 0.01em; color: var(--dim);
  text-decoration: none;
}
/* The mark is the app icon's exact geometry, served from /mark.svg — the same
   path the icon is generated from, so the site and the home screen cannot drift
   apart the way they did when this was a separate inline glyph. */
.mark img { display: block; }
.mark:hover { color: var(--text); }

h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 300; letter-spacing: -0.01em;
  margin: 2.5rem 0 0.6rem;
}

.updated { color: var(--faint); font-size: 0.9rem; margin: 0; }

.lede {
  margin: 2rem 0 0;
  padding: 1.25rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--amber);
  border-radius: 14px;
  color: var(--text);
}
.lede strong { color: var(--amber); font-weight: 500; }

h2 {
  font-size: 1.3rem; font-weight: 400; letter-spacing: -0.005em;
  margin: 3rem 0 0.75rem; color: var(--text);
}

p { margin: 0 0 1rem; color: var(--dim); }
p.tight { margin-bottom: 0.4rem; }

strong { color: var(--text); font-weight: 500; }

ul { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--dim); }
li { margin-bottom: 0.5rem; }
li::marker { color: var(--amber-deep); }

a { color: var(--amber); text-decoration-color: rgba(250, 184, 97, 0.35); }
a:hover { text-decoration-color: var(--amber); }

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 1.1rem 1.35rem;
  margin: 1.25rem 0;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.nothing { list-style: none; padding-left: 0; }
.nothing li { position: relative; padding-left: 1.6rem; }
.nothing li::before {
  content: "—"; position: absolute; left: 0; color: var(--amber-deep);
}

footer {
  margin-top: 4.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  color: var(--faint); font-size: 0.88rem;
}
footer a { color: var(--dim); }

@media (max-width: 480px) { .wrap { padding: 3rem 1.15rem 4rem; } }
