/* ---------------------------------------------------------
   H. D. de Vries — artist portfolio
   Edit the colour + type variables below to re-skin the site.
   --------------------------------------------------------- */

:root {
  --paper: #f7f4ef;
  --paper-alt: #efeae2;
  --ink: #1c1a17;
  --ink-soft: #5c564e;
  --line: #dcd5c9;
  --accent: #7a3f2e;
  --accent-ink: #fdfbf8;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, -apple-system, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --radius: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 68px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 28px; }

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}

.site-nav a:hover { color: var(--ink); }

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.nav-shop {
  border: 1px solid var(--ink) !important;
  padding: 7px 16px !important;
  border-radius: 999px;
  color: var(--ink) !important;
}
.nav-shop:hover { background: var(--ink); color: var(--paper) !important; }

.nav-toggle {
  display: none;
  font: inherit; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; cursor: pointer; color: var(--ink);
}

/* ---------- hero ---------- */

.hero { padding: clamp(64px, 12vw, 132px) 0 clamp(48px, 8vw, 96px); }

.hero-inner { max-width: 780px; }

.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 1.4em;
}

.hero h1 { margin-bottom: 0.45em; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2em; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn[disabled], .btn.is-sold {
  background: transparent; color: var(--ink-soft);
  border-color: var(--line); cursor: not-allowed; transform: none;
}

.text-link {
  font-size: 0.9rem; text-decoration: none;
  border-bottom: 1px solid var(--ink); padding-bottom: 2px;
}

/* ---------- sections ---------- */

.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tight { padding-top: 0; }
.section-alt { background: var(--paper-alt); }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; margin-bottom: 2.2em;
}
.section-head h2 { margin: 0; }

.statement { max-width: 760px; }
.statement-text {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  line-height: 1.45;
  margin: 0;
}

.cta-band {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: clamp(32px, 5vw, 56px);
}
.cta-band h2 { margin-bottom: 0.3em; }
.cta-band .muted { max-width: 52ch; margin: 0; }

.muted { color: var(--ink-soft); }

/* ---------- grids & work cards ---------- */

.grid { display: grid; gap: clamp(20px, 3vw, 36px); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.work { text-decoration: none; display: block; }

.work-media {
  overflow: hidden;
  background: var(--paper-alt);
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
}
.work-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.work:hover .work-media img { transform: scale(1.04); }

.work-meta { padding-top: 14px; }
.work-meta h3 { margin-bottom: 0.15em; }
.work-meta p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.work-meta .price { color: var(--ink); margin-top: 6px; font-variant-numeric: tabular-nums; }

/* ---------- shop ---------- */

.shop-head { padding-bottom: clamp(24px, 4vw, 40px); }
.shop-head .lede { max-width: 56ch; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2em; }

.chip {
  font: inherit; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: transparent; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; cursor: pointer;
  transition: all .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.badge {
  display: inline-block;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-soft);
  margin-left: 8px; vertical-align: 2px;
}
.badge.sold { border-color: var(--ink-soft); }

.card { text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.card .work-media { position: relative; }
.card.is-sold .work-media img { opacity: 0.55; }

.empty { color: var(--ink-soft); font-style: italic; }

.steps { padding-left: 1.2em; color: var(--ink-soft); }
.steps li { margin-bottom: 0.6em; }

/* ---------- quick view ---------- */

.quickview {
  border: 0; padding: 0; border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
}
.quickview::backdrop { background: rgba(24, 21, 18, .55); backdrop-filter: blur(3px); }

.quickview-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: 0; font-size: 1.9rem; line-height: 1;
  color: var(--ink); cursor: pointer; z-index: 2;
}

.quickview-body { display: grid; grid-template-columns: 1.1fr 1fr; }
.quickview-body img { width: 100%; height: 100%; object-fit: cover; }
.quickview-detail { padding: clamp(24px, 4vw, 44px); }
.quickview-detail h2 { margin-bottom: 0.2em; }
.quickview-detail dl {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 18px;
  font-size: 0.9rem; color: var(--ink-soft);
  margin: 1.4em 0; padding-top: 1.2em; border-top: 1px solid var(--line);
}
.quickview-detail dt { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; padding-top: 3px; }
.quickview-detail dd { margin: 0; color: var(--ink); }
.quickview-price { font-family: var(--serif); font-size: 1.6rem; margin: 0 0 1em; }

/* ---------- about ---------- */

.about-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 64px); align-items: start;
}
.about-portrait img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; }
.about-text h1 { font-size: clamp(2rem, 4vw, 3rem); }
.about-text p { max-width: 58ch; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }

.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li {
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 0.95rem; color: var(--ink-soft);
}
.list-plain span {
  display: inline-block; min-width: 84px;
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .work-media img { transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .two-col { grid-template-columns: 1fr; }
  .quickview-body { grid-template-columns: 1fr; }
  .quickview-body img { max-height: 40vh; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; width: 100%; }
  .nav-shop { border: 0 !important; padding: 12px 0 !important; border-radius: 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; gap: 8px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
