@font-face {
  font-family: Bricolage;
  src: url("./bricolage-grotesque.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --page: #fdf8ff;
  --paper: #fff;
  --ink: #24183b;
  --muted: #514461;
  --line: #d4c6e5;
  --hero: #4923a8;
  --hero-text: #fffaff;
  --tint: #ede4ff;
  --frame: #a985ff;
  --spot: #dafa77;
  --spot-text: #212519;
  --button: #4b269a;
  --button-text: #fff;
  --link: #53269d;
  --focus: #5538bc;
  --display: Bricolage, Georgia, serif;
  font-family: system-ui, sans-serif;
  font-size: 100%;
  line-height: 1.6;
}
.theme-tracker {
  --page: #fbf7ff;
  --ink: #241638;
  --muted: #514461;
  --line: #d2bde7;
  --hero: #4923a8;
  --hero-text: #fffaff;
  --tint: #ede3ff;
  --frame: #a87cff;
  --spot: #dafa77;
  --button: #4923a8;
  --link: #53269d;
  --focus: #4a26ad;
}
.theme-gate {
  --page: #fff8f1;
  --ink: #391b2b;
  --muted: #694052;
  --line: #efc7bb;
  --hero: #ff885d;
  --hero-text: #33182a;
  --tint: #ffdfd2;
  --frame: #fbbea8;
  --spot: #e9d2ff;
  --spot-text: #34172f;
  --button: #9b2452;
  --link: #872047;
  --focus: #92244e;
}
.theme-coat {
  --page: #f5f9ff;
  --ink: #11294f;
  --muted: #3b5375;
  --line: #c4d5fa;
  --hero: #2149c4;
  --hero-text: #fcfdff;
  --tint: #e3eeff;
  --frame: #8dbaff;
  --spot: #ffda53;
  --spot-text: #31240a;
  --button: #203da4;
  --link: #233da6;
  --focus: #1f46ba;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); }
img { display: block; width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
::selection { background: var(--spot); color: var(--spot-text); }
button, select, input { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure, dl { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 750; font-optical-sizing: auto; letter-spacing: -.029em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 6rem); line-height: .97; text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; }
h2 { font-size: clamp(1.92rem, 3.45vw, 3.35rem); line-height: 1.03; text-wrap: pretty; }
h3 { font-size: 1.28rem; line-height: 1.15; }
p { font-size: 1rem; }
.wrap { width: min(76rem, calc(100% - 4rem)); margin-inline: auto; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { z-index: 2; inset: 1rem auto auto 1rem; width: auto; height: auto; padding: .75rem 1rem; clip-path: none; background: var(--paper); }
.header, .footer { background: var(--page); }
.header-row, .footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.4rem; padding-block: .9rem; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1.35rem; }
nav a { padding-block: .28rem; color: var(--ink); font-size: .94rem; font-weight: 650; text-decoration-color: var(--line); }
.brand { display: inline-flex; gap: .68rem; align-items: center; color: var(--ink); font-family: var(--display); font-size: 1.18rem; font-weight: 750; text-decoration: none; line-height: 1.16; }
.mark { position: relative; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: .57rem; background: var(--hero); color: var(--hero-text); flex: 0 0 auto; }
.mark::before, .mark::after { content: ''; display: block; }
.mark::before { width: .63rem; height: .63rem; border: 2px solid currentColor; border-radius: 60% 60% 60% 10%; transform: translateY(-.08rem) rotate(-45deg); }
.mark::after { position: absolute; top: .76rem; left: .82rem; width: .24rem; height: .24rem; border-radius: 50%; background: currentColor; }
.theme-gate .mark::before { width: .73rem; height: .82rem; border-radius: .34rem .34rem .08rem .08rem; transform: none; }
.theme-gate .mark::after { width: .12rem; height: .67rem; left: .89rem; top: .62rem; border-radius: 0; }
.theme-coat .mark::before { transform: rotate(133deg); border-radius: 57% 57% 57% 13%; }
.theme-coat .mark::after { display: none; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--hero);
  color: var(--hero-text);
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  grid-template-areas: "copy photo";
  align-items: center;
  gap: clamp(2.6rem, 7vw, 6.5rem);
  padding-block: clamp(3.5rem, 7vw, 6.4rem);
}
.hero-copy { grid-area: copy; }
.hero-copy h1 { hyphens: manual; }
.hero-copy p { max-width: 41ch; margin-block: 1.5rem 1.85rem; font-size: clamp(1.045rem, 1.8vw, 1.24rem); line-height: 1.55; }
.hero-photo { grid-area: photo; position: relative; isolation: isolate; }
.hero-photo img { position: relative; aspect-ratio: 1.36; object-fit: cover; border-radius: 1.35rem; box-shadow: 0 1.2rem 2.6rem #21144432; }
.hero-photo::before, .hero-photo::after { content: ''; position: absolute; pointer-events: none; z-index: -1; }
.hero-photo::before { inset: -.7rem .65rem .4rem -.65rem; border-radius: 1.75rem; background: var(--frame); transform: rotate(-7deg); }
.hero-photo::after { inset: 1.05rem -.9rem -.9rem 1rem; border: 2px solid var(--spot); border-radius: 1.35rem; }
.hero-photo figcaption { position: absolute; right: .7rem; bottom: .7rem; padding: .24rem .58rem; border-radius: .3rem; background: #261936e8; color: #fff; font-size: .78rem; font-weight: 550; }
.theme-tracker .hero::before { content: ''; position: absolute; z-index: -1; top: -16rem; right: -14rem; width: 51rem; height: 51rem; border: 1px solid #bd9fff; border-radius: 50%; box-shadow: 0 0 0 3.7rem #ae89ff22, 0 0 0 7rem #ae89ff15; }
.theme-gate .hero-layout { grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); grid-template-areas: "photo copy"; }
.theme-gate .hero-photo img { border-radius: 7.5rem 7.5rem 1.25rem 1.25rem; object-position: center 55%; }
.theme-gate .hero-photo::before { inset: -.7rem -.8rem .45rem .8rem; border-radius: 8rem 8rem 1.5rem 1.5rem; background: #fbc7a7; transform: none; }
.theme-gate .hero-photo::after { inset: .7rem .95rem -.8rem -.85rem; border: 0; border-radius: 8rem 8rem 1.55rem 1.55rem; background: var(--spot); }
.theme-coat .hero-photo img { border-radius: 1.3rem 4.7rem 1.3rem 4.7rem; aspect-ratio: 1.47; }
.theme-coat .hero-photo::before { inset: -.75rem .8rem .9rem -.85rem; transform: rotate(-5deg); border-radius: 1.6rem 4.7rem 1.6rem 4.7rem; }
.theme-coat .hero-photo::after { inset: .9rem -.8rem -.8rem .9rem; background: var(--spot); border: 0; border-radius: 1.3rem 4.7rem 1.3rem 4.7rem; transform: rotate(2deg); }

.button { display: inline-flex; justify-content: center; align-items: center; gap: .45rem; width: fit-content; min-height: 3.05rem; padding: .62rem 1.24rem; border: 1px solid transparent; border-radius: .72rem; cursor: pointer; font-weight: 720; font-size: 1rem; line-height: 1.23; text-decoration: none; }
.primary { background: var(--button); color: var(--button-text); }
.primary:hover { filter: brightness(.9); }
.secondary { color: var(--link); background: var(--paper); border-color: var(--line); }
.secondary:hover { background: var(--tint); }
.button:disabled { opacity: .55; cursor: default; }
.hero .primary { background: var(--spot); color: var(--spot-text); min-height: 3.45rem; padding-inline: 1.5rem; }
.hero .button:focus-visible { outline-color: var(--hero-text); }

.tool-section, .product-section, .reading-section { padding-block: clamp(2.75rem, 6.25vw, 5.9rem); scroll-margin-top: 1.15rem; }
.tool-section { max-width: 72rem; }
.section-heading { margin-bottom: clamp(1.25rem, 3vw, 2.35rem); }
.section-heading p { margin-top: .68rem; max-width: 69ch; color: var(--muted); }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(11rem, 17rem); grid-template-areas: "form example" "result result"; gap: 1rem; }
.theme-tracker .tool-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "form" "result" "example"; }
.tool, .result, .example { padding: clamp(1.05rem, 3.4vw, 2.1rem); border-radius: 1rem; }
.tool { grid-area: form; min-width: 0; background: var(--paper); border: 1px solid var(--line); }
.ready-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.example { grid-area: example; display: grid; align-content: center; gap: .55rem; background: var(--spot); color: var(--spot-text); }
.theme-tracker .example { grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr); align-items: center; column-gap: 1rem; padding-block: 1.08rem; }
.field { display: grid; align-content: start; gap: .4rem; min-width: 0; font-weight: 650; font-size: .93rem; }
.field-grid, .offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.theme-coat .field-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
input:not([type=checkbox]), select { width: 100%; min-height: 3rem; border: 1px solid #8b809c; border-radius: .54rem; background: var(--paper); color: var(--ink); padding: .54rem .67rem; caret-color: var(--button); font-weight: 550; font-size: 1rem; }
select { appearance: none; padding-right: 2rem; }
.field:has(select) { position: relative; }
.field:has(select)::after { content: ''; width: .44rem; height: .44rem; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); position: absolute; bottom: 1.25rem; right: .85rem; pointer-events: none; }
.input-unit { position: relative; }
.input-unit input { padding-right: 2.95rem; }
.input-unit > span { position: absolute; right: .73rem; bottom: .75rem; color: var(--muted); font-size: .88rem; pointer-events: none; }
input[type=number] { appearance: textfield; }
input::-webkit-inner-spin-button, input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.length { max-width: 21rem; margin-bottom: 1.2rem; }
.offer { display: grid; gap: .9rem; min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: .72rem; padding: .95rem; }
.offer legend { padding-inline: .37rem; font-family: var(--display); font-size: 1.24rem; font-weight: 750; }
.offer .field-grid .field:last-child { grid-column: 1 / -1; }
.check { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1.12rem; }
.check input { width: 1.24rem; height: 1.24rem; margin: .17rem 0 0; accent-color: var(--button); flex: 0 0 auto; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }
.result { grid-area: result; background: var(--tint); border: 1px solid var(--line); scroll-margin-top: .85rem; }
.result h2 { font-size: clamp(1.65rem, 3.5vw, 2.65rem); }
.result > p { max-width: 73ch; margin-block: .55rem 1rem; }
.product-section { background: var(--tint); }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr)); gap: 1rem; }
.product { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; min-width: 0; padding: 1.27rem; background: var(--paper); border-radius: .88rem; }
.product-section .products > .product:nth-child(2) { background: #fffdff; }
.product > p { color: var(--muted); }
.product-links { display: flex; flex-wrap: wrap; gap: .6rem .95rem; margin-top: auto; padding-top: .68rem; }
.product a { font-weight: 680; }
.result-card > a { margin-top: auto; }
.result-card .result-lead { color: var(--button); font-family: var(--display); font-size: 1.68rem; font-weight: 760; line-height: 1.17; font-variant-numeric: tabular-nums; }
.numbers { display: grid; gap: .44rem; width: 100%; padding-block: .43rem; }
.numbers > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .28rem .6rem; border-top: 1px solid var(--line); padding-top: .32rem; }
.numbers dd { font-weight: 660; margin: 0; font-variant-numeric: tabular-nums; }

