/* BikeArtistry — gallery stylesheet */
:root {
  --bg: #faf7f1;
  --ink: #211d18;
  --muted: #6f6759;
  --line: #e5ddd0;
  --accent: #b07d10;
  --accent-ink: #8a6009;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3, .wordmark { font-family: var(--serif); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: .5rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.15rem; }

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .25rem .75rem; padding-top: .9rem; padding-bottom: .9rem;
}
.wordmark { font-size: 1.45rem; text-decoration: none; letter-spacing: .01em; }
.wordmark span { color: var(--accent-ink); font-style: italic; }
.site-nav { display: flex; gap: 1.4rem; }
.site-nav a {
  text-decoration: none; font-size: .95rem; color: var(--muted);
  padding: .15rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* Hero */
.hero { position: relative; min-height: 62vh; display: grid; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: relative; align-self: end; width: 100%;
  padding: 6rem 1.5rem 3.5rem; text-align: center; color: #fff;
  background: linear-gradient(to top, rgba(22, 18, 12, .72), rgba(22, 18, 12, 0));
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
}
.hero-overlay h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.hero-overlay p { font-size: clamp(1.05rem, 2.2vw, 1.35rem); font-style: italic; margin: .3rem 0 1.5rem; }

/* Buttons */
.button {
  display: inline-block; background: var(--ink); color: #fff;
  padding: .7rem 1.5rem; text-decoration: none; font-size: .95rem;
  letter-spacing: .03em; border: 1px solid var(--ink);
  transition: background .15s, color .15s;
}
.button:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.hero-overlay .button { background: rgba(255,255,255,.94); color: var(--ink); border-color: transparent; text-shadow: none; }
.hero-overlay .button:hover { background: #fff; }

/* Sections */
.section { padding: 3.5rem 1.25rem; }
.section-narrow { max-width: 640px; }
.center { text-align: center; }
.lede { color: var(--muted); font-size: 1.1rem; max-width: 46rem; margin-bottom: 2rem; }

/* Cards / grid */
.grid {
  display: grid; gap: 2rem 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.grid-posts { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { text-decoration: none; }
.card-media {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--line); margin-bottom: .8rem;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.035); }
.card h3 { margin-bottom: .15rem; }
.card:hover h3 { color: var(--accent-ink); }
.price { color: var(--muted); }
.price-lg { font-size: 1.35rem; color: var(--ink); margin-bottom: 1.25rem; }

.badge {
  position: absolute; top: .75rem; left: .75rem; z-index: 1;
  background: var(--ink); color: #fff; font-size: .75rem;
  letter-spacing: .08em; text-transform: uppercase; padding: .25rem .6rem;
}
.badge-inline { position: static; margin-right: .4rem; }

.post-date { color: var(--muted); font-size: .85rem; margin-bottom: .35rem; }
.post-excerpt { color: var(--muted); font-size: .95rem; }
.card-post .card-media { aspect-ratio: 3 / 2; }

/* Product page */
.product { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
.product-media img { width: 100%; border: 1px solid var(--line); }
.product-info p { margin-bottom: 1rem; }
.product-info .button { margin-bottom: .5rem; }
.hint { color: var(--muted); font-size: .9rem; }
.sold-note { color: var(--muted); }
.back { color: var(--muted); text-decoration: none; font-size: .95rem; }
.back:hover { color: var(--ink); }
@media (max-width: 760px) {
  .product { grid-template-columns: 1fr; }
}

/* Article */
.article { max-width: 720px; }
.article h1 { margin-bottom: 1.5rem; }
.article-hero { margin-bottom: 1.75rem; border: 1px solid var(--line); }
.article p { margin-bottom: 1.1rem; }

/* Contact */
.contact-sig { margin-top: 2.5rem; font-family: var(--serif); font-size: 1.2rem; }
.contact-sig span { font-family: var(--sans); font-size: .9rem; color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 3rem;
  padding: 2.5rem 0 3rem; color: var(--muted); font-size: .92rem; text-align: center;
}
.footer-brand { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }
.site-footer p { margin-bottom: .4rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.footer-fine { margin-top: 1rem; font-size: .8rem; }
