/* Cash for Gold, Inc. — the touchstone: black stone, the gold of the firm's own wordmark, sales-slip paper.
   Fonts: Hepta Slab (display) + Mona Sans (text), both SIL OFL, self-hosted. */

@font-face {
    font-family: "Hepta Slab";
    src: url("/fonts/hepta-slab.woff2") format("woff2");
    font-weight: 1 900;
    font-display: swap;
}

@font-face {
    font-family: "Mona Sans";
    src: url("/fonts/mona-sans.woff2") format("woff2");
    font-weight: 200 900;
    font-stretch: 75% 125%;
    font-display: swap;
}

:root {
    --stone: #101214;
    --slate: #181b1e;
    --raised: #22262a;
    --line: #353a40;
    --gold: #e2c06c;
    --gold-lt: #f1dca2;
    --gold-dp: #9a7426;
    --cream: #ece6d8;
    --muted: #b8b1a2;
    --paper: #f3eee2;
    --sheet: #fbf8f1;
    --ink: #16191b;
    --ink-2: #45453f;
    --brass: #6e5214;
    --green: #1c3226;
    --green-lt: #b9d6ac;
    --radius: 18px;
    --display: "Hepta Slab", Rockwell, Georgia, serif;
    --text: "Mona Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --lb-accent: #e2c06c;
    --lb-accent-soft: rgba(226, 192, 108, .25);
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 6rem;
}

body {
    margin: 0;
    background: var(--stone);
    color: var(--cream);
    font: 400 1.0625rem/1.65 var(--text);
    overflow-x: hidden;
}

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

a {
    color: var(--gold-lt);
    text-underline-offset: .18em;
    text-decoration-thickness: 1px;
}

a:hover {
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.02em;
    margin: 0 0 .5em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.3rem, 1.4rem + 4.2vw, 4.6rem);
}

h2 {
    font-size: clamp(1.7rem, 1.2rem + 2vw, 2.7rem);
}

h3 {
    font-size: 1.35rem;
}

p {
    margin: 0 0 1em;
}

.wrap {
    width: min(100% - 2rem, 76rem);
    margin-inline: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: .6rem 1rem;
    background: var(--gold);
    color: var(--ink);
    font-weight: 700;
    border-radius: 8px;
}

.skip:focus {
    top: 1rem;
}

.eyebrow {
    font: 650 .8rem/1.3 var(--text);
    font-stretch: 125%;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .9rem;
}

.lead {
    font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem);
    color: var(--cream);
    max-width: 40rem;
}

/* ---- buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 3rem;
    padding: .75rem 1.4rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font: 700 1.05rem/1.2 var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(180deg, #f3d98f, #d7b158 60%, #c39a44);
    color: var(--ink);
    box-shadow: 0 8px 24px -10px rgba(226, 192, 108, .7), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.btn-gold:hover {
    box-shadow: 0 12px 30px -10px rgba(226, 192, 108, .9), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.btn-line {
    border-color: var(--gold);
    color: var(--gold-lt);
    background: transparent;
}

.btn-line:hover {
    background: rgba(226, 192, 108, .12);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 1.6rem;
}

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

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(16, 18, 20, .86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 192, 108, .22);
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem 1rem;
    padding-block: .7rem;
}

.brand {
    display: block;
    margin-right: auto;
    border-radius: 6px;
}

.brand img {
    width: clamp(150px, 30vw, 210px);
}

.top-call {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1rem;
    border-radius: 999px;
    background: var(--gold);
    color: var(--ink);
    font-weight: 750;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
}

.top-call:hover {
    background: var(--gold-lt);
}

.menu-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 2.6rem;
    padding: .4rem .9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--raised);
    color: var(--cream);
    font: 600 .95rem var(--text);
    cursor: pointer;
}

.menu-btn[hidden] {
    display: none;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
}

.menu-bars::before,
.menu-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-bars::before {
    top: -5px;
}

.menu-bars::after {
    top: 5px;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem .3rem;
    width: 100%;
}

.nav a {
    padding: .4rem .7rem;
    border-radius: 999px;
    color: var(--cream);
    text-decoration: none;
    font-weight: 550;
    font-size: .98rem;
}

.nav a:hover {
    background: var(--raised);
}

.nav a[aria-current] {
    background: rgba(226, 192, 108, .16);
    color: var(--gold-lt);
    box-shadow: inset 0 0 0 1px rgba(226, 192, 108, .45);
}

.js .nav {
    display: none;
}

.js .nav.open {
    display: flex;
    flex-direction: column;
    padding-bottom: .5rem;
}

.js .nav.open a {
    padding: .7rem .9rem;
    border-radius: 10px;
}

@media (min-width: 1080px) {
    .top-row {
        flex-wrap: nowrap;
    }

    .brand {
        margin-right: 0;
    }

    .js .nav,
    .nav {
        display: flex;
        flex-direction: row;
        width: auto;
        margin-left: auto;
        order: 2;
        flex-wrap: nowrap;
    }

    .top-call {
        order: 3;
    }

    .menu-btn {
        display: none !important;
    }
}

/* ---- hero with the touchstone ---- */

