/* Cyclia website. Plain CSS, system fonts, no scripts. Colours follow the app's default look:
   the sage theme with the botanical background. */
:root {
  --bg: #f7fbf1;
  --panel: #ffffff;
  --ink: #191d17;
  --ink-soft: #42493f;
  --line: #d3dccd;
  --accent: #3a693b;
  --accent-soft: #bbe5b6;
  --on-accent: #ffffff;
  --picture: 0.6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10140f;
    --panel: #1b2019;
    --ink: #e0e4da;
    --ink-soft: #c1c9bb;
    --line: #3b4338;
    --accent: #a0d39c;
    --accent-soft: #1f3f22;
    --on-accent: #07390f;
    --picture: 0.3;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
a { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 60rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 42rem; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; padding-block: 0.9rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.brand img { width: 2.25rem; height: 2.25rem; }
nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-left: auto; }
nav a { text-decoration: none; color: var(--ink-soft); }
nav a:hover, nav a[aria-current="page"] { color: var(--accent); }

h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; margin: 0 0 1rem; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: 1.4rem; line-height: 1.25; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.75rem 0 0.4rem; }
p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 36rem; }
.note { color: var(--ink-soft); font-size: 0.95rem; }

/* The top of the home page looks like the app's Today screen: a wash of the theme colour
   that fades out, with the blurred sage branch behind the text. */
.hero { position: relative; overflow: hidden; margin-top: 1.5rem; padding: 3rem 1.5rem 2.5rem; border-radius: 1.5rem; background: linear-gradient(var(--accent-soft) 40%, var(--bg)); }
.hero::before { content: ""; position: absolute; inset: 0; background: url("/assets/sage.webp") no-repeat right -3rem top -2rem / auto 135%; opacity: var(--picture); pointer-events: none; }
.hero > * { position: relative; }
.hero .lead { color: var(--ink); }
.badge { display: inline-block; background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 0.45rem 1rem; font-size: 0.95rem; margin-top: 0.5rem; }
@media (max-width: 40rem) {
  .hero { padding-inline: 1.1rem; }
  .hero::before { opacity: calc(var(--picture) * 0.55); }
}

.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; padding: 0; margin: 2rem 0; list-style: none; }
.points li { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1.1rem 1.25rem; margin: 0; }
.points strong { display: block; margin-bottom: 0.25rem; }
.points span { color: var(--ink-soft); font-size: 0.97rem; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.25rem; margin: 2rem 0; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: 1.25rem; border: 1px solid var(--line); }
.shots figcaption { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.5rem; text-align: center; }

/* The guide. */
.shots.two { grid-template-columns: repeat(auto-fit, minmax(11rem, 15rem)); justify-content: center; }
.callout { background: var(--accent-soft); border-radius: 1rem; padding: 1rem 1.25rem; margin: 0 0 1.25rem; }
.callout p { margin: 0; }
.steps { padding-left: 0; margin: 0 0 1rem; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 0 2.75rem; margin-bottom: 0.9rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0.1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; display: grid; place-items: center; font-size: 0.95rem; }
.legend { list-style: none; padding-left: 0; }
.legend li { position: relative; padding-left: 3.25rem; margin-bottom: 0.6rem; }
/* Small copies of what a day looks like on the calendar, in the app's own colours. */
.sw { position: absolute; left: 0; top: 0.3rem; width: 2.4rem; height: 1.1rem; border-radius: 999px; box-sizing: border-box; }
.sw-period { background: #3a693b; }
.sw-predicted { border: 2px solid #3a693b; }
.sw-fertile { background: #bfe9f0; }
.sw-ovulation { left: 0.65rem; width: 1.1rem; background: #3a666c; }
.sw-today { left: 0.65rem; width: 1.1rem; border: 2px solid var(--ink); }
.sw-dot { left: 0.95rem; top: 0.6rem; width: 0.45rem; height: 0.45rem; background: var(--ink); }
@media (prefers-color-scheme: dark) {
  .sw-period { background: #a0d39c; }
  .sw-predicted { border-color: #a0d39c; }
  .sw-fertile { background: #1f4e55; }
  .sw-ovulation { background: #a2ced5; }
}

main { padding-bottom: 3rem; }
main.text { padding-top: 2.5rem; }
footer.site { border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.95rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding-block: 1.5rem; }
footer.site span { margin-right: auto; }

/* A link that is the main action of a page. */
.button { display: inline-block; background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 0.7rem 1.4rem; font-weight: 600; text-decoration: none; }
.button:hover { filter: brightness(1.08); }
