:root {
  --paper: #ffeab4;
  --paper-2: #fff5d9;
  --sun: #fac135;
  --sun-ink: #1f1b10;
  --ink: #1f1b10;
  --ink-2: #5c5136;
  --line: #e9cf86;
  --accent: #fac135;
  --accent-ink: #1f1b10;
  --accent-text: #6b4e00;
  --accent-soft: #fac135;
  --pill: #000000;
  --pill-ink: #ffffff;
  --focus: #1f5fd2;
  --radius: 14px;
  --wrap: 1120px;
  --read: 68ch;
  --head: "Sen", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Cabin", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cabin", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --btn: "Lato", ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1b170d;
    --paper-2: #262013;
    --sun: #2c2512;
    --sun-ink: #fac135;
    --ink: #fbefd0;
    --ink-2: #cdbf98;
    --line: #3d3420;
    --accent: #fac135;
    --accent-ink: #1b170d;
    --accent-text: #fac135;
    --accent-soft: #3d3214;
    --pill: #fac135;
    --pill-ink: #1b170d;
    --focus: #8ab4ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1b170d;
  --paper-2: #262013;
  --sun: #2c2512;
  --sun-ink: #fac135;
  --ink: #fbefd0;
  --ink-2: #cdbf98;
  --line: #3d3420;
  --accent: #fac135;
  --accent-ink: #1b170d;
  --accent-text: #fac135;
  --accent-soft: #3d3214;
  --pill: #fac135;
  --pill-ink: #1b170d;
  --focus: #8ab4ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--serif);
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: inherit; background: color-mix(in srgb, var(--accent) 35%, transparent); text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4, h5 { font-family: var(--sans); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 16px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 1.3rem/1 var(--sans); text-decoration: none; letter-spacing: -0.02em; }
.logo img { width: 36px; height: 36px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo img { filter: invert(1); } }
:root[data-theme="dark"] .logo img { filter: invert(1); }
.site-header ul { list-style: none; margin: 0; padding: 0; }
.desktop-nav > ul { display: flex; gap: 4px; align-items: center; }
.desktop-nav a, .desktop-nav summary { font: 600 .98rem/1 var(--sans); text-decoration: none; padding: 10px 12px; border-radius: 8px; display: block; cursor: pointer; }
.desktop-nav a:hover, .desktop-nav summary:hover { background: var(--paper-2); color: var(--ink); }
.desktop-nav a[aria-current="page"] { color: inherit; }
.has-menu { position: relative; }
.has-menu summary { list-style: none; }
.has-menu summary::-webkit-details-marker { display: none; }
.has-menu summary::after { content: ""; display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); margin-left: 8px; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; min-width: 270px; box-shadow: 0 12px 30px rgb(0 0 0 / .12); }
.menu a { padding: 10px 12px; font-weight: 500; }
.mobile-nav { display: none; }

@media (max-width: 860px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav > summary { font: 600 1rem/1 var(--sans); list-style: none; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
  .mobile-nav > summary::-webkit-details-marker { display: none; }
  .mobile-nav nav { position: absolute; left: 0; right: 0; top: 64px; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; max-height: calc(100vh - 64px); overflow: auto; }
  .mobile-nav a, .mobile-nav details summary { display: block; padding: 12px 4px; font: 600 1.05rem/1.2 var(--sans); text-decoration: none; border-bottom: 1px solid var(--line); cursor: pointer; }
  .mobile-nav .menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; background: transparent; }
  .mobile-nav .menu a { font-weight: 500; }
}

/* buttons */
.btn { display: inline-block; font: 650 1rem/1 var(--sans); background: var(--accent); color: var(--accent-ink); text-decoration: none; padding: 14px 20px; border-radius: 999px; border: 2px solid var(--accent); }
.btn:hover { color: var(--accent-ink); filter: brightness(1.06); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-quiet:hover { color: var(--paper); background: var(--ink); filter: none; }
.more { font: 650 1rem/1 var(--sans); text-decoration: none; }
.more::after { content: " \2192"; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

/* home */
.hero { padding: clamp(48px, 9vw, 112px) 0 clamp(32px, 6vw, 72px); }
.hero h1 { max-width: 15ch; font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: .98; letter-spacing: -0.035em; }
.eyebrow { font: 700 .82rem/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--accent-text); margin-bottom: 1rem; }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink-2); max-width: 60ch; }
.section { padding: clamp(36px, 6vw, 64px) 0; border-top: 1px solid var(--line); }
.tool-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.tool-list a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px; background: var(--paper-2); border-radius: var(--radius); text-decoration: none; border: 1px solid transparent; }
.tool-list a:hover { border-color: var(--accent); color: var(--ink); }
.tool-list strong { font: 700 1.12rem/1.2 var(--sans); }
.tool-list span { color: var(--ink-2); font-size: .98rem; line-height: 1.45; }
.tool-list li:first-child a { background: var(--accent-soft); }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.split img { border-radius: var(--radius); width: 100%; max-width: 420px; justify-self: end; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); }
.mission p { max-width: var(--read); }
@media (max-width: 760px) {
  .split, .two-col { grid-template-columns: 1fr; }
  .split img { justify-self: start; }
}

