/* ##xchronusx
 * ============================================================
 *  Buds By Jas - site styles
 *  Synopsis : "midnight garden" theme for budsbyjas.com
 *  Notes    : velvet navy + ivory jasmine + silver sparkles, lifted
 *             straight off Jas's logo and business card. the paper
 *             panels (sage + blush) are her Instagram post colors.
 *             fonts are self-hosted so nothing phones home to google.
 *  Author   : Zachary Wright
 * ============================================================ */

/* ---------- fonts ---------- */
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Gaegu"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/gaegu-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Gaegu"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/gaegu-latin-700-normal.woff2") format("woff2"); }

/* ---------- tokens ---------- */
:root {
    --velvet: #1c202b;
    --velvet-deep: #14171f;
    --velvet-lift: #262b39;
    --ivory: #f1ece1;
    --ivory-dim: #d9d3c6;
    --silver: #c8c2b5;
    --silver-dim: #9d988e;
    --sage: #b9c9a0;
    --paper-sage: #a9c787;
    --paper-blush: #ebc9c3;
    --cocoa: #4a3532;

    --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
    --hand: "Gaegu", "Comic Neue", "Segoe Print", cursive;

    --wrap: 1120px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section: clamp(4.5rem, 10vw, 8rem);

    /* velvet grain: an svg noise tile, cheap and tiny */
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --fibers: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .18 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--ivory);
    background-color: var(--velvet);
    background-image:
        var(--grain),
        radial-gradient(ellipse 70% 50% at 18% 8%, rgba(70, 80, 108, .35), transparent 60%),
        radial-gradient(ellipse 60% 45% at 85% 55%, rgba(8, 10, 16, .55), transparent 60%),
        radial-gradient(ellipse 80% 40% at 30% 95%, rgba(52, 60, 82, .3), transparent 60%);
    background-attachment: scroll;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 4px; border-radius: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
.hero__tagline, .hand { text-wrap: balance; }
.hero__lead, p { text-wrap: pretty; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); 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; background: var(--ivory); color: var(--velvet); padding: .6rem 1rem; z-index: 50; }
.skip:focus { top: 1rem; }

.hand { font-family: var(--hand); font-weight: 400; letter-spacing: .04em; line-height: 1.35; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .55em;
    font-family: var(--serif); font-weight: 600; font-size: 1.15rem; letter-spacing: .02em;
    padding: .72em 1.35em; border-radius: 6px; text-decoration: none;
    background: var(--ivory); color: var(--velvet);
    border: 1px solid var(--ivory);
    transition: background-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--sage); border-color: var(--sage); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--ghost { background: transparent; color: var(--ivory); border-color: rgba(241, 236, 225, .45); }