.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4.5rem);
    background:
        radial-gradient(60rem 30rem at 85% 30%, rgba(226, 192, 108, .16), transparent 60%),
        radial-gradient(40rem 26rem at 0% 100%, rgba(154, 116, 38, .18), transparent 60%),
        var(--stone);
}

.hero-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.hero h1 span {
    display: block;
    background: linear-gradient(100deg, #f6e2a6 0%, #e2c06c 40%, #b8913f 75%, #f1dca2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-stone {
    margin: 0;
}

.hero-stone figcaption {
    margin-top: .6rem;
    text-align: center;
    font: 650 .82rem/1.4 var(--text);
    font-stretch: 125%;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.stone {
    width: 100%;
    max-width: 34rem;
    margin-inline: auto;
    display: block;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55));
}

.streak {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
}

.karats text {
    opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .streak {
        animation: rub 1s cubic-bezier(.6, .1, .3, 1) both;
    }

    .s1 { animation-delay: .3s; }
    .s2 { animation-delay: .9s; }
    .s3 { animation-delay: 1.5s; }
    .s4 { animation-delay: 2.1s; }

    .karats text {
        animation: karat .5s ease both;
    }

    .k1 { animation-delay: 1.1s; }
    .k2 { animation-delay: 1.7s; }
    .k3 { animation-delay: 2.3s; }
    .k4 { animation-delay: 2.9s; }

    .hero-copy > * {
        animation: rise .7s ease both;
    }

    .hero-copy > :nth-child(2) { animation-delay: .1s; }
    .hero-copy > :nth-child(3) { animation-delay: .2s; }
    .hero-copy > :nth-child(4) { animation-delay: .3s; }
}

@keyframes rub {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
}

@keyframes karat {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: none; }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1.1fr .9fr;
    }
}

/* ---- figures ---- */

.figures {
    background: var(--slate);
    border-block: 1px solid rgba(226, 192, 108, .25);
}

.figure-row {
    list-style: none;
    padding: 0;
    margin-block: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.figure-row li {
    padding: 1.6rem 1rem 1.6rem 0;
    border-bottom: 1px solid var(--line);
}

.figure-row strong {
    display: block;
    font: 800 clamp(2rem, 1.4rem + 2.6vw, 3.4rem)/1 var(--display);
    letter-spacing: -.03em;
    color: var(--gold);
    margin-bottom: .4rem;
}

.figure-row span {
    display: block;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.4;
}

@media (min-width: 900px) {
    .figure-row {
        grid-template-columns: repeat(4, 1fr);
    }

    .figure-row li {
        border-bottom: 0;
        border-left: 1px solid var(--line);
        padding: 2rem 1.4rem;
    }

    .figure-row li:first-child {
        border-left: 0;
        padding-left: 0;
    }
}

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

.band {
    padding-block: clamp(3rem, 7vw, 6rem);
}

.paper {
    background: var(--paper);
    color: var(--ink);
}

.paper a {
    color: var(--brass);
}

.paper .eyebrow {
    color: var(--brass);
}

.paper .btn-gold {
    color: var(--ink);
}

.section-head {
    max-width: 46rem;
    margin-bottom: 2.2rem;
}

.paper .section-head p:not(.eyebrow) {
    color: var(--ink-2);
}

.prose {
    max-width: 42rem;
}

.prose h3 {
    margin-top: 1.6rem;
}

.prose h2 + p {
    margin-top: 0;
}

.prose h2:not(:first-child) {
    margin-top: 2.2rem;
    font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
}

.split {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 900px) {
    .split {
        grid-template-columns: 1.3fr 1fr;
        gap: 4rem;
    }
}

.photo {
    margin: 0;
}

.photo a {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .5);
}

