/* PleaseUseMe — readable shared stylesheet. All visible text is at least 18px. */
:root {
    color-scheme: light;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    --background: #f7f9fc;
    --surface: #ffffff;
    --text: #18243b;
    --muted: #59677d;
    --border: #dce3ef;
    --primary: #3159df;
    --primary-soft: #edf2ff;
    --lime: #dbf58d;
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--background);
    font-size: 1rem;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
    min-width: 0;
}

button,
summary {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid #7898ff;
    outline-offset: 4px;
}

[hidden] {
    display: none !important;
}

svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    vertical-align: middle;
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.2;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
}

h1 {
    font-size: clamp(2.4rem, 4.8vw, 3.8rem);
    margin-bottom: 24px;
}

h2 {
    font-size: 1.9rem;
    margin-bottom: 12px;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

p {
    margin-bottom: 22px;
}

small,
kbd,
code {
    font-size: 1rem;
}

.container {
    width: min(1240px, calc(100% - 64px));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 100;
    background: var(--text);
    color: var(--surface);
    padding: 12px 20px;
}

.skip-link:focus {
    top: 12px;
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    gap: 32px;
    align-items: center;
    min-height: 100px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 12px;
    background: #3159df;
    color: #ffffff;
}

.brand-mark svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

.desktop-nav {
    display: flex;
    gap: 27px;
    margin-left: auto;
}

.desktop-nav a {
    color: var(--muted);
    font-weight: 550;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current] {
    color: var(--primary);
}

.header-actions {
    display: flex;
    gap: 12px;
}

.icon-button {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.menu-toggle {
    display: none;
}

.mobile-nav {
    padding-bottom: 20px;
}

.mobile-nav a {
    display: block;
    padding: 10px 0;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 13px 21px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 650;
    line-height: 1.4;
}

.button:hover {
    filter: brightness(0.95);
}

.button.secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

.button.lime {
    background: var(--lime);
    color: #223310;
}

.button.danger {
    background: transparent;
    border-color: #d9a4af;
    color: #b1344f;
}

.text-link,
.text-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
}

.text-button {
    border: 0;
    padding: 0;
    background: transparent;
    text-decoration: underline;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 54px;
    padding: 70px 0 55px;
}

.eyebrow {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
}

.accent {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--lime);
    text-underline-offset: 10px;
    text-decoration-thickness: 5px;
}

.hero-lead {
    max-width: 650px;
    color: var(--muted);
    font-size: 1.1rem;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 9px 9px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}

.search-box > svg {
    color: var(--muted);
}

.search-box input {
    width: 100%;
    padding: 9px 0;
    background: transparent;
    border: 0;
    outline: none;
}

.search-box:focus-within {
    border-color: var(--primary);
}

.search-box .button {
    flex-shrink: 0;
    white-space: nowrap;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 20px;
    color: var(--primary);
}

.hero-links a {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hero-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
    color: var(--muted);
}

.hero-note svg {
    color: var(--primary);
    margin-top: 3px;
}

.hero-art {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 20px 0 30px;
    background: radial-gradient(ellipse, #e7edff, transparent 70%);
}

.art-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 24px 60px #253e7114;
    transform: rotate(-4deg);
    max-width: 440px;
}

.art-header,
.art-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
}

.art-header {
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.art-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 22px 0;
}

.art-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 9px;
    border-radius: 13px;
    text-align: center;
    line-height: 1.35;
}

.art-label {
    position: absolute;
    right: -5px;
    bottom: 0;
    background: var(--lime);
    color: #27390e;
    padding: 10px 18px;
    border-radius: 10px;
    transform: rotate(3deg);
    font-weight: 600;
}

.directory-note {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 0;
    border-block: 1px solid var(--border);
    color: var(--muted);
}

