/* Vital Minutes website.
   Dark only, on #121212 per the brand guidelines (not the app's #000000).
   Hot pink #FF2D87 on #121212 is 5.33:1, so it passes AA for links and
   headings. The muted tagline pinks are not used here at all: they belong
   to the tagline (already inside the logo SVG) and in-app coaching only.
   No web fonts: Rajdhani lives outlined inside the logo, and loading a
   font from Google would be a third-party request on a site that promises
   none. Body text uses the app's rounded system font where it exists. */

:root {
  --bg: #121212;
  --surface: #1c1c1c;
  --text: #ededed;      /* 16.0:1 on --bg */
  --muted: #a6a6a6;     /* 7.7:1 on --bg */
  --pink: #ff2d87;      /* 5.33:1 on --bg */
  --rule: #2c2c2c;
  --measure: 38rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 1.25rem;
  background: var(--bg);
  color: var(--text);
  /* ui-rounded is SF Pro Rounded, the app's own font, on iPhone, iPad and
     Safari on Mac. Other browsers fall back to the device's own font.
     Nothing is downloaded either way. */
  font: 1.0625rem/1.65 ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

main, .site-header, .site-footer {
  max-width: var(--measure);
  margin: 0 auto;
}

a { color: var(--pink); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 2px; }

/* Header */
.site-header {
  padding-block: 2rem 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
/* Menu: a three-line button that opens a panel of links. Built on
   <details>, so it works without any script. */
.menu { position: relative; }
.menu summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { background: var(--surface); }
.menu summary:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.bars { display: grid; gap: 5px; }
.bars span { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--text); }
.menu[open] .bars span { background: var(--pink); }
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 10;
  min-width: 13.5rem;
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.45);
  display: flex;
  flex-direction: column;
}
.menu-panel a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 0.85rem;
  border-radius: 9px;
}
.menu-panel a:hover { background: #262626; }
.menu-panel a[aria-current="page"] { color: var(--pink); }
.menu-panel hr { border: 0; border-top: 1px solid var(--rule); margin: 0.4rem 0.5rem; }
.home-link { display: inline-block; }
.home-link img { display: block; width: min(15rem, 70vw); height: auto; }

/* Home */
.hero { padding-block: 2.5rem 1rem; }
.hero h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
.lede { font-size: 1.2rem; color: var(--text); margin: 0 0 1rem; }
.status {
  display: inline-block;
  margin: 0.5rem 0 0;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
}

.article h2 {
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 2.75rem 0 0.75rem;
  color: var(--pink);
}
.article p { margin: 0 0 1rem; }

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.6rem 1.25rem;
  margin: 1.25rem 0 1.5rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border-radius: 12px;
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 26rem) {
  .facts { grid-template-columns: 1fr; gap: 0.1rem; }
  .facts dd { margin-bottom: 0.6rem; }
}

.note {
  margin: 2.5rem 0 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--pink);
  background: var(--surface);
  border-radius: 0 12px 12px 0;
}
.note p { margin: 0; }

/* Legal documents */
.doc h1 {
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  line-height: 1.2;
  margin: 2rem 0 0.5rem;
}
.doc .meta { color: var(--muted); margin: 0 0 2rem; }
.doc .meta strong { color: var(--text); font-weight: 600; }
.doc h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.6rem;
  color: var(--pink);
}
.doc p { margin: 0 0 1rem; }
.doc ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.doc li { margin-bottom: 0.4rem; }

/* Blog */
.blog-index h1, .post h1 {
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  line-height: 1.2;
  margin: 2rem 0 1rem;
}
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding-block: 1.25rem; border-bottom: 1px solid var(--rule); }
.post-list a { text-decoration: none; }
.post-title { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.post-list a:hover .post-title { text-decoration: underline; }
.post-date { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; }
.post-list p { margin: 0.5rem 0 0; }

.kicker { color: var(--muted); font-size: 0.95rem; margin: 2rem 0 0; }
.kicker + h1 { margin-top: 0.5rem; }
.byline { color: var(--muted); font-size: 0.95rem; margin: -0.25rem 0 1.5rem; }
.kicker a { text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.post p { margin: 0 0 1.1rem; }
.post h2 { font-size: 1.3rem; margin: 2.5rem 0 0.75rem; color: var(--pink); }
.tldr {
  margin: 1.5rem 0 2.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border-radius: 12px;
}
.tldr h2 { margin: 0 0 0.75rem; font-size: 1.1rem; }
.tldr p { margin: 0 0 0.6rem; font-size: 0.98rem; }
.tldr p:last-child { margin-bottom: 0; }
.cite { font-size: 0.7em; line-height: 0; margin-left: 0.1em; white-space: nowrap; }
.cite a { text-decoration: none; }
.refs { padding-left: 1.5rem; font-size: 0.9rem; color: var(--muted); }
.refs li { margin-bottom: 0.6rem; overflow-wrap: anywhere; }
.refs li:target { color: var(--text); }
.refs a { color: var(--muted); }

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-bottom: 1rem; }
.site-footer nav a { color: var(--text); text-decoration: none; }
.site-footer nav a:hover, .site-footer nav a[aria-current="page"] { color: var(--pink); }
.site-footer p { margin: 0.35rem 0; }
.site-footer p a { color: var(--muted); }

/* App page: the store badge until the app is in the App Store. */
.store-soon {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border: 2px solid var(--pink);
  border-radius: 12px;
  color: var(--pink);
  font-weight: 700;
}