.photo img {
    width: 100%;
    transition: transform .5s ease;
}

.photo a:hover img {
    transform: scale(1.04);
}

.photo figcaption {
    margin-top: .7rem;
    font-size: .95rem;
    color: var(--ink-2);
}

.tilt a {
    transform: rotate(1.5deg);
    border: 8px solid #fff;
}

.stamp-line {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.6rem;
}

.stamp-line span {
    display: inline-block;
    padding: .35rem .8rem;
    border: 2px solid var(--brass);
    border-radius: 6px;
    color: var(--brass);
    font: 700 .82rem/1.3 var(--text);
    font-stretch: 120%;
    letter-spacing: .1em;
    text-transform: uppercase;
    transform: rotate(-1.5deg);
}

.stamp-line span:nth-child(2) {
    transform: rotate(1deg);
}

/* ---- what we buy: price tags ---- */

.buy {
    background:
        radial-gradient(50rem 24rem at 100% 0%, rgba(226, 192, 108, .1), transparent 60%),
        var(--slate);
}

.buy .section-head p:not(.eyebrow) {
    color: var(--muted);
}

.tags {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
    gap: .9rem;
}

.tags li {
    position: relative;
    padding: 1rem 1.1rem 1rem 2.6rem;
    border-radius: 6px 14px 14px 6px;
    background: linear-gradient(135deg, #2a2e33, #1e2125);
    border: 1px solid rgba(226, 192, 108, .35);
    font-weight: 600;
    line-height: 1.35;
    transition: transform .2s ease, border-color .2s ease;
}

.tags li::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 50%;
    width: .7rem;
    height: .7rem;
    margin-top: -.35rem;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: var(--stone);
}

.tags li:hover {
    transform: translateY(-3px) rotate(-.6deg);
    border-color: var(--gold);
}

.more {
    font-weight: 700;
    font-size: 1.1rem;
}

.more::after {
    content: " →";
}

/* ---- the loan band ---- */

.loan {
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px),
        var(--green);
    color: #eef3ea;
}

.loan .eyebrow {
    color: var(--green-lt);
}

.loan-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .loan-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
}

/* ---- bento ---- */

.bento-band {
    background: var(--stone);
}

.bento {
    display: grid;
    gap: 1rem;
}

.tile {
    position: relative;
    display: block;
    padding: clamp(1.5rem, 3vw, 2.4rem);
    border-radius: var(--radius);
    background: var(--raised);
    color: var(--cream);
    text-decoration: none;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

a.tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .8);
}

.tile h2 {
    font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.2rem);
}

.tile-go {
    display: inline-block;
    margin-top: .4rem;
    font-weight: 700;
    color: var(--gold-lt);
    text-decoration: underline;
    text-underline-offset: .2em;
}

.tile-go::after {
    content: " →";
}

