:root {
  --ink: #2b2622;
  --paper: #ffffff;
  --paper-alt: #f7f5f1;
  --line: #e6e0d4;
  --accent: #8B4A3C;
  --accent-2: #1F4E5F;
  --muted: #746b60;
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0 0 0.4em;
}

h1 {
  font-family: 'Caveat', 'Georgia', cursive;
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 4.6rem);
  letter-spacing: 0.01em;
}

/* Use this class on an <img> once a real handwriting scan is uploaded,
   to swap the styled heading for an actual handwritten image instead of the font. */
.handwritten-img {
  max-height: 110px;
  width: auto;
  margin: 0 auto 0.2em;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

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

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.logo {
  font-family: 'Caveat', Georgia, serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}

.logo em { font-style: italic; color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.nav-toggle { display: none; }

/* Hero */
.hero {
  padding: 90px 0 70px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 4.8rem);
  margin-bottom: 0.25em;
}

.hero p.tag {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 28px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--ink);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.btn:hover { background: var(--ink); color: var(--paper); }

.btn.accent { border-color: var(--accent); background: var(--accent); color: #fff; }
.btn.accent:hover { background: #6f3a2f; }

/* Sections */
section { padding: 60px 0; }

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head p {
  color: var(--muted);
  max-width: 560px;
  margin: 8px auto 0;
}

/* Gallery grid */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.filters button {
  background: none;
  border: 1px solid var(--line);
  padding: 8px 18px;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filters button.active,
.filters button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filters button.filter-hand {
  padding: 4px 16px;
  display: flex;
  align-items: center;
  text-transform: none;
}

.filters button.filter-hand svg {
  display: block;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}

.card {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(43, 38, 34, 0.12);
}

.card .thumb { aspect-ratio: 1 / 1; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }

.card .info { padding: 14px 16px 18px; }

.card .info h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.card .info .medium {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.card .info .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.price { color: var(--accent); font-weight: 600; }
.sold-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 2px 8px;
}

.empty-note {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
  display: none;
}

/* Featured strip on homepage */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}

/* About */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  align-items: start;
}

@media (max-width: 780px) {
  .about-layout { grid-template-columns: 1fr; }
}

.about-photo {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, #C97B4A, #1F4E5F);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.4rem;
  text-align: center;
  padding: 20px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.contact-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
}

.contact-list a { text-decoration: none; color: var(--accent); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 30px;
}

.lightbox.open { display: flex; }

.lightbox-inner {
  max-width: 900px;
  width: 100%;
  background: var(--paper);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  max-height: 90vh;
  overflow: auto;
}

@media (max-width: 700px) {
  .lightbox-inner { grid-template-columns: 1fr; }
}

.lightbox-inner img { width: 100%; }

.lightbox-details { padding: 28px; }

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 30px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
}

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

footer.site .socials {
  margin-top: 10px;
}

footer.site .socials a {
  margin: 0 8px;
  text-decoration: none;
  color: var(--ink);
}

.notice {
  background: #fff6e9;
  border: 1px solid #e8d3a8;
  color: #6b5322;
  font-size: 0.85rem;
  padding: 10px 16px;
  text-align: center;
}

@media (max-width: 640px) {
  .nav { padding: 14px 20px; }
  .nav-links { gap: 16px; }
  .hero { padding: 60px 0 50px; }
}
