/* Yours. appgen writes this file once and never touches it again,
   and every page loads it after styles.css, so anything here wins.

   Editorial and quiet: paper, ink, hairlines, one terracotta accent. Every class
   custom.js adds starts with cab-. */

/* Fonts are linked from the page head (`fonts:` in site.appgen), not
   @imported here, so they load alongside this file rather than after it. */

:root {
    --paper: #f7f5f0;
    --panel: #efebe3;
    --ink: #1d1b18;
    --muted: #7a736b;
    --rule: #dfd9cf;
    --walnut: #a4442a;  /* the accent; named for the cabinets site it came from */
    --bark: var(--ink);
    --cream: var(--paper);
    --edge: var(--rule);
    --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
    --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --wrap: 64rem;
}

body {
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.6 var(--sans);
}

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--ink);
}

a { color: var(--ink); }

::selection { background: #e6d8c6; }

/* ---------------------------------------------------------------- header */

.site-head {
    background: rgba(247, 245, 240, 0.85);
    border-bottom: 1px solid var(--rule);
}
.site-head .wrap { padding-block: 16px; }
.brand { font: 400 1.35rem/1 var(--serif); color: var(--ink); gap: 0; }
.mark { display: none; }
.site-head nav a {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--muted);
    border: 0;
}
.site-head nav a.here { color: var(--ink); }

/* ------------------------------------------------------------------ hero */

.hero {
    background: var(--paper);
    color: var(--ink);
    padding-block: clamp(72px, 14vw, 150px) clamp(40px, 7vw, 72px);
}
.hero h1 {
    color: var(--ink);
    font-size: clamp(3rem, 8.5vw, 6.2rem);
    line-height: 0.98;
    letter-spacing: -0.025em;
    max-width: 13ch;
    margin-bottom: 0.35em;
    text-wrap: balance;
}
.hero .lede {
    color: var(--muted);
    font-size: clamp(1.02rem, 1.8vw, 1.18rem);
    max-width: 44ch;
    margin-bottom: 2em;
}

.btn {
    border-radius: 0;
    padding: 0 0 4px;
    border: 0;
    border-bottom: 1px solid currentColor;
    font-weight: 500;
    font-size: 0.95rem;
}
.btn-primary, .btn-primary:hover { background: none; color: var(--ink); }
.hero .btn { flex: none; }
.btn-primary::after { content: " \2193"; }
.btn-primary[href^="http"]::after { content: " \2192"; }
.btn-primary:hover { color: var(--walnut); }

/* --------------------------------------------------------------- bands */

.band { padding-block: clamp(40px, 7vw, 80px); }
.band + .band { border-top: 1px solid var(--rule); }
.band h2 {
    font-size: 0.78rem;
    font-family: var(--sans);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.6em;
}
.band .intro { color: var(--muted); font-size: 0.98rem; margin-bottom: 2.4em; }
.band-ranking { padding-top: 0; }

.prose { max-width: 60ch; }
.prose p { color: #4a453f; }

/* --------------------------------------------------------------- ranking */

.ranking {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--rule);
}

.rank {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 0 24px;
    padding: 30px 0;
    border-top: 1px solid var(--rule);
}

.rank-no {
    font: 400 2.6rem/1 var(--serif);
    color: #b3aba0;
    font-variant-numeric: tabular-nums;
}
.rank-no::before { content: "No."; font-size: 0.4em; margin-right: 3px; vertical-align: 0.9em; }

.rank h3 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    line-height: 1.1;
    margin: 0 0 0.2em;
}
.rank h3 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.35s ease, color 0.2s; }
.rank h3 a[href^="http"]::after { content: "\2197"; font-family: var(--sans); font-size: 0.5em; margin-left: 6px; vertical-align: 0.5em; color: var(--muted); transition: transform 0.2s ease; display: inline-block; }
.rank h3 a:hover { color: var(--walnut); background-size: 100% 1px; }
.rank h3 a[href^="http"]:hover::after { transform: translate(2px, -2px); color: var(--walnut); }

