:root {
  --cream: #f3ebe0;
  --paper: #fbf6ee;
  --ink: #2a2218;
  --sand: #6f6054;
  --clay: #b44732;
  --clay-dark: #933a29;
  --line: #e2d4c3;
  --display: "Fraunces", "Iowan Old Style", Palatino, serif;
  --sans: "Figtree", "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
  --radius: 1.25rem;
  --shadow: 0 0 0 1px rgb(42 34 24 / 0.08), 0 1px 2px -1px rgb(42 34 24 / 0.08), 0 10px 28px -16px rgb(42 34 24 / 0.28);
  --shadow-hover: 0 0 0 1px rgb(42 34 24 / 0.12), 0 2px 6px -2px rgb(42 34 24 / 0.12), 0 16px 32px -16px rgb(42 34 24 / 0.32);
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
html, body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); }
body { min-height: 100dvh; display: flex; flex-direction: column; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 4.4vw, 3.75rem); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
p { text-wrap: pretty; }
button:not(:disabled), [role="button"]:not(:disabled) { cursor: pointer; }
::selection { background: color-mix(in oklab, var(--clay) 28%, transparent); color: var(--ink); }

.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgb(226 212 195 / 0.8); background: rgb(243 235 224 / 0.9); backdrop-filter: blur(12px); }
.bar { max-width: 72rem; margin: 0 auto; height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0 1rem; }
@media (min-width: 640px) { .bar { padding: 0 1.5rem; } }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; min-width: 0; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mark { width: 2rem; height: 2rem; color: var(--clay); flex-shrink: 0; }
.nav { display: none; align-items: center; gap: 0.25rem; }
.nav a { display: inline-flex; height: 2.75rem; align-items: center; border-radius: 999px; padding: 0 1rem; text-decoration: none; font-size: 0.9rem; font-weight: 500; color: var(--sand); }
.nav a:hover, .nav a.active { background: var(--paper); color: var(--ink); }
.menu-btn { width: 2.75rem; height: 2.75rem; border: 0; border-radius: 999px; background: transparent; display: grid; place-items: center; gap: 5px; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .15s; }
.menu-btn.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
@media (min-width: 768px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
}
@media (max-width: 767px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 4rem; flex-direction: column; align-items: stretch; gap: 0.25rem; padding: 0.75rem 1rem 1rem; background: var(--cream); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { height: 2.75rem; }
}

main { flex: 1; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } }
.page { padding-top: 2.5rem; padding-bottom: 4rem; }
.eyebrow { margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--clay); }
.lede { margin: 1rem 0 0; max-width: 28rem; font-size: 1.05rem; line-height: 1.65; color: var(--sand); }
.lede.narrow { max-width: 36rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border-radius: 999px; font-weight: 500; text-decoration: none; border: 0; font-family: inherit; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:active { transform: scale(0.96); }
.btn.primary { background: var(--clay); color: var(--paper); height: 3rem; padding: 0 1.5rem; font-size: 1rem; }
.btn.primary:hover { background: var(--clay-dark); }
.btn.outline { background: var(--paper); color: var(--ink); height: 3rem; padding: 0 1.5rem; box-shadow: var(--shadow); }
.btn.outline:hover { box-shadow: var(--shadow-hover); }
.btn.wide { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 1.5rem; color: var(--clay); font-size: 0.9rem; font-weight: 500; text-decoration: none; }
.text-link:hover { color: var(--clay-dark); }
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: inline-flex; margin-top: 0; } .show-sm { display: none; } }

