@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/noto-sans-latin.afc7a910f4.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/*
 * almanack.win. Values follow the WebHome and WebTerms boards in the design
 * canvas, which are drawn at 1440px; everything narrower or wider is fluid.
 * Layout responds to the space a component has (container queries), not to
 * device names, so folded, unfolded and rotated phones all get a fitting
 * layout from the same rules.
 */
@layer reset, tokens, base, layout, components;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { min-height: 100svh; line-height: 1.5; -webkit-font-smoothing: antialiased; }
  img, svg { display: block; max-width: 100%; }
  ol[class], ul[class] { list-style: none; padding: 0; }
  h1, h2, h3 { text-wrap: balance; }
  p, li { text-wrap: pretty; }
}

@layer tokens {
  :root {
    color-scheme: light;

    --green: #1daa61;
    --green-ink: #0a5c36;
    --green-soft: #a8e6a1;
    --ink: #111111;
    --text-body: #3b3b3b;
    --text-soft: #4a4a4a;
    --text-muted: #6b6b6b;
    --line: #eeeeee;
    --line-strong: #e6e6e6;
    --surface: #ffffff;
    --surface-sand: #f4f4f2;
    --chat-bg: #efe9e1;
    --chat-mine: #d9fdd3;
    --chat-mine-text: #1f3a2b;
    --header-bg: rgb(255 255 255 / 0.92);

    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Noto Sans', system-ui, sans-serif;

    /* Page width and gutters. Gutters never sit under a notch or the rounded
       corners of a landscape phone. */
    --page-max: 70rem;
    --gutter: clamp(1rem, 0.5rem + 2.5vw, 1.5rem);
    --gutter-start: max(var(--gutter), env(safe-area-inset-left));
    --gutter-end: max(var(--gutter), env(safe-area-inset-right));

    /* Vertical rhythm: section padding shrinks on small and short screens. */
    --section-y: clamp(3.5rem, 2rem + 6vw, 6rem);

    --radius-sm: 0.875rem;
    --radius-md: 1.75rem;
    --radius-lg: 2rem;

    /* The header is one fixed-height row at every width, so anchors can be
       offset by exactly its height. */
    --header-h: 4.25rem;

    --focus: 0.125rem solid var(--green-ink);
  }
}

@layer base {
  html { scroll-padding-top: calc(var(--header-h) + 1rem); }
  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
  }
  body {
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1rem;
  }
  a { color: var(--green-ink); }
  a:hover { color: var(--green); }
  :focus-visible { outline: var(--focus); outline-offset: 0.1875rem; border-radius: 0.25rem; }
  sup { line-height: 0; }
  /* The skip link moves focus here; the outline would frame the whole page. */
  main:focus { outline: none; }
  .visually-hidden {
    position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
}

@layer layout {
  .wrap {
    width: 100%;
    max-width: calc(var(--page-max) + var(--gutter-start) + var(--gutter-end));
    margin-inline: auto;
    padding-inline: var(--gutter-start) var(--gutter-end);
  }
  .section { padding-block: var(--section-y); }
  .band { background: var(--surface-sand); }
  .rule-top { border-top: 1px solid var(--line); }
}

