/* WellThot LLC — shared styles. Plain CSS, no build step. */

:root {
  color-scheme: light dark;   /* real dual-theme support — also stops browser auto-darkening */
  --ink: #1f1d18;
  --ink-soft: #5b564c;
  --paper: #fdfbf4;
  --panel: #ffffff;
  --line: #e7e2d6;
  --accent: #e8b22e;          /* warm gold — echoes the Jots icon */
  --accent-deep: #b3851a;     /* borders and fills only: 3.2:1 on paper, too light for text */
  --link: #8a6510;            /* gold for TEXT: 5.1:1 on paper, 5.3:1 on a white panel (#1) */
  --pro: var(--link);         /* the Pro column's ticks and words */
  --max: 64rem;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31,29,24,.06), 0 8px 24px rgba(31,29,24,.05);
  font-size: 106.25%;         /* 17px at the browser default, and it follows the reader's text size (#9) */
}

/* Dark: the brand inverted — ink page, paper text, gold unchanged (it reads on both).
   --accent-deep brightens a step so links stay legible on the dark ground. */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f0ece1;
    --ink-soft: #b3ac9d;
    --paper: #191713;
    --panel: #23201a;
    --line: #3b362c;
    --accent-deep: #c9982f;
    --link: #c9982f;          /* 6.8:1 on the dark page */
    --pro: var(--accent);     /* 9.2:1 on the dark page */
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }

/* Every fragment link lands below the sticky header, whatever its height (two rows on a
   phone): one offset here, rather than a scroll-margin per kind of target (#2). */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
@media (max-width: 36rem) { html { scroll-padding-top: 7.5rem; } }   /* the header can wrap to two rows */

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Links inside running text keep an underline: gold alone is too close to the muted
   text around it to mark a link (#1). Navigation, buttons and the brand stay bare. */
main p a:not(.btn), main li a:not(.btn), main td a { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }

/* Skip link: off-screen until focused, then the first thing on the page (#8). */
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 20; background: var(--panel); color: var(--ink);
        padding: .5rem .9rem; border: 2px solid var(--accent-deep); border-radius: 8px; font-weight: 600; }
.skip:focus { top: .75rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
                   clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(253,251,244,.85);
  backdrop-filter: saturate(150%) blur(8px);
  position: sticky; top: 0; z-index: 10;
}
@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(25,23,19,.85); }   /* translucent ink, not paper */
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem 1.25rem;
  padding-top: .9rem; padding-bottom: .9rem;
}
/* The wordmark never breaks (the check-W once sat alone above "ellThot."); when the row
   is too narrow the nav drops to a second row instead (#4). */
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); letter-spacing: -.01em; white-space: nowrap; flex: none; }
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--accent); }
/* The double-check W: two check marks stand in for the wordmark's initial. Sized so the
   glyph's cap height matches the type; the small negative vertical-align seats the check
   valleys on the text baseline. Colors ride the theme vars (ink first, gold "done" second). */
.brand svg { height: .94em; width: auto; vertical-align: -.09em; }
.brand .w1 { stroke: var(--ink); }
.brand .w2 { stroke: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.nav a { color: var(--ink-soft); font-weight: 500; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover { color: var(--ink); text-decoration: none; }

/* Layout blocks */
main { padding: 3rem 0 4rem; }
/* Longhand on purpose: .hero shares elements with .wrap ("hero wrap"), and the shorthand
   `padding: 4rem 0 3rem` would zero .wrap's horizontal padding (same specificity, later
   in the sheet) — which flushed hero text to the screen edge on phones. */
.hero { padding-top: 4rem; padding-bottom: 3rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 40rem; }
/* Every hero paragraph gets the same reading measure as .lead — without this the body
   paragraphs run the full .wrap width (~95 characters on a desktop), which is well past
   comfortable. */
.hero p { max-width: 40rem; }

/* Screen tour: tapping a numbered badge in the SVG jumps to its explanation. Without a
   :target highlight the page just scrolls and leaves you guessing which line it meant, so
   the landed-on item is marked. scroll-margin keeps it clear of the viewport edge. */
.tour-key li { border-radius: 6px; padding: .15rem .4rem; margin-left: -.4rem; }
.tour-key li:target { background: color-mix(in srgb, var(--accent) 30%, transparent); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

h2 { font-size: 1.6rem; letter-spacing: -.01em; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.15rem; margin: 1.75rem 0 .4rem; }
p { margin: 0 0 1rem; }

.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }

.btn {
  display: inline-block; background: var(--accent); color: #2a2107;
  font-weight: 600; padding: .7rem 1.25rem; border-radius: 999px;
  border: 1px solid var(--accent-deep);
}
.btn:hover { background: var(--accent-deep); color: #2a2107; text-decoration: none; }   /* 4.8:1 light, 6.1:1 dark (#1) */
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { background: var(--panel); color: var(--ink); }

/* Cards */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin: 2rem 0; }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }

/* Beta-site notice (jots-beta only) */
.beta-notice {
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0 2rem;
}
.beta-notice p { margin: .35rem 0; }
.beta-notice .eyebrow { font-weight: 700; letter-spacing: .02em; text-transform: uppercase; font-size: .8rem; color: var(--link); }

/* Prose pages (privacy, support, about) */
.prose { max-width: 44rem; }
.prose h1 { font-size: 2rem; letter-spacing: -.02em; margin: 0 0 .25rem; }
.prose .effective { color: var(--ink-soft); font-size: .95rem; margin-bottom: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .3rem 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--ink-soft); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--ink-soft); }
.site-footer nav a { margin-right: 1rem; }

@media (max-width: 36rem) {
  .nav { gap: .25rem .9rem; }
  .site-header .brand { font-size: 1.05rem; }
}

/* Tier comparison (Jots page). Rides the theme vars; the free column checks in ink,
   the Pro column in gold — the brand's "done" tick. */
.tiers { width: 100%; border-collapse: collapse; margin: 1.4rem 0 .4rem; font-size: .95rem; }
.tiers th, .tiers td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); text-align: center; }
.tiers th:first-child, .tiers td:first-child { text-align: left; }
.tiers tbody th { font-weight: 400; color: var(--ink); }
.tiers thead th { font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 2px solid var(--line); }
.tiers td { color: var(--ink-soft); }
.tiers .y { color: var(--ink); font-weight: 700; }
.tiers .y.pro { color: var(--pro); }
.tiers tfoot th, .tiers tfoot td { border-bottom: 0; font-weight: 700; color: var(--ink); }
/* Narrow phones: tighter cells and a smaller header row so three columns fit 320px
   without the page scrolling sideways (#3). The table still scrolls inside its own
   region if a reader's large text needs it. */
.tiers-wrap { overflow-x: auto; }
@media (max-width: 26rem) {
  .tiers { font-size: .88rem; }
  .tiers th, .tiers td { padding: .5rem .3rem; }
  .tiers thead th { font-size: .72rem; letter-spacing: .02em; }
}

/* App screenshots (Jots page): plain rounded shots, no fake bezels. Four across on a
   wide screen, two by two on a tablet or a large phone, and a two-across pair on a small
   phone too, so the features below aren't four full-height screenshots away (#5). */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin: 2rem 0 .6rem; align-items: end; }
.shots figure { min-width: 0; margin: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.shots img { width: 100%; height: auto; display: block; border-radius: 18px;
             border: 1px solid var(--line); box-shadow: var(--shadow); }
.shots figcaption { font-size: .85rem; color: var(--ink-soft); text-align: center; margin-top: .55rem; }
@media (max-width: 52rem) { .shots { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1rem; max-width: 36rem; margin-left: auto; margin-right: auto; } }
