/* Isla: warm sand, shell rose, sea-glass teal, rounded type, pebbles and capsules. */
:root {
  --sand: #F5ECE6;
  --shell: #FBF6F2;
  --pebble: #EFE3DA;
  --ink: #2B1F1E;
  --soft: #6F5E5B;
  --rose: #994858;
  --rose-wash: #F1DADB;
  --sea: #3E8C84;
  --sea-wash: #D6ECE8;
  --edge: #E4D5CB;
  --on-rose: #FFFFFF;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sand: #1A1414;
    --shell: #251D1D;
    --pebble: #2E2424;
    --ink: #F4E9E4;
    --soft: #BFAEA9;
    --rose: #E0A3A8;
    --rose-wash: #3A2629;
    --sea: #7CC4BA;
    --sea-wash: #1E3331;
    --edge: #3A2E2D;
    --on-rose: #1A1414;
  }
}
:root[data-theme="dark"] {
  --sand: #1A1414; --shell: #251D1D; --pebble: #2E2424; --ink: #F4E9E4; --soft: #BFAEA9;
  --rose: #E0A3A8; --rose-wash: #3A2629; --sea: #7CC4BA; --sea-wash: #1E3331; --edge: #3A2E2D; --on-rose: #1A1414;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 400 17px/1.6 ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
}
a { color: var(--rose); text-underline-offset: 3px; }
.shore { max-width: 1000px; margin: 0 auto; padding: 0 16px; }

/* Top capsule, echoing the app's floating switcher */
.capsule-bar {
  position: sticky; top: 12px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 12px 0 0; padding: 8px 8px 8px 18px;
  background: color-mix(in srgb, var(--shell) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--edge); border-radius: 999px;
}
.capsule-bar .mark { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 19px; }
.capsule-bar .mark svg { width: 22px; height: 22px; }
.capsule-bar nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.capsule-bar nav a { padding: 6px 12px; border-radius: 999px; color: var(--soft); text-decoration: none; font-size: 15px; }
.capsule-bar nav a:hover { background: var(--pebble); color: var(--ink); }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(36px, 7vw, 60px); line-height: 1.05; margin: 0 0 14px; }
h2 { font-size: clamp(26px, 4.6vw, 36px); line-height: 1.15; margin: 0 0 18px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.quiet { color: var(--soft); }
.small { font-size: 14px; color: var(--soft); }

.tide { padding: 56px 0; }

/* Hero: the ring beside the words */
.cove { display: grid; gap: 32px; align-items: center; padding: 48px 0 40px; }
@media (min-width: 760px) { .cove { grid-template-columns: 1.05fr 1fr; padding: 72px 0 56px; } }
.cove .lede { font-size: 21px; color: var(--soft); margin: 0 0 24px; max-width: 30ch; }
.ring { width: 100%; max-width: 380px; margin: 0 auto; display: block; }
.ring text { font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif; fill: var(--ink); }
.ring .numeral { font-weight: 300; font-size: 64px; }
.ring .caption { font-size: 13px; fill: var(--soft); }
.dot-period { fill: var(--rose); }
.dot-estimate { fill: none; stroke: var(--rose); stroke-width: 1.6; stroke-dasharray: 2.6 2; }
.dot-window { fill: var(--sea); }
.dot-plain { fill: var(--edge); }
.dot-today { fill: var(--ink); }

.store-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  background: var(--rose); color: var(--on-rose); text-decoration: none; font-weight: 600;
}
.vow { margin: 20px 0 0; padding: 12px 18px; border-radius: 22px; background: var(--rose-wash); font-size: 15px; max-width: 46ch; }

/* Stays / leaves */
.ledger { display: grid; gap: 16px; }
@media (min-width: 760px) { .ledger { grid-template-columns: 1fr 1fr; } }
.pebble { background: var(--shell); border: 1px solid var(--edge); border-radius: 32px; padding: 26px 26px 22px; }
.pebble.sea { background: var(--sea-wash); border-color: transparent; }
.pebble ul { margin: 8px 0 0; padding: 0; list-style: none; }
.pebble li { position: relative; padding: 6px 0 6px 26px; }
.pebble li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--rose); }
.pebble.sea li::before { background: var(--sea); }

