/* Eric Kelley Prints
   Palette and type drawn from erickelley.com:
   warm stone, soft greige rules, near-black ink, a single sage accent.
   Serif (Crimson Pro) stands in for Scala; Jost stands in for Verlag. */

:root {
  --ink: #1a1a1a;
  --text: #3b3a36;
  --muted: #8a867e;
  --line: #d9d5cd;
  --line-strong: #cecac2;
  --stone: #e8e6e2;
  --stone-deep: #dcd8d0;
  --paper: #ffffff;
  --sage: #818f84;
  --sage-deep: #5f6d63;
  --overlay: rgba(26, 26, 26, 0.45);

  --serif: "Crimson Pro", "Iowan Old Style", Georgia, serif;
  --display: "Cormorant Garamond", "Crimson Pro", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--sage-deep); outline-offset: 3px; }

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

/* ---------- Type ---------- */
.eyebrow, .label, .nav a, .btn, .price-note, .filter button {
  font-family: var(--sans);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 11.5px;
}
.eyebrow { color: var(--muted); display: block; margin-bottom: 18px; }
h1, h2, h3 { font-weight: 400; color: var(--ink); margin: 0; }
.h-caps {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: clamp(17px, 1.6vw, 20px);
}
.h-display {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.h-display em { font-style: italic; }
.rule { width: 48px; height: 1px; background: var(--line-strong); border: 0; margin: 26px auto; }
.center { text-align: center; }
.lede { font-size: clamp(18px, 1.5vw, 20px); color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 30px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--sage-deep); border-color: var(--sage-deep); }
.btn-light { border-color: rgba(255,255,255,.85); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link-under {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .24em; font-size: 11.5px;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 4px;
}
.link-under:hover { border-color: var(--ink); }

/* ---------- Announcement + header ---------- */
.announce {
  background: var(--stone);
  color: var(--text);
  text-align: center;
  font-family: var(--sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  padding: 10px var(--gutter);
}
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter);
}
.nav { display: flex; gap: 34px; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.logo { display: block; }
.logo img { height: 20px; width: auto; filter: brightness(.28); }
.logo .logo-sub {
  display: block; text-align: center; margin-top: 8px;
  font-family: var(--sans); font-size: 9.5px; letter-spacing: .5em; text-transform: uppercase; color: var(--muted);
  padding-left: .5em;
}
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.icon-btn { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.2; }
.cart-count {
  font-family: var(--sans); font-size: 11px; letter-spacing: .1em; min-width: 18px; text-align: center;
}
.menu-toggle { display: none; }

@media (max-width: 820px) {
  :root { --header-h: 70px; }
  .site-header .bar { grid-template-columns: 44px 1fr 44px; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .logo img { height: 15px; margin: 0 auto; }
  .logo .logo-sub { font-size: 8.5px; margin-top: 6px; }
  .header-actions .ig { display: none; }
  .mobile-nav.open { display: flex; }
}
.mobile-nav {
  display: none; flex-direction: column; gap: 22px;
  padding: 28px var(--gutter) 36px; border-top: 1px solid var(--line); background: var(--paper);
}
.mobile-nav a { font-family: var(--sans); text-transform: uppercase; letter-spacing: .24em; font-size: 13px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(88vh, 900px);
  display: grid; place-items: center; text-align: center; color: #fff;
  overflow: hidden; background: var(--stone-deep);
}
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.04);
  transition: opacity 1.6s ease, transform 7s ease;
}
.hero-slide.on { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.34)); }
.hero-inner { position: relative; z-index: 2; padding: 0 var(--gutter); }
.hero .eyebrow { color: rgba(255,255,255,.85); }
.hero h1 { color: #fff; }
.hero p { font-size: clamp(18px, 1.8vw, 22px); margin: 18px auto 34px; max-width: 34ch; }

/* ---------- Sections ---------- */
section { padding: clamp(72px, 10vw, 128px) 0; }
.band { background: var(--stone); }
.intro p { max-width: 62ch; margin: 0 auto 1.1em; }

.triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.tile { display: block; }
.tile .frame { aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone-deep); }
.tile .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.tile:hover .frame img { transform: scale(1.035); }
.tile h3 { margin-top: 26px; }
.tile p { margin: 12px 0 18px; color: var(--text); }
@media (max-width: 860px) { .triptych { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature .frame { aspect-ratio: 4/5; overflow: hidden; background: var(--stone-deep); }
.feature .frame img { width: 100%; height: 100%; object-fit: cover; }
.feature p { margin: 0 0 1.1em; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

.split-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 44px; flex-wrap: wrap; }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { display: block; position: relative; }
.card .frame {
  aspect-ratio: 4 / 5; background: var(--stone); overflow: hidden;
  display: grid; place-items: center; padding: 9%;
}
.card .frame img {
  max-height: 100%; width: auto; max-width: 100%; object-fit: contain;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 28px rgba(40,34,26,.14);
  transition: transform .9s ease;
  background: #fff;
}
.card:hover .frame img { transform: translateY(-4px); }
.card .meta { padding-top: 20px; text-align: center; }
.card .title { font-family: var(--serif); font-size: 21px; color: var(--ink); }
.card .place { font-style: italic; color: var(--muted); font-size: 16px; }
.card .price-note { color: var(--text); margin-top: 8px; display: block; }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; padding: 6px 10px;
}
.badge.sold { background: var(--ink); color: var(--paper); }

.filter { display: flex; gap: 8px 30px; flex-wrap: wrap; justify-content: center; margin: 0 0 56px; }
.filter button { color: var(--muted); padding: 6px 0; border-bottom: 1px solid transparent; }
.filter button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; padding-top: clamp(40px, 6vw, 72px); }
.product .stage { background: var(--stone); padding: clamp(28px, 7%, 80px); display: grid; place-items: center; min-height: 60vh; }
.product .stage img { max-height: 72vh; width: auto; background:#fff; box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 24px 50px rgba(40,34,26,.18); }
.product .info { position: sticky; top: calc(var(--header-h) + 32px); }
.product h1 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 4vw, 54px); line-height: 1.05; }
.product .place { font-style: italic; color: var(--muted); margin-top: 6px; font-size: 19px; }
.product .price { font-family: var(--serif); font-size: 26px; color: var(--ink); margin: 26px 0 6px; }
.product .edition { margin-bottom: 26px; color: var(--muted); }
.sizes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0 26px; }
.sizes label { position: relative; }
.sizes input { position: absolute; opacity: 0; pointer-events: none; }
.sizes span {
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  border: 1px solid var(--line-strong); padding: 13px 14px; cursor: pointer;
  font-family: var(--sans); font-size: 13px; letter-spacing: .06em;
  transition: border-color .2s, background .2s;
}
.sizes span small { color: var(--muted); font-size: 12px; }
.sizes input:checked + span { border-color: var(--ink); background: var(--stone); }
.sizes input:focus-visible + span { outline: 1px solid var(--sage-deep); outline-offset: 2px; }
.qty { display: inline-flex; border: 1px solid var(--line-strong); height: 48px; }
.qty button { width: 42px; }
.qty input { width: 44px; text-align: center; border: 0; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.details { margin-top: 36px; border-top: 1px solid var(--line); }
.details details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: "+"; font-family: var(--sans); color: var(--muted); }
.details details[open] summary::after { content: "\2212"; }
.details p { margin: 12px 0 0; font-size: 17px; }
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .product .info { position: static; }
  .product .stage { min-height: 0; }
}

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field .label { display: block; margin-bottom: 8px; color: var(--muted); }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--line-strong); background: var(--paper); border-radius: 0;
  font-family: var(--serif); font-size: 17px;
}
.input:focus { outline: none; border-color: var(--ink); }
textarea.input { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 15px; color: var(--muted); }
.hp { position: absolute; left: -9999px; }

