/* Four Pieces theme. Mobile first. One accent, one display face. */
:root {
  --ground: #F1EEE7;
  --surface: #F8F7F3;
  --ink: #1F1D1A;
  --ink-2: #4B463F;
  --muted: #6E675C;
  --rule: #DCD6C9;
  --accent: #2F5D50;
  --accent-ink: #F3F6F4;
  --accent-light: #7FB3A3;
  --dark: #1F2A26;
  --dark-text: #E9E4D8;
  --dark-muted: #C9C2B3;
  --teak: #9A6B3E;
  --teak-ink: #FBF4EA;
  --display: "Cormorant Garamond", "Iowan Old Style", "Palatino", Georgia, serif;
  --body: Jost, "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1312px;
  --gutter: 24px;
  --radius: 4px;
}
@media (min-width: 900px) { :root { --gutter: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.is-piece--available { padding-bottom: 88px; }
@media (min-width: 900px) { body.is-piece--available { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; }
address { font-style: normal; }
.icon { flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.muted { color: var(--muted); }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* Placeholder used when a photo is missing */
.ph { position: relative; overflow: hidden; background: linear-gradient(135deg, #D9D2C3 0%, #C4BBA8 60%, #B3A892 100%); aspect-ratio: 4 / 5; border-radius: 3px; }
.ph::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 6px, transparent 6px 14px); }
.ph span { position: absolute; left: 12px; bottom: 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #5D554A; font-weight: 500; z-index: 1; }
.ph--tall { aspect-ratio: 4 / 5; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: var(--radius);
  font-family: var(--body); font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; line-height: 1.2; white-space: nowrap;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #274d42; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: rgba(31,29,26,.05); }
.btn--outline-light { border-color: var(--accent-light); color: var(--dark-text); }
.btn--outline-light:hover { background: rgba(127,179,163,.12); }
.btn--pill { border-radius: 999px; border-color: var(--ink); color: var(--ink); min-height: 44px; padding: 0 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; font-size: 14px; padding: 0 14px; border-color: var(--accent); color: var(--accent); }
.link { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.link--arrow { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; min-height: 44px; }
.link--light { color: var(--accent-light); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--ground); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: .02em; color: var(--ink); text-decoration: none; }
.wordmark--footer { color: var(--ground); font-size: 22px; }
.nav { display: none; }
.nav__list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 500; }
.nav__list a { color: var(--ink); text-decoration: none; }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.site-header__contact { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; }
.site-header__lang { color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: .12em; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; }
.site-header__lang:hover { color: var(--ink); background: rgba(31,29,26,.05); }
.site-header__phone { display: none; }
.site-header__back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.is-piece .site-header__contact { display: none; }
.is-piece .site-header__call { display: none; }
.is-piece .btn--pill { width: 44px; padding: 0; }
@media (min-width: 900px) {
  .site-header__inner { min-height: 80px; }
  .wordmark { font-size: 28px; }
  .nav { display: block; }
  .site-header__contact, .site-header__back { display: none; }
  .site-header__phone { display: inline; }
  .site-header__call { display: none; }
  .is-piece .btn--pill { width: auto; padding: 0 18px; }
}

/* Hero */
.hero { padding: 40px 0 0; }
.hero__inner { display: flex; flex-direction: column; gap: 28px; }
.hero__copy { display: flex; flex-direction: column; gap: 18px; }
.hero__title { font-size: clamp(44px, 11vw, 76px); letter-spacing: -.01em; line-height: .98; }
.hero__sub { font-size: 17px; color: var(--ink-2); max-width: 40ch; }
.hero__actions { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.hero__actions .link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.hero__media { margin: 0 calc(var(--gutter) * -1); }
.hero__media .ph { aspect-ratio: 13 / 10; border-radius: 0; }
.hero__media img { width: 100%; aspect-ratio: 13 / 10; object-fit: cover; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 64px; }
  .hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .hero__copy { max-width: 560px; }
  .hero__sub { font-size: 19px; }
  .hero__actions { flex-direction: row; align-items: center; gap: 22px; }
  .hero__actions .btn { padding: 0 26px; min-height: 54px; }
  .hero__media { margin: 0; }
  .hero__media .ph, .hero__media img { aspect-ratio: 6 / 5; border-radius: 3px; }
}

/* Section heads */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--ink); padding-bottom: 12px; margin-bottom: 28px; }
.section-head--plain { border: 0; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.section-title { font-size: 30px; }
.section-title--sm { font-size: 26px; margin-bottom: 16px; }
.section-note { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
@media (min-width: 900px) { .section-title { font-size: 40px; } .section-head { padding-bottom: 14px; margin-bottom: 32px; } }

/* The four */
.four { padding: 44px 0 24px; }
.four__grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 600px) { .four__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .four { padding: 24px 0 48px; } .four__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Card */
.card { display: flex; flex-direction: column; gap: 12px; }
.card__media { position: relative; display: block; border-radius: 3px; overflow: hidden; }
.card__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 4px; }
.card__title { font-size: 26px; font-weight: 600; line-height: 1.1; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__hook { font-size: 15px; color: var(--muted); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.card__price { font-size: 15px; font-weight: 500; }
.card--compact .card__title { font-size: 20px; }
.card--compact .card__price { font-size: 13px; color: var(--muted); font-weight: 400; }
@media (min-width: 900px) { .card__title { font-size: 25px; } }
.tag { position: absolute; top: 12px; left: 12px; z-index: 1; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; padding: 6px 10px; border-radius: 2px; }
.tag--new { background: var(--teak); color: var(--teak-ink); }
.tag--sold { background: var(--ink); color: var(--ground); }
.piece__tags .tag { position: static; }

/* Why only four */
.why { margin-top: 24px; background: var(--dark); color: var(--dark-text); padding: 44px 0; }
.why__inner { display: flex; flex-direction: column; gap: 16px; }
.why__numeral { font-family: var(--display); font-size: 96px; line-height: .8; color: var(--accent-light); }
.why__copy { display: flex; flex-direction: column; gap: 16px; }
.why__title { font-size: 32px; }
.why__text { color: var(--dark-muted); max-width: 40ch; line-height: 1.55; }
.why .btn { align-self: stretch; }
@media (min-width: 900px) {
  .why { padding: 80px 0; margin-top: 0; }
  .why__inner { display: grid; grid-template-columns: 200px 1fr; gap: 64px; align-items: start; }
  .why__numeral { font-size: 200px; }
  .why__title { font-size: 44px; }
  .why__text { font-size: 19px; max-width: 620px; }
  .why .btn { align-self: flex-start; min-height: 54px; padding: 0 26px; }
}

/* About teaser */
.about-teaser { padding: 44px 0; }
.about-teaser__inner { display: flex; flex-direction: column; gap: 16px; }
.about-teaser__media .ph, .about-teaser__media img { aspect-ratio: 3 / 2; border-radius: 3px; width: 100%; object-fit: cover; }
.about-teaser__copy { display: flex; flex-direction: column; gap: 14px; }
.about-teaser__copy p { color: var(--ink-2); line-height: 1.55; max-width: 44ch; }
@media (min-width: 900px) {
  .about-teaser { padding: 80px 0; }
  .about-teaser__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .about-teaser__copy p { font-size: 18px; }
}

/* Contact block + buttons */
.contact-block { padding: 40px 0 48px; border-top: 1px solid var(--rule); }
.contact-block__inner { display: flex; flex-direction: column; gap: 20px; }
.contact-block__copy { display: flex; flex-direction: column; gap: 10px; }
.contact-buttons { display: flex; flex-direction: column; gap: 10px; }
.contact-buttons__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.contact-buttons__row .btn { padding: 0 10px; }
.showroom { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; font-size: 15px; color: var(--ink-2); }
.showroom__label { font-weight: 500; color: var(--ink); }
@media (min-width: 900px) {
  .contact-block { padding: 64px 0 80px; }
  .contact-block__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
  .contact-block__actions { max-width: 480px; justify-self: end; width: 100%; }
  .contact-buttons__row { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
}

/* Footer */
.site-footer { background: var(--ink); color: #B8B1A3; font-size: 14px; margin-top: auto; }
.site-footer__inner { display: flex; flex-direction: column; gap: 14px; padding-top: 32px; padding-bottom: 40px; }
.site-footer__links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-footer__links a { color: var(--dark-text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer__links li:last-child a { color: #B8B1A3; }
@media (min-width: 900px) { .site-footer__inner { flex-direction: row; align-items: center; justify-content: space-between; } }

/* Piece page */
.sold-banner { background: var(--teak); color: var(--teak-ink); }
.sold-banner__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 12px; padding-bottom: 12px; font-size: 15px; }
.sold-banner .link { color: var(--teak-ink); }
.piece { padding: 16px 0 0; }
.piece__inner { display: flex; flex-direction: column; gap: 24px; }
.piece__panel { display: flex; flex-direction: column; gap: 20px; }
.piece__head { display: flex; flex-direction: column; gap: 10px; }
.piece__tags { display: flex; align-items: center; gap: 10px; }
.piece__title { font-size: 38px; letter-spacing: -.01em; }
.piece__hook { font-size: 17px; color: var(--ink-2); }
.piece__price { font-size: 18px; font-weight: 500; }
.piece__desc { color: #2E2B26; line-height: 1.6; }
.prose p { margin: 0 0 12px; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose h2 { font-size: 28px; margin: 32px 0 10px; }
.prose h3 { font-size: 22px; margin: 24px 0 8px; }
.prose > :first-child { margin-top: 0; }
.details { display: grid; grid-template-columns: 110px minmax(0, 1fr); margin: 0; border-top: 1px solid var(--rule); font-size: 15px; }
.details dt, .details dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.details dt { color: var(--muted); }
.piece__cta { display: flex; flex-direction: column; gap: 10px; }
.piece__promise { font-size: 14px; color: var(--muted); text-align: center; }
@media (min-width: 900px) {
  .piece { padding: 24px 0 0; }
  .piece__inner { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 64px; align-items: start; }
  .piece__panel { position: sticky; top: 24px; }
  .piece__title { font-size: 44px; }
}

/* Gallery: native scroll-snap on mobile, stacked grid on desktop */
.gallery { margin: 0 calc(var(--gutter) * -1); }
.gallery__track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__item { flex: 0 0 calc(100% - var(--gutter) - 24px); margin: 0; scroll-snap-align: start; }
.gallery__zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 3px; overflow: hidden; }
.gallery__zoom img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery__meta { display: flex; justify-content: space-between; padding: 10px var(--gutter) 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
@media (min-width: 900px) {
  .gallery { margin: 0; }
  .gallery__track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; overflow: visible; padding: 0; }
  .gallery__item { flex: none; }
  .gallery__item:first-child { grid-column: 1 / -1; }
  .gallery__item:first-child .gallery__zoom img { aspect-ratio: 4 / 3; }
  .gallery__meta { display: none; }
}
.lightbox { border: 0; padding: 0; background: rgba(20,18,16,.96); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(20,18,16,.9); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox__close { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 999px; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; cursor: pointer; }

/* Inquire section */
.inquire { padding: 40px 0 8px; }
.inquire__inner { max-width: 640px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form__grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field__label { font-size: 14px; font-weight: 500; }
.field__input { font: inherit; font-size: 16px; min-height: 48px; padding: 10px 12px; border: 1px solid #B9B3A6; border-radius: var(--radius); background: var(--surface); color: var(--ink); width: 100%; }
.field__input:focus { border-color: var(--accent); }
textarea.field__input { resize: vertical; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { background: #F6E3DD; color: #7A2E1D; padding: 10px 14px; border-radius: var(--radius); font-size: 15px; }
.form__note { font-size: 14px; }
@media (min-width: 600px) { .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Others row */
.others { padding: 40px 0 8px; }
.others__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card--ask { background: var(--dark); color: var(--dark-text); border-radius: 3px; grid-column: 1 / -1; }
.card--ask__inner { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.card--ask__title { font-size: 26px; }
.card--ask p { color: var(--dark-muted); font-size: 15px; line-height: 1.55; }
@media (min-width: 900px) {
  .others { padding: 72px 0 0; }
  .others__row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .card--ask { grid-column: auto; }
  .card--ask__inner { justify-content: center; height: 100%; padding: 28px; }
}

/* Sticky bar (mobile only) */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 64px 64px minmax(0, 1fr); gap: 8px; align-items: center;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(241,238,231,.96);
  border-top: 1px solid var(--rule); box-shadow: 0 -8px 24px rgba(31,29,26,.08); backdrop-filter: blur(8px);
}
.stickybar__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 52px; border: 1px solid var(--ink); border-radius: var(--radius); color: var(--ink); font-size: 11px; font-weight: 500; text-decoration: none; }
.stickybar__primary { height: 52px; }
.stickybar:not(:has(.stickybar__btn)) { grid-template-columns: 1fr; }
@media (min-width: 900px) { .stickybar { display: none; } }

/* Sold gallery shortcode (About page) */
.sold-gallery { margin-top: 40px; }
.page__inner:has(.sold-gallery) { max-width: none; }
.page__inner:has(.sold-gallery) .page__head, .page__inner:has(.sold-gallery) .page__content > :not(.sold-gallery), .page__inner:has(.sold-gallery) .page__cta { max-width: 720px; }
.sold-gallery .card__media img { filter: saturate(.85); }
@media (min-width: 900px) { .sold-gallery__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Generic pages, contact, thank-you */
.page { padding: 40px 0 48px; }
.page__inner { max-width: 720px; display: flex; flex-direction: column; gap: 24px; }
.page__title { font-size: 38px; }
.page__content { color: var(--ink-2); line-height: 1.6; font-size: 17px; }
.page__media img { border-radius: 3px; width: 100%; }
.contact { padding: 40px 0 48px; }
.contact__inner { display: flex; flex-direction: column; gap: 32px; }
.contact__copy { display: flex; flex-direction: column; gap: 16px; }
.thanks { padding: 48px 0 24px; }
.thanks__inner { max-width: 640px; display: flex; flex-direction: column; gap: 14px; }
.thanks__lead { font-size: 19px; color: var(--ink-2); }
.archive { padding: 40px 0 48px; }
.empty { color: var(--muted); }
.pagination { margin-top: 32px; font-weight: 500; }
@media (min-width: 900px) {
  .page { padding: 72px 0 80px; }
  .page__title { font-size: 52px; }
  .contact { padding: 72px 0 80px; }
  .contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .thanks { padding: 80px 0 24px; }
}
