/* ==========================================================================
 * app.css - the single stylesheet the site loads.
 *
 * Six cascade layers, declared once. Layer order is the specificity contract:
 * a later layer beats an earlier one whatever its selectors, so the components
 * never need !important to beat the base, and there is nowhere for the old
 * !important arms race (273 of them in colors.css) to start again.
 *
 * Nothing here reaches the live site yet: templates still load the old
 * stylesheets. This file is the Phase 2 target, previewed before it replaces
 * anything.
 * ========================================================================== */

@layer tokens, reset, base, layout, components, utilities;

@import url("tokens.css")         layer(tokens);
@import url("reset.css")          layer(reset);
@import url("base.css")           layer(base);
@import url("layout.css")         layer(layout);
@import url("components/chrome.css")    layer(components);
@import url("components/buttons.css")   layer(components);
@import url("components/knobs.css")     layer(components);
@import url("components/wood.css")      layer(components);
@import url("components/header.css")    layer(components);
/* 3.2: the two header icon buttons and the guide dialog. After header.css so
 * .iconbtn's own materials win over any generic control rule there. */
@import url("components/chrome-extra.css") layer(components);
@import url("components/listing.css")   layer(components);
@import url("components/free.css")      layer(components);
/* 3.4.0: the support page's two doors and the closing band. It builds on
 * .panel (layout) and .spec (panels), so it comes after both. */
@import url("components/support.css")   layer(components);
@import url("components/player.css")    layer(components);
@import url("components/forms.css")     layer(components);
@import url("components/panels.css")    layer(components);
@import url("components/product.css")   layer(components);
@import url("components/account.css")   layer(components);
/* 3.6: the search results page. Builds on .input (forms.css) and .listing
 * (listing.css), so it comes after both. */
@import url("components/search.css")    layer(components);
/* 3.6: the long-form pages - policies, EULA, troubleshooting - and their
 * sticky index. */
@import url("components/content.css")   layer(components);
/* 3.6: the bundle step and the free-sound-of-the-week card. */
@import url("components/extras.css")    layer(components);
/* Last on purpose: .notice lives in product.css, and the checkout's severity
 * variants (.notice--warn/--error) set the same properties. Same layer, same
 * specificity - so the file that modifies has to come after the file that
 * defines, or the base rule wins and the variant is dead. */
@import url("components/checkout.css")  layer(components);
@import url("utilities.css")      layer(utilities);
