/*
Theme Name: Jon John Studio v4.23 Final
Theme URI: https://jonjohnart.com
Author: Jon John
Description: A restrained, artwork-first portfolio and archive theme for Jon John.
Version: 4.23.0
Text Domain: jon-john-studio
*/

:root {
  --ink: #1d1d1f;
  --paper: #f5f4f0;
  --panel: #ecece8;
  --oat: #e7e3da;
  --mineral: #d2d4cf;
  --stone: #ece9e2;
  --white: #faf9f6;
  --muted: #65645f;
  --accent: #22c7d7;
  --line: rgba(29,29,31,.16);
  --line-dark: rgba(29,29,31,.22);
  --art-border: #c9c6bd;
  --pad: clamp(20px, 4vw, 64px);
  --header-h: 108px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
body.is-locked { position: fixed; inset-inline: 0; width: 100%; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--pad); background: rgba(245,244,240,.94); border-bottom: 1px solid rgba(29,29,31,.10); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transform: translate3d(0,0,0); transition: transform .34s cubic-bezier(.22,.78,.24,1), background-color .2s ease; will-change: transform; }
.site-header.is-hidden { transform: translate3d(0,calc(-100% - 2px),0); }
.site-header.is-forced, body.is-locked .site-header { transform: translate3d(0,0,0); }
.admin-bar .site-header { top: 32px; }
.brand { justify-self: center; border: 2px solid var(--ink); padding: 15px 24px 13px; font-size: clamp(16px, 1.5vw, 24px); font-weight: 700; letter-spacing: .18em; line-height: 1; text-transform: uppercase; }
.icon-button { border: 0; background: transparent; padding: 10px; cursor: pointer; display: inline-grid; place-items: center; }
.menu-toggle { justify-self: start; margin-left: -10px; }
.search-toggle { justify-self: end; margin-right: -10px; }
.menu-glyph, .menu-glyph::before, .menu-glyph::after { width: 34px; height: 2px; background: var(--ink); display: block; }
.menu-glyph { position: relative; }
.menu-glyph::before, .menu-glyph::after { content: ""; position: absolute; left: 0; }
.menu-glyph::before { top: -10px; }
.menu-glyph::after { top: 10px; }
.search-glyph { width: 25px; height: 25px; border: 3px solid var(--ink); border-radius: 50%; position: relative; }
.search-glyph::after { content: ""; position: absolute; width: 13px; height: 3px; background: var(--ink); right: -10px; bottom: -5px; transform: rotate(48deg); }

