:root {
  color-scheme: light;
  --paper: #f4efe6;
  --surface: #fcf8f0;
  --ink: #201a16;
  --ink-soft: #635a50;
  --rule: #d9cbbd;
  --accent: #8a2a3a;
  --accent-deep: #60202b;
  --leaf: #3e634b;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --gutter: clamp(20px, 5vw, 68px);
}

*, *::after, *::before { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.6; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
code, kbd { font-family: var(--mono); }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: .98; }
.shell { width: min(100% - var(--gutter) * 2, 1200px); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 2; top: .5rem; left: .5rem; padding: .5rem 1rem; background: var(--surface); }
.section { padding-block: clamp(65px, 7vw, 108px); }

.header { border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; white-space: nowrap; }
.brand span { font-family: var(--serif); font-size: 1.7rem; letter-spacing: -.035em; line-height: 1; }
.header nav, .footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(15px, 3.1vw, 40px); }
.header nav a, .footer-links a { color: var(--ink-soft); text-decoration: none; font-size: .88rem; }
.header nav a:hover, .footer-links a:hover { color: var(--accent); text-decoration: underline; }
.bloom-link { font-family: var(--mono); text-decoration: none; font-size: .91rem; color: var(--accent); }

.hero { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(330px, .88fr); align-items: center; gap: clamp(2rem, 6vw, 5.25rem); padding-block: clamp(63px, 7.6vw, 116px); }
.eyebrow, .minor-label, .terminal-claim > span { display: flex; align-items: center; gap: 9px; font: 500 .83rem/1.4 var(--mono); letter-spacing: .065em; text-transform: uppercase; color: var(--accent); }
.eyebrow > span { width: 15px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(4.45rem, 8.1vw, 8rem); letter-spacing: -.038em; margin-block: .16em .19em; }
.hero h1 em { color: var(--accent); font-weight: 400; }
.lede { max-width: 36rem; color: var(--ink-soft); font-size: clamp(1.07rem, 1.5vw, 1.29rem); line-height: 1.55; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .72rem; }
.hero .actions { margin-top: clamp(1.6rem, 3.1vw, 2.35rem); }
.hero-prompt { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.hero-prompt .copy-source { flex: 1 1 16rem; margin: 0; border-left-color: var(--leaf); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; border-radius: 5px; padding: .64rem .99rem; text-decoration: none; font-weight: 600; font-size: .92rem; line-height: 1.25; }
.primary { color: #fff8f1; background: var(--accent); border: 1px solid var(--accent); }
.primary:hover { color: white; background: var(--accent-deep); border-color: var(--accent-deep); }
.secondary { color: var(--ink); background: transparent; border: 1px solid var(--rule); }
.secondary:hover { color: var(--accent); border-color: var(--accent); }
/* The original label sizes the button while the visible label changes. */
.button.copy { display: inline-grid; position: relative; }
.copy::before { content: attr(data-copy); visibility: hidden; }
.copy-label { position: absolute; inset: 0; display: grid; place-items: center; padding: inherit; }

.terminal { position: relative; isolation: isolate; overflow: hidden; border: 1px solid #522c32; border-radius: 10px; background: radial-gradient(ellipse at right top, #542635 1%, transparent 76%), #271a1e; color: #f8ebdf; box-shadow: 0 22px 35px -25px #783d47; }
.terminal-mark { position: absolute; z-index: -1; width: 330px; max-width: none; height: auto; right: -129px; bottom: -117px; opacity: .20; transform: rotate(-14deg); pointer-events: none; }
.terminal-top { min-height: 49px; display: flex; align-items: center; gap: 14px; padding: 0 19px; color: #e0bfc0; border-bottom: 1px solid #ffffff25; font-size: .82rem; }
.terminal-dots { display: flex; gap: 5px; }
.terminal-dots i { width: 6px; height: 6px; border-radius: 50%; background: #ba777d; }
.terminal-dots i:nth-child(2) { opacity: .65; }
.terminal-dots i:nth-child(3) { opacity: .4; }
.terminal-body { padding: 23px 22px 24px; }
.terminal-line { margin-bottom: 19px; font-size: clamp(.88rem, 1.45vw, 1.06rem); white-space: nowrap; }
.terminal-prompt { color: #ed9b9b; font-family: var(--mono); }
.terminal-entry { display: grid; grid-template-columns: 5.3rem 1fr; font-size: .9rem; align-items: baseline; min-height: 29px; }
.terminal-entry span { color: #d4b7b8; }
.terminal-entry code { white-space: pre-wrap; }
.terminal-claim { margin-top: 21px; }
.terminal-claim > span { color: #ef9ea4; font-size: .72rem; }
.terminal-claim p { max-width: 20rem; margin-top: .38rem; color: #f1dedb; font-size: .91rem; }
.terminal-bottom { display: block; padding: 12px 22px 13px; border-top: 1px solid #ffffff25; color: #f4d7d7; font-size: .86rem; text-decoration: none; }
.terminal-bottom:hover { color: white; text-decoration: underline; }
.terminal :focus-visible { outline-color: #ef9ea4; outline-offset: -4px; }

.progress { background: #eee5d9; border-block: 1px solid var(--rule); }
.progress-inner { display: grid; grid-template-columns: minmax(10rem, auto) minmax(3rem, 1fr) minmax(10rem, auto); gap: clamp(1.1rem, 4vw, 3rem); align-items: center; padding-block: 19px; }
.progress-copy { display: grid; gap: 2px; }
.progress-copy strong { font-size: .98rem; font-weight: 600; }
.progress-caption { font-size: .89rem; color: var(--ink-soft); }
progress { display: block; width: 100%; height: 6px; appearance: none; border: 0; border-radius: 20px; color: var(--accent); background: #d9c8ba; overflow: hidden; }
progress::-webkit-progress-bar { background: #d9c8ba; }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.25rem; margin-bottom: 29px; }
h2 { font-size: clamp(2.7rem, 5.2vw, 4.5rem); letter-spacing: -.025em; }
.section-heading p, .contribute p, .recommended-task h2 + p { margin-top: .68rem; color: var(--ink-soft); }
.text-link, .back-link { color: var(--accent); font-weight: 600; font-size: .88rem; }
.filters { display: grid; grid-template-columns: minmax(10rem, 1fr) repeat(4, minmax(0, auto)); gap: .72rem; margin-bottom: .8rem; }
.search, .select { min-width: 0; position: relative; display: flex; align-items: center; }
.search input, .select select { width: 100%; min-height: 47px; border: 1px solid var(--rule); border-radius: 5px; background: var(--surface); color: var(--ink); font-size: .94rem; }
.search input { padding: .68rem 2.7rem .68rem 2.6rem; }
.search input::placeholder { color: var(--ink-soft); opacity: 1; }
.search-icon { pointer-events: none; position: absolute; left: 15px; width: 13px; height: 13px; border: 1.5px solid var(--ink-soft); border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.5px; background: var(--ink-soft); right: -4px; bottom: -2px; transform: rotate(48deg); }
.search kbd { pointer-events: none; position: absolute; right: 11px; font-size: .79rem; color: var(--ink-soft); padding: 0 .32rem; border: 1px solid var(--rule); border-radius: 3px; }
.select select { appearance: none; padding: .64rem 2.15rem .64rem .8rem; }
.select::after { pointer-events: none; content: ""; position: absolute; right: 15px; width: 7px; height: 7px; border-right: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft); transform: translateY(-25%) rotate(45deg); }
.results-count { margin: .92rem 0 .5rem; color: var(--ink-soft); font-size: .84rem; }
.utility-table { border-block: 1px solid var(--rule); }
.utility-list { list-style: none; margin: 0; padding: 0; }
.table-head, .utility-link { display: grid; grid-template-columns: minmax(6.35rem, .65fr) minmax(0, 2.2fr) minmax(8.5rem, 1fr) minmax(8rem, auto); gap: 1rem; align-items: center; padding: .85rem 1rem; }
.table-head { background: #eee5d9; color: var(--ink-soft); font: 500 .8rem/1.3 var(--mono); }
.utility-link { border-top: 1px solid var(--rule); text-decoration: none; }
.utility-link:hover, .utility-link:focus-visible { background: var(--surface); color: var(--ink); }
.utility-link:hover .command-name { text-decoration: underline; }
.command-name { font: 600 1rem/1.45 var(--mono); color: var(--accent-deep); }
.prompt-mark { color: #a45768; font-weight: 400; }
.utility-title { font-weight: 500; }
.utility-group { color: var(--ink-soft); font-size: .88rem; }
.status { justify-self: start; display: inline-flex; align-items: center; gap: .33rem; padding: .15rem .56rem; border-radius: 2rem; background: var(--surface); border: 1px solid var(--rule); color: var(--ink-soft); font-size: .78rem; font-weight: 600; }
.status.verified { background: #e7ede2; border-color: #ccd8c9; color: #36553c; }
.status.needs-spec { background: #f3e9d6; border-color: #dcc8a1; color: #684d26; }
.status.claimed { background: #f3e4e2; border-color: #dfc2bf; color: var(--accent-deep); }
.status > span { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.utility-credit, .detail-score { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .65rem; }
.seed-value { color: var(--accent-deep); font: 600 .84rem/1.4 var(--mono); white-space: nowrap; }
.empty { border-top: 1px solid var(--rule); padding: 2rem 1rem; }
.empty p { margin-bottom: .7rem; }
.more-results { margin-top: 1rem; }
.inventory-notes { margin: 0 0 1.2rem; color: var(--ink-soft); }
.inventory-notes summary { width: fit-content; color: var(--accent); font-weight: 600; cursor: pointer; }
.inventory-notes p { max-width: 52rem; margin-top: .65rem; }
.inventory-notes .method-links { margin-top: .75rem; }

.method { background: #ece3d6; border-block: 1px solid var(--rule); }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.method-grid article { border-top: 2px solid #b37777; padding: 1.1rem .6rem 0 0; }
h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.55rem, 2.2vw, 2.2rem); line-height: 1.2; }
.method-grid p { color: var(--ink-soft); margin-top: .47rem; }
.method-links { display: flex; flex-wrap: wrap; gap: .5rem 1.35rem; margin-top: 1.8rem; font-size: .88rem; color: var(--accent); }
.contribute { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 5vw, 4.7rem); align-items: start; }
.copy-source { display: block; overflow-wrap: anywhere; margin-block: .8rem .45rem; background: #eee5d9; color: var(--ink-soft); padding: .75rem .9rem; border-left: 2px solid #b37777; font-size: .83rem; }

.footer { border-top: 1px solid var(--rule); }
.footer-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; min-height: 78px; align-items: center; gap: 20px; padding-block: 16px; }
.footer .brand span { font-size: 1.33rem; }
.footer-note { color: var(--ink-soft); font-size: .82rem; text-align: center; }

.detail { padding-block: clamp(53px, 7.7vw, 112px); }
.detail-heading { display: flex; align-items: end; justify-content: space-between; margin-block: 2.05rem 2.2rem; gap: 2rem; }
.detail h1 { font-size: clamp(3.25rem, 7.7vw, 7rem); overflow-wrap: anywhere; }
.detail h1 code { color: var(--accent); font-size: .85em; letter-spacing: -.08em; }
.detail .eyebrow { margin-bottom: .62rem; }
.detail .lede { margin-top: 1rem; }
.detail-heading .status { font-size: .85rem; }
.detail-grid { border-top: 1px solid var(--rule); padding-top: 2rem; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(210px, 1fr); gap: clamp(1.5rem, 6vw, 6rem); }
.detail-grid h2 { font-size: clamp(2.05rem, 3.33vw, 3.2rem); }
.contract { margin: 1rem 0 0; }
.contract div { padding: .95rem 0; border-bottom: 1px solid var(--rule); }
.contract dt { font-weight: 600; }
.contract dd { margin: .20rem 0 0; color: var(--ink-soft); }
.contract code { background: var(--surface); color: var(--accent); padding: .22em .35em; border-radius: .25em; }
.obligations { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.obligations li { padding: .95rem 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 1rem; }
.obligations li > div { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.obligations p { margin: .35rem 0 0; color: var(--ink-soft); }
.obligation-meta { font-size: .88rem; }
.status.recommended { background: var(--accent); border-color: var(--accent); color: #fff8f1; }
.obligations code { color: var(--accent); }
.recommended-task { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: center; gap: clamp(1.25rem, 4vw, 3rem); margin-top: clamp(2.4rem, 6vw, 4.5rem); padding: clamp(1.2rem, 3.5vw, 2.5rem); border: 1px solid var(--rule); background: var(--surface); scroll-margin-top: 1rem; }
.recommended-task h2 { margin-top: .45rem; }
.recommended-task-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .85rem; color: var(--ink-soft); font-size: .88rem; }
.recommended-task-prompt .copy-source { margin: 0 0 .65rem; border-left-color: var(--leaf); }
.obligation-summary { display: flex; flex-wrap: wrap; gap: .5rem; margin: -1rem 0 1.5rem; }
.detail-aside ul { margin: 1rem 0 2rem; padding-left: 1.2rem; color: var(--accent); }
.detail-aside li + li { margin-top: .3rem; }
.detail-aside p { margin-block: .7rem; color: var(--ink-soft); }
.detail-copy { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.detail > p { margin-block: 1rem; }

.home-section { padding-block: clamp(2.25rem, 4.2vw, 3.5rem); }
.home-section + .home-section { border-top: 1px solid var(--rule); }
.home-section h2, .recommended-task h2 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
.home-section .section-heading { margin-bottom: 1.25rem; }
.home-section > .section-heading:last-child { margin-bottom: 0; }
.contributor-page h1 { font-size: clamp(3.3rem, 7vw, 6.3rem); overflow-wrap: anywhere; }
.contributor-page > .back-link { display: inline-block; margin-bottom: 1rem; }
.ranking-empty { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .55rem 1.25rem; border: 1px solid var(--rule); border-left: 3px solid var(--leaf); background: var(--surface); color: var(--ink-soft); padding: 1.1rem 1.35rem; }
.ranking-labels, .ranking-list a { display: grid; grid-template-columns: 4rem minmax(0, 1fr) minmax(5rem, .45fr) auto; align-items: baseline; gap: .55rem 1rem; padding: .85rem 1rem; }
.ranking-labels { border-block: 1px solid var(--rule); background: #eee5d9; color: var(--ink-soft); font: 500 .8rem/1.3 var(--mono); }
.ranking-list, .proof-results { list-style: none; padding: 0; margin: 0; }
.ranking-list a { border-bottom: 1px solid var(--rule); text-decoration: none; }
.ranking-list a:hover, .ranking-list a:focus-visible { background: var(--surface); }
.ranking-list strong { overflow-wrap: anywhere; }
.rank-number { color: var(--accent); font-family: var(--mono); }
.rank-proofs, .proof-results time { color: var(--ink-soft); font-size: .875rem; }
.ranking-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 2rem; border-block: 1px solid var(--rule); }
.ranking-stats div { padding: clamp(.65rem, 2.5vw, 1.35rem); }
.ranking-stats div + div { border-left: 1px solid var(--rule); }
.ranking-stats dt { color: var(--ink-soft); font-size: .875rem; }
.ranking-stats dd { margin: .4rem 0 0; color: var(--accent-deep); font: 400 clamp(2rem, 4.5vw, 3.6rem)/1 var(--serif); overflow-wrap: anywhere; }
.activity-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 0; }
.activity-stats dd { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.recent-checks, .command-evidence { margin-top: clamp(1.6rem, 4vw, 3rem); }
.command-evidence h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.recent-checks .section-heading { margin-bottom: .75rem; }
.recent-checks ul { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: 0; padding: 0; list-style: none; }
.command-evidence .section-heading { margin-bottom: .8rem; }
.command-evidence .actions { margin-top: .65rem; }
.ranking-section { margin-top: clamp(2.6rem, 6vw, 5rem); }
.ranking-section p { max-width: 48rem; margin: .8rem 0; color: var(--ink-soft); }
.ranking-section > .section-heading { margin-bottom: 1rem; }
.proof-results { margin-block: 1rem; border-top: 1px solid var(--rule); }
.proof-results li { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem 1.25rem; padding-block: .8rem; border-bottom: 1px solid var(--rule); }
.proof-results li > div { display: flex; flex-wrap: wrap; align-items: baseline; flex: 1 1 18rem; gap: .2rem .7rem; overflow-wrap: anywhere; }
.proof-results li > div span { color: var(--ink-soft); font-size: .875rem; }
.proof-results .milestone-summary { flex-basis: 100%; }
.proof-command { font-weight: 600; }
.review-policy { margin-top: 1.25rem; color: var(--ink-soft); }
.review-code { padding: .75rem 1rem; background: var(--surface); border: 1px solid var(--rule); white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .hero h1 { font-size: clamp(3.65rem, 9vw, 5rem); }
  .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .search { grid-column: 1 / -1; }
}

@media (max-width: 660px) {
  .shell { width: calc(100% - var(--gutter) * 2); }
  .header-inner { flex-wrap: wrap; gap: 0 12px; padding-top: 9px; }
  .header nav { order: 3; width: 100%; min-height: 46px; justify-content: space-between; gap: .35rem; }
  .hero { grid-template-columns: 1fr; padding-block: 53px 42px; gap: 2.2rem; }
  .hero h1 { font-size: clamp(3.8rem, 12.5vw, 5.55rem); }
  .progress-inner { grid-template-columns: 1fr auto; gap: .72rem; }
  .progress-copy { grid-column: 1 / -1; }
  .progress-caption { font-size: .78rem; }
  .section-heading { align-items: start; flex-direction: column; gap: .8rem; }
  .filters { grid-template-columns: 1fr 1fr; }
  .search { grid-column: 1 / -1; }
  .table-head { display: none; }
  .utility-link { grid-template-columns: minmax(5.3rem, .53fr) minmax(0, 1.6fr) auto; gap: .12rem .58rem; padding-inline: .2rem; }
  .utility-row:first-child .utility-link { border-top: 0; }
  .command-name { grid-row: 1 / span 2; overflow-wrap: anywhere; }
  .utility-title { grid-column: 2; line-height: 1.25; font-size: .95rem; }
  .utility-group { grid-column: 2; font-size: .80rem; }
  .utility-credit { grid-row: 1 / span 2; grid-column: 3; flex-direction: column; align-items: end; }
  .detail-score { flex-direction: column; align-items: end; }
  .ranking-labels, .ranking-list a { grid-template-columns: 2.3rem minmax(0, 1fr) auto; padding-inline: .5rem; }
  .ranking-labels span:nth-child(3) { display: none; }
  .rank-proofs { grid-column: 2; grid-row: 2; }
  .ranking-list .seed-value { grid-column: 3; grid-row: 1; }
  .method-grid, .contribute, .detail-grid, .recommended-task { grid-template-columns: 1fr; }
  .method-grid article { padding-top: .8rem; }
  .footer-inner { grid-template-columns: 1fr; justify-items: start; gap: .9rem; }
  .footer-note { text-align: left; }
  .activity-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-stats div + div { border-left: 0; }
  .activity-stats div:nth-child(even) { border-left: 1px solid var(--rule); }
  .activity-stats div:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .activity-stats div:last-child { grid-column: 1 / -1; }
}
