/* Styles for the main page and every piece page. */
/* Layout: a painted wall. The name is filled with Mike's own paint (The Neighborhood Tulips),
   a feelings ticker runs like gallery tape, and the works hang on a sea-glass plaster wall with museum labels. */
:root {
  --plaster: #7F9BD3;      /* petal-outline blue from The Neighborhood Tulips */
  --panel: #F7F9F9;
  --ink: #17213A;          /* the navy outline blue */
  --muted: #26314A;
  --rule: #9FB3DE;
  --red: #C42A1C;          /* cadmium tulip red */
  --red-ink: #FFFFFF;
  --red-text: #6E0D06;     /* deeper tulip red for text on the blue wall */
  --cornflower: #6F8FDA;
  --yolk: #E9CF45;
  --frame-wall: #7F9BD3;   /* black-frame backdrop: petal-outline blue from the tulips. Acid Rain turquoise: #5FA3A0 */
  --shadow: 0 1px 2px rgba(23,33,58,.2), 0 14px 30px -10px rgba(23,33,58,.35);
  --display: "Bowlby One", "Arial Black", Impact, sans-serif;
  --label: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
}
:root { color-scheme: light; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  overflow-x: clip;
}
html { overflow-x: hidden; overflow-x: clip; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.gutter {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 700px) { .gutter { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.wrap { max-width: 1240px; margin-inline: auto; }

/* Nav */
.nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 24px; padding-block: 18px; font-size: .9rem; }
.nav-mark { font-family: var(--display); font-size: 1.25rem; letter-spacing: .02em; text-decoration: none; }
.nav-mark span { color: var(--red-text); }
.nav-links { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero { padding-block: clamp(16px, 4vw, 48px) clamp(32px, 5vw, 64px); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.hero-name {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(3rem, 11.6vw, 10.4rem);
  line-height: .84;
  letter-spacing: -.01em;
  margin: 0;
  color: var(--red);
}
.hero-name .line { display: block; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-name .line {
    background-image: url("images/tulips-detail-2.jpg");
    background-size: 120% auto;
    background-position: 30% 40%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
  }
  .hero-name .line:nth-child(2) { background-image: url("images/tulips-detail-1.jpg"); background-position: 50% 30%; }
  .hero-name .line:nth-child(3) { background-position: 70% 75%; }
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px clamp(28px, 5vw, 72px); align-items: end;
  margin-top: clamp(28px, 4vw, 48px);
}
.thesis {
  font-family: var(--label); font-style: italic; font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 2.75rem); line-height: 1.12;
  margin: 0; max-width: 20ch; text-wrap: balance;
}
.thesis em { font-style: normal; font-family: var(--display); font-size: .82em; color: var(--red-text); letter-spacing: .01em; }
.pitch { margin: 18px 0 0; max-width: 46ch; font-size: 1.08rem; color: var(--muted); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-detail { margin: 0; justify-self: end; width: min(100%, 420px); }
.hero-detail button { display: block; padding: 0; border: none; background: none; cursor: zoom-in; width: 100%; }
.hero-detail img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% 55%; box-shadow: var(--shadow); transform: rotate(1.2deg); }
.hero-detail figcaption { margin-top: 12px; font-size: .85rem; color: var(--muted); }
.hero-detail figcaption i { font-family: var(--label); font-weight: 600; color: var(--ink); font-size: 1rem; }

/* Buttons */
.btn {
  font: inherit; font-weight: 700; font-size: .95rem;
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  padding: 11px 18px; border-radius: 999px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; line-height: 1.1;
  transition: background .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--ink); color: var(--plaster); }
.btn-solid { background: var(--red); border-color: var(--red); color: var(--red-ink); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); color: var(--plaster); transform: translateY(-1px); }
.btn-sm { font-size: .85rem; padding: 8px 14px; }
.btn:disabled { opacity: .6; cursor: progress; }

/* Ticker of feelings */
.ticker {
  background: var(--red); color: var(--red-ink);
  overflow: hidden; white-space: nowrap;
  border-block: 3px solid var(--ink);
  transform: rotate(-1.2deg); margin-inline: -20px;
}
.ticker-track { display: inline-flex; padding-block: 12px; animation: tick 48s linear infinite; }
.ticker-track span { font-family: var(--display); font-size: clamp(1.1rem, 2.4vw, 1.6rem); text-transform: uppercase; padding-inline: 18px; }
.ticker-track span.dot { padding-inline: 0; color: var(--yolk); }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Show line */
.show { padding-block: clamp(48px, 7vw, 88px) 8px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; }
.show h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: .98; margin: 0; text-transform: uppercase; }
.blank { display: inline-block; width: 3.4em; border-bottom: .09em solid var(--ink); transform: translateY(-.1em); }
.show p { margin: 0; color: var(--muted); max-width: 50ch; }
.feelings { margin-top: 14px !important; line-height: 2.1; color: var(--ink) !important; }
.chip {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: .9rem;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px 12px; margin: 0 4px 4px 0; line-height: 1.6;
}
.chip:hover { background: var(--ink); color: var(--plaster); }