/* cards */
.cards { display: grid; gap: 4px; }
.card { padding: 16px 0; border-bottom: 1px solid var(--line); }
.card h2, .card h3 { font-size: 1.2rem; margin: 0 0 .3rem; }
.card h2 a, .card h3 a { text-decoration: none; }
.card time { font: 500 .88rem/1.4 var(--sans); color: var(--ink-2); display: block; margin-bottom: .35rem; }
.card p { margin: 0; color: var(--ink-2); }
.listing .cards { max-width: 820px; }
.store-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.product-card { border: 0; }
.product-card img { border-radius: var(--radius); margin-bottom: 12px; }

/* pages */
.page { padding: clamp(32px, 6vw, 64px) 0; }
.narrow { max-width: 760px; }
.prose { max-width: var(--read); }
.prose h1, .prose h2, .prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose blockquote { margin: 1.5em 0; padding-left: 1em; border-left: 3px solid var(--line); color: var(--ink-2); }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
figure { margin: 2rem 0; }
figure img, figure video { border-radius: var(--radius); }
figcaption { font: 400 .92rem/1.5 var(--sans); color: var(--ink-2); margin-top: .6rem; max-width: var(--read); }
.post { max-width: 760px; padding: clamp(32px, 6vw, 64px) 0; }
.post h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.crumbs { font: 600 .9rem/1 var(--sans); margin-bottom: 1rem; }
.crumbs a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.meta { font: 500 .95rem/1.4 var(--sans); color: var(--ink-2); margin-bottom: 2rem; }
.tags { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { font: 500 .85rem/1 var(--sans); text-decoration: none; padding: 7px 11px; border-radius: 999px; background: var(--paper-2); display: inline-block; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post-nav a { text-decoration: none; font: 650 1rem/1.3 var(--sans); }
.post-nav span { display: block; font-weight: 500; font-size: .85rem; color: var(--ink-2); margin-bottom: 4px; }
.post-nav .next { text-align: right; grid-column: 2; }
.inline-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--sans); font-weight: 600; }
.related { border-top: 1px solid var(--line); }
.notice { background: var(--paper-2); border-radius: var(--radius); padding: 14px 16px; font-family: var(--sans); font-size: 1rem; max-width: var(--read); }
.product { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.product img { border-radius: var(--radius); }
.price { font: 600 1.2rem/1.3 var(--sans); }
.price s { color: var(--ink-2); font-weight: 500; }
.price span { display: block; font-size: .9rem; font-weight: 500; color: var(--ink-2); }
@media (max-width: 760px) { .product { grid-template-columns: 1fr; } }

/* chart */
.chart { max-width: 560px; }
.bar { display: grid; grid-template-columns: 70px 1fr 48px; align-items: center; gap: 10px; margin: 8px 0; font-family: var(--sans); }
.bar-track { background: var(--paper-2); border-radius: 999px; height: 14px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; }

/* tools: shared look for the embedded Squarespace code blocks */
.tool-page .prose:first-child h1 { text-align: left; }
.tool { font-family: var(--sans); margin: 2rem 0; padding: clamp(18px, 4vw, 32px); background: var(--paper-2); border-radius: 14px; color: var(--ink); }
.tool h3, .tool h4, .tool h5 { color: var(--ink); }
.tool label { font-weight: 600; }
.tool input[type="text"], .tool input[type="number"], .tool input:not([type]), .tool select, .tool textarea {
  font: 500 1.05rem/1.3 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 12px; width: 100%; max-width: 100%; margin: 6px 0 4px;
}
.tool input[type="checkbox"], .tool input[type="radio"] { accent-color: var(--accent); width: 18px; height: 18px; vertical-align: -3px; }
.tool button { font: 650 1rem/1 var(--sans); background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 13px 20px; cursor: pointer; }
.tool button:disabled { opacity: .5; cursor: not-allowed; }
.tool button:hover:not(:disabled) { filter: brightness(1.06); }
.tool p, .tool div { color: inherit; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 40px 0 24px; font-family: var(--sans); font-size: .95rem; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 6px 0; }
.footer-grid a { text-decoration: none; }
.footer-name { font: 800 1.15rem/1 var(--sans); color: var(--ink); }
.footer-head { font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.footer-base { margin-top: 28px; font-size: .85rem; }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Spooly: the original chat window was a full screen tall, which pushed the input off screen */
.tool .tool-body #chatWindow { height: auto; min-height: 360px; max-height: 70vh; padding: 0; }
.tool .tool-body #messages { max-height: 48vh; }
.tool .tool-body #userInput { margin: 0 0 8px; }
.tool .tool-body .bot { color: #2b2b2b; }


/* ---- the old Filamentors look: yellow and cream, all-caps Sen headings, black pill buttons ---- */
h1, h2, h3, h4, h5 { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.01em; font-weight: 700; }
h1 { font-weight: 800; }
.prose h2, .prose h3, .prose h4, .post h1 { color: var(--ink); }
h2 { color: var(--ink); }
.section > h2, .page > h2 { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 6px; text-underline-offset: 8px; text-decoration-skip-ink: none; }
.site-header { background: var(--sun); border-bottom: 0; color: var(--sun-ink); }
.logo { font-family: var(--head); text-transform: uppercase; letter-spacing: .04em; font-size: 1.2rem; }
.desktop-nav a, .desktop-nav summary, .mobile-nav > summary { font-family: var(--sans); }
.desktop-nav a:hover, .desktop-nav summary:hover { background: rgb(0 0 0 / .08); }
.desktop-nav a[aria-current="page"] { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.mobile-nav nav { background: var(--sun); }
.btn, .tool button, .nl-form button {
  font: 700 .95rem/1 var(--btn); text-transform: uppercase; letter-spacing: .2em;
  background: var(--pill); color: var(--pill-ink); border: 2px solid var(--pill); border-radius: 999px; padding: 16px 26px;
}
.btn:hover, .tool button:hover:not(:disabled) { color: var(--pill-ink); filter: none; opacity: .86; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--paper); opacity: 1; }
.hero { background: var(--sun); color: var(--sun-ink); width: 100%; max-width: none; padding-inline: max(16px, calc((100% - var(--wrap)) / 2)); }
.hero h1 { color: var(--sun-ink); max-width: 18ch; text-transform: uppercase; letter-spacing: 0; line-height: 1.02; }
.hero .lede { color: var(--sun-ink); opacity: .85; }
.hero .eyebrow { color: var(--sun-ink); }
.eyebrow { font-family: var(--btn); letter-spacing: .2em; }
.strip { background: var(--pill); color: var(--pill-ink); overflow: hidden; white-space: nowrap; font: 700 .9rem/1 var(--btn); letter-spacing: .3em; text-transform: uppercase; padding: 14px 0; }
.strip span { display: inline-block; padding-left: 100%; animation: strip 28s linear infinite; }
@keyframes strip { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .strip span { animation: none; padding-left: 16px; } }
.tool-list a { background: var(--paper-2); }
.tool-list li:first-child a { background: var(--sun); color: var(--sun-ink); }
.tool-list li:first-child span { color: var(--sun-ink); opacity: .85; }
.tool-list strong { font-family: var(--head); text-transform: uppercase; font-size: 1.02rem; letter-spacing: .02em; }
.card h2, .card h3 { text-transform: none; font-family: var(--head); letter-spacing: 0; color: var(--ink); }
.tool { background: var(--paper-2); border: 2px solid var(--line); }
.tool h2, .tool h3 { color: var(--ink); }
.bar-fill { background: var(--accent); }
:root[data-theme="dark"] .bar-fill { background: var(--accent); }
.site-footer { background: var(--sun); color: var(--sun-ink); border-top: 0; }
.footer-name, .footer-head { color: var(--sun-ink); font-family: var(--head); text-transform: uppercase; }
.why { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.why li { background: var(--paper-2); border-radius: var(--radius); padding: 18px; }
.why strong { display: block; font: 700 1rem/1.2 var(--head); text-transform: uppercase; margin-bottom: 6px; }

/* newsletter */
.newsletter { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; background: var(--sun); color: var(--sun-ink); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); border-top: 0; margin-block: 32px; }
.newsletter h2, .newsletter .eyebrow { color: var(--sun-ink); }
.newsletter p { margin-bottom: .5em; }
.nl-form label { font: 700 .95rem/1 var(--sans); display: block; margin-bottom: 8px; }
.nl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.nl-row input { flex: 1 1 220px; font: 500 1.05rem/1.2 var(--sans); padding: 14px 16px; border-radius: 999px; border: 2px solid var(--sun-ink); background: #fff; color: #1f1b10; min-width: 0; }
.nl-msg { min-height: 1.4em; margin: 10px 0 0; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.post + .newsletter, .page + .newsletter { margin-top: 0; }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; } }

.page h1, .post h1, .listing h1 { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 8px; text-underline-offset: 10px; text-decoration-skip-ink: none; }
.tool-list a:hover { border-color: var(--accent); }
.prose a { text-decoration-thickness: 3px; }