.btn--ghost:hover { background: rgba(241, 236, 225, .08); border-color: var(--ivory); }
.btn--ink { background: var(--cocoa); color: var(--ivory); border-color: var(--cocoa); }
.btn--ink:hover { background: #2f2120; border-color: #2f2120; }

/* ---------- header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(22, 25, 34, .86);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(200, 194, 181, .14);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span { font-style: italic; font-size: 1.45rem; letter-spacing: .01em; }
.nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: 1.1rem; color: var(--ivory-dim); }
.nav a:hover { color: var(--ivory); text-decoration: underline; }
.site-header .btn { font-size: 1rem; padding: .5em 1.05em; }
.menu-toggle { display: none; }

@media (max-width: 900px) {
    .menu-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        width: 2.75rem; height: 2.75rem; border-radius: 6px;
        background: transparent; color: var(--ivory); border: 1px solid rgba(241, 236, 225, .3); cursor: pointer;
    }
    .menu-toggle svg { width: 1.3rem; height: 1.3rem; }
    .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--velvet-deep); border-bottom: 1px solid rgba(200, 194, 181, .14); display: none; }
    .nav.is-open { display: block; }
    .nav ul { flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1rem; }
    .nav a { display: block; padding: .7rem 0; font-size: 1.25rem; border-bottom: 1px solid rgba(200, 194, 181, .1); }
}
@media (max-width: 420px) {
    .brand span { font-size: 1.25rem; }
    .site-header .btn { padding: .5em .8em; }
}

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) 0 calc(var(--section) * .9); overflow: hidden; }
.hero__art { position: relative; width: min(600px, 92vw); margin: 0 auto; }
.hero__art img { width: 100%; animation: bloom-in 1.4s cubic-bezier(.2, .7, .2, 1) both; }
.hero__sparkles { position: absolute; inset: -6% -14%; pointer-events: none; }
.hero__sparkles svg { position: absolute; color: var(--silver); opacity: 0; animation: twinkle-in .9s ease-out forwards, twinkle 4.8s ease-in-out infinite; }
.hero__sparkles svg:nth-child(1) { top: 8%;  left: 2%;  width: 22px; animation-delay: .5s, 1.4s; }
.hero__sparkles svg:nth-child(2) { top: 30%; right: 0;  width: 16px; animation-delay: .7s, 2.3s; }
.hero__sparkles svg:nth-child(3) { top: 62%; left: 0;   width: 14px; animation-delay: .9s, 3.1s; }
.hero__sparkles svg:nth-child(4) { top: 86%; right: 8%; width: 20px; animation-delay: 1.1s, 1.9s; }
.hero__sparkles svg:nth-child(5) { top: 4%;  right: 14%; width: 12px; animation-delay: 1.3s, 2.7s; }
.hero__sparkles svg:nth-child(6) { top: 94%; left: 16%; width: 12px; animation-delay: 1.5s, 3.6s; }

.hero__tagline { font-style: italic; font-size: clamp(2rem, 4.6vw, 3.1rem); margin-top: .4rem; color: var(--ivory); animation: rise 1s .5s ease-out both; }
.hero__lead { max-width: 34em; margin: 1rem auto 2rem; color: var(--ivory-dim); font-size: clamp(1.2rem, 2vw, 1.4rem); animation: rise 1s .7s ease-out both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; animation: rise 1s .85s ease-out both; }

@keyframes bloom-in { from { opacity: 0; transform: scale(.94); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes twinkle-in { from { opacity: 0; transform: scale(.3) rotate(-30deg); } to { opacity: 1; transform: none; } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- section scaffolding ---------- */
.section { padding: calc(var(--section) * .55) 0; }
.hero + .section { padding-top: 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2.8rem, 6.5vw, 4.6rem); }
.section-head .hand { font-size: clamp(1.4rem, 2.4vw, 1.75rem); color: var(--sage); margin: 0; max-width: 24em; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- bunch of buds ---------- */
.buds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.75rem); align-items: start; }
.bud figure { margin: 0; }
.bud__photo {
    background: var(--ivory); padding: 8px; border-radius: 3px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 18px 40px -18px rgba(0, 0, 0, .75);
}
.bud__photo img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border-radius: 1px; }
.bud:nth-child(2) { margin-top: clamp(0rem, 5vw, 3.5rem); }
.bud h3 { font-size: 2.1rem; margin-top: 1.3rem; display: flex; align-items: baseline; gap: .5rem; }
.bud h3 .mark { font-size: 1.3rem; color: var(--silver); }
.bud p { color: var(--ivory-dim); margin: .6rem 0 .5rem; font-size: 1.2rem; }
.bud .hand { color: var(--sage); font-size: 1.4rem; margin: 0; }
.swatches { display: flex; gap: .45rem; margin-top: .7rem; padding: 0; list-style: none; }
.swatches li { width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1.5px rgba(241, 236, 225, .55); }
.buds-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.5rem; margin-top: clamp(3rem, 6vw, 4.5rem); text-align: center; }
.buds-cta .hand { font-size: 1.9rem; color: var(--ivory); margin: 0; }
@media (max-width: 860px) {
    .buds { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; gap: 3.5rem; }
    .bud:nth-child(2) { margin-top: 0; }
}

/* ---------- paper panels (the details / follow along) ---------- */
.paper { color: var(--cocoa); background-image: var(--fibers); }
.paper--sage { background-color: var(--paper-sage); }
.paper--blush { background-color: var(--paper-blush); }
.paper :focus-visible { outline-color: var(--cocoa); }