.section[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

.site-panel { position: fixed; inset: 0; z-index: 60; background: var(--paper); padding: var(--pad); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .28s ease, transform .28s ease, visibility .28s; }
.site-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.panel-close { position: absolute; top: 30px; right: var(--pad); border: 0; background: transparent; font-size: 42px; font-weight: 300; cursor: pointer; }
.panel-inner { min-height: 100%; display: grid; align-content: center; }
.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-list a { display: inline-block; font-size: clamp(42px, 7vw, 108px); line-height: .98; letter-spacing: -.05em; border-bottom: 2px solid transparent; }
.menu-list a:hover, .menu-list a:focus-visible { border-color: var(--ink); }
.menu-meta { margin-top: 48px; display: flex; gap: 24px; color: var(--muted); }
.search-form-wrap { width: min(900px, 100%); margin: auto; }
.search-form { display: flex; border-bottom: 2px solid var(--ink); }
.search-form input[type="search"] { width: 100%; border: 0; background: transparent; padding: 18px 0; font-size: clamp(28px, 5vw, 72px); outline: 0; }
.search-form button { border: 0; background: transparent; cursor: pointer; font-weight: 700; }
#site-search { overflow-y: auto; overscroll-behavior: contain; }
#site-search .panel-inner { min-height: 0; padding-top: clamp(92px, 15vh, 170px); padding-bottom: clamp(48px, 8vh, 96px); align-content: start; }
.live-search { width: 100%; }
.live-search-status { margin: 14px 0 0; min-height: 1.5em; color: var(--muted); font-size: 14px; }
.live-search-results { margin-top: clamp(28px, 5vh, 54px); }
.live-search-results[hidden] { display: none; }
.live-search-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.live-search-result { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.live-search-result:hover .live-search-title,
.live-search-result:focus-visible .live-search-title { text-decoration: underline; text-underline-offset: 4px; }
.live-search-thumb { width: 104px; height: 82px; overflow: hidden; background: #e5e4df; }
.live-search-thumb img { width: 100%; height: 100%; object-fit: cover; }
.live-search-title { display: block; font-size: clamp(18px, 2vw, 25px); line-height: 1.05; letter-spacing: -.025em; }
.live-search-meta { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.live-search-all { margin-top: 28px; }
.live-search-empty { margin: 0; padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 18px; }

.hero { overflow: hidden; padding-bottom: 24px; background: var(--paper); }
.hero-shell { display: grid; grid-template-columns: clamp(48px, 5vw, 78px) minmax(0, 1fr) clamp(48px, 5vw, 78px); align-items: stretch; }
.hero-viewport { overflow: hidden; min-width: 0; }
.hero-track { display: flex; gap: clamp(18px, 2vw, 30px); width: 100%; transform: translate3d(0,0,0); transition: transform .52s cubic-bezier(.22,.78,.24,1); touch-action: pan-y; outline-offset: -3px; will-change: transform; }
.hero-track.is-instant { transition: none; }
.hero-slide { flex: 0 0 calc(100% - clamp(64px, 8vw, 124px)); min-width: 0; }
.hero-art { position: relative; display: block; width: 100%; height: calc(100vh - var(--header-h) - 38px); min-height: 560px; max-height: 960px; overflow: hidden; background: #e7e6e1; }
.hero-art img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s cubic-bezier(.2,.75,.25,1); }
.hero-mobile-image { display: none; }
.hero-art:hover img { transform: scale(1.006); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 66%, rgba(20,20,20,.03) 77%, rgba(20,20,20,.50) 100%); pointer-events: none; }
.hero-caption { position: absolute; left: clamp(28px, 5vw, 76px); bottom: clamp(28px, 6vw, 72px); color: var(--white); text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero-caption::before { content: ""; display: block; width: 14px; height: 14px; margin-bottom: 14px; background: var(--accent); }
.hero-title { display: block; font-size: clamp(30px, 3.2vw, 58px); letter-spacing: -.035em; }
.hero-count { display: block; margin-top: 10px; font-size: 18px; letter-spacing: .05em; }
.hero-arrow { border: 0; background: transparent; display: grid; place-items: center; padding: 0; cursor: pointer; }
.hero-arrow span { width: 19px; height: 19px; border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); transition: transform .2s ease; }
.hero-arrow-prev span { transform: rotate(-135deg); }
.hero-arrow-next span { transform: rotate(45deg); }
.hero-arrow-prev:hover span, .hero-arrow-prev:focus-visible span { transform: rotate(-135deg) translate(3px,-3px); }
.hero-arrow-next:hover span, .hero-arrow-next:focus-visible span { transform: rotate(45deg) translate(3px,-3px); }
.hero-arrow:focus-visible { outline: 1px solid var(--ink); outline-offset: -10px; }
.hero-mobile-controls { display: none; }

.section { padding: clamp(72px, 10vw, 160px) var(--pad); }
.works-section { background: var(--panel); }
.about-section { background: var(--oat); }
.exhibitions-section { background: var(--mineral); color: var(--ink); }
.section-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 52px; }
.section-heading { margin: 0; font-size: clamp(42px, 7vw, 104px); font-weight: 400; letter-spacing: -.055em; line-height: .95; }
.text-link { display: inline-block; border-bottom: 1px solid currentColor; padding-bottom: 3px; white-space: nowrap; }

.works-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(48px, 7vw, 100px) clamp(24px, 4vw, 64px); align-items: start; }
.work-card { grid-column: span 6; min-width: 0; }
.work-card.work-wide { grid-column: 1 / -1; }
.work-card.work-centered { grid-column: 4 / span 6; }
.work-card-media { display: block; width: 100%; background: #e5e4df; overflow: hidden; }
.work-card-media img { width: 100%; height: auto; transition: transform .55s ease; }
.work-card-media:hover img { transform: scale(1.008); }
.work-card h2, .work-card h3 { margin: 17px 0 5px; font-size: 20px; font-weight: 500; }
.work-meta { margin: 0; color: var(--muted); line-height: 1.5; font-size: 14px; }
.works-footer-link { display: flex; justify-content: flex-end; margin-top: clamp(52px, 7vw, 100px); }

.about-grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(48px, 9vw, 150px); align-items: start; }
.eyebrow { text-transform: uppercase; letter-spacing: .15em; font-size: 12px; font-weight: 700; }
.about-copy { font-size: clamp(25px, 3vw, 46px); line-height: 1.14; letter-spacing: -.035em; }
.about-copy p { margin: 0 0 .9em; }
.about-copy .text-link { font-size: 17px; letter-spacing: 0; }
.full-bio { font-size: clamp(23px, 2.5vw, 38px); }
.bio-portrait { margin: 0; width: 100%; align-self: start; }
.bio-portrait img { width: 100%; height: auto; }

.exhibition-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-dark); }
.exhibition-list li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line-dark); }

