:root {
  --paper: #FCF7E3;
  --ink: #262644;
  --muted: #6b6a84;
  --line: #E9E2C6;
  --accent: #262644;
  --radius: 2px;
  --gutter: 16px;
  --max: 1280px;
  --serif: 'Cormorant Garamond', 'Garamond', Georgia, serif;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}



*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}
a { color: inherit; }
h1 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; }

main { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 20px;
}
.site-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.site-nav { display: flex; align-items: center; gap: 24px; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.site-nav a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.site-nav a:hover { color: var(--ink); }

/* Intro */
.intro { padding: 24px 0 32px; }
.eyebrow { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.intro h1 { font-size: clamp(2rem, 4vw, 3rem); }

/* Gallery: columns keep each photo whole; one column on phones, up to four on wide screens */
.gallery {
  column-width: 240px;
  column-gap: 12px;
  padding-bottom: 80px;
}
.tile {
  display: block;
  break-inside: avoid;
  margin: 0 0 12px;
  background: var(--line);
}
.tile img {
  width: 100%;
  height: auto;
  transition: opacity 0.4s ease;
}
.tile:hover img { opacity: 0.88; }

.status { color: var(--muted); padding: 48px 0; }

/* Photo page */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-top: 24px;
  padding-bottom: 96px;
}
.product-image { margin: 0; }
.product-image img {
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
}
.product-details { position: sticky; top: 24px; }
.product-details h1 { font-size: clamp(2rem, 3.5vw, 2.8rem); margin-bottom: 16px; }
.description { color: var(--muted); max-width: 46ch; }
.edition { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.pager a { text-decoration: none; color: var(--muted); }
.pager a:hover { color: var(--ink); }

.order fieldset { border: 0; padding: 0; margin: 0; }
.order legend,
.quantity-row label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  padding: 0;
}

.size-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.size-option:last-of-type { border-bottom: 1px solid var(--line); }
.size-option input { accent-color: var(--accent); margin: 0; }
.size-main { display: flex; flex-direction: column; }
.size-label { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }
.size-dims { font-size: 0.8rem; color: var(--muted); }
.size-price { font-weight: 400; }

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}
.quantity-row label { margin: 0; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); }
.step {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}
.step:hover { color: var(--muted); }
.stepper input {
  width: 56px;
  height: 44px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: center;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.4rem;
}

.button {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 16px 24px;
  background: var(--accent);
  color: var(--paper);
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}
.button:hover { opacity: 0.85; }
.fine-print { font-size: 0.8rem; color: var(--muted); margin: 16px 0 0; }

.page { padding-top: 24px; padding-bottom: 96px; max-width: 640px; }
.page p { color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 24px var(--gutter) 32px;
  font-size: 0.8rem;
  color: var(--muted);
}
.site-footer p { margin: 0; }

/* Phone */
@media (max-width: 800px) {
  .product { grid-template-columns: 1fr; gap: 32px; padding-bottom: 64px; }
  .product-details { position: static; }
  .site-nav { gap: 16px; }
}

/* Printing: photographs are not printed from the browser */
@media print {
  img { display: none !important; }
  body::after { content: "Prints can be ordered at this website."; font-family: var(--sans); font-size: 12pt; }
}

/* Header menu: kebab button on phones */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px 6px;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 4px;
  height: 4px;
  margin: 4px 0;
  border-radius: 50%;
  background: currentColor;
}
@media (max-width: 800px) {
  .menu-toggle { display: block; margin-left: auto; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 8px;
    border-top: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
}

/* Page headings and commission sections */
.page h2 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; line-height: 1.2; margin: 44px 0 8px; color: var(--ink); }
.page p { max-width: 58ch; }
.page .eyebrow { margin-top: 8px; }
.commission-cta { margin-top: 48px; color: var(--muted); }
.commission-cta a { color: var(--ink); }

/* Cards page */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin: 40px 0 96px; }
.card-pack { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; }
.card-pack h2 { margin-top: 0; font-size: 1.4rem; }
.card-meta { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.card-price { font-family: var(--serif); font-size: 1.5rem; margin: auto 0 16px; color: var(--ink); }
.card-pack .button { margin-top: 0; }

/* Card pack thumbnails */
.card-thumb { width: 100%; max-width: 220px; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); margin-bottom: 16px; }

/* About portrait */
.about-portrait { margin: 24px 0 40px; }
.about-portrait img { width: 100%; height: auto; }
@media (max-width: 800px) {
}

/* Logo */
.site-title { display: inline-flex; align-items: center; gap: 14px; }
.logo { height: 56px; width: auto; display: block; }
.footer-logo { height: 44px; width: auto; display: block; margin-bottom: 14px; }

/* Cards: wider page, three across where there is room, aligned contents */
.page-wide { max-width: var(--max); }
.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px 32px;
  align-items: stretch;
}
.card-pack { padding-top: 0; border-top: 0; }
.card-thumb { width: 100%; max-width: none; aspect-ratio: 4 / 3; margin-bottom: 20px; }
.card-pack h2 { margin: 0 0 8px; font-size: 1.5rem; }
.card-meta { min-height: 2.8em; line-height: 1.4; margin: 0 0 12px; }
.card-desc { flex-grow: 1; margin: 0 0 16px; }
.card-price { margin: 0 0 16px; font-size: 1.5rem; }

/* Phone header: title on the left, kebab on the right, menu spans full width when open */
@media (max-width: 800px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 16px;
    padding: 20px var(--gutter) 16px;
  }
  .site-title { min-width: 0; gap: 12px; }
  .site-title .logo { height: 44px; }
  .site-title span { font-size: 1.25rem; line-height: 1.15; }
  .menu-toggle { margin-left: 0; }
  .site-nav.open { grid-column: 1 / -1; }
}