.inline-signup { display: flex; gap: 10px; max-width: 520px; margin: 30px auto 0; }
.inline-signup .input { flex: 1; }
@media (max-width: 560px) { .inline-signup { flex-direction: column; } }

/* ---------- Cart drawer ---------- */
.scrim { position: fixed; inset: 0; background: var(--overlay); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 80; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: min(440px, 100vw); background: var(--paper);
  transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column;
}
.drawer.on { transform: none; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.drawer .items { flex: 1; overflow: auto; padding: 8px 28px; }
.line-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line-item .thumb { background: var(--stone); aspect-ratio: 4/5; display: grid; place-items: center; padding: 8px; }
.line-item .thumb img { max-height: 100%; object-fit: contain; }
.line-item .t { color: var(--ink); font-size: 18px; line-height: 1.3; }
.line-item .s { color: var(--muted); font-size: 15px; }
.line-item .qty { height: 34px; margin-top: 10px; }
.line-item .qty button { width: 32px; }
.line-item .qty input { width: 30px; font-size: 14px; }
.line-item .rm { font-family: var(--sans); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.line-item .amt { font-size: 17px; color: var(--ink); text-align: right; }
.drawer footer { padding: 22px 28px 28px; border-top: 1px solid var(--line); }
.drawer .subtotal { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--ink); font-size: 19px; }
.drawer .empty { text-align: center; padding: 70px 0; color: var(--muted); }
.error-msg { color: #8b3a3a; font-size: 15px; margin-top: 10px; min-height: 1em; }

/* ---------- Email pop-up ---------- */
.pop {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: var(--overlay); opacity: 0; pointer-events: none; transition: opacity .45s ease;
}
.pop.on { opacity: 1; pointer-events: auto; }
.pop-card {
  position: relative; width: min(880px, 100%); background: var(--paper);
  display: grid; grid-template-columns: 1fr 1.05fr; max-height: calc(100vh - 32px); overflow: auto;
  transform: translateY(14px); transition: transform .5s ease;
}
.pop.on .pop-card { transform: none; }
.pop-img { background: var(--stone-deep) center/cover no-repeat; min-height: 460px; }
.pop-body { padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; text-align: center; }
.pop-body h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 3.4vw, 42px); line-height: 1.1; margin-bottom: 14px; }
.pop-body p { margin: 0 0 24px; }
.pop-close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px;
  display: grid; place-items: center; color: var(--ink); z-index: 2; background: rgba(255,255,255,.85);
}
.pop-close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.3; }
.pop .no-thanks { margin-top: 14px; font-family: var(--sans); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pop .done { display: none; }
.pop.sent .done { display: block; }
.pop.sent form, .pop.sent .pre { display: none; }
@media (max-width: 720px) {
  .pop-card { grid-template-columns: 1fr; }
  .pop-img { min-height: 190px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--stone); padding: 72px 0 40px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-family: var(--sans); font-weight: 400; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.site-footer a { display: block; margin-bottom: 8px; }
.site-footer a:hover { color: var(--ink); }
.site-footer .legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-strong); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--sans); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 120;
  background: var(--ink); color: #fff; padding: 14px 22px; opacity: 0; transition: all .35s ease;
  font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.fade-in { opacity: 0; transform: translateY(14px); transition: opacity 1s ease, transform 1s ease; }
.fade-in.seen { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .fade-in { opacity: 1; transform: none; }
}
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(24px, 4vw, 40px); text-align: center; }
.page-head p { max-width: 58ch; margin: 18px auto 0; }
.crumb { font-family: var(--sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.crumb a:hover { color: var(--ink); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: #fff; padding: 10px 14px; }
@media (max-width: 560px) { .announce { letter-spacing: .14em; font-size: 10px; } }