.readings { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(0, 2.2fr); gap: clamp(1.35rem, 5vw, 4rem); align-items: start; }
.article-links { display: grid; padding: 0; margin: 0; list-style: none; }
.article-links li { border-bottom: 1px solid var(--line); }
.article-links li:first-child { border-top: 1px solid var(--line); }
.article-links a { display: grid; gap: .38rem; padding: 1rem .3rem; color: var(--ink); text-decoration: none; }
.article-links a:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.article-links strong { color: var(--link); font-family: var(--display); font-size: 1.2rem; font-weight: 700; line-height: 1.24; }
.article-links span { max-width: 68ch; color: var(--muted); font-size: .95rem; }
.footer { border-top: 1px solid var(--line); padding-block: .2rem; }

.article-hero { background: var(--hero); color: var(--hero-text); }
.article-hero-inner { width: min(50rem, calc(100% - 4rem)); padding-block: clamp(2.65rem, 6.5vw, 5.5rem); }
.article-hero h1 { font-size: clamp(2.5rem, 5.7vw, 5.05rem); line-height: .98; }
.lede { color: var(--muted); font-size: clamp(1.12rem, 1.8vw, 1.28rem); margin-block: 1rem 1.45rem; max-width: 63ch; }
.article-hero .lede { color: var(--hero-text); margin-bottom: .85rem; }
.byline { font-size: .9rem; font-weight: 600; color: inherit; }
.article { width: min(48rem, calc(100% - 4rem)); padding-block: clamp(2.45rem, 6.6vw, 5rem); }
.article h2 { font-size: clamp(1.55rem, 3.1vw, 2.42rem); margin-block: 1.85rem .62rem; }
.article > section:first-child h2 { margin-top: 0; }
.article .button { margin-top: 1.7rem; }
.article-sources { display: flex; flex-wrap: wrap; gap: .15rem .9rem; padding: 0; margin: .56rem 0 0; list-style: none; }
.article-sources a { font-size: .92rem; }
.table-scroll { margin-block: 1rem; overflow-x: auto; scrollbar-color: var(--button) var(--tint); }
.article table { min-width: 27rem; width: 100%; border-collapse: collapse; background: var(--paper); }
.article caption { text-align: left; color: var(--muted); padding-bottom: .45rem; }
.article th, .article td { text-align: left; vertical-align: top; border: 1px solid var(--line); padding: .61rem .72rem; }
.article thead { background: var(--tint); }
details { border-bottom: 1px solid var(--line); padding: .75rem 0; }
summary { cursor: pointer; font-weight: 660; }
summary::marker { color: var(--button); }
details p { padding-top: .48rem; }
.related { margin-top: 2.8rem; padding-top: .24rem; border-top: 1px solid var(--line); }
.related .article-links a { padding-block: .69rem; }
.overview { padding-block: 3.7rem; }
.overview h1 { max-width: 16ch; text-wrap: initial; }
.overview img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: .65rem; margin-bottom: .35rem; }
.overview .product { background: var(--tint); min-width: 0; }
.overview h2 { font-size: clamp(1.52rem, 3vw, 2rem); }
.overview .button { margin-top: auto; }

