/* =========================================================================
   Victory Gin Data, LLC
   One stylesheet. No framework, no build step.
   ========================================================================= */

:root {
    --ink:        #16191f;
    --ink-2:      #3d454f;
    --ink-3:      #6b7280;
    --paper:      #ffffff;
    --paper-2:    #f6f3ee;   /* warm off-white for alternating bands */
    --line:       #e4e0d8;
    --line-2:     #d7d2c7;
    --accent:     #9a3412;   /* burnt sienna */
    --accent-ink: #fdf6ef;
    --accent-dk:  #7c2d12;
    --ok:         #1a7f5a;
    --ok-bg:      #e9f6f0;
    --warn:       #9a3412;
    --warn-bg:    #fbeee6;

    --maxw:       1080px;
    --measure:    64ch;
    --radius:     6px;

    --font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", sans-serif;
    --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 2.9rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 1.95rem); margin-top: 0; }
h3 { font-size: 1.2rem; font-family: var(--font-sans); font-weight: 650; }

p { margin: 0 0 1.1em; }
a { color: var(--accent-dk); text-underline-offset: 2px; }
a:hover { color: var(--accent); }

code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0.08em 0.35em;
}

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

/* ---- Layout primitives ------------------------------------------------- */

.wrap {
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 40px);
}

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }

.section { padding-block: clamp(48px, 7vw, 84px); }
.band {
    padding-block: clamp(48px, 7vw, 84px);
    background: var(--paper-2);
    border-block: 1px solid var(--line);
}

.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 650;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--accent-dk);
    margin: 0 0 1rem;
}

.lede { font-size: 1.2rem; color: var(--ink-2); max-width: var(--measure); }
.muted { color: var(--ink-3); }
.fine { font-size: 0.95rem; color: var(--ink-3); }

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--ink); color: #fff; padding: 0.6em 1em; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---- Buttons --------------------------------------------------------- */

.btn {
    display: inline-block;
    font: inherit;
    font-weight: 600;
    line-height: 1.1;
    padding: 0.78em 1.4em;
    border-radius: var(--radius);
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dk); border-color: var(--accent-dk); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

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

.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " \2192"; }

/* ---- Header --------------------------------------------------------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(1.4) blur(6px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
    min-height: 64px;
}
.brand {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem;
    color: var(--ink); text-decoration: none;
}
.brand-mark {
    display: inline-grid; place-items: center;
    width: 30px; height: 30px;
    background: var(--accent); color: var(--accent-ink);
    border-radius: 5px;
    font-family: var(--font-serif); font-weight: 700; font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a {
    font-family: var(--font-sans);
    font-size: 0.98rem; font-weight: 550;
    color: var(--ink-2); text-decoration: none;
    padding-block: 0.4rem;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.site-nav .nav-cta {
    border: 1px solid var(--line-2); border-radius: var(--radius);
    padding: 0.5rem 1rem; color: var(--ink);
}
.site-nav .nav-cta:hover { border-color: var(--ink); }

.nav-toggle {
    display: none;
    width: 42px; height: 38px;
    background: transparent; border: 1px solid var(--line-2); border-radius: var(--radius);
    cursor: pointer;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 18px; height: 2px; margin-inline: auto;
    background: var(--ink); content: "";
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before { position: absolute; top: -6px; left: 0; }
.nav-toggle-bar::after  { position: absolute; top: 6px; left: 0; }

/* ---- Hero & page head --------------------------------------------- */

.hero { padding-block: clamp(56px, 9vw, 110px); }
.hero h1 { max-width: 16ch; }

.page-head {
    padding-block: clamp(44px, 7vw, 76px) clamp(20px, 3vw, 32px);
    border-bottom: 1px solid var(--line);
    background: var(--paper-2);
}
.page-head h1 { max-width: 20ch; }

/* ---- Cards --------------------------------------------------------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
    margin-top: 2rem;
}
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1.5rem 1.6rem;
}
.band .card { background: var(--paper); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* ---- Feature list ------------------------------------------------- */

.feature-list { list-style: none; margin: 1.8rem 0 0; padding: 0; }
.feature-list li {
    padding: 1rem 0;
    border-top: 1px solid var(--line);
    max-width: var(--measure);
}
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list.two-col {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0 2.5rem; max-width: none;
}
.feature-list.two-col li { max-width: none; }

/* ---- Quotes ------------------------------------------------------- */

.quote { margin: 1.6rem 0 0; padding-left: 1.2rem; border-left: 3px solid var(--accent); }
.quote blockquote { margin: 0 0 0.4rem; font-size: 1.15rem; font-style: italic; color: var(--ink); }
.quote figcaption { font-size: 0.95rem; color: var(--ink-3); }

/* ---- CTA band --------------------------------------------------- */

.cta-band {
    padding-block: clamp(52px, 8vw, 88px);
    background: var(--ink);
    color: #eef0f2;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c8ccd2; max-width: 52ch; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; }

/* ---- Forms ------------------------------------------------------ */

.buy-form {
    margin: 2rem 0 1rem;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-2);
}
.buy-form-row { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.buy-form label { font-weight: 600; }
.buy-form input[type="number"] { width: 5.5rem; }
.buy-form-total { font-weight: 700; font-size: 1.05rem; }

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 15rem;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.contact-form { display: grid; gap: 0.35rem; max-width: 34rem; }
.contact-form label { font-weight: 600; margin-top: 0.7rem; }
.contact-form button { margin-top: 1.2rem; justify-self: start; }

input[type="text"], input[type="email"], input[type="number"], textarea {
    font: inherit;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    padding: 0.6em 0.7em;
    width: 100%;
}
input:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
textarea { resize: vertical; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-aside h2 { font-family: var(--font-sans); font-size: 1.05rem; margin-bottom: 0.2rem; margin-top: 1.4rem; }
.contact-aside h2:first-child { margin-top: 0; }

/* ---- Notices -------------------------------------------------- */

.notice {
    border: 1px solid var(--line-2);
    border-left: 3px solid var(--ink-3);
    background: var(--paper-2);
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    margin: 0 0 1.5rem;
}
.notice p:last-child { margin-bottom: 0; }
.notice-ok   { border-left-color: var(--ok);   background: var(--ok-bg); }
.notice-warn { border-left-color: var(--warn); background: var(--warn-bg); }

/* ---- Footer ------------------------------------------------- */

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--paper-2);
    padding-block: 2.5rem;
    font-size: 0.95rem;
}
.footer-inner { display: grid; gap: 1.2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.8rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-nav a { color: var(--ink-2); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }
.footer-legal { margin: 0; font-size: 0.85rem; }

/* ---- Responsive ------------------------------------------- */

@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 0.5rem clamp(20px, 5vw, 40px) 1rem;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding-block: 0.7rem; border-top: 1px solid var(--line); }
    .site-nav a[aria-current="page"] { box-shadow: none; color: var(--accent-dk); }
    .site-nav .nav-cta { margin-top: 0.6rem; text-align: center; }
    .header-inner { position: relative; }

    .contact-grid { grid-template-columns: 1fr; }
    .contact-aside { border-top: 1px solid var(--line); padding-top: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