/* Ring legend */
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--shell); border: 1px solid var(--edge); }
.legend svg { width: 16px; height: 16px; flex: none; }

/* Features as stones */
.stones { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .stones { grid-template-columns: 1fr 1fr; } }
.stones .pebble p { margin: 0; color: var(--soft); }

/* Plans */
.plans { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1.2fr 1fr 1fr; } }
.plan { background: var(--shell); border: 1px solid var(--edge); border-radius: 32px; padding: 24px; }
.plan.chosen { border: 2px solid var(--rose); }
.plan .figure { font-size: 44px; font-weight: 300; line-height: 1.1; margin: 6px 0 2px; }
.plan p { margin: 4px 0 0; color: var(--soft); }
.terms-line { margin-top: 16px; }

/* Comparison */
.scroller { overflow-x: auto; border-radius: 24px; border: 1px solid var(--edge); background: var(--shell); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--edge); vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { font-weight: 600; background: var(--pebble); }
td.isla { color: var(--rose); font-weight: 600; }

/* Questions */
details { background: var(--shell); border: 1px solid var(--edge); border-radius: 26px; padding: 14px 20px; margin: 0 0 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--soft); margin: 10px 0 2px; }

/* Long pages */
.page { max-width: 700px; padding: 40px 0 56px; }
.page h2 { font-size: 23px; margin-top: 36px; }
.page .pebble { margin: 16px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; padding: 0; list-style: none; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--pebble); font-size: 15px; }

.lost { text-align: center; padding: 80px 0; }
.lost .ring { max-width: 220px; margin-bottom: 20px; }

footer.tideline { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding: 28px 0 44px; border-top: 1px solid var(--edge); color: var(--soft); font-size: 14px; }
footer.tideline a { color: var(--soft); }

/* Search pages: calculator, cycle lengths, month tables, guides, comparisons */
.crumbs { padding: 24px 0 0; font-size: 14px; color: var(--soft); }
.crumbs a { color: var(--soft); }
.page.wide { max-width: 860px; }
.page .lede { font-size: 20px; color: var(--soft); }
.page table { min-width: 0; }
.page .scroller { margin: 12px 0; }
table.lookup { min-width: 560px; font-size: 14px; }
table.lookup td, table.lookup th { padding: 7px 10px; white-space: nowrap; }
.calc { display: grid; gap: 14px; margin: 20px 0; }
@media (min-width: 680px) { .calc { grid-template-columns: 1.3fr 1fr 1fr; align-items: end; } .calc p { grid-column: 1 / -1; margin: 0; } }
.calc label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.calc input, .calc select { font: inherit; font-weight: 400; color: var(--ink); background: var(--sand); border: 1px solid var(--edge); border-radius: 14px; padding: 10px 12px; min-height: 46px; width: 100%; }
.note { font-size: 18px; font-weight: 600; margin: 8px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.actions label { display: inline-flex; gap: 8px; align-items: center; }
.ghost-pill { display: inline-flex; align-items: center; padding: 11px 20px; border-radius: 999px; border: 1.5px solid var(--rose); background: transparent; color: var(--rose); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.ghost-pill[hidden] { display: none; }
.cta { max-width: 860px; margin: 8px 0 32px; }
.cta p { margin: 0 0 16px; color: var(--soft); }
.related-block { padding: 0 0 40px; }
.related-block h2 { font-size: 21px; margin-bottom: 10px; }
.related { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.related a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--shell); border: 1px solid var(--edge); text-decoration: none; font-size: 15px; }
.stack { display: grid; gap: 14px; }
a.link-card { display: block; color: var(--ink); text-decoration: none; }
a.link-card:hover { border-color: var(--rose); }
a.link-card h2, a.link-card h3 { margin: 0 0 6px; font-size: 20px; color: var(--rose); }
a.link-card p { margin: 0; color: var(--soft); }
.month-list a { text-decoration: none; }
article.page ul { padding-left: 20px; }
article.page li { margin: 6px 0; }
footer.tideline nav.more-apps { flex-basis: 100%; }
footer.tideline .more-apps h2 { font-size: 15px; margin: 0 0 6px; }
footer.tideline .more-apps ul { margin: 0 0 6px; padding-left: 18px; }
footer.tideline .more-apps p { margin: 0; }
footer.tideline nav.site-links { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 18px; }