.tile-warn {
    background:
        repeating-linear-gradient(-45deg, rgba(22, 25, 27, .07) 0 12px, transparent 12px 24px),
        linear-gradient(135deg, #f0d48a, #d8b25a);
    color: var(--ink);
}

.tile-warn .eyebrow,
.tile-warn .tile-go {
    color: var(--ink);
}

.tile-why {
    padding: 0;
    min-height: 20rem;
    display: flex;
    align-items: flex-end;
}

.tile-why img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.tile-why:hover img {
    transform: scale(1.05);
}

.tile-why div {
    position: relative;
    width: 100%;
    padding: clamp(1.5rem, 3vw, 2.4rem);
    background: linear-gradient(0deg, rgba(10, 11, 12, .95) 30%, rgba(10, 11, 12, .6) 75%, transparent);
}

.tile-bbb {
    background: #fff;
    color: var(--ink);
    display: grid;
    gap: 1rem;
    align-content: center;
}

.bbb-seal {
    display: block;
    max-width: 18rem;
}

.tile-bbb dl {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 2rem;
    margin: 0;
}

.tile-bbb dt {
    font-size: .9rem;
    color: #3d3d38;
}

.tile-bbb dd {
    margin: 0;
    font: 800 1.6rem/1.1 var(--display);
}

.tile-community {
    background:
        radial-gradient(30rem 16rem at 100% 100%, rgba(226, 192, 108, .18), transparent 60%),
        var(--raised);
}

@media (min-width: 760px) {
    .bento {
        grid-template-columns: repeat(6, 1fr);
    }

    .tile-warn { grid-column: span 4; }
    .tile-why { grid-column: span 2; grid-row: span 2; }
    .tile-bbb { grid-column: span 2; }
    .tile-community { grid-column: span 2; }
}

/* ---- stores ---- */

.store-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.store {
    background: var(--sheet);
    border: 1px solid #ddd4bf;
    border-radius: var(--radius);
    overflow: hidden;
    display: grid;
}

.store-body {
    padding: 1.4rem 1.5rem 1.5rem;
}

.store h3 {
    font-size: 1.6rem;
    margin-bottom: .6rem;
}

.store address {
    font-style: normal;
    color: var(--ink-2);
    margin-bottom: .8rem;
}

.store-phone {
    margin-bottom: .6rem;
}

.paper .store-phone a {
    font: 800 1.45rem/1.2 var(--display);
    color: var(--ink);
    text-decoration-color: var(--gold-dp);
    text-decoration-thickness: 3px;
}

.hours {
    margin: 0 0 .9rem;
    display: grid;
    gap: .1rem;
}

.hours div {
    display: flex;
    gap: .6rem;
}

.hours dt {
    font-weight: 700;
    min-width: 4.5rem;
}

.hours dd {
    margin: 0;
}

.store-map {
    margin: 0;
    font-weight: 600;
}

.store-photo {
    margin: 0;
}

.store-photo a {
    display: block;
    height: 100%;
}

.store-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 11;
}

@media (min-width: 700px) {
    .store-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .store-salem {
        grid-column: 1 / -1;
        grid-template-columns: 1.2fr 1fr;
    }
}

@media (min-width: 1080px) {
    .store-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .store-salem {
        grid-template-columns: 1.4fr 1fr;
    }
}

/* ---- inner pages ---- */

.page-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
    background:
        radial-gradient(50rem 22rem at 90% 0%, rgba(226, 192, 108, .15), transparent 60%),
        var(--stone);
    border-bottom: 1px solid rgba(226, 192, 108, .25);
}

.page-hero h1 {
    font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4rem);
    max-width: 52rem;
}

.page-hero .wrap {
    position: relative;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .28;
}

.page-hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 18, 20, .92) 20%, rgba(16, 18, 20, .55));
}

.page-hero-photo .wrap {
    z-index: 1;
}

.page-hero-warn {
    background:
        repeating-linear-gradient(-45deg, rgba(226, 192, 108, .07) 0 14px, transparent 14px 28px),
        var(--stone);
}

.pull {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    border-left: 4px solid var(--gold);
    max-width: 44rem;
}

.pull p {
    font: 600 clamp(1.25rem, 1rem + 1vw, 1.7rem)/1.35 var(--display);
    color: var(--gold-lt);
    margin: 0;
}

.big-phone {
    margin: 1rem 0 .6rem;
}

.big-phone a {
    font: 800 clamp(2rem, 1.4rem + 3vw, 3.4rem)/1 var(--display);
    color: var(--gold);
    text-decoration: none;
    letter-spacing: -.02em;
}

.big-phone a:hover {
    text-decoration: underline;
}

.dropcap::first-letter {
    float: left;
    font: 800 4.2rem/.85 var(--display);
    margin: .3rem .6rem 0 0;
    color: var(--brass);
}

/* the ledger of what we buy */

.buy-grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 900px) {
    .buy-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 4rem;
    }
}

.ledger {
    list-style: none;
    counter-reset: led;
    margin: 1.4rem 0 0;
    padding: 0;
    border-top: 2px solid var(--ink);
}

.ledger li {
    counter-increment: led;
    display: grid;
    grid-template-columns: 2.6rem 1fr;
    gap: 0 .6rem;
    padding: .85rem 0;
    border-bottom: 1px dashed #b9ad92;
}