.details { border-radius: 4px; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4.5rem); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); position: relative; }
.details h2 { font-family: var(--hand); font-weight: 400; font-size: clamp(2.6rem, 6vw, 3.6rem); letter-spacing: .14em; text-align: center; display: flex; align-items: center; justify-content: center; gap: 1rem; }
.details h2 svg { width: clamp(1.8rem, 4vw, 2.6rem); height: auto; color: var(--cocoa); flex: none; }
.details__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem clamp(2rem, 5vw, 4.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
.offer { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.offer li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 1rem; align-items: start; }
.offer svg { width: 2.2rem; height: 2.2rem; color: var(--cocoa); margin-top: .15rem; }
.offer strong { display: block; font-family: var(--hand); font-weight: 700; font-size: 1.6rem; letter-spacing: .05em; line-height: 1.2; }
.offer span { font-size: 1.2rem; line-height: 1.45; display: block; margin-top: .2rem; }

.prices { background: rgba(255, 255, 255, .26); border: 1.5px solid rgba(74, 53, 50, .35); border-radius: 4px; padding: 1.6rem 1.6rem 1.3rem; align-self: start; }
.prices h3 { font-family: var(--hand); font-weight: 700; font-size: 1.7rem; letter-spacing: .06em; margin-bottom: .6rem; }
.prices table { width: 100%; border-collapse: collapse; font-size: 1.3rem; }
.prices td { padding: .55rem 0; border-bottom: 1px dashed rgba(74, 53, 50, .35); }
.prices td:last-child { text-align: right; font-weight: 600; font-variant-numeric: lining-nums; }
.prices .fine { font-size: 1.08rem; margin: 1rem 0 0; line-height: 1.45; }
.details__foot { margin-top: clamp(2rem, 4vw, 3rem); display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; border-top: 1.5px dashed rgba(74, 53, 50, .35); padding-top: 1.6rem; }
.details__foot p { margin: 0; font-size: 1.2rem; }
.details__foot .hand { font-size: 1.45rem; }
@media (max-width: 860px) { .details__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
    .details h2 { letter-spacing: .06em; gap: .6rem; font-size: 2.4rem; }
    .details h2 svg { width: 1.3rem; }
    .offer strong { font-size: 1.45rem; letter-spacing: .03em; }
    .hero__tagline { font-size: 1.85rem; }
}

/* ---------- customs ---------- */
.customs { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.customs h2 { font-size: clamp(2.8rem, 6.5vw, 4.6rem); margin-bottom: 1.3rem; }
.customs p { color: var(--ivory-dim); max-width: 30em; }
.customs .hand { color: var(--sage); font-size: 1.6rem; margin: 1.4rem 0 1.8rem; }
.customs__photos { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); align-items: start; }
.customs__photos figure { margin: 0; }
.customs__photos .bud__photo { padding: 7px; }
.customs__photos figcaption { font-family: var(--hand); font-size: 1.25rem; color: var(--silver); margin-top: .5rem; letter-spacing: .04em; }
.customs__photos { column-gap: clamp(.9rem, 2vw, 1.4rem); }
.customs__photos figure:first-child { grid-column: 1 / span 7; grid-row: 1; }
.customs__photos figure:last-child { grid-column: 8 / span 5; grid-row: 1; margin-top: 30%; }
@media (max-width: 860px) {
    .customs { grid-template-columns: 1fr; }
    .customs__photos { max-width: 34rem; }
}

/* ---------- how to order ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem clamp(1.25rem, 3vw, 2.5rem); position: relative; counter-reset: step; }
.steps::before { /* the stem that ties the buds together */
    content: ""; position: absolute; left: 0; right: 4%; top: calc(6.75rem - 1px); height: 2px;
    background: linear-gradient(90deg, transparent, var(--sage) 8%, var(--sage) 92%, transparent); opacity: .55;
}
.steps li { position: relative; counter-increment: step; }
.steps .stage { width: 4.5rem; height: 6.75rem; color: var(--ivory); display: block; margin-bottom: 1.4rem; position: relative; }
.steps .stage .leaf { color: var(--sage); }
.steps h3 { font-size: 1.75rem; display: flex; gap: .55rem; align-items: baseline; }
.steps h3::before { content: counter(step); font-family: var(--hand); font-size: 1.5rem; color: var(--sage); }
.steps p { color: var(--ivory-dim); font-size: 1.15rem; margin: .5rem 0 0; }
.order-note { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: 1.3rem 1.5rem; border: 1px solid rgba(200, 194, 181, .3); border-radius: 4px; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.order-note p { margin: 0; color: var(--ivory-dim); max-width: 44em; font-size: 1.15rem; }
@media (max-width: 900px) {
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps::before { display: none; }
}
@media (max-width: 520px) {
    .steps { grid-template-columns: 1fr; gap: 1.6rem; }
    .steps li { display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; }
    .steps .stage { width: 3rem; height: 4.5rem; margin: 0; grid-row: span 2; }
}

/* ---------- follow along ---------- */
.follow { padding: var(--section) 0; }
.follow__top { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.qr { background: #fff; padding: 1.1rem; border-radius: 6px; width: clamp(12rem, 22vw, 15rem); box-shadow: 0 16px 34px -18px rgba(74, 53, 50, .6); display: block; }
.qr img { width: 100%; }
.follow h2 { font-family: var(--hand); font-weight: 400; font-size: clamp(2.4rem, 5.6vw, 3.6rem); letter-spacing: .1em; line-height: 1.15; }
.follow .lede { font-family: var(--hand); font-size: clamp(1.35rem, 2.4vw, 1.65rem); letter-spacing: .08em; margin: 1rem 0 1.6rem; max-width: 26em; }
.follow .handle { font-size: 1.5rem; font-weight: 600; }
.feed { margin-top: clamp(3rem, 6vw, 4.5rem); }
.feed h3 { font-size: 1.9rem; margin-bottom: 1.1rem; }
.feed ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.25rem); }
.feed a { display: block; border-radius: 4px; overflow: hidden; box-shadow: 0 14px 28px -18px rgba(74, 53, 50, .8); }
.feed img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; transition: transform .35s ease; }
.feed a:hover img { transform: scale(1.03); }
@media (max-width: 760px) {
    .follow__top { grid-template-columns: 1fr; }
    .feed ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- footer ---------- */
.site-footer { padding: clamp(4rem, 8vw, 6rem) 0 2.5rem; text-align: center; }
.site-footer .logo { width: min(260px, 60vw); margin: 0 auto 1rem; }
.site-footer .tag { font-style: italic; font-size: 1.6rem; margin: 0 0 1.8rem; }
.contact { list-style: none; padding: 0; margin: 0 auto 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 2.4rem; font-size: 1.2rem; }
.contact span { color: var(--silver-dim); margin-right: .35rem; }
.site-footer .hand { color: var(--sage); font-size: 1.5rem; margin: 2.2rem 0 .4rem; }
.legal { color: var(--silver-dim); font-size: 1rem; margin: 0; }

/* ---------- motion off for folks who asked ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .hero__sparkles svg { opacity: 1; }
    html { scroll-behavior: auto; }
}
/* ##xchronusx */
