/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500&display=swap');

/* ---------- Variables ---------- */
:root {
  --bone: #f3eee5;
  --paper: #faf7f1;
  --clay: #b87850;
  --clay-dark: #8a553a;
  --ash: #6b665e;
  --ink: #2a2622;
  --line: #d9d1c2;
  --shadow: 0 1px 2px rgba(42, 38, 34, 0.06);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;

  --measure: 36rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--clay-dark); text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color 0.2s, color 0.2s; }
a:hover { color: var(--clay); border-color: var(--clay); }

/* ---------- Layout ---------- */
.wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.prose { max-width: var(--measure); }

/* ---------- Header ---------- */
header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 3rem;
}
.brand {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  border: none;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--clay-dark); }
nav {
  margin-top: 1.25rem;
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}
nav a {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ash);
  border: none;
  padding-bottom: 2px;
}
nav a:hover, nav a.active {
  color: var(--ink);
  border-bottom: 1px solid var(--clay);
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 1rem;
}
h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.015em;
}
h1 em {
  font-weight: 400;
  color: var(--clay-dark);
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 2.5rem;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--clay-dark);
  margin-bottom: 0.75rem;
  font-weight: 400;
}
p { margin: 0 0 1.25rem; }
p + p { margin-top: 0; }

/* ---------- Notice card ---------- */
.notice {
  background: var(--bone);
  border-left: 3px solid var(--clay);
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow);
  max-width: var(--measure);
}
.notice .eyebrow { margin-bottom: 0.5rem; }
.notice p:last-child { margin-bottom: 0; }
.notice time {
  display: block;
  font-size: 0.8125rem;
  color: var(--ash);
  margin-top: 0.75rem;
  font-style: italic;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1.5rem;
  margin: 2rem 0 4rem;
}
.gallery figure {
  margin: 0;
  background: var(--bone);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery figure:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42, 38, 34, 0.1);
}
.gallery img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}
.gallery figcaption {
  padding: 0.875rem 1rem 1.125rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ash);
}

/* Featured pieces on the home page — smaller, side-by-side feel */
.featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1.25rem;
  margin: 2rem 0 3rem;
  max-width: var(--measure);
}
.featured img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  background: var(--bone);
}

/* ---------- Buttons / inline links ---------- */
.more {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clay-dark);
  border-bottom: 1px solid var(--clay);
  padding-bottom: 2px;
  margin-top: 1rem;
}

/* ---------- Contact ---------- */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  max-width: var(--measure);
}
.contact-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ash);
}
.contact-list .value {
  font-family: var(--serif);
  font-size: 1.25rem;
}
.contact-list .value a { border: none; }

/* ---------- Footer ---------- */
footer {
  margin-top: 5rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ash);
  text-align: center;
}

/* ---------- Tiny niceties ---------- */
::selection { background: var(--clay); color: var(--paper); }
/* ---------- QR code on contact page ---------- */
.qr-block {
  margin: 3rem 0 2rem;
  padding: 1.75rem;
  background: var(--bone);
  box-shadow: var(--shadow);
  max-width: 18rem;
  text-align: center;
}
.qr-image {
  width: 100%;
  max-width: 12rem;
  margin: 0 auto 1rem;
  display: block;
  background: white;
  padding: 0.5rem;
}
.qr-caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--ash);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}
.qr-url {
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin: 0 0 1.25rem;
  word-break: break-all;
}
.qr-print {
  font-family: var(--sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--paper);
  background: var(--clay-dark);
  border: none;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.qr-print:hover {
  background: var(--ink);
}

/* ---------- Print stylesheet: only show QR when printing ---------- */
@media print {
  /* Hide everything */
  body * {
    visibility: hidden;
  }
  /* Show only the QR block and its contents */
  #qr-block, #qr-block * {
    visibility: visible;
  }
  /* Position the QR block alone on the page, centered near the top */
  #qr-block {
    position: absolute;
    left: 50%;
    top: 1in;
    transform: translateX(-50%);
    background: white;
    box-shadow: none;
    padding: 0;
    max-width: 4in;
  }
  /* Hide the print button itself when printing */
  .qr-print {
    display: none;
  }
  /* Resize QR for clean print */
  .qr-image {
    max-width: 3in;
    background: white;
    padding: 0;
  }
  .qr-caption {
    font-size: 11pt;
    margin-top: 0.25in;
    color: #333;
  }
  .qr-url {
    font-size: 10pt;
    color: #000;
    margin-top: 0.1in;
  }
}