.ledger li::before {
    content: counter(led, decimal-leading-zero);
    grid-row: span 2;
    font: 800 1.05rem/1.5 var(--display);
    color: var(--brass);
}

.ledger-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.ledger-note {
    grid-column: 2;
    color: var(--ink-2);
    font-size: .97rem;
}

.photo-stack {
    display: grid;
    gap: 1.2rem;
    align-content: start;
}

.photo-stack .photo:nth-child(2) {
    width: 85%;
    margin-left: auto;
}

/* facts */

.facts-band {
    background:
        radial-gradient(50rem 24rem at 0% 0%, rgba(226, 192, 108, .1), transparent 60%),
        var(--slate);
}

.facts {
    list-style: none;
    counter-reset: fact;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.facts li {
    counter-increment: fact;
    position: relative;
    padding: 1.2rem 1.3rem 1.2rem 4.2rem;
    border-radius: 14px;
    background: var(--raised);
    border: 1px solid var(--line);
}

.facts li::before {
    content: counter(fact);
    position: absolute;
    left: 1.2rem;
    top: 1rem;
    font: 800 2rem/1 var(--display);
    color: var(--gold);
}

.facts strong {
    color: var(--gold-lt);
}

@media (min-width: 900px) {
    .facts {
        grid-template-columns: 1fr 1fr;
    }
}

.thanks {
    margin-top: 2rem;
    font: 700 1.3rem/1.3 var(--display);
    color: var(--gold-lt);
}

/* the letter */

.letter {
    max-width: 44rem;
    margin-inline: auto;
    padding: clamp(1.6rem, 5vw, 3.4rem);
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 30px 60px -30px rgba(40, 30, 10, .45), 0 0 0 1px #e4dccb;
    font-size: 1.08rem;
}

.letter-from {
    font: 650 .8rem/1.3 var(--text);
    font-stretch: 125%;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brass);
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--ink);
    margin-bottom: 1.6rem;
}

.letter-sign {
    margin-top: 1.6rem;
    margin-bottom: 0;
}

.legal h2 {
    font-size: 1.5rem !important;
    margin-top: 2rem;
}

/* call band */

.callband {
    padding-block: clamp(2.5rem, 5vw, 4rem);
    background:
        linear-gradient(120deg, #f0d48a, #d6ad53 55%, #c09443);
    color: var(--ink);
}

.callband h2 {
    margin-bottom: .3rem;
}

.callband p {
    margin: 0;
}

.callband-row {
    display: grid;
    gap: 1.4rem;
    align-items: center;
}

.callband-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

.callband .btn-gold {
    background: var(--ink);
    color: var(--gold-lt);
    box-shadow: none;
}

.callband .btn-line {
    border-color: var(--ink);
    color: var(--ink);
}

.callband .btn-line:hover {
    background: rgba(22, 25, 27, .1);
}

@media (min-width: 900px) {
    .callband-row {
        grid-template-columns: 1fr auto;
    }
}

/* contact */

.write {
    background: var(--slate);
}

.write-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 900px) {
    .write-grid {
        grid-template-columns: 1fr 1.3fr;
        gap: 4rem;
    }
}

.form-card {
    padding: clamp(1.4rem, 4vw, 2.2rem);
    border-radius: var(--radius);
    background: var(--raised);
    border: 1px solid var(--line);
}

.contact-form > div {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    font-weight: 650;
    margin-bottom: .35rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: .8rem .9rem;
    border-radius: 10px;
    border: 1px solid #5a6068;
    background: var(--stone);
    color: var(--cream);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 3px solid var(--gold);
    outline-offset: 1px;
    border-color: var(--gold);
}

.contact-form textarea::placeholder {
    color: #9c968a;
}

.contact-form ul {
    margin: .3rem 0 0;
    padding-left: 1.2rem;
    color: #ffb4a8;
}

.form-hint {
    margin-top: .8rem;
    font-size: .92rem;
    color: var(--muted);
}

.contact-sent {
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
    border-radius: 12px;
    background: var(--green);
    color: #eef3ea;
}

.contact-sent strong {
    display: block;
}

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

.foot {
    background: #0b0c0d;
    color: var(--muted);
    padding-top: 3.5rem;
    border-top: 1px solid rgba(226, 192, 108, .3);
}

