/* Hickory Road Trading Co. — site styles */
:root {
  --ink: #221a13;
  --bark: #3a2a1d;
  --walnut: #5b3f28;
  --hickory: #9a6331;
  --amber: #d08a2e;
  --amber-dark: #b0711d;
  --cream: #f5efe3;
  --paper: #fbf8f2;
  --line: #e4dacb;
  --muted: #6e6153;
  --pine: #2e4637;
  --fb: #1877f2;
  --ebay: #2a2a2a;
  --ok: #2f6b45;
  --danger: #a23a2a;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(34, 26, 19, .06), 0 8px 24px rgba(34, 26, 19, .08);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --logo-leaf: #f5efe3;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--walnut); text-underline-offset: 3px; }
a:hover { color: var(--hickory); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code { background: var(--cream); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .8em 1.35em; border-radius: 999px; border: 2px solid transparent;
  font: 600 .98rem/1.1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: #1d1309; }
.btn-primary:hover { background: #e19a3a; color: #1d1309; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--bark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--walnut); color: var(--ink); }
.btn-ghost-light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55); color: #fff; backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn-fb { background: var(--fb); color: #fff; }
.btn-fb:hover { background: #0f63d6; color: #fff; }
.btn-danger { background: transparent; border-color: #e2b9b0; color: var(--danger); }
.btn-danger:hover { background: #fbeeeb; color: var(--danger); }
.btn-small { padding: .5em .95em; font-size: .86rem; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--walnut); white-space: nowrap; }
.link-arrow:hover { color: var(--hickory); }

/* Header */
.announce { background: var(--pine); color: #f1ead9; text-align: center; padding: .55em 1em; font-size: .92rem; font-weight: 500; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 242, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--bark); }
.logo-mark { width: 42px; height: 42px; flex: none; color: var(--bark); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.24rem; color: var(--bark); letter-spacing: .06em; text-transform: uppercase; font-variation-settings: "opsz" 144; }
.brand-logo { display: block; height: 54px; width: auto; }
.brand-light .brand-logo { height: 56px; }
@media (max-width: 420px) { .brand-logo { height: 46px; } }
.brand-sub { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--hickory); font-weight: 600; margin-top: 4px; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) { padding: .55em .85em; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .97rem; }
.site-nav a:not(.btn):hover { background: var(--cream); }
.site-nav a[aria-current="page"] { background: var(--cream); color: var(--walnut); }
.site-nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 20px 18px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .8em .6em; border-radius: 8px; }
  .site-nav .btn { margin: 8px 0 0; }
}

/* Eyebrows */
.eyebrow { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: #f0cf98; margin-bottom: 1em; }
.eyebrow-dark { color: var(--hickory); }

/* Hero */
.hero { position: relative; isolation: isolate; color: #fff; min-height: min(86vh, 760px); display: flex; align-items: flex-end; overflow: hidden; background: var(--bark); }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 30% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(90deg, rgba(25, 17, 10, .86) 0%, rgba(25, 17, 10, .62) 42%, rgba(25, 17, 10, .1) 78%),
    linear-gradient(0deg, rgba(25, 17, 10, .55) 0%, rgba(25, 17, 10, 0) 45%);
}
.hero-inner { position: relative; z-index: 1; padding: 120px 0 84px; max-width: var(--wrap); }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: .35em; }
.hero-text { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 50ch; color: #efe6d6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
@media (max-width: 700px) {
  .hero { min-height: 640px; }
  .hero::after { background: linear-gradient(0deg, rgba(25,17,10,.92) 0%, rgba(25,17,10,.65) 55%, rgba(25,17,10,.25) 100%); }
  .hero-inner { padding: 160px 0 48px; }
}

/* Trust strip */
.trust { background: var(--ink); color: #e9dfcf; }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 22px 0; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item strong { display: block; color: #fff; font-weight: 600; font-size: .98rem; }
.trust-item span { font-size: .88rem; color: #c9bba6; }
.trust-icon { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(208, 138, 46, .18); color: #f2b860; font-size: 1.05rem; font-weight: 700; }
@media (max-width: 900px) { .trust-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust-row { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding-top: 28px; }
.section-tint { background: var(--cream); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-head h2 { margin: 0; }
.section-head .eyebrow { margin-bottom: .6em; }
.grid { display: grid; gap: 22px; }
.listing-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* Listing cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.listing-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d8c9b3; }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--cream); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.listing-card:hover .card-media img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.card-dept { margin: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.card-title { font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; line-height: 1.35; margin: 0; color: var(--ink); }
.card-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: auto; padding-top: 6px; }
.card-price { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--ink); }
.card-price-ask { font-family: var(--font-body); font-size: .95rem; color: var(--muted); }
.price-label { font-family: var(--font-body); font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card-meta { font-size: .85rem; color: var(--danger); font-weight: 600; }
.card-cta { font-size: .9rem; font-weight: 600; color: var(--walnut); }
.listing-card:hover .card-cta { color: var(--hickory); }

.badge { position: absolute; left: 12px; top: 12px; padding: .38em .7em; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .02em; color: #fff; background: var(--ebay); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.badge-facebook { background: var(--fb); }
.badge-auction { background: var(--danger); }
.badge-static { position: static; box-shadow: none; display: inline-block; }
.badge-sm { font-size: .68rem; padding: .25em .6em; }

/* Departments */
.dept-grid { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .dept-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .dept-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .dept-grid { grid-template-columns: 1fr; } }
.dept-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; text-decoration: none; color: #fff; isolation: isolate; background: var(--bark); }
.dept-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; z-index: -2; }
.dept-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(25,17,10,.92) 8%, rgba(25,17,10,.15) 62%); }
.dept-card:hover img { transform: scale(1.05); }
.dept-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.dept-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.15; }
.dept-blurb { font-size: .86rem; color: #e7dccb; line-height: 1.4; }
.dept-count { margin-top: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #f2b860; }
@media (max-width: 440px) { .dept-card { aspect-ratio: 16 / 10; } }

/* Pledge */
.pledge-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.pledge-media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pledge-media img { width: 100%; height: auto; }
.pledge blockquote { margin: 0 0 .7em; font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2; font-weight: 600; color: var(--ink); }
.pledge blockquote::before { content: "“"; display: block; font-size: 2.4em; line-height: .5; height: .45em; color: var(--amber); }
@media (max-width: 860px) { .pledge-grid { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.section-tint .step { background: #fff; }
.step-num { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #f2b860; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-bottom: 16px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--bark); }
.cta-bg, .cta-bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.cta-bg img { object-fit: cover; object-position: center 60%; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(25,17,10,.9), rgba(25,17,10,.55)); }
.cta-inner { padding: clamp(64px, 9vw, 120px) 0; max-width: var(--wrap); }
.cta-inner h2 { color: #fff; max-width: 18ch; }
.cta-inner p { color: #e7dccb; max-width: 52ch; font-size: 1.1rem; }

/* Page heroes */
.page-hero { padding: clamp(44px, 6vw, 80px) 0 clamp(24px, 4vw, 48px); background: var(--cream); border-bottom: 1px solid var(--line); }
.page-hero-compact { padding-bottom: 36px; }
.page-hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; margin: 0; }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.page-hero-img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: 1fr; } }

/* Listings page */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { padding: .5em 1em; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .93rem; }
.chip:hover { border-color: var(--walnut); color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field-grow { flex: 1 1 260px; }
.field-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
input[type="text"], input[type="search"], input[type="url"], input[type="email"], input[type="password"], select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #d6c9b5; border-radius: 10px; padding: .7em .85em; width: 100%;
}
select { padding-right: 2em; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--amber); outline-offset: 0; border-color: var(--amber); }
.result-count { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 36px; color: var(--muted); }
.empty { text-align: center; background: #fff; border: 1px dashed #d6c9b5; border-radius: var(--radius); padding: 48px 24px; }
.empty p { color: var(--muted); max-width: 50ch; margin-inline: auto; }
.empty .hero-actions { justify-content: center; }

/* About / FAQ */
.prose-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.prose p { font-size: 1.1rem; }
.prose p:first-child::first-letter { font-family: var(--font-display); float: left; font-size: 3.4em; line-height: .9; padding: .06em .1em 0 0; color: var(--hickory); font-weight: 700; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: sticky; top: 96px; }
.side-card h2 { font-size: 1.4rem; }
.side-card dl { margin: 0 0 1em; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.side-card dt { font-weight: 600; color: var(--muted); font-size: .9rem; }
.side-card dd { margin: 0; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.two-up img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .prose-grid, .two-up { grid-template-columns: 1fr; } .side-card { position: static; } }
.buy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.buy-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.buy-card h2 { margin-top: 14px; font-size: 1.7rem; }
.buy-card p { color: var(--muted); }
@media (max-width: 760px) { .buy-grid { grid-template-columns: 1fr; } }
.faq-wrap { max-width: 820px; }
.faq { border-top: 1px solid var(--line); margin: 24px 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--hickory); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding: 0 0 20px; margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #cbbda8; padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: #ecdfca; text-decoration: none; }
.site-footer a:hover { color: #f2b860; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.brand-light .brand-name { color: var(--cream); }
.brand-light .logo-mark { color: var(--cream); --logo-leaf: var(--bark); }
.footer-brand p { margin-top: 16px; max-width: 36ch; }
.footer-h { font-family: var(--font-body); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: #8f8170; font-weight: 600; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-social a { display: inline-flex; align-items: center; gap: 10px; }
.footer-social svg { width: 20px; height: 20px; flex: none; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 48px; padding-top: 22px; border-top: 1px solid #3a2f25; font-size: .82rem; color: #8f8170; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