.rank-place { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.9em; }
.rank .blurb { max-width: 60ch; color: #3d3934; margin-bottom: 0.8em; }

.rank-tags {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8rem;
    color: var(--muted);
}
.rank-tags li { display: inline; }
.rank-tags li + li::before { content: "  \00b7  "; white-space: pre; }

/* The top pick: more room, larger type, the one place the accent shows. */
.rank-1 {
    background: var(--panel);
    border-top: 0;
    padding: clamp(32px, 5vw, 52px) clamp(20px, 4vw, 44px);
    margin-bottom: 18px;
    grid-template-columns: 7rem 1fr;
}
.rank-1 + .rank { border-top: 0; }
.rank-1 .rank-no { font-size: 5rem; color: var(--walnut); }
.rank-1 h3 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); }
.rank-1 .blurb { font-size: 1.08rem; }
.rank-1::before {
    content: "Top pick";
    grid-column: 2;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--walnut);
    margin-bottom: 10px;
}
.rank-1 .rank-no { grid-row: 1 / span 2; }

@media (max-width: 560px) {
    .rank, .rank-1 { grid-template-columns: 1fr; }
    .rank-no { font-size: 1.6rem; margin-bottom: 6px; }
    .rank-1 .rank-no { font-size: 3rem; grid-row: auto; }
    .rank-1::before { grid-column: 1; }
}

/* --------------------------------------------------------------- footer */

.site-foot {
    background: var(--paper);
    color: var(--muted);
    border-top: 1px solid var(--rule);
    font-size: 0.85rem;
}
.site-foot strong { color: var(--ink); font-weight: 500; }
.site-foot p:empty { display: none; }
.site-foot .fine { color: var(--muted); }

/* ------------------------------------------------------------ motion */

/* Entries rise in one after another. Only when custom.js has run
   (html.cab-motion), so the page reads without it. */
