/* ЯB Artwork — site styles. Hand-written on purpose: no build step on the
   Combell shared host, and the design is small enough to own directly. */

@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/source-sans-3-cyrillic-300-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/source-sans-3-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/source-sans-3-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/source-sans-3-latin-ext-300-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/source-sans-3-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/source-sans-3-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/source-sans-3-latin-300-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/source-sans-3-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/source-sans-3-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #191919;
  --grey: #6f6a62;
  --muted: #746e66; /* lightest warm grey that still passes AA on white and paper */
  --hair: #e9e4dc;
  --paper: #f7f4ee;
  --field: #ddd7cc;
  --blue: #1878b8;
  --blue-dark: #0f5e94;
  --white: #ffffff;
  --gutter: 72px;
  --measure: 1440px;
  --font: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-weight: 300; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
.paper a { color: var(--blue-dark); }
/* Links inside running text also get an underline, so colour is not the only cue. */
.body-copy a, .meta a, .detail-info p a, .news-item a { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -0.01em; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 100; padding: 12px 18px; background: var(--ink); color: var(--white); font-size: 14px; }
.skip-link:focus { left: 12px; }

.wrap { max-width: var(--measure); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.paper { background: var(--paper); }
.hairline-top { border-top: 1px solid var(--hair); }

/* Type */
.overline { font-size: 11px; font-weight: 400; letter-spacing: 0.32em; text-transform: uppercase; color: var(--grey); }
.display { font-size: clamp(44px, 6vw, 84px); line-height: 1.05; letter-spacing: -0.015em; }
.h-section { font-size: clamp(30px, 3vw, 40px); }
.h-page { font-size: clamp(40px, 4.2vw, 56px); letter-spacing: -0.015em; }
.lede { font-size: 18px; line-height: 1.7; color: var(--grey); max-width: 42ch; }
.body-copy { font-size: 17px; line-height: 1.75; color: var(--grey); max-width: 64ch; }
.body-copy p + p { margin-top: 1.1em; }
.body-copy strong { font-weight: 600; color: var(--ink); }
.body-copy h2 { font-size: 24px; color: var(--ink); margin: 1.6em 0 .5em; }
.body-copy h3 { font-size: 19px; font-weight: 400; color: var(--ink); margin: 1.4em 0 .4em; }
.body-copy ul, .body-copy ol { margin: 1em 0; padding-left: 1.4em; }
.small { font-size: 13px; }
.fine { font-size: 12px; }
.muted { color: var(--muted); }
.grey { color: var(--grey); }
.link-arrow { font-size: 14px; }
.link-arrow::after { content: ' →'; content: ' →' / ''; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 34px; font: inherit; font-size: 13px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; border: 1px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--ink); color: var(--white); }
.btn-blue { border-color: var(--blue); background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn-block { width: 100%; }

/* Header */
.site-header { height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--hair); }
.brand { display: flex; align-items: center; gap: 18px; color: var(--ink); }
.brand img { width: 46px; height: 46px; }
.wordmark { font-size: 13px; font-weight: 400; letter-spacing: 0.38em; }
.wordmark-sm { font-size: 12px; }
.nav { display: flex; align-items: center; gap: 44px; }
.nav a { color: var(--ink); font-size: 14px; font-weight: 400; letter-spacing: 0.04em; padding-bottom: 4px; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.lang { display: flex; gap: 8px; font-size: 12px; letter-spacing: 0.1em; padding-left: 26px; border-left: 1px solid var(--hair); }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--ink); }
.lang .is-active { color: var(--ink); font-weight: 400; }
.nav-toggle { display: none; width: 44px; height: 44px; margin-right: -11px; background: none; border: 0; padding: 0; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink); stroke-width: 1.2; fill: none; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 620px; gap: 100px; padding-top: 104px; align-items: start; }
.hero-copy { display: flex; flex-direction: column; gap: 34px; padding-top: 48px; }
.hero-actions { display: flex; align-items: center; gap: 32px; margin-top: 10px; }
.hero-figure { position: relative; z-index: 1; margin-bottom: -150px; }
.hero-caption { display: none; }
.artframe { border: 1px solid var(--hair); box-shadow: 0 1px 2px rgba(30, 25, 15, .05), 0 14px 40px rgba(30, 25, 15, .08); width: 100%; height: auto; }
.placeholder { background: var(--paper); border: 1px solid var(--hair); aspect-ratio: 2121 / 3000; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; letter-spacing: .25em; text-transform: uppercase; }
.placeholder.is-landscape { aspect-ratio: 3000 / 2122; }

/* Sections */
.section { padding-top: 110px; padding-bottom: 110px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 56px; }
.selected { padding-top: 240px; }
.selected-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; }
.selected-grid > :nth-child(2) { padding-top: 72px; }
/* With a single selected work the band stays balanced instead of leaving
   the second column empty. */