.hero { max-width: 72rem; margin: 0 auto; padding: 3rem 1rem; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 640px) { .hero { padding: 3rem 1.5rem; } }
@media (min-width: 1024px) { .hero { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; padding: 5rem 1.5rem; } .hero h1 { font-size: 3.75rem; } }
.hero-photo { display: block; overflow: hidden; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.hero-photo img { width: 100%; outline: 1px solid rgb(42 34 24 / 0.1); outline-offset: -1px; }

.band { border-top: 1px solid var(--line); background: rgb(251 246 238 / 0.5); }
.band .wrap { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.section-head h2 { margin-top: 0.5rem; }
.grid-3 { margin-top: 2rem; display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }

.card { display: block; text-decoration: none; color: inherit; }
.card.masonry-item, .masonry .card { margin-bottom: 0.75rem; break-inside: avoid; }
@media (min-width: 1024px) { .masonry .card { margin-bottom: 1rem; } }
.frame { overflow: hidden; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.card:hover .frame { box-shadow: var(--shadow-hover); }
.frame img { width: 100%; outline: 1px solid rgb(42 34 24 / 0.1); outline-offset: -1px; transition: transform .3s; }
.card:hover .frame img { transform: scale(1.02); }
.grid-card .frame img { aspect-ratio: 4 / 5; object-fit: cover; }
figcaption { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.15rem; padding: 0 2px; }
.card-title { font-family: var(--display); font-weight: 600; font-size: 0.95rem; }
.card-cat { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sand); }

.maker { max-width: 72rem; margin: 0 auto; padding: 4rem 1rem; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 640px) { .maker { padding: 4rem 1.5rem; } }
@media (min-width: 1024px) { .maker { grid-template-columns: 1fr 1fr; } }
.maker .btn { margin-top: 1.5rem; }
.maker-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.maker-photos img { height: 14rem; width: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); outline: 1px solid rgb(42 34 24 / 0.1); outline-offset: -1px; }
.maker-photos img:last-child { margin-top: 2rem; }
@media (min-width: 640px) { .maker-photos img { height: 18rem; } }

.filters { display: flex; gap: 0.5rem; overflow-x: auto; margin-top: 2rem; padding-bottom: 0.25rem; }
.chip { height: 2.75rem; flex-shrink: 0; border: 0; border-radius: 999px; padding: 0 1rem; font: inherit; font-size: 0.9rem; font-weight: 500; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.chip.active { background: var(--clay); color: var(--paper); box-shadow: none; }
.masonry { margin-top: 2rem; columns: 2; gap: 0.75rem; }
@media (min-width: 1024px) { .masonry { columns: 3; gap: 1.25rem; } }

.prose { max-width: 48rem; }
.prose > p { font-size: 1rem; line-height: 1.7; color: rgb(42 34 24 / 0.85); }
.prose .lede { font-size: 1.125rem; }
.prose-photo { margin: 2.5rem 0; overflow: hidden; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.prose-photo img { width: 100%; outline: 1px solid rgb(42 34 24 / 0.1); outline-offset: -1px; }
.muted { color: var(--sand); font-size: 0.9rem; }

.piece { margin-top: 1.5rem; display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .piece { grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; } }
.piece-photo { overflow: hidden; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); margin: 0; }
.piece-photo img { margin: 0 auto; max-height: 68svh; width: auto; max-width: 100%; object-fit: contain; outline: 1px solid rgb(42 34 24 / 0.1); outline-offset: -1px; }
@media (min-width: 1024px) { .piece-photo img { max-height: none; width: 100%; object-fit: cover; } }
.photo-strip { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.photo-thumb { padding: 0; border: 0; background: var(--paper); border-radius: 0.75rem; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; }
.photo-thumb img { width: 4.5rem; height: 4.5rem; object-fit: cover; display: block; }
.photo-thumb.active { outline: 2px solid var(--clay); }
.piece h1 { margin-top: 0.5rem; }
.details { margin-top: 1rem; font-size: 0.9rem; }
.back { display: inline-flex; height: 2.75rem; align-items: center; gap: 0.4rem; font-size: 0.9rem; font-weight: 500; color: var(--sand); text-decoration: none; }
.back:hover { color: var(--ink); }
.neighbors { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; }
.neighbors a { display: inline-flex; min-height: 2.75rem; align-items: center; gap: 0.25rem; font-size: 0.9rem; font-weight: 500; text-decoration: none; }
.neighbors a:hover { color: var(--clay); }

.order-form { margin-top: 2rem; display: grid; gap: 1rem; }
.order-form label { display: block; }
.order-form label span { font-size: 0.9rem; font-weight: 500; }
.order-form input, .order-form textarea, .order-form select {
  margin-top: 0.5rem; width: 100%; border: 1px solid var(--line); background: var(--paper);
  border-radius: 1rem; padding: 0.75rem 1rem; font: inherit; font-size: 1rem; color: var(--ink); outline: none;
}
.order-form textarea { resize: vertical; border-radius: 1.25rem; }
.order-form input:focus, .order-form textarea:focus, .order-form select:focus { box-shadow: 0 0 0 2px rgb(180 71 50 / 0.3); }
.piece-chip { margin-top: 1.5rem; display: flex; align-items: center; gap: 0.75rem; background: var(--paper); padding: 0.75rem; border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; }
.piece-chip img { width: 4rem; height: 4rem; object-fit: cover; border-radius: 0.75rem; outline: 1px solid rgb(42 34 24 / 0.1); outline-offset: -1px; }

.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: var(--paper); }
.foot { max-width: 72rem; margin: 0 auto; padding: 3rem 1rem; display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 640px) { .foot { padding: 3rem 1.5rem; } }
@media (min-width: 768px) { .foot { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.foot-brand { max-width: 24rem; }
.foot-brand p, .foot-cols p { margin: 0.75rem 0 0; font-size: 0.9rem; line-height: 1.6; color: var(--sand); }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; font-size: 0.9rem; }
.col-title { margin: 0; font-weight: 500; color: var(--ink); }
.foot-cols a { display: block; margin-top: 0.5rem; color: var(--sand); text-decoration: none; }
.foot-cols a:hover { color: var(--ink); }
.legal { max-width: 72rem; margin: 0 auto; padding: 1rem 1rem 0.25rem; font-size: 0.75rem; color: var(--sand); border-top: 1px solid var(--line); }
@media (min-width: 640px) { .legal { padding: 1rem 1.5rem 0.25rem; } }
.hit-counter { max-width: 72rem; margin: 0 auto; padding: 0.5rem 1rem 1.25rem; text-align: left; }
@media (min-width: 640px) { .hit-counter { padding: 0.5rem 1.5rem 1.25rem; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