.cab-motion .rank { opacity: 0; transform: translateY(16px); }
.cab-motion .rank.cab-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cab-motion .hero h1, .cab-motion .hero .lede, .cab-motion .hero .actions {
    opacity: 0;
    transform: translateY(14px);
}
.cab-ready .hero h1, .cab-ready .hero .lede, .cab-ready .hero .actions {
    opacity: 1;
    transform: none;
    transition: opacity 0.9s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cab-ready .hero .lede { transition-delay: 0.12s; }
.cab-ready .hero .actions { transition-delay: 0.24s; }

/* The opening. A plate under a cloche, drawn in fine line on paper. The paper
   is a mask with a dome-shaped hole under the cloche, so when the cloche lifts
   the live page is what was served; then the drawing scales up through the
   hole and the page is all that is left.

   Geometry is in the drawing's 200x300 units, as percentages of .cab-stage:
   the dome spans 30..170 x 96..196. */
.cab-intro {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    overflow: hidden;
    cursor: pointer;
}

.cab-stage {
    position: relative;
    width: min(62vw, 360px, 38vh);
    aspect-ratio: 2 / 3;
    transform-origin: 50% 48.667%;
    will-change: transform;
}
.cab-zoom .cab-stage {
    transform: translateY(var(--dy)) scale(var(--zoom));
    transition: transform 1.35s cubic-bezier(0.7, 0, 0.25, 1);
}

.cab-hole, .cab-lid {
    position: absolute;
    left: 15%;
    top: 32%;
    width: 70%;
    height: 33.333%;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.cab-hole {
    box-shadow: 0 0 0 300vmax var(--paper), inset 0 10px 24px -8px rgba(29, 27, 24, 0.3);
    transition: box-shadow 0.6s ease;
}
.cab-zoom .cab-hole { box-shadow: 0 0 0 300vmax var(--paper), inset 0 0 0 0 transparent; }

.cab-lid {
    background: var(--paper);
    transition: transform 1.1s cubic-bezier(0.5, 0, 0.2, 1), opacity 0.6s ease 0.5s;
}
.cab-lid svg { position: absolute; inset: -12% 0 0; width: 100%; height: 112%; overflow: visible; }
.cab-lifted .cab-lid { transform: translateY(-85%) rotate(-7deg); opacity: 0; }

.cab-stage > svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.cab-intro svg * {
    fill: none;
    stroke: var(--ink);
    stroke-width: 0.75;
    stroke-linecap: round;
}
.cab-intro .cab-draw {
    stroke-dasharray: var(--len);
    stroke-dashoffset: var(--len);
    animation: cab-draw 0.9s cubic-bezier(0.6, 0, 0.3, 1) forwards;
    animation-delay: var(--delay);
}
.cab-intro .cab-pull { stroke: var(--walnut); stroke-width: 1.5; opacity: 0; animation: cab-fade 0.4s ease forwards; animation-delay: var(--delay); }
.cab-intro text {
    fill: var(--ink);
    stroke: none;
    font: 400 22px var(--serif);
    opacity: 0;
    animation: cab-fade 0.6s ease forwards;
    animation-delay: var(--delay);
}
.cab-intro text.cab-small { font: 500 6.5px var(--sans); letter-spacing: 2.4px; fill: var(--muted); }
.cab-intro .cab-label { transition: opacity 0.4s ease; }
.cab-lifted .cab-label { opacity: 0; }

@keyframes cab-draw { to { stroke-dashoffset: 0; } }
@keyframes cab-fade { to { opacity: 1; } }

/* Gone: fade whatever is left once the page fills the screen. */
.cab-done { opacity: 0; transition: opacity 0.35s ease; pointer-events: none; }

.cab-skip {
    position: absolute;
    right: 20px;
    bottom: 16px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    transition: opacity 0.3s ease;
}
.cab-lifted .cab-skip { opacity: 0; }

/* ------------------------------------------------------- entry pages */

.hero .updated { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.02em; margin: -1.2em 0 2em; }
.rank-menu { font-weight: 500; }
.rank-links { font-size: 0.85rem; color: var(--muted); margin-top: 0.9em; }
.rank-links a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.rank-links a:hover { color: var(--walnut); border-color: currentColor; }
.rank-links a[href^="http"]::after { content: " \2197"; color: var(--muted); }

.entry-hero h1 { max-width: 16ch; }
.crumbs { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.04em; }
.crumbs a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--rule); }
.crumbs a:hover { color: var(--walnut); }
.band-entry .prose p { font-size: 1.05rem; }
.band-entry .contact { max-width: 60ch; border-top: 1px solid var(--rule); padding-top: 24px; }
.band-entry .contact dt { font-weight: 500; font-size: 0.72rem; letter-spacing: 0.14em; }
.band-entry .contact a { color: var(--ink); }
.band-entry .rank-tags { color: var(--muted); font-size: 0.85rem; }
.entry-steps { border-top: 1px solid var(--rule); padding-top: 24px; max-width: 60ch; }
.entry-steps a { color: var(--ink); text-decoration: none; font: 400 1.3rem/1.2 var(--serif); }
.entry-steps a span { font: 500 0.72rem/1.6 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.entry-steps a:hover { color: var(--walnut); }
.btn-primary[href$="#ranking"]::after { content: " \2192"; }
.btn-ghost, .btn-ghost:hover { color: var(--muted); border-color: var(--rule); background: none; }
.btn-ghost:hover { color: var(--walnut); border-color: currentColor; }
.entry-hero .actions { gap: 28px; }

/* ----------------------------------------------------------------- menus */

/* Menus run long -- hundreds of items, several menus each -- so this is built
   for scanning: one menu at a time (custom.js turns the tabs on; without it
   every menu is simply on the page), section links under it, sticky section
   headings, and items in columns with the price on the right. */

.band-menu .intro { max-width: 58ch; }

.menu-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 8px;
}
.menu-tab {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    padding: 7px 15px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.menu-tab:hover { color: var(--ink); border-color: #c9c1b4; }
.menu-tab .menu-count { font-size: 0.76rem; color: #a49b8e; font-variant-numeric: tabular-nums; }
.menu-tab.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.menu-tab.is-on .menu-count { color: #a49b8e; }

.menu { margin-top: 36px; max-width: none; }
.band-menu .menu-name-head {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--ink);
    margin: 0 0 0.25em;
}
.menu[hidden] { display: none; }

.menu-part { margin-top: 30px; }
.menu-part-head {
    position: sticky;
    /* Under the site header, which is sticky too. */
    top: 58px;
    z-index: 1;
    margin: 0 0 14px;
    padding: 10px 0 8px;
    background: linear-gradient(var(--paper) 78%, transparent);
    font-family: var(--sans);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--walnut);
}

.menu-note { color: var(--muted); font-size: 0.9rem; margin: 0 0 10px; max-width: 56ch; }

.menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
    gap: 20px 48px;
    align-items: start;
}

/* An entry whose price needs its own line (a list of them, or "market price")
   takes the full width rather than squeezing. */
.menu-entry.is-wide { grid-column: 1 / -1; }

.menu-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 14px;
    align-items: baseline;
    margin: 0;
}
.menu-name {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.35;
}
.menu-cost {
    color: var(--muted);
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.menu-cost-own {
    margin: 3px 0 0;
    white-space: normal;
    color: #8c8477;
}
.menu-desc {
    grid-column: 1 / -1;
    color: #5f594f;
    font-size: 0.89rem;
    line-height: 1.5;
    margin: 3px 0 0;
    max-width: 46ch;
}
.menu-flags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 5px 0 0;
    padding: 0;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a49b8e;
}

