@import "./ayw-theme-v20261201.css";

:root {
    color-scheme: dark;
    --bg: var(--ayw-bg);
    --surface: #11121b;
    --ink: var(--ayw-text);
    --muted: var(--ayw-muted);
    --line: var(--ayw-line);
    --lavender: var(--ayw-accent);
    --gutter: clamp(22px, 6vw, 88px);
    font-family: var(--ayw-font);
    color: var(--ink);
    background: var(--bg);
}

* { box-sizing: border-box; }
body, h1, h2, h3, p, dl, dd { margin: 0; }
body { min-width: 0; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #d3c5ff; outline-offset: 5px; }
::selection { color: #100b20; background: #c3b0ff; }
.container { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }
section[id], main { scroll-margin-top: 100px; }

.skip-link {
    position: fixed;
    z-index: 5;
    top: 10px;
    left: 12px;
    padding: 10px 16px;
    transform: translateY(-160%);
    border-radius: 8px;
    background: #f4efff;
    color: #161225;
}
.skip-link:focus { transform: none; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 4;
    background: rgb(10 11 18 / 91%);
    border-bottom: 1px solid var(--line);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-header {
        background: rgb(10 11 18 / 76%);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
    }
}
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.24rem; font-weight: 700; letter-spacing: -.045em; }
.brand img { display: block; border-radius: 28%; }
.brand b { font-weight: 450; color: #e0dfec; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a, .header-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-size: .9rem; }
.nav a { color: #bec0ce; }
.nav a:hover, .filing:hover { color: #fff; text-decoration: underline; text-underline-offset: .35em; }
.header-link {
    padding-inline: 19px;
    border-radius: 999px;
    border: 1px solid #393945;
    background: linear-gradient(170deg, #252531, #171820);
    font-weight: 550;
}
.header-link:hover { border-color: #878299; }

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: radial-gradient(ellipse at 76% 40%, #18152c 0, #10101b 30%, transparent 64%), var(--bg);
    border-bottom: 1px solid var(--line);
}
.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image: linear-gradient(to right, #c3c4ff0a 1px, transparent 1px), linear-gradient(to bottom, #c3c4ff0a 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(115deg, transparent 2%, #0009 52%, #000 86%);
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: clamp(500px, 42vw, 620px);
    position: relative;
}
.hero-copy { position: relative; z-index: 1; padding-block: clamp(48px, 5.5vw, 82px); }
.wordmark {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 21px;
    color: #c4b5ff;
    font: 550 .78rem/1.4 "SFMono-Regular", Consolas, monospace;
    letter-spacing: .19em;
    text-transform: uppercase;
}
.wordmark::before {
    content: "";
    width: 26px;
    height: 2px;
    background: linear-gradient(90deg, #7661d6, #cfc3ff);
}
h1 {
    font-size: clamp(3.45rem, 5.5vw, 5.25rem);
    font-weight: 720;
    letter-spacing: -.055em;
    line-height: 1.17;
}
h1 span {
    color: #c7beff;
    background: linear-gradient(103deg, #eaebff, #c7beff 44%, #ac97ff 88%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.lead { margin-top: 23px; color: #babacb; font-size: clamp(1rem, 1.18vw, 1.125rem); line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 650;
    border: 1px solid transparent;
    transition: background-color .18s, border-color .18s, transform .18s;
}
.primary {
    color: #1d1632;
    border-color: #d7ccff;
    background: linear-gradient(125deg, #ece6ff, #c5b5ff);
    box-shadow: inset 0 1px 0 #ffffffa6, 0 3px 20px #8a67ff20;
}
.secondary { background: #ffffff08; border-color: #454450; color: #e8e7f3; }
.primary:hover { transform: translateY(-2px); }
.secondary:hover { background: #ffffff12; border-color: #878299; }
.grid-icon {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 9px 9px 0;
    border-radius: 1px;
    color: #3a3053;
    background: currentColor;
    box-shadow: 9px 0, 0 9px, 9px 9px;
}
.hero-art { position: absolute; z-index: -1; inset: 0 -6% 0 42%; pointer-events: none; display: grid; align-items: center; mix-blend-mode: screen; }
.hero-art picture {
    display: block;
    width: 100%;
    mask-image: radial-gradient(ellipse 67% 67% at 52% 50%, #000 50%, transparent 91%);
}
.hero-art img { width: 100%; height: auto; display: block; }

.directory { padding-block: clamp(44px, 4.6vw, 70px) clamp(52px, 5.8vw, 90px); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
h2 { font-size: clamp(1.8rem, 2.4vw, 2.4rem); font-weight: 650; line-height: 1.3; letter-spacing: -.045em; }
.section-heading p, .guide-heading p { color: var(--muted); font-size: 1rem; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool-card {
    --accent: #c1adff;
    --tint: #a188ff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(22px, 2.25vw, 34px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    background: radial-gradient(ellipse at 8% -34%, color-mix(in srgb, var(--tint) 17%, transparent), transparent 70%), linear-gradient(120deg, #13141e, #101119);
    box-shadow: inset 0 1px 0 #f2f1ff06;
    transition: border-color .2s, transform .2s;
}
.downloads { --accent: #a2c9ff; --tint: #7babff; }
.research { --accent: #90dcdb; --tint: #5bbfbf; }
.tool-card:hover, .tool-card:focus-visible { border-color: var(--accent); }
.tool-symbol {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: var(--accent);
    background: #242635;
    background: linear-gradient(145deg, color-mix(in srgb, var(--tint) 20%, #191a24), color-mix(in srgb, var(--tint) 5%, #14151e));
    border: 1px solid currentColor;
    border-color: color-mix(in srgb, var(--accent) 33%, transparent);
    border-radius: 13px;
    box-shadow: inset 0 1px 0 #ffffff10;
}
.tiles-icon { display: grid; grid-template-columns: 8px 8px; gap: 3px; transform: rotate(-4deg); }
.tiles-icon b { width: 8px; height: 8px; border: 1.5px solid; border-radius: 2px; }
.tiles-icon b:nth-child(2) { transform: translate(1px, -1px) rotate(12deg); background: #b8a2ff40; }
.download-icon { position: relative; width: 21px; height: 8px; border: 1.7px solid; border-top: 0; border-radius: 0 0 3px 3px; margin-top: 12px; }
.download-icon::before, .download-icon::after { position: absolute; content: ""; left: 50%; }
.download-icon::before { width: 2px; height: 13px; background: currentColor; bottom: 6px; transform: translateX(-50%); }
.download-icon::after { width: 7px; height: 7px; border: solid; border-width: 0 2px 2px 0; bottom: 6px; transform: translateX(-50%) rotate(45deg); }
.books-icon { display: flex; align-items: flex-end; gap: 3px; }
.books-icon b { width: 5px; height: 18px; border: 1.5px solid; border-radius: 1px; }
.books-icon b:nth-child(2) { height: 21px; }
.books-icon b:last-child { transform-origin: bottom; transform: rotate(-15deg) translateX(3px); background: #71caca38; }
.tool-card h3 { margin-top: 21px; font-size: 1.32rem; font-weight: 630; letter-spacing: -.025em; }
.tool-card p { margin-top: 7px; margin-bottom: 22px; font-size: 1rem; line-height: 1.75; color: var(--muted); }
.card-action { margin-top: auto; color: var(--accent); font-size: .9rem; font-weight: 550; }
.tool-card:hover .card-action, .tool-card:focus-visible .card-action { text-decoration: underline; text-underline-offset: .3em; }

.guide { display: grid; grid-template-columns: 1fr 1.8fr; gap: clamp(30px, 7vw, 100px); padding-block: clamp(42px, 5vw, 70px); border-top: 1px solid var(--line); }
.guide-heading p { margin-top: 12px; }
.guide-list > div { display: grid; grid-template-columns: max-content 1fr; gap: 24px; border-bottom: 1px solid var(--line); padding-block: 18px; }
.guide-list > div:first-child { padding-top: 4px; }
.guide-list dt { font-weight: 600; }
.guide-list dd { color: var(--muted); }
footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: 24px; padding-block: 28px; color: var(--muted); font-size: .875rem; }
footer .brand { color: var(--ink); font-size: 1rem; }
.filing { margin-left: auto; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .tool-card:hover { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none; }
    .primary:hover { transform: none; }
}
@media (max-width: 900px) {
    .wide-break { display: none; }
    .hero-inner { grid-template-columns: 1.05fr 1fr; }
    .tool-grid { gap: 12px; }
    .tool-card { padding: 20px; }
}
@media (max-width: 760px) {
    .container { width: min(100% - 2 * var(--gutter), 620px); }
    .header-inner { gap: 16px; min-height: 62px; }
    .nav { gap: 16px; }
    .header-link { padding-inline: 13px; }
    .hero-inner { grid-template-columns: 1fr; min-height: 0; }
    .hero-copy { padding: 44px 0 0; }
    .wordmark { margin-bottom: 16px; }
    h1 { font-size: clamp(3.1rem, 9vw, 4.2rem); }
    .lead { max-width: 32em; margin-top: 18px; }
    .hero-actions { margin-top: 22px; }
    .hero-art { position: relative; display: block; inset: auto; margin: 10px -5% 16px; height: clamp(215px, 53vw, 326px); }
    .hero-art picture { width: 100%; height: 100%; }
    .hero-art img { width: 100%; height: 100%; object-fit: contain; }
    .tool-grid { grid-template-columns: 1fr; }
    .tool-card { display: grid; grid-template-columns: 46px 1fr; column-gap: 18px; padding: 22px; }
    .tool-symbol { grid-column: 1; grid-row: 1 / 4; }
    .tool-card h3, .tool-card p, .card-action { grid-column: 2; }
    .tool-card h3 { margin-top: -2px; }
    .tool-card p { margin: 5px 0 10px; }
    .guide { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 510px) {
    .header-inner { flex-wrap: wrap; column-gap: 12px; row-gap: 0; }
    .header-inner .brand { min-height: 44px; }
    .header-inner .brand img { width: 29px; height: 29px; }
    .header-link { display: none; }
    .nav { gap: 14px; }
    section[id], main { scroll-margin-top: 80px; }
    .hero-copy { padding-top: 32px; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
    .guide-list > div { grid-template-columns: 1fr; gap: 5px; }
    .footer-inner { flex-wrap: wrap; gap: 12px 20px; }
    .filing { width: 100%; margin: 0; }
}
@media (forced-colors: active) {
    h1 span { -webkit-text-fill-color: CanvasText; }
    .tool-card, .button, .header-link { border-color: LinkText; }
}