.foot a {
    color: var(--gold-lt);
}

.foot-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line);
}

.foot-brand img {
    width: 240px;
}

.foot-tag {
    margin: 0;
    font: 650 .85rem/1.3 var(--text);
    font-stretch: 125%;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
}

.foot-stores {
    list-style: none;
    padding: 2rem 0;
    margin-block: 0;
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
}

.foot-stores h2 {
    font-size: 1.2rem;
    color: var(--cream);
    margin-bottom: .4rem;
}

.foot-stores address {
    font-style: normal;
}

.foot-stores p {
    margin: .4rem 0 0;
}

.foot-phone {
    font-weight: 700;
    font-size: 1.1rem;
}

.foot-hours {
    font-size: .95rem;
}

.foot-meta {
    display: grid;
    gap: 1rem;
    padding-block: 1.4rem;
    border-top: 1px solid var(--line);
}

.foot-meta p {
    margin: 0;
}

.foot-meta nav {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.2rem;
}

.foot-bottom {
    padding-block: 1.2rem 2rem;
    border-top: 1px solid var(--line);
    font-size: .92rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .4rem 2rem;
}

.foot-bottom p {
    margin: 0;
}

/* ---- 404 ---- */

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    text-align: center;
    background:
        radial-gradient(40rem 24rem at 50% 20%, rgba(226, 192, 108, .16), transparent 60%),
        var(--stone);
}

.not-found > div {
    max-width: 36rem;
}

.not-found img {
    width: min(100%, 320px);
    margin: 0 auto 2rem;
}

/* ---- scroll reveals, only where the browser can tie them to the scroll ---- */

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .tags li,
        .tile,
        .store,
        .facts li,
        .ledger li,
        .figure-row li {
            animation: reveal linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 40%;
        }
    }
}

@keyframes reveal {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ---- lightbox: /js/lightbox.js opens a linked image enlarged over the page, in a <dialog> ----
   Paste this block into the site's css/site.css. The overlay is dark in every theme and brings its own
   colours and box sizing, so it does not depend on the rest of the stylesheet. To recolour it to the
   site, set these on .lightbox (or on :root): --lb-bg, --lb-text, --lb-accent (focus ring),
   --lb-accent-soft (hover). */

[data-lightbox] {
    cursor: zoom-in;
}

.lightbox,
.lightbox * {
    box-sizing: border-box;
}

html:has(.lightbox[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 68px 12px 14px;
    border: 0;
    background: var(--lb-bg, rgba(12, 14, 16, 0.95));
    color: var(--lb-text, #f2f2f2);
    color-scheme: dark;
    overscroll-behavior: contain;
}

.lightbox[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
}

.lightbox::backdrop {
    background: none;
}

.lightbox-stage {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.lightbox-stage img {
    display: block;
    max-width: none;
    border-radius: 4px;
    background: #fff;
}

.lightbox-caption {
    display: grid;
    place-items: center;
    min-height: 44px;
    max-width: none;
    margin: 0;
    padding: 0 56px;
    color: var(--lb-text, #f2f2f2);
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: center;
}

.lightbox-button {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lightbox-button:hover {
    border-color: #ffffff;
    background-color: var(--lb-accent-soft, rgba(255, 255, 255, 0.16));
}

.lightbox-button:focus-visible {
    outline: 3px solid var(--lb-accent, #ffffff);
    outline-offset: 3px;
    border-radius: 50%;
}

.lightbox-button[hidden] {
    display: none;
}

.lightbox-close {
    top: 12px;
    right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.lightbox-prev,
.lightbox-next {
    bottom: 14px;
}

.lightbox-prev {
    left: 12px;
    rotate: 180deg;
}

.lightbox-next {
    right: 12px;
}

@media (min-width: 760px) {
    .lightbox {
        padding: 24px 84px 18px;
    }

    .lightbox-caption {
        padding: 0;
    }

    .lightbox-prev,
    .lightbox-next {
        top: calc(50% - 22px);
        bottom: auto;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next,
    .lightbox-close {
        right: 20px;
    }

    .lightbox-close {
        top: 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lightbox[open] {
        animation: lightbox-in 0.2s ease;
    }
}

@keyframes lightbox-in {
    from {
        opacity: 0;
    }
}