@layer components {
  /* Skip link: hidden until focused from the keyboard. */
  .skip {
    position: absolute; inset-inline-start: var(--gutter-start); inset-block-start: 0.5rem; z-index: 20;
    padding: 0.5rem 1rem; border-radius: 0.5rem; background: var(--ink); color: var(--surface);
    font-weight: 600; text-decoration: none; transform: translateY(-200%);
  }
  .skip:focus-visible { transform: none; color: var(--surface); }

  /* Header */
  .site-header { border-bottom: 1px solid var(--line); background: var(--surface); container: header / inline-size; }
  .site-header.is-sticky { position: sticky; top: 0; z-index: 10; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(0.75rem); }
  .site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; block-size: var(--header-h); }
  .brand { display: flex; align-items: center; gap: 0.625rem; color: var(--green-ink); text-decoration: none; }
  .brand svg { inline-size: 2rem; block-size: 2rem; }
  .wordmark { font-size: 1.3125rem; font-weight: 800; letter-spacing: -0.025rem; }
  .ai { font-size: 0.5em; font-weight: 800; margin-inline-start: 0.0625rem; letter-spacing: 0.02rem; vertical-align: super; }
  .site-nav { display: flex; align-items: center; gap: 1.5rem; font-size: 0.9375rem; font-weight: 600; }
  .site-nav .nav-link { color: var(--text-body); text-decoration: none; white-space: nowrap; }
  .site-nav .nav-link:hover { color: var(--green-ink); }
  /* Too narrow for all three: keep the call to action, drop the section links. */
  @container header (width < 31rem) {
    .site-nav .nav-link { display: none; }
  }
  .pill {
    display: inline-flex; align-items: center; block-size: 2.5rem; padding-inline: 1.125rem; border-radius: 1.25rem;
    background: var(--ink); color: var(--surface); font-size: 0.9375rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  }
  .pill:hover { color: var(--surface); background: #2a2a2a; }

  /* Footer */
  .site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; padding-block-end: max(3rem, env(safe-area-inset-bottom)); }
  .site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
  .copyright { display: flex; align-items: center; gap: 0.625rem; font-size: 0.875rem; color: var(--text-muted); }
  .copyright svg { inline-size: 1.75rem; block-size: 1.75rem; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.875rem; font-weight: 600; }
  .footer-links a { color: var(--text-body); text-decoration: none; }
  .footer-links a:hover { color: var(--green-ink); }

  /* Shared type */
  .eyebrow { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.075rem; text-transform: uppercase; color: var(--green-ink); }
  .display-2 { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.0625rem; }

  /* Hero */
  .hero-area { container: hero / inline-size; }
  .hero { display: grid; gap: 3.5rem; align-items: center; padding-block: clamp(3rem, 1.5rem + 6vw, 5.5rem) var(--section-y); }
  @container hero (width >= 52rem) {
    .hero { grid-template-columns: 1fr 1fr; }
    .chat { min-block-size: 26.25rem; }
  }
  .hero-copy { display: flex; flex-direction: column; gap: 1.5rem; }
  .hero h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.04em; }
  .lede { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.25rem); line-height: 1.55; color: var(--text-soft); max-inline-size: 32.5rem; }

  .stores { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block-start: 0.5rem; }
  .store {
    display: inline-flex; align-items: center; gap: 0.75rem; block-size: 3.5rem; padding-inline: 1.375rem;
    border-radius: var(--radius-sm); background: var(--ink); color: var(--surface); text-decoration: none;
  }
  .store:is(a[href]):hover { color: var(--surface); background: #2a2a2a; }
  .store svg { inline-size: 1.375rem; block-size: 1.5rem; flex: none; }
  .store-text { display: flex; flex-direction: column; line-height: 1.1; }
  .store-text small { font-size: 0.71875rem; opacity: 0.85; }
  .store-text strong { font-size: 1.125rem; font-weight: 700; }
  .store[aria-disabled='true'] { opacity: 0.45; cursor: default; }
  .stores-note { font-size: 0.875rem; color: var(--text-muted); }

  .chat {
    display: flex; flex-direction: column; justify-content: flex-end; gap: 0.75rem;
    padding: clamp(1.25rem, 0.75rem + 2vw, 2rem) clamp(1rem, 0.5rem + 2vw, 1.75rem);
    border-radius: var(--radius-lg); background: var(--chat-bg);
  }
  .bubble {
    align-self: flex-start; max-inline-size: 84%; padding: 0.75rem 1rem; border-radius: 0.375rem 1.25rem 1.25rem 1.25rem;
    background: var(--surface); font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem); line-height: 1.4;
  }
  .bubble-mine { align-self: flex-end; max-inline-size: 80%; border-radius: 1.25rem 0.375rem 1.25rem 1.25rem; background: var(--chat-mine); color: var(--chat-mine-text); }
  .bubble-hok { display: flex; flex-direction: column; gap: 0.25rem; }
  .bubble-name { font-size: 0.875rem; font-weight: 700; color: var(--green-ink); }
  .bubble-done { display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem 0.875rem; border-radius: 1.25rem; font-size: 0.9375rem; font-weight: 600; color: var(--green-ink); }
  .bubble-done svg { inline-size: 1.125rem; block-size: 1.125rem; flex: none; }

  /* How it works */
  .how { display: flex; flex-direction: column; gap: 3rem; }
  .how-heading { display: flex; flex-direction: column; gap: 0.75rem; max-inline-size: 40rem; }
  .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 2.5rem 2rem; }
  .step { display: flex; flex-direction: column; gap: 0.75rem; padding-block-start: 1.25rem; border-top: 2px solid var(--ink); }
  .step-num { font-size: 0.9375rem; font-weight: 800; color: var(--green-ink); }
  .step h3 { font-size: 1.375rem; font-weight: 800; }
  .step p { line-height: 1.55; color: var(--text-soft); }

  /* Post a task / Do a task */
  .sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.5rem; }
  .side { display: flex; flex-direction: column; gap: 1.25rem; padding: clamp(1.75rem, 1rem + 2.5vw, 2.75rem) clamp(1.25rem, 0.5rem + 3vw, 2.5rem); border-radius: var(--radius-md); }
  .side h2 { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.125rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.05rem; }
  .side-list { display: flex; flex-direction: column; gap: 0.875rem; font-size: 1.0625rem; line-height: 1.5; }
  .side-list li { display: flex; gap: 0.75rem; }
  .side-list svg { inline-size: 1.375rem; block-size: 1.375rem; flex: none; margin-block-start: 0.125rem; }
  .side-post { background: var(--green-ink); color: var(--surface); }
  .side-post .eyebrow { color: var(--green-soft); }
  .side-post svg { color: var(--green-soft); }
  .side-do { background: var(--surface-sand); }
  .side-do .side-list { color: var(--text-body); }
  .side-do svg { color: var(--green); }

  /* FAQ */
  .faq { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2.5rem 4rem; }
  .faq > h2 { flex: 1 1 16rem; }
  .faq-list { flex: 999 1 35rem; min-inline-size: 0; }
  .faq-item { padding-block: 1.25rem; border-bottom: 1px solid var(--line-strong); }
  .faq-item summary { display: flex; justify-content: space-between; gap: 1rem; font-size: 1.1875rem; font-weight: 700; cursor: pointer; list-style: none; }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after { content: '+'; flex: none; color: var(--text-muted); font-weight: 400; }
  .faq-item[open] summary::after { content: '\2013'; }
  .faq-item p { margin-block-start: 0.75rem; line-height: 1.6; color: var(--text-soft); }

  /* Closing call to action */
  .cta-area { padding-block-start: 0; }
  .cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
    padding: clamp(2.25rem, 1.5rem + 3vw, 3.5rem) clamp(1.5rem, 0.75rem + 3vw, 2.5rem);
    border-radius: var(--radius-lg); background: var(--green); color: var(--surface);
  }
  .cta h2 { max-inline-size: 35rem; font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.05rem; }
  .cta a { display: inline-flex; align-items: center; block-size: 3.5rem; padding-inline: 1.75rem; border-radius: 1.75rem; background: var(--surface); color: var(--green-ink); font-size: 1.0625rem; font-weight: 800; text-decoration: none; }
  .cta a:hover { color: var(--green-ink); background: #f2fbf5; }
  .cta a:focus-visible { outline-color: var(--surface); }

  /* Legal pages: contents beside the text when there is room, above it when not. */
  .legal-area { container: legal / inline-size; }
  .legal { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) var(--section-y); }
  @container legal (width >= 56rem) {
    .legal { grid-template-columns: minmax(12rem, 15rem) minmax(0, 45rem); justify-content: space-between; gap: 4.5rem; }
    .toc { position: sticky; inset-block-start: 1.5rem; max-block-size: calc(100svh - 3rem); overflow-y: auto; overscroll-behavior: contain; }
  }
  /* Phones: the contents start folded so the text comes first. Side by side:
     always open, and the toggle is hidden where the browser lets us force it. */
  .toc-details { border-block: 1px solid var(--line); }
  .toc-label {
    display: flex; justify-content: space-between; align-items: center; padding-block: 0.875rem;
    font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.075rem; text-transform: uppercase; color: var(--text-muted);
    cursor: pointer; list-style: none;
  }
  .toc-label::-webkit-details-marker { display: none; }
  .toc-label::after { content: '+'; font-size: 1.125rem; font-weight: 400; letter-spacing: 0; }
  .toc-details[open] .toc-label::after { content: '\2013'; }
  .toc-details .toc-list { padding-block-end: 0.75rem; }
  @container legal (width >= 56rem) {
    .toc-details { border-block: 0; }
    .toc-label { padding-block: 0 0.5rem; cursor: default; }
    .toc-label::after { content: none; }
    @supports selector(::details-content) {
      .toc-details::details-content { content-visibility: visible; block-size: auto; }
      .toc-label { pointer-events: none; }
    }
  }
  .toc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); column-gap: 1.5rem; }
  .toc-list a { display: block; padding-block: 0.375rem; font-size: 0.9375rem; line-height: 1.4; color: var(--text-body); text-decoration: none; }
  .toc-list a:hover { color: var(--green-ink); }
  @container legal (width >= 56rem) {
    .toc-list { grid-template-columns: 1fr; }
  }

  .doc { display: flex; flex-direction: column; gap: 2.5rem; min-inline-size: 0; }
  .doc-title { display: flex; flex-direction: column; gap: 0.75rem; }
  .doc-title h1 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.0875rem; }
  .doc-date { font-size: 0.9375rem; color: var(--text-muted); }
  .doc-intro { display: flex; flex-direction: column; gap: 1rem; font-size: 1.125rem; line-height: 1.65; color: var(--text-body); }
  .doc-section { display: flex; flex-direction: column; gap: 0.75rem; padding-block-start: 1.75rem; border-top: 1px solid var(--line); }
  .doc-section h2 { font-size: 1.5rem; line-height: 1.25; font-weight: 800; letter-spacing: -0.025rem; }
  .doc-section h3 { margin-block-start: 0.5rem; font-size: 1.125rem; font-weight: 700; }
  .doc-section :is(p, li) { font-size: 1.0625rem; line-height: 1.65; color: var(--text-body); overflow-wrap: break-word; }
  .doc-section ul { display: flex; flex-direction: column; gap: 0.375rem; padding-inline-start: 1.375rem; }
  .doc-ask { line-height: 1.6; color: var(--text-soft); }
}