/* The wall */
.wall {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(48px, 6vw, 72px) clamp(24px, 3vw, 40px);
  padding-block: 48px 24px;
}
@media (min-width: 620px) { .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1120px) { .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.work { margin: 0; display: flex; flex-direction: column; gap: 18px; min-width: 0; scroll-margin-top: 24px; }
.hang { height: 300px; display: flex; align-items: center; justify-content: center; position: relative; }
.hang img { display: block; max-height: 300px; max-width: 100%; width: auto; height: auto; box-shadow: var(--shadow); cursor: zoom-in; transition: transform .25s ease; }
.zoom img.on-wall { background: var(--frame-wall); padding: clamp(16px, 4vw, 40px); box-sizing: border-box; }
.hang img:hover { transform: translateY(-4px) rotate(-.6deg); }
@media (prefers-reduced-motion: reduce) { .hang img, .btn { transition: none; } }
.label { border-top: 2px solid var(--ink); padding-top: 14px; display: flex; flex-direction: column; gap: 4px; font-size: .9rem; flex: 1; }
.work:target .label { border-top-color: var(--red); }
.label-feeling { color: var(--red-text); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.label-title { font-family: var(--label); font-style: italic; font-weight: 600; font-size: 1.3rem; line-height: 1.2; margin: 2px 0 0; text-wrap: balance; }
.label-series, .label-spec { color: var(--muted); }
.label-spec { font-variant-numeric: tabular-nums; }
.label-note { margin: 6px 0 0; line-height: 1.5; max-width: 42ch; }
.label-more { font: inherit; font-size: .85rem; font-weight: 600; color: var(--muted); background: none; border: 0; padding: 0; cursor: zoom-in; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; align-self: flex-start; margin-top: 4px; }
.label-more:hover { color: var(--ink); }
.label-closeups { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.label-closeups::before { content: "Up close"; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.label-closeups button { padding: 0; border: 2px solid transparent; background: none; cursor: zoom-in; width: 52px; height: 52px; flex: none; }
.label-closeups button:hover, .label-closeups button:focus-visible { border-color: var(--red); }
.label-closeups img { width: 100%; height: 100%; object-fit: cover; display: block; }
.label-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }
.price { font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }

/* Second wave divider */
.wave { grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; border-top: 3px solid var(--ink); padding-top: 18px; }
.wave h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.4rem, 3vw, 2rem); margin: 0; line-height: 1; color: var(--red-text); }
.wave p { margin: 0; color: var(--muted); font-size: .95rem; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; padding-block: 64px 0; scroll-margin-top: 24px; }
.about h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; line-height: 1; text-transform: uppercase; }
.about-body { max-width: 62ch; }
.about-body p { margin: 0 0 14px; color: var(--muted); }
.about-body .about-lead { font-family: var(--label); font-style: italic; font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.25; color: var(--ink); }
.about-body a { font-weight: 700; color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 3px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials:empty { display: none; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-underline-offset: 3px; }
.footer-links a:hover { color: var(--ink); }

/* How to collect */
.collect { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; padding-block: 64px 48px; }
.collect h2, .list h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; line-height: 1; text-transform: uppercase; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--red-text); }
.steps strong { font-weight: 700; font-size: 1.05rem; }
.steps span { color: var(--muted); font-size: .95rem; }