.selected-grid > :only-child { grid-column: 1 / -1; max-width: 720px; margin: 0 auto; width: 100%; }
.figure { display: flex; flex-direction: column; gap: 16px; }
.figure a { color: inherit; }
.caption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.caption-title { font-size: 15px; font-weight: 400; }
.caption-meta { font-size: 13px; color: var(--muted); }

.quote { padding-top: 150px; padding-bottom: 150px; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.quote p { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.5; max-width: 30ch; }
.quote .sig { font-size: 18px; color: var(--grey); }

.collect { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px; }
.collect-item { display: flex; flex-direction: column; gap: 18px; }
.collect-item .num { font-size: 13px; font-weight: 400; letter-spacing: .2em; color: var(--muted); }
.collect-item h3 { font-size: 21px; font-weight: 400; }
.collect-item p { font-size: 16px; line-height: 1.7; color: var(--grey); }

.news { padding-top: 90px; padding-bottom: 100px; }
.news-list { margin-top: 40px; }
.news-item { display: flex; gap: 44px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--hair); }
.news-item time { font-size: 13px; color: var(--muted); min-width: 120px; }
.news-item p { color: var(--grey); margin-top: 4px; }

.newsletter { padding-top: 110px; padding-bottom: 110px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.newsletter h2 { font-size: 32px; }
.newsletter p { font-size: 16px; color: var(--grey); max-width: 52ch; }
.newsletter-form { display: flex; gap: 12px; margin-top: 10px; }
.newsletter-form input { width: 340px; max-width: 70vw; }
.flash { font-size: 14px; color: var(--blue-dark); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
input, textarea { font: inherit; font-size: 15px; color: var(--ink); background: var(--white); border: 1px solid var(--field); padding: 16px 18px; width: 100%; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:focus, textarea:focus { border-color: var(--ink); }
textarea { min-height: 180px; resize: vertical; }
.error { font-size: 13px; color: #a0341f; }
/* Programmatically focused summary, not reachable by Tab: no ring needed. */
.form-alert { font-size: 15px; }
.form-alert:focus { outline: none; }
.optional { text-transform: none; letter-spacing: 0; font-weight: 300; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Footer */
.site-footer { padding-top: 72px; padding-bottom: 72px; border-top: 1px solid var(--hair); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.footer-col a { color: var(--ink); }
.footer-col a:hover { color: var(--blue); }
.footer-right { display: flex; justify-content: flex-end; gap: 56px; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 13px; align-items: flex-end; text-align: right; }
.footer-contact a { color: var(--ink); }
.footer-contact a:hover { color: var(--blue); }
/* The artist's date stamp, framed as its own little plaquette so it reads
   as a signature rather than as part of the contact column. */
.signature { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 16px; border: 1px solid var(--hair); align-self: start; }
.signature span { font-size: 13px; font-weight: 400; letter-spacing: .24em; color: var(--grey); }

/* Portfolio */
.page-head { padding-top: 104px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 28px; }
.page-head-center { align-items: center; text-align: center; }
.filters { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 20px; }
.filters a { color: var(--grey); font-size: 13px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 1px solid transparent; }
.filters a:hover { color: var(--ink); }
.filters a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.masonry { display: flex; gap: 96px; align-items: flex-start; padding-top: 40px; padding-bottom: 130px; }
.masonry-col { flex: 1; display: flex; flex-direction: column; gap: 104px; min-width: 0; }
.masonry .figure { gap: 18px; }
.empty { padding: 80px 0 130px; color: var(--grey); }

/* Artwork / product detail */
.crumbs { padding-top: 40px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs span { color: var(--ink); }
.detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: 96px; padding-top: 44px; padding-bottom: 110px; align-items: start; }
.detail-media { display: flex; flex-direction: column; gap: 22px; }
.thumbs { display: flex; align-items: center; gap: 18px; }
.thumb { background: none; border: 0; padding: 0; cursor: pointer; }
.thumb img { width: 76px; height: auto; border: 1px solid var(--hair); }
.thumb[aria-pressed="true"] img { border-color: var(--ink); }
.detail-info { display: flex; flex-direction: column; gap: 24px; max-width: 480px; }
.detail-info h1 { font-size: clamp(34px, 3.4vw, 46px); }
.meta { display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.6; color: var(--grey); border-top: 1px solid var(--hair); padding-top: 20px; }
.price { font-size: 26px; font-weight: 400; }
.actions { display: flex; flex-direction: column; gap: 12px; width: 320px; max-width: 100%; }
.status-pill { display: inline-block; font-size: 12px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.accordion { margin-top: 12px; }
details { border-top: 1px solid var(--hair); }
details:last-of-type { border-bottom: 1px solid var(--hair); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-size: 15px; font-weight: 400; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 18px; color: var(--muted); }
details[open] summary::after { content: '−'; }
details .body-copy { font-size: 15px; padding-bottom: 18px; }

/* Shop grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 40px; padding-bottom: 20px; }
.shop-section { padding-top: 40px; padding-bottom: 90px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; padding-top: 44px; padding-bottom: 110px; align-items: start; }
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; }
.testimonial { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--ink); padding-top: 22px; }
.testimonial blockquote { margin: 0; font-size: 17px; line-height: 1.7; }
.testimonial cite { font-style: normal; font-size: 13px; color: var(--muted); }

/* Contact */
.contact-details { display: flex; flex-direction: column; gap: 16px; font-size: 15px; }
.contact-details a { color: var(--ink); }
.contact-details a:hover { color: var(--blue); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 96px; padding-top: 44px; padding-bottom: 130px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* Responsive */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .hero { grid-template-columns: minmax(0, 1fr) 460px; gap: 56px; }
  .masonry { gap: 56px; }
  .masonry-col { gap: 72px; }
  .detail, .about-grid, .contact-grid { gap: 56px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  :root { --gutter: 20px; }
  .site-header { height: 64px; }
  .brand img { width: 36px; height: 36px; }
  .brand { gap: 14px; }
  .wordmark { font-size: 11px; letter-spacing: .32em; }
  .nav-toggle { display: flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; z-index: 20; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--hair); padding: 8px 20px 20px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--hair); }
  .nav a[aria-current="page"] { border-bottom-color: var(--hair); color: var(--blue); }
  .lang { padding: 14px 0 0; border-left: 0; }
  .site-header { position: relative; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .hero-copy { padding-top: 0; gap: 22px; }
  .display { font-size: 44px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-actions .btn { width: 100%; }
  /* Mobile hero: image in its own block with a caption, no overlap. */
  .hero-figure { margin-bottom: 0; }
  .hero-actions .link-arrow, .hero-note { display: none; }
  .hero-caption { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; font-size: 14px; font-weight: 400; }
  .hero-caption .mark { font-size: 12px; color: var(--muted); letter-spacing: .1em; }
  .lede { font-size: 15px; }
  .h-section { font-size: 26px; }
  .selected { padding-top: 44px; }
  .section { padding-top: 44px; padding-bottom: 52px; }
  .section-head { margin-bottom: 24px; }
  .selected-grid { grid-template-columns: 1fr; gap: 40px; }
  .selected-grid > :nth-child(2) { padding-top: 0; }
  .quote { padding-top: 80px; padding-bottom: 80px; }
  /* 'Ways to collect' becomes a list of link rows with an arrow on the right. */
  .collect { grid-template-columns: 1fr; gap: 0; }
  .collect-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 4px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--hair); }
  .collect-item:last-child { border-bottom: 0; }
  .collect-item .num { display: none; }
  .collect-item h3 { font-size: 16px; }
  .collect-item p { font-size: 13px; }
  .collect-item .link-arrow { grid-column: 2; grid-row: 1 / span 2; font-size: 0; }
  .collect-item .link-arrow::after { content: '→'; font-size: 18px; }
  .news { padding-top: 56px; padding-bottom: 56px; }
  .news-item { flex-direction: column; gap: 4px; }
  .newsletter { padding-top: 44px; padding-bottom: 44px; gap: 16px; align-items: stretch; text-align: left; }
  .newsletter h2 { font-size: 24px; }
  .newsletter p { font-size: 14px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { width: 100%; max-width: none; }
  /* Footer: one compact column with the signature top-right. */
  .site-footer { grid-template-columns: minmax(0, 1fr) auto; gap: 20px 24px; padding-top: 40px; padding-bottom: 48px; }
  .footer-right { display: contents; }
  .site-footer .footer-col, .footer-contact, .signature span { font-size: 12px; }
  .site-footer .footer-col:nth-child(1) { grid-area: 1 / 1; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; row-gap: 6px; align-items: center; }
  .site-footer .footer-col:nth-child(1) img { width: 32px; height: 32px; }
  .site-footer .footer-col:nth-child(1) .grey { grid-column: 1 / -1; }
  .site-footer .footer-col:nth-child(2) { grid-area: 2 / 1; flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .footer-contact { grid-area: 3 / 1; align-items: flex-start; text-align: left; gap: 8px; }
  .signature { grid-area: 1 / 2; }
  .page-head { padding-top: 48px; padding-bottom: 32px; }
  /* Columns dissolve on mobile; the figures' order property restores the
     true sequence so related works stay together. Known tradeoff: tab/reader
     order keeps the column-major DOM order, the price of preserving the
     approved staggered two-column desktop layout in Blade. */
  .masonry { flex-direction: column; gap: 56px; padding-bottom: 64px; }
  .masonry-col { display: contents; }
  .detail, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 64px; }
  .actions { width: 100%; }
  .grid-3 { grid-template-columns: 1fr; gap: 48px; }
  .contact-form .row { grid-template-columns: 1fr; }
}