.section {
    padding: 48px 0;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-heading p {
    color: var(--muted);
    margin: 0;
}

.section-heading > .text-link {
    margin-top: 10px;
    white-space: nowrap;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color 0.15s, transform 0.15s;
}

.tool-card:hover {
    border-color: #a6b9f5;
    transform: translateY(-3px);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.tool-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
}

.tool-icon svg {
    width: 28px;
    height: 28px;
}

.bookmark-button {
    position: relative;
    z-index: 2;
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
}

[data-favorite][aria-pressed="true"] {
    color: var(--primary);
}

[data-favorite][aria-pressed="true"] svg {
    fill: var(--primary-soft);
}

.tool-card h3 a::after {
    position: absolute;
    inset: 0;
    content: "";
    border-radius: var(--radius);
}

.tool-card p {
    color: var(--muted);
    margin-bottom: 24px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: auto;
    color: var(--muted);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #94a0b6;
}

.status.live {
    color: #16744f;
}

.status.live::before {
    background: #16744f;
}

.violet {
    color: #7045bd;
    background: #f0eaff;
}
.blue {
    color: #3159c5;
    background: #e9f0ff;
}
.red {
    color: #bb4f60;
    background: #ffeef1;
}
.green {
    color: #1b7955;
    background: #e6f6ed;
}
.orange {
    color: #a76918;
    background: #fff1df;
}
.pink {
    color: #a84685;
    background: #fcecf7;
}
.teal {
    color: #237d7f;
    background: #e5f6f3;
}
.yellow {
    color: #887315;
    background: #f7f2d6;
}

.banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding: 38px;
    border-radius: 22px;
    background: #3159df;
    color: #ffffff;
}

.banner p {
    color: #eef2ff;
    margin: 0;
}

.banner .button {
    flex-shrink: 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.category-card:hover {
    border-color: #a6b9f5;
}

.category-card h3 {
    margin: 20px 0 12px;
}

.category-card p {
    color: var(--muted);
}

.category-card .text-link {
    margin-top: auto;
    flex-wrap: wrap;
}

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding-top: 48px;
    margin-top: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 35px;
}

.footer-brand p {
    max-width: 380px;
    color: var(--muted);
    margin-top: 20px;
}

.footer-links strong {
    display: block;
    margin-bottom: 15px;
}

.footer-links a {
    display: block;
    padding: 6px 0;
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
    border-top: 1px solid var(--border);
    padding: 22px 0;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    margin-bottom: 24px;
}

.breadcrumbs svg {
    width: 18px;
    height: 18px;
}

.page-heading {
    padding: 40px 0 30px;
}

.page-heading h1 {
    font-size: clamp(2.1rem, 4vw, 3rem);
    margin-bottom: 18px;
}

.page-heading p {
    color: var(--muted);
    max-width: 850px;
    margin-bottom: 0;
}

.directory-search {
    max-width: 780px;
    margin-bottom: 35px;
}

.directory-layout {
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    gap: 30px;
    padding-bottom: 50px;
}

.category-sidebar {
    align-self: start;
}

.category-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 5px;
    border-radius: 10px;
    color: var(--muted);
}

.category-sidebar a span {
    margin-left: auto;
}

.category-sidebar a[aria-current] {
    background: var(--primary-soft);
    color: var(--primary);
}

.directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.toolbar,
.toolbar-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.toolbar {
    margin-bottom: 24px;
}

.toolbar select {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 9px 12px;
    border-radius: 10px;
    max-width: 100%;
}

.clear-filters {
    margin-bottom: 22px;
}

.panel,
.empty-state {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    margin-bottom: 25px;
}

.panel p,
.empty-state p {
    color: var(--muted);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 45px 25px;
}

.empty-state > svg {
    color: var(--primary);
    width: 38px;
    height: 38px;
    margin-bottom: 20px;
}

.empty-state p {
    max-width: 650px;
    margin-inline: auto;
}

.notice {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--primary-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 28px;
}

.notice > svg {
    color: var(--primary);
    margin-top: 4px;
}