/* Collector list */
.list { background: var(--panel); border: 2px solid var(--ink); padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 40px; align-items: end; box-shadow: 8px 8px 0 var(--ink); scroll-margin-top: 24px; }
.list p { margin: 10px 0 0; color: var(--muted); max-width: 46ch; }
.list form { display: flex; gap: 10px; flex-wrap: wrap; }
.list label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.list input { flex: 1 1 220px; min-width: 0; font: inherit; padding: 11px 14px; border: 2px solid var(--rule); border-radius: 999px; background: #FFFFFF; color: var(--ink); }
.list input:focus { border-color: var(--red); outline: none; }
.form-note { flex-basis: 100%; margin: 0; font-size: .85rem; color: var(--muted); min-height: 1.3em; }

footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 32px 48px; margin-top: 56px; border-top: 2px solid var(--ink); font-size: .85rem; color: var(--muted); }

/* Dialogs */
dialog { border: none; padding: 0; background: var(--panel); color: var(--ink); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(10, 13, 22, .78); }
.dlg { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.dlg-top { display: flex; gap: 18px; align-items: flex-start; }
.dlg-top img { width: 96px; height: auto; box-shadow: var(--shadow); flex: none; }
.dlg h3 { margin: 0; font-family: var(--label); font-style: italic; font-weight: 600; font-size: 1.3rem; line-height: 1.2; }
.dlg .label-spec { font-size: .9rem; }
.dlg p { margin: 0; }
.email-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; background: #E7EDEE; padding: 10px 12px; }
.email-row code { font-family: var(--body); font-weight: 700; user-select: all; overflow-wrap: anywhere; flex: 1 1 200px; min-width: 0; }
.dlg-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.zoom { width: min(1000px, calc(100vw - 24px)); background: transparent; box-shadow: none; overflow: visible; cursor: zoom-out; }
.zoom img { display: block; max-width: 100%; max-height: calc(100vh - 120px); margin-inline: auto; box-shadow: var(--shadow); }
.zoom-cap { color: #EEF1F4; text-align: center; padding-top: 12px; font-size: .95rem; }
.zoom-cap em { font-family: var(--label); font-weight: 600; font-size: 1.1rem; }

@media (max-width: 800px) {
  .hero-grid, .show, .about, .collect, .list { grid-template-columns: minmax(0, 1fr); }
  .hero-detail { justify-self: start; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .hang { height: 280px; }
  .hang img { max-height: 280px; }
}
.nav-mark img { display: block; height: 40px; width: auto; }
@media (max-width: 520px) { .nav-mark img { height: 32px; } }
.about-photos { grid-column: -2 / -1; display: flex; gap: 24px; margin-top: 12px; }
.about-photos figure { margin: 0; min-width: 0; }
.about-photos .ph-studio { flex: 1.094 1 0; }
.about-photos .ph-salon { flex: .667 1 0; }
.about-photos img { display: block; width: 100%; height: auto; box-shadow: var(--shadow); }
.about-photos figcaption { margin-top: 10px; font-size: .85rem; color: var(--muted); }
.about-photos figcaption i { font-family: var(--label); font-weight: 600; color: var(--ink); font-size: 1rem; }
@media (max-width: 560px) { .about-photos { flex-direction: column; } .about-photos figure { flex: none; } }
footer { align-items: flex-end; }
.footer-sign { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-sign img { display: block; height: 34px; width: auto; }
.show { align-items: start; }
.show .eyebrow { margin: 0 0 12px; }
.show-copy p + p { margin-top: 14px; }
.walls .btn { margin-top: 6px; }
.wall-photos { grid-column: -2 / -1; display: flex; flex-direction: column; gap: 24px; margin-top: 12px; }
.ph-row { display: flex; gap: 24px; }
.ph-row figure { margin: 0; min-width: 0; }
.ph-row .ph-l { flex: 1.333 1 0; }
.ph-row .ph-p { flex: .75 1 0; }
.ph-row img { display: block; width: 100%; height: auto; box-shadow: var(--shadow); }
.ph-row figcaption { margin-top: 10px; font-size: .85rem; color: var(--muted); }
.ph-row figcaption i { font-family: var(--label); font-weight: 600; color: var(--ink); font-size: 1rem; }
@media (max-width: 560px) { .ph-row { flex-direction: column; } .ph-row figure { flex: none; } }
.about-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.about-photos figure { margin: 0; min-width: 0; }
.about-photos img { aspect-ratio: 3 / 4; object-fit: cover; }
.wall-gallery { grid-column: -2 / -1; display: flex; flex-direction: column; gap: 28px; margin-top: 12px; }
.wg h3 { font-family: var(--label); font-style: italic; font-weight: 600; font-size: 1.15rem; margin: 0 0 10px; color: var(--ink); }
.wg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.wg-grid button { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.wg-grid img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow); }
@media (max-width: 560px) { .wg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .about-photos { gap: 12px; } }

/* Larger views (Nov 2026): a close button, the full description beside a painting, and a link from close-ups to the piece's own page. */
.zoom-x {
  position: fixed; top: 12px; right: 12px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink);
  background: var(--panel); color: var(--ink); font: 700 1.6rem/1 var(--body); cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0 0 3px;
}
.zoom-x:hover { background: var(--ink); color: var(--panel); }
.zoom.has-link img { max-height: calc(100vh - 170px); }
.zoom-link {
  display: inline-block; margin-top: 12px; padding: 8px 16px; border: 2px solid #EEF1F4; border-radius: 999px;
  color: #EEF1F4; font-weight: 700; font-size: .9rem; text-decoration: none; cursor: pointer;
}
.zoom-link:hover { background: #EEF1F4; color: var(--ink); }
.zoom.has-info { width: min(1160px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; overflow-x: hidden; }
.zoom.has-info .zoom-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 28px; align-items: center; padding: 4px; }
.zoom.has-info .zoom-body img { max-height: calc(100vh - 56px); }
.zoom-info {
  background: var(--panel); color: var(--ink); padding: 24px; box-shadow: var(--shadow); cursor: auto;
  display: flex; flex-direction: column; gap: 4px; font-size: .95rem;
}
.zoom-info[hidden] { display: none; }
.zoom-info .label-title { font-size: 1.55rem; margin: 2px 0 2px; }
.zoom-info .label-note { margin-top: 12px; font-size: 1rem; max-width: none; }
.zoom-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 2px solid var(--ink); }
@media (max-width: 860px) {
  .zoom.has-info { width: min(560px, calc(100vw - 24px)); }
  .zoom.has-info .zoom-body { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 56px 0 4px; }
  .zoom.has-info .zoom-body img { max-height: 62vh; }
  .zoom-info { padding: 20px; }
}

/* A piece's own page */
.back { display: inline-block; margin-top: 4px; font-weight: 600; font-size: .9rem; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.piece {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(20px, 4vw, 44px) clamp(40px, 6vw, 72px);
}
.piece-hang { display: flex; justify-content: center; align-items: center; min-width: 0; }
.piece-hang button { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; max-width: 100%; }
.piece-hang img { display: block; max-width: 100%; max-height: min(78vh, 780px); width: auto; height: auto; box-shadow: var(--shadow); }
.piece .label { flex: none; font-size: 1rem; gap: 6px; }
.piece-title { font-family: var(--label); font-style: italic; font-weight: 600; font-size: clamp(2rem, 3.8vw, 2.9rem); line-height: 1.06; margin: 2px 0 4px; text-wrap: balance; }
.piece .label-note { font-size: 1.08rem; line-height: 1.6; max-width: 46ch; margin-top: 12px; }
.piece .label-closeups { margin-top: 14px; }
.piece .label-closeups button { width: 84px; height: 84px; }
.piece .label-foot { margin-top: 10px; padding-top: 18px; }
.piece .price { font-size: 1.45rem; }
.piece-line { margin: 14px 0 0; font-size: .9rem; color: var(--muted); max-width: 46ch; }
.pager { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px 24px; align-items: center; border-top: 2px solid var(--ink); padding-top: 20px; }
.pager a.prev, .pager a.next { display: flex; flex-direction: column; gap: 2px; text-decoration: none; min-width: 0; }
.pager a.next { text-align: right; align-items: flex-end; }
.pager span { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pager i { font-family: var(--label); font-weight: 600; font-size: 1.15rem; line-height: 1.25; }
.pager a.prev:hover i, .pager a.next:hover i { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
@media (max-width: 800px) {
  .piece { grid-template-columns: minmax(0, 1fr); }
  .piece-hang img { max-height: 64vh; }
  .pager { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pager .all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}
