:root {
  color-scheme: light;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  color: #292621;
  background: #f1ebdd;
  --ink: #292621;
  --muted: #585448;
  --line: #bcb3a0;
  --paper: #faf6eb;
  --blue: #184d59;
  --red: #a74331;
  --yellow: #e6c752;
  --display: "Palatino Linotype", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #f1ebdd; }
.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--ink); }
header a { color: var(--ink); font-size: .77rem; text-decoration: none; }
.brand { font-family: "Segoe UI", sans-serif; font-size: .72rem; font-weight: 900; letter-spacing: .15em; }
.brand span { margin-right: 7px; color: var(--red); font-size: 1.45rem; vertical-align: middle; }
.hero { min-height: 390px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; padding: 45px 7%; border-bottom: 1px solid var(--ink); background: linear-gradient(90deg, #e7dfcd 0 67%, #d7e1d8 67% 100%); }
.eyebrow { margin: 0 0 12px; color: var(--red); font: 800 .61rem "Segoe UI", sans-serif; letter-spacing: .16em; }
.hero h1 { margin: 0; color: #292621; font: 700 clamp(3.8rem, 7.5vw, 6.7rem)/.9 var(--display); letter-spacing: -.07em; }
.hero h1 em { color: var(--blue); font-style: italic; }
.hero-main > p:last-child { max-width: 500px; margin: 21px 0 0; color: #4e4a40; font: 1rem/1.75 "Segoe UI", sans-serif; }
.hero-side { width: 300px; height: 230px; position: relative; justify-self: center; }
.node { position: absolute; z-index: 1; width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid var(--blue); border-radius: 0; background: var(--paper); color: var(--blue); font: 700 1rem ui-monospace, monospace; box-shadow: 5px 5px 0 #184d5930; }
.node-a { top: 15px; left: 15px; }
.node-b { top: 82px; right: 22px; border-color: var(--red); background: #faebe4; color: var(--red); box-shadow: 5px 5px 0 #a7433130; }
.node-c { bottom: 16px; left: 49px; background: #f6edcb; }
.connector { position: absolute; inset: 35px 60px 38px 43px; border: 1px dashed var(--blue); border-radius: 50%; transform: rotate(-20deg); }
.hero-side small { position: absolute; right: -24px; bottom: 14px; color: #3e5960; font: 700 .56rem/1.7 ui-monospace, monospace; letter-spacing: .1em; }
.explorer { margin: 46px auto 68px; padding: clamp(22px, 4vw, 42px); border: 1px solid #8f8777; background: var(--paper); box-shadow: 8px 8px 0 #d5cbb7; }
.explorer-head { display: flex; align-items: end; justify-content: space-between; gap: 15px; padding-bottom: 19px; border-bottom: 3px double var(--ink); }
.explorer h2, .editorial h2 { margin: 0; color: #292621; font: 700 clamp(1.8rem, 4vw, 2.6rem)/1.08 var(--display); letter-spacing: -.04em; }
.catalog-status { color: #585448; font: 700 .63rem "Segoe UI", sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.category-list { display: flex; gap: 0; overflow-x: auto; padding: 18px 0 14px; border-bottom: 1px solid #c7beac; }
.category-button { min-height: 40px; padding: 0 14px; border: 0; border-right: 1px solid #c7beac; border-radius: 0; background: transparent; color: #49463d; font: 700 .74rem "Segoe UI", sans-serif; cursor: pointer; white-space: nowrap; }
.category-button:first-child { padding-left: 0; }
.category-button[aria-pressed="true"] { color: var(--red); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.filters { display: flex; align-items: end; gap: 12px; padding: 16px 0 19px; border-bottom: 1px solid #c7beac; }
.filters label { display: grid; gap: 6px; color: #514d42; font: 800 .65rem "Segoe UI", sans-serif; letter-spacing: .04em; }
.filters select { min-width: 150px; min-height: 40px; padding: 0 10px; border: 1px solid #999180; border-radius: 0; background: #fffdf7; color: #292621; font: 500 .8rem "Segoe UI", sans-serif; }
.reset { min-height: 40px; border: 0; background: transparent; color: var(--red); font: 800 .7rem "Segoe UI", sans-serif; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.target-note { padding: 16px 0; color: #585448; font: .77rem/1.6 "Segoe UI", sans-serif; }
.target-note b { color: var(--blue); }
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid #aaa18f; background: #aaa18f; }
.software-card { min-width: 0; padding: 20px; border: 0; background: #fcf9f0; }
.software-card:nth-child(4n + 2) { background: #f1f3ea; }
.software-card:nth-child(4n + 3) { background: #f7eee6; }
.software-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.software-head h3 { margin: 0 0 9px; color: #292621; font: 700 1.15rem var(--display); }
.tag { padding: 5px 7px; border-radius: 0; background: var(--yellow); color: #39351f; font: 800 .59rem "Segoe UI", sans-serif; white-space: nowrap; }
.software-card p { margin: 10px 0; color: #504c42; font: .78rem/1.65 "Segoe UI", sans-serif; }
.meta { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0; }
.meta span { padding: 4px 6px; border: 1px solid #c7beac; border-radius: 0; background: transparent; color: #454239; font: 700 .6rem "Segoe UI", sans-serif; }
.software-card a { display: inline-flex; margin-top: 4px; color: var(--blue); font: 800 .72rem "Segoe UI", sans-serif; text-decoration: none; }
.software-card a:hover { color: var(--red); text-decoration: underline; }
.empty { grid-column: 1 / -1; padding: 28px; background: #fcf9f0; color: #504c42; font: .86rem/1.6 "Segoe UI", sans-serif; text-align: center; }
.editorial { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; padding: 0 7% 65px; }
.editorial p { color: #504c42; font: .88rem/1.8 "Segoe UI", sans-serif; }
.editorial-stamp { display: inline-block; margin-top: 8px; padding: 7px 10px; border: 1px solid var(--red); color: var(--red); font: 800 .58rem ui-monospace, monospace; letter-spacing: .11em; transform: rotate(-2deg); }
footer { display: flex; justify-content: space-between; gap: 15px; padding: 20px 0 28px; border-top: 1px solid var(--ink); color: #585448; font: .67rem "Segoe UI", sans-serif; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid #9a6124; outline-offset: 3px; }
@media (max-width: 900px) {
  .shell { width: calc(100% - 28px); }
  .hero { grid-template-columns: 1fr; padding: 38px 5%; gap: 5px; }
  .hero h1 { font-size: clamp(3.7rem, 14vw, 5.8rem); }
  .hero-side { height: 175px; width: 260px; }
  .explorer-head { align-items: flex-start; flex-direction: column; }
  .filters { align-items: stretch; flex-wrap: wrap; }
  .filters label { flex: 1; }
  .filters select { min-width: 0; width: 100%; }
  .results { grid-template-columns: 1fr; }
  .editorial { grid-template-columns: 1fr; gap: 10px; padding-inline: 4%; }
  footer { flex-direction: column; }
}

/* Shared responsive geometry across the utility suite. */
:root { --layout-max: 1180px; --layout-inline-space: clamp(32px, 8vw, 96px); }
.shell { width: min(var(--layout-max), calc(100% - var(--layout-inline-space))); }
.explorer { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 20px; padding: clamp(30px, 6vw, 56px) clamp(20px, 5vw, 56px); }
  .hero-side { justify-self: start; }
  .editorial { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 640px) {
  .hero { padding: 32px 0 24px; }
  .hero h1 { font-size: clamp(3rem, 12vw, 4.5rem); }
  .hero-side { width: min(260px, 100%); height: 160px; }
  .explorer { margin-top: 24px; padding: 22px clamp(16px, 5vw, 24px); }
  .explorer-head { align-items: flex-start; flex-direction: column; }
  .filters { align-items: stretch; flex-direction: column; }
  .filters select { width: 100%; }
  .results { grid-template-columns: 1fr; }
  .editorial { padding: 0 0 48px; }
  footer { flex-direction: column; }
}
@media (max-width: 400px) {
  header { min-height: 64px; height: auto; flex-wrap: wrap; row-gap: 8px; padding-block: 12px; }
  .hero h1 { font-size: clamp(2.8rem, 11vw, 3.4rem); }
}