.contact-section { min-height: 44vh; display: grid; align-content: center; background: var(--stone); }
.contact-section h2 { margin: 24px 0 38px; font-size: clamp(48px, 8vw, 118px); line-height: .9; letter-spacing: -.06em; font-weight: 400; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.contact-link { display: inline-block; font-size: clamp(24px, 3vw, 46px); border-bottom: 2px solid var(--ink); }

.site-footer { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px var(--pad); border-top: 1px solid var(--line); color: var(--muted); background: var(--stone); font-size: 13px; }
.footer-signature { width: 46px; height: 43px; margin-top: -14px; margin-bottom: -14px; }
.footer-signature img { width: 100%; height: 100%; object-fit: contain; }

.page-shell { padding: 58px var(--pad) clamp(100px, 12vw, 180px); min-height: 70vh; background: var(--paper); }
.page-shell h1 { font-size: clamp(58px, 10vw, 148px); letter-spacing: -.065em; font-weight: 400; margin: 18px 0 clamp(70px, 10vw, 150px); line-height: .88; }
.entry-content { max-width: 860px; font-size: 20px; line-height: 1.65; }
.search-results-section { min-height: 70vh; background: var(--panel); }
.search-results-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin: 18px 0 clamp(58px, 8vw, 110px); }
.search-results-title { max-width: 980px; margin: 0; font-size: clamp(48px, 8vw, 112px); font-weight: 400; letter-spacing: -.06em; line-height: .9; overflow-wrap: anywhere; }
.search-results-count { margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.search-results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(60px, 8vw, 110px) clamp(24px, 4vw, 64px); align-items: start; }
.search-results-grid.is-single { grid-template-columns: minmax(0, 760px); }
.search-results-grid .work-card { grid-column: auto; }
.search-empty { max-width: 760px; padding: clamp(44px, 7vw, 90px) 0; border-top: 1px solid var(--line-dark); }
.search-empty h2 { margin: 0 0 16px; font-size: clamp(32px, 5vw, 56px); font-weight: 400; letter-spacing: -.04em; }
.search-empty p { margin: 0 0 34px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.search-empty .search-form { margin-top: 42px; }
.cv-section { margin: 0 0 90px; }
.cv-section h2 { margin: 0 0 28px; font-size: clamp(30px, 4vw, 58px); font-weight: 400; letter-spacing: -.04em; }
.archive-section { background: var(--panel); }
.archive-section .eyebrow { display: block; margin-bottom: 18px; }
.archive-section > .section-heading { margin-bottom: clamp(40px, 6vw, 76px); }
.archive-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 22px 40px; margin-bottom: clamp(60px, 8vw, 110px); padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.archive-view-toggle { display: inline-flex; border: 1px solid var(--line-dark); }
.archive-view-toggle button { border: 0; border-right: 1px solid var(--line-dark); padding: 11px 16px; background: transparent; color: var(--muted); cursor: pointer; }
.archive-view-toggle button:last-child { border-right: 0; }
.archive-view-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.archive-year-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.archive-year-nav a { color: var(--muted); border-bottom: 1px solid transparent; }
.archive-year-nav a:hover, .archive-year-nav a:focus-visible { color: var(--ink); border-color: currentColor; }
.archive-year + .archive-year { margin-top: clamp(100px, 13vw, 190px); }
.archive-year-title { margin: 0 0 clamp(42px, 6vw, 76px); padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: clamp(28px, 4vw, 54px); font-weight: 400; letter-spacing: -.04em; }
.archive-year { scroll-margin-top: calc(var(--header-h) + 24px); }

.archive-view-single .archive-year-nav,
.archive-view-single .archive-year-title { display: none; }
.archive-view-single .archive-year + .archive-year { margin-top: 0; }
.archive-view-single .works-grid { display: block; }
.archive-view-single .work-card,
.archive-view-single .work-card.work-wide,
.archive-view-single .work-card.work-centered { width: 100%; max-width: 1180px; margin: 0 auto clamp(88px, 12vw, 180px); }
.archive-view-single .work-card-media { display: grid; place-items: center; min-height: min(68vh, 760px); border: 1px solid var(--art-border); }
.archive-view-single .work-card-media img { width: auto; max-width: 100%; max-height: 78vh; object-fit: contain; margin: auto; }

.artwork-page { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: minmax(0, 3fr) minmax(330px, 1fr); background: var(--panel); }
.artwork-page-image { padding: clamp(20px, 4vw, 64px); display: grid; place-items: center; }
.artwork-page-image img { width: 100%; max-height: calc(100vh - 80px); object-fit: contain; border: 1px solid var(--art-border); }
.artwork-page-info { position: sticky; top: var(--header-h); align-self: start; min-height: calc(100vh - var(--header-h)); padding: clamp(44px, 6vw, 94px) clamp(28px, 4vw, 64px); background: var(--paper); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.back-link { position: absolute; top: 30px; left: clamp(28px, 4vw, 64px); border-bottom: 1px solid currentColor; }
.artwork-page-info h1 { font-size: clamp(42px, 5vw, 76px); line-height: .95; letter-spacing: -.05em; font-weight: 400; margin: 0 0 28px; }
.artwork-details { color: var(--muted); line-height: 1.65; }
.inquiry-button { display: inline-block; align-self: flex-start; margin-top: 34px; padding: 15px 20px; border: 1px solid var(--ink); transition: background .2s, color .2s; }
.inquiry-button:hover { background: var(--ink); color: var(--white); }
.artwork-page-info .inquiry-button { align-self: center; }
.artwork-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.artwork-actions .inquiry-button { margin-top: 0; }
.view-all-button { white-space: nowrap; }

.artwork-preview { width: min(1120px, calc(100% - 40px)); max-height: calc(100vh - 40px); border: 0; padding: 0; background: var(--paper); color: var(--ink); box-shadow: 0 30px 90px rgba(29,29,31,.18); }
.artwork-preview::backdrop { background: rgba(29,29,31,.36); backdrop-filter: blur(4px); }
.artwork-preview[open] { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(320px, 1fr); }
.preview-image-wrap { display: grid; place-items: center; min-height: 64vh; padding: clamp(24px, 4vw, 58px); background: var(--panel); }
.preview-image-wrap img { max-width: 100%; max-height: 72vh; object-fit: contain; border: 1px solid var(--art-border); }
.preview-info { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: clamp(34px, 5vw, 68px) clamp(28px, 3vw, 48px); text-align: center; }
.preview-info h2 { margin: 22px 0 18px; font-size: clamp(38px, 5vw, 68px); line-height: .95; letter-spacing: -.05em; font-weight: 400; }
.preview-info p { margin: 0; color: var(--muted); line-height: 1.6; }
.preview-info .inquiry-button { align-self: center; }
.preview-navigation { width: 100%; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 22px; }
.preview-navigation[hidden] { display: none; }
.preview-nav { border: 0; background: transparent; padding: 7px 0; color: var(--muted); cursor: pointer; }
.preview-nav:hover, .preview-nav:focus-visible { color: var(--ink); }
.preview-nav span { display: inline-block; transition: transform .2s ease; }
.preview-prev:hover span, .preview-prev:focus-visible span { transform: translateX(-3px); }
.preview-next:hover span, .preview-next:focus-visible span { transform: translateX(3px); }
.preview-close { position: absolute; top: 18px; right: 20px; z-index: 2; border: 0; background: transparent; font-size: 36px; font-weight: 300; cursor: pointer; }

@media (max-width: 800px) {
  :root { --header-h: 82px; }
  .site-header { grid-template-columns: 48px 1fr 48px; }
  .brand { padding: 12px 15px 10px; font-size: 14px; }
  .menu-glyph, .menu-glyph::before, .menu-glyph::after { width: 28px; }
  .hero-shell { grid-template-columns: 0 minmax(0, 1fr) 0; }
  .hero-arrow { display: none; }
  .hero-viewport { padding-left: var(--pad); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .hero-viewport::-webkit-scrollbar { display: none; }
  .hero-track { transform: none !important; will-change: auto; }
  .hero-slide { flex-basis: 88%; scroll-snap-align: start; }
  .hero-art { min-height: 0; height: min(68vh, 650px); }
  .hero-caption { left: 22px; right: 22px; bottom: 24px; }
  .hero-title { max-width: 88%; font-size: clamp(23px, 7.2vw, 27px); line-height: 1.02; overflow-wrap: anywhere; }
  .hero-count { margin-top: 8px; font-size: 15px; }
  .section-heading { font-size: clamp(38px, 11.5vw, 48px); line-height: .96; }
  .work-card h2, .work-card h3 { font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
  .contact-section h2 { font-size: clamp(44px, 13vw, 54px); line-height: .94; }
  .page-shell h1 { font-size: clamp(46px, 14vw, 58px); line-height: .92; overflow-wrap: anywhere; }
  .search-results-header { align-items: flex-start; flex-direction: column; }
  .search-results-title { font-size: clamp(44px, 13vw, 62px); line-height: .92; }
  .search-results-grid, .search-results-grid.is-single { display: block; }
  #site-search .panel-inner { padding-top: 92px; padding-bottom: 48px; }
  .search-form-wrap { margin: 0 auto; }
  .search-form input[type="search"] { font-size: clamp(29px, 9vw, 42px); }
  .live-search-list { grid-template-columns: 1fr; gap: 0; }
  .live-search-result { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
  .live-search-thumb { width: 84px; height: 68px; }
  .live-search-title { font-size: 20px; }
  .archive-year-title { font-size: 32px; }
  .artwork-page-info h1 { font-size: clamp(36px, 11vw, 44px); line-height: .98; overflow-wrap: anywhere; }
  .preview-info h2 { font-size: clamp(32px, 10vw, 40px); line-height: .98; overflow-wrap: anywhere; }
  .artwork-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .artwork-actions .inquiry-button { width: 100%; max-width: 320px; align-self: center; text-align: center; }
  .section-title-row { align-items: flex-start; flex-direction: column; margin-bottom: 38px; }
  .works-grid { display: block; }
  .work-card { margin-bottom: 56px; }
  .archive-tools { align-items: flex-start; }
  .archive-year-nav { width: 100%; }
  .archive-view-single .work-card-media { min-height: 54vh; }
  .works-footer-link { justify-content: flex-start; }
  .about-grid { grid-template-columns: 1fr; }
  .about-copy { font-size: 27px; }
  .exhibition-list li { grid-template-columns: 86px 1fr; }
  .artwork-page { display: block; }
  .artwork-page-image { min-height: 62vh; }
  .artwork-page-image img { max-height: 58vh; }
  .artwork-page-info { position: relative; top: auto; min-height: auto; padding-top: 88px; }
  .artwork-preview[open] { display: block; overflow-y: auto; }
  .preview-image-wrap { min-height: 52vh; }
  .preview-image-wrap img { max-height: 50vh; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