@media (max-width: 880px) {
  .hero-layout, .theme-gate .hero-layout { gap: 2.55rem; }
  .theme-coat .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-grid { grid-template-columns: minmax(0, 1fr) minmax(10rem, 13rem); }
}
@media (max-width: 680px) {
  .wrap, .article, .article-hero-inner { width: calc(100% - 2.4rem); }
  .hero-layout, .theme-gate .hero-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "photo"; padding-block: 2.45rem 2.9rem; gap: 2.15rem; }
  .hero-copy p { margin-block: .95rem 1.33rem; }
  .hero-photo { margin-inline: .35rem; }
  .hero-photo img { aspect-ratio: 1.54; }
  .theme-gate .hero-photo img { border-radius: 5.4rem 5.4rem 1rem 1rem; }
  .theme-gate .hero-photo::before, .theme-gate .hero-photo::after { border-radius: 5.6rem 5.6rem 1.15rem 1.15rem; }
  .tool-grid, .theme-tracker .tool-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "form" "result" "example"; }
  .readings { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 485px) {
  .wrap, .article, .article-hero-inner { width: calc(100% - 2rem); }
  .hero-copy h1 { max-width: 15ch; }
  .header-row { padding-block: .75rem; }
  .header-row nav { gap: .2rem .94rem; }
  .offer-grid, .theme-tracker .example { grid-template-columns: minmax(0, 1fr); }
  .theme-coat .field-grid, .theme-gate .field-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 350px) {
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy h1 { font-size: 2.45rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
