/* Landing page tools and footer. See DESIGN.md for the first-pass direction. */
:root {
    --home-paper: #FFFDF5;
    --home-ink: #2C1810;
    --home-secondary: #795035;
    --home-line: #DFD1BB;
    --home-accent: #886109;
    --home-hover: #F7F0E2;
}
.home-container { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.tools-directory { padding: 88px 0 80px; background: var(--home-paper); color: var(--home-ink); }
.tools-directory [hidden] { display: none !important; }
.tools-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 40px; margin-bottom: 30px; }
.tools-heading h2 { margin: 0; font: 700 52px/1.15 Amiri, Georgia, serif; }
.tools-heading > p { max-width: 45ch; margin: 0; color: var(--home-secondary); font-size: 15px; line-height: 1.7; }
.tool-filters { display: flex; flex-wrap: wrap; gap: 8px 24px; border-bottom: 1px solid var(--home-line); }
.tool-filters button { padding: 12px 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--home-secondary); font: inherit; font-size: 13px; cursor: pointer; }
.tool-filters button:hover { color: var(--home-ink); }
.tool-filters [aria-pressed="true"] { border-bottom-color: var(--home-accent); color: var(--home-ink); font-weight: 600; }
.tool-result-count { margin: 20px 0 8px; color: var(--home-secondary); font-size: 12px; }
.available-tools { list-style: none; margin: 0; padding: 0; }
.available-tools > li + li { border-top: 1px solid var(--home-line); }
.tool-entry { display: grid; grid-template-columns: 56px minmax(185px, .9fr) minmax(0, 1.55fr) 160px; align-items: center; gap: 28px; padding: 32px 20px; margin-inline: -20px; text-decoration: none; border-radius: 4px; }
.tool-entry:hover { background: var(--home-hover); }
.tool-icon { display: block; width: 56px; height: 56px; }
.icon-ink { fill: var(--home-ink); }
.icon-accent { fill: #B98A2D; }
.icon-cutout { fill: var(--home-paper); }
.icon-line { fill: none; stroke: var(--home-paper); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tool-name h3 { margin: 0 0 4px; font: 600 24px/1.3 Inter, Arial, sans-serif; letter-spacing: -.025em; }
.tool-name > span { color: var(--home-secondary); font-size: 13px; }
.tool-entry > p { max-width: 52ch; margin: 0; color: var(--home-secondary); font-size: 14px; line-height: 1.75; }
.tool-open { justify-self: end; padding: 9px 12px; border: 1px solid #BAA37C; border-radius: 4px; color: var(--home-accent); font-size: 12px; font-weight: 600; white-space: nowrap; }
.tool-entry:hover .tool-open, .tool-entry:focus-visible .tool-open { color: var(--home-paper); background: var(--home-ink); border-color: var(--home-ink); }
.tools-directory :focus-visible, .home-footer :focus-visible { outline: 2px solid var(--home-accent); outline-offset: 5px; }
.tool-entry:focus-visible { outline-offset: 0; }
.tool-empty { margin: 28px 0 36px; color: var(--home-secondary); line-height: 1.7; }
.upcoming-tools { margin-top: 30px; border-top: 1px solid var(--home-line); border-bottom: 1px solid var(--home-line); }
.upcoming-tools summary { display: flex; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; }
.upcoming-tools summary::-webkit-details-marker { display: none; }
.upcoming-tools summary::after { content: '+'; margin-left: auto; color: var(--home-secondary); font-size: 22px; line-height: 1; font-weight: 400; }
.upcoming-tools[open] summary::after { content: '−'; }
#upcoming-count { color: var(--home-secondary); font-size: 12px; font-weight: 400; }
.upcoming-intro { margin: 0 0 24px; color: var(--home-secondary); font-size: 13px; }
.upcoming-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; list-style: none; padding: 0 0 30px; margin: 0; }
.upcoming-list h3 { margin: 0 0 5px; font-size: 14px; font-weight: 600; }
.upcoming-list p { margin: 0; color: var(--home-secondary); font-size: 13px; line-height: 1.65; }
.home-footer { position: relative; isolation: isolate; overflow: hidden; padding: 64px 0 28px; color: #FFF8E1; background: var(--home-ink); }
.home-footer::before { content: ''; position: absolute; z-index: -1; inset: 0 0 0 48%; background: url('../images/footer-pattern.svg') repeat right center / 240px 240px; opacity: .22; pointer-events: none; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding-bottom: 52px; }
.footer-brand { display: inline-block; color: #F5CE72; font: 700 46px/1.1 Amiri, Georgia, serif; text-decoration: none; }
.footer-brand:hover { color: #FFF8E1; }
.footer-identity > p { margin: 14px 0 0; font-size: 14px; line-height: 1.8; color: #DFCCAE; }
.footer-links { display: grid; grid-template-columns: auto auto; gap: 20px 38px; }
.footer-links a { width: fit-content; color: #FFF8E1; font-size: 14px; text-decoration: underline; text-decoration-color: #A98B5D; text-underline-offset: 5px; }
.footer-links a:hover { color: #F5CE72; }
.home-footer :focus-visible { outline-color: #F5CE72; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding-top: 24px; border-top: 1px solid #6B513C; color: #D2BDA0; font-size: 12px; }
.footer-bottom p { margin: 0; }
@media (max-width: 760px) {
    .home-container { width: calc(100% - 40px); }
    .tools-directory { padding: 52px 0; }
    .tools-heading { display: block; margin-bottom: 24px; }
    .tools-heading h2 { font-size: 42px; margin-bottom: 12px; }
    .tools-heading > p { font-size: 14px; }
    .tool-filters { gap: 2px 22px; }
    .tool-entry { grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 10px 20px; margin-inline: -12px; padding: 26px 12px; }
    .tool-icon { width: 44px; height: 44px; grid-row: 1 / 4; margin-top: 2px; }
    .tool-name { grid-column: 2; }
    .tool-entry > p { grid-column: 2; grid-row: 2; }
    .tool-open { grid-column: 2; grid-row: 3; justify-self: start; margin-top: 4px; }
    .tool-name h3 { font-size: 22px; }
    .upcoming-list { grid-template-columns: 1fr; gap: 22px; }
    .footer-main { align-items: flex-start; flex-direction: column; gap: 30px; padding-bottom: 36px; }
    .footer-links { gap: 20px 36px; }
    .home-footer { padding-top: 44px; }
    .home-footer::before { left: 40%; opacity: .16; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .animate-fade-in, .animate-fade-in-up, .animate-float, .animate-bounce { animation: none !important; opacity: 1 !important; transform: none !important; }
}