.notice p {
    margin: 0;
}

.notice a,
.article a,
.tool-responsibility a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.tool-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
    padding: 10px 0 40px;
}

.tool-workbench {
    padding: 45px 30px;
    text-align: center;
}

.tool-workbench .tool-icon {
    width: 72px;
    height: 72px;
    margin: 10px 0 22px;
}

.tool-workbench p {
    max-width: 650px;
    margin-inline: auto;
}

.tool-sidebar .panel {
    padding: 24px;
}

.tool-responsibility {
    padding: 23px;
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    background: var(--primary-soft);
    margin-bottom: 25px;
}

.tool-responsibility p {
    margin-bottom: 12px;
}

.article {
    max-width: 860px;
    padding-bottom: 45px;
}

.article h2 {
    font-size: 1.6rem;
    margin-top: 34px;
}

.article p,
.article li {
    color: var(--muted);
}

.article li {
    margin-bottom: 12px;
}

.settings-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin: 25px 0 40px;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 50;
    transform: translateX(-50%);
    max-width: calc(100% - 36px);
    padding: 14px 20px;
    border-radius: 12px;
    background: var(--text);
    color: var(--surface);
    opacity: 0;
    pointer-events: none;
}

.toast.visible {
    opacity: 1;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --background: #101828;
    --surface: #192437;
    --text: #e9eef9;
    --muted: #acb9d0;
    --border: #33415a;
    --primary: #9ab1ff;
    --primary-soft: #253958;
}

html[data-theme="dark"] .button:not(.secondary):not(.lime):not(.danger) {
    background: #4265dc;
}

html[data-theme="dark"] .hero-art {
    background: radial-gradient(ellipse, #2c407299, transparent 70%);
}

html[data-theme="dark"] .status.live {
    color: #8ee3b4;
}

@media (max-width: 1050px) {
    .container {
        width: calc(100% - 48px);
    }

    .desktop-nav {
        gap: 18px;
    }

    .brand {
        font-size: 1.3rem;
    }

    .hero {
        gap: 30px;
    }

    .hero-art {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 780px;
    }

    .directory-layout {
        grid-template-columns: 1fr;
    }

    .category-sidebar {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .category-sidebar a {
        border: 1px solid var(--border);
        margin: 0;
        padding: 9px 12px;
    }

    .directory-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .header-actions {
        margin-left: auto;
    }

    .menu-toggle {
        display: inline-grid;
    }

    .tool-grid,
    .category-grid,
    .directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .banner {
        align-items: flex-start;
        flex-direction: column;
    }

    .tool-layout {
        grid-template-columns: 1fr;
    }

    .tool-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 580px) {
    .container {
        width: calc(100% - 36px);
    }

    .header-inner {
        gap: 12px;
        min-height: 88px;
    }

    .brand {
        gap: 8px;
        font-size: 1.1rem;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .header-actions {
        gap: 7px;
    }

    .hero {
        padding: 42px 0 35px;
    }

    .hero h1 {
        font-size: 2.65rem;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .search-box {
        gap: 9px;
        padding-left: 12px;
    }

    .search-box .button {
        padding: 13px;
    }

    .section {
        padding: 35px 0;
    }

    .section-heading {
        flex-direction: column;
        gap: 8px;
    }

    .tool-grid,
    .category-grid,
    .directory-grid,
    .tool-sidebar {
        grid-template-columns: 1fr;
    }

    .tool-card,
    .category-card,
    .panel {
        padding: 24px;
    }

    .banner {
        padding: 26px;
    }

    .banner .button {
        width: 100%;
    }

    .toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .toolbar-controls {
        justify-content: flex-start;
    }

    .page-heading h1 {
        font-size: 2.15rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    .article h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 360px) {
    .brand-mark {
        display: none;
    }

    .hero h1 {
        font-size: 2.35rem;
    }

    .search-box > svg {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        transform: none !important;
    }
}