@media (max-width: 560px) {
    .menu-items { gap: 16px; }
    .menu-part-head { top: 52px; }
}

/* The menu page: the whole menu, stacked, nothing hidden. */

.menu-hero { padding-block: clamp(56px, 9vw, 96px) clamp(20px, 3vw, 32px); }
.menu-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.band-menu .menu-index + .menu { margin-top: 30px; }

.menu-index {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0 0;
}
.menu-link {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    padding: 7px 15px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.menu-link:hover { color: var(--ink); border-color: #c9c1b4; }
.menu-link .menu-count { font-size: 0.76rem; color: #a49b8e; font-variant-numeric: tabular-nums; }

/* A menu's own name, as a heading rather than a tab. */
.band-menu .menu-name-head { padding-top: 8px; }
.menu-name-head + .menu-note { margin-bottom: 14px; }

/* The preview on the entry page: a taste, then the whole thing. */
.band-menu-preview .menu-part:first-of-type { margin-top: 18px; }
.menu-more { margin: 30px 0 0; }

/* ------------------------------------------------------- votes and signups */

/* A pill, so it reads as the one thing on the row you can press rather than a
   fourth link. The count sits outside it and stays quiet. */
.vote { display: flex; align-items: center; gap: 10px; margin: 1.1em 0 0.2em; }
.vote-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font: 500 0.85rem var(--sans);
    color: var(--ink);
    background: none;
    border: 1px solid var(--rule);
    border-radius: 999px;
    padding: 6px 14px 6px 11px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.vote-mark {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--muted);
    transition: color 0.15s ease;
}
.vote-button:hover:not(:disabled) { color: var(--walnut); border-color: var(--walnut); }
.vote-button:hover:not(:disabled) .vote-mark { color: var(--walnut); }
.vote-button:focus-visible { outline: 2px solid var(--walnut); outline-offset: 2px; }
.vote-button.voted,
.vote-button:disabled {
    cursor: default;
    color: var(--walnut);
    border-color: var(--walnut);
    background: color-mix(in srgb, var(--walnut) 8%, transparent);
}
.vote-button.voted .vote-mark { color: var(--walnut); }
.vote-count { font-size: 0.82rem; color: var(--muted); }
.rank-1 .vote-button { font-size: 0.9rem; padding: 7px 16px 7px 13px; }

.signup { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; max-width: 34rem; }
.signup label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.signup input {
    flex: 1 1 16rem;
    font: 400 1rem var(--sans);
    color: var(--ink);
    background: none;
    border: 0;
    border-bottom: 1px solid var(--rule);
    padding: 6px 0;
}
.signup input:focus { outline: none; border-color: var(--walnut); }
.signup button {
    font: 500 0.9rem var(--sans);
    color: var(--ink);
    background: none;
    border: 0;
    border-bottom: 1px solid currentColor;
    padding: 0 0 4px;
    cursor: pointer;
}
.signup button:hover:not(:disabled) { color: var(--walnut); }
.signup-said { flex: 1 0 100%; margin: 0; font-size: 0.85rem; color: var(--muted); }

/* ---------------------------------------------------------------- directory */

.band-directory .note { color: var(--muted); font-size: 0.9rem; margin: 0 0 2.4em; }
.directory-group { margin-bottom: 40px; }
.directory-group h3 {
    font: 500 0.72rem/1.6 var(--sans);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 14px;
}
.directory { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 40px; }
.directory li { break-inside: avoid; margin-bottom: 11px; }
.directory a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.directory a:hover { color: var(--walnut); border-color: currentColor; }
.directory-ranked {
    font: 500 0.62rem/1 var(--sans);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--walnut);
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: 2px 6px;
    margin-left: 7px;
    vertical-align: 1px;
}
.directory-where { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.band-directory .fine { color: var(--muted); font-size: 0.8rem; margin-top: 32px; max-width: 60ch; }
@media (max-width: 40rem) { .directory { columns: 1; } }
