/* ==========================================================
   Site styles — edit the colors and fonts in :root to restyle
   the whole site at once.
   ========================================================== */
:root {
  --paper: #f4f1ea;        /* warm off-white, like drawing paper */
  --paper-deep: #e9e4d8;
  --ink: #1d1c1a;          /* charcoal black */
  --ink-soft: #55524c;
  --line: #cfc8b8;
  --accent: #8a5a3b;       /* sanguine / red chalk */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1100px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161513;
    --paper-deep: #201f1c;
    --ink: #ece7dc;
    --ink-soft: #a9a396;
    --line: #3a3833;
    --accent: #c98a62;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- Header / nav ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 8px 24px; padding-top: 22px; padding-bottom: 18px;
}
.brand { font-family: var(--serif); font-size: 1.35rem; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--ink-soft); padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

main.wrap { padding-top: 48px; padding-bottom: 72px; }

/* ---------- Home ---------- */
.hero { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 820px) { .hero { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.hero img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-deep); }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .8em; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }
.btn {
  display: inline-block; padding: 11px 22px; border: 1px solid var(--ink);
  text-decoration: none; font-size: .95rem; margin: 6px 8px 0 0; background: transparent; color: var(--ink);
  font-family: inherit; cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); }

.section { margin-top: 80px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }

/* ---------- Gallery grid ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid figure { margin: 0; }
.grid button {
  all: unset; cursor: zoom-in; display: block; width: 100%;
}
.grid button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-deep); transition: opacity .2s; }
.grid button:hover img { opacity: .88; }
figcaption { font-size: .88rem; color: var(--ink-soft); margin-top: 8px; }
figcaption strong { color: var(--ink); font-weight: 500; font-family: var(--serif); font-size: 1rem; display: block; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  font: inherit; font-size: .9rem; padding: 6px 14px; border: 1px solid var(--line);
  background: transparent; color: var(--ink-soft); cursor: pointer;
}
.filters button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(15,14,12,.94); display: none;
  align-items: center; justify-content: center; padding: 24px; z-index: 50; flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; }
.lightbox p { color: #ddd6c8; margin-top: 14px; font-size: .95rem; text-align: center; }
.lightbox .close {
  position: absolute; top: 14px; right: 16px; font-size: 2rem; line-height: 1;
  background: none; border: 0; color: #ddd6c8; cursor: pointer;
}

/* ---------- About ---------- */
.about { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .about { grid-template-columns: 1fr 1.4fr; gap: 64px; } }
.about img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-deep); }
.facts { list-style: none; padding: 0; margin: 24px 0; border-top: 1px solid var(--line); }
.facts li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.facts span { color: var(--ink-soft); }

/* ---------- Forms ---------- */
form { display: grid; gap: 14px; max-width: 560px; }
label { font-size: .9rem; color: var(--ink-soft); display: grid; gap: 6px; }
input, textarea, select {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); padding: 10px 12px; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }   /* spam trap, hidden from people */

/* ---------- Links page ---------- */
.links { max-width: 520px; margin: 0 auto; text-align: center; }
.links ul { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.links a {
  display: block; padding: 15px 18px; border: 1px solid var(--ink); text-decoration: none; font-size: 1rem;
}
.links a:hover { background: var(--ink); color: var(--paper); }
.avatar { width: 112px; height: 112px; margin: 0 auto 18px; }
.avatar img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; background: var(--paper-deep); }

/* ---------- Shop ---------- */
.shop-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.product img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-deep); margin-bottom: 12px; }
.product h3 { font-size: 1.2rem; margin-bottom: .2em; }
.product .meta { font-size: .88rem; color: var(--ink-soft); margin-bottom: .6em; }
.price { font-family: var(--serif); font-size: 1.15rem; }
.sold { color: var(--ink-soft); font-style: italic; }
.note { background: var(--paper-deep); padding: 20px 22px; margin-top: 56px; font-size: .95rem; }
.note h2 { font-size: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: .85rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--ink-soft); }

/* ---------- Added for the editable version ---------- */
picture { display: block; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 60; }
.skip:focus { left: 16px; }
.center { text-align: center; }
.center .lede { margin: 0 auto 1.5em; }
.links .lede { margin: 0 auto; }
.facts.narrow { max-width: 560px; }
.status { display: inline-block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; padding: 2px 9px; margin-right: 6px; border: 1px solid var(--ink-soft); color: var(--ink-soft); vertical-align: 2px; }
.status.open { border-color: var(--accent); color: var(--accent); }
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; font-size: 1.45rem; }
.prose img { width: 100%; height: auto; }
.prose-image { margin: 8px 0 28px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.note p:last-child { margin-bottom: 0; }
.grid a { display: block; }
