:root {
  --paper: #fbf7ef;
  --ink: #17130f;
  --muted: #6f675c;
  --line: #ded4c5;
  --shell: #f3e4dd;
  --sea: #4b96b4;
  --cobalt: #244e7c;
  --tomato: #d84f3b;
  --moss: #738754;
  --gold: #c7a85c;
  --white: #fffdf8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 10;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
}

.skip-link:focus {
  top: 16px;
}

.announcement {
  display: flex;
  justify-content: center;
  gap: 18px;
  align-items: center;
  min-height: 42px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}

.announcement a {
  color: var(--tomato);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 22px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 247, 239, .94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 32px);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

nav a,
.footer-links a,
.section-heading a {
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.icon-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
}

.icon-link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.button.secondary {
  background: var(--white);
  color: var(--ink);
}

.button.small {
  min-height: 40px;
  padding: 10px 16px;
  font-size: 12px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(180px, .72fr) minmax(320px, .9fr) minmax(220px, .78fr);
  height: clamp(620px, 78vh, 780px);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.hero-art {
  height: 100%;
  min-height: 520px;
  overflow: hidden;
  position: relative;
  background: var(--ink);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-art.is-slider > img:not(.hero-slide) {
  display: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateX(12%);
  transition: opacity 900ms ease, transform 900ms ease;
  will-change: opacity, transform;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
}

.hero-slide.is-exiting {
  opacity: 0;
  transform: translateX(-10%);
}

.hero-art-left img {
  object-position: 50% 42%;
}

.hero-art-right img {
  object-position: 48% 32%;
}

.hero-art-left .hero-slide {
  object-position: 50% 42%;
}

.hero-art-right .hero-slide {
  object-position: 48% 32%;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
    transform: none;
  }

  .hero-slide.is-exiting {
    transform: none;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(34px, 6vw, 80px) clamp(24px, 5vw, 72px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--tomato);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: .98;
}

h1 {
  max-width: 760px;
  font-size: clamp(58px, 8vw, 126px);
}

h2 {
  font-size: clamp(38px, 5vw, 74px);
}

h3 {
  font-size: 30px;
}

.hero-subtitle {
  max-width: 540px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.marquee-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px clamp(18px, 4vw, 44px);
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--cobalt);
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.2vw, 32px);
}

.section {
  padding: clamp(60px, 9vw, 130px) clamp(20px, 5vw, 72px);
}

#work,
#about,
#projects,
#commissions {
  scroll-margin-top: 118px;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(320px, 1fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: center;
  background: var(--shell);
}

.feature-media {
  overflow: hidden;
  border: 1px solid var(--ink);
}

.feature-media img {
  width: 100%;
  height: clamp(440px, 44vw, 660px);
  object-fit: cover;
  object-position: 50% 35%;
}

.feature-copy p:not(.eyebrow) {
  max-width: 760px;
  color: #332c24;
  font-size: clamp(17px, 1.5vw, 22px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.stats span {
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(23, 19, 15, .22);
  background: rgba(255, 253, 248, .62);
}

.stats strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  line-height: 1;
}

.etsy-proof-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.etsy-proof-link:hover .stats span,
.etsy-proof-link:hover .etsy-reviews figure {
  border-color: rgba(36, 78, 124, .5);
}

.etsy-proof-link:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 6px;
}

.etsy-reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.etsy-reviews figure {
  display: grid;
  align-content: space-between;
  min-height: 128px;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(23, 19, 15, .18);
  background: rgba(255, 253, 248, .78);
}

.etsy-reviews blockquote {
  margin: 0;
  color: #2d261f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.25;
}

.etsy-reviews blockquote::before {
  content: "★★★★★";
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: .12em;
}

.etsy-reviews figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 860px;
}

.gallery-section {
  background: var(--paper);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 260px;
  gap: 16px;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--white);
}

.portfolio-section .gallery-card {
  cursor: zoom-in;
}

.portfolio-section .gallery-card:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 4px;
}

.gallery-card.tall {
  grid-row: span 2;
}

.gallery-card.wide {
  grid-column: span 2;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  background: rgba(255, 253, 248, .9);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.recent-card {
  display: block;
  min-height: 360px;
  text-decoration: none;
}

.recent-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-card span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  background: rgba(255, 253, 248, .9);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, .65fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 100px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.about-copy {
  display: grid;
  gap: 18px;
  color: #332c24;
  font-size: clamp(18px, 1.7vw, 24px);
}

.about-copy p {
  margin: 0;
}

.projects {
  background: var(--paper);
}

.project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-list article {
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--ink);
  background: var(--white);
}

.project-list span {
  color: var(--moss);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.project-list h3 {
  margin-top: 24px;
}

.project-list p {
  color: var(--muted);
  font-size: 17px;
}

.commission-section {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(320px, 1fr);
  gap: clamp(32px, 6vw, 90px);
  padding: clamp(60px, 9vw, 130px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(rgba(23, 19, 15, .58), rgba(23, 19, 15, .58)),
    var(--commission-bg, url("assets/art/studio-painting-session.jpg?v=20260610")) center 42% / cover;
  color: var(--white);
}

.commission-intro {
  align-self: start;
}

.commission-intro p:not(.eyebrow) {
  max-width: 620px;
  font-size: clamp(18px, 1.6vw, 23px);
}

.commission-intro a {
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.commission-steps {
  display: grid;
  gap: 12px;
  max-width: 620px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.commission-steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 253, 248, .36);
  background: rgba(23, 19, 15, .28);
}

.commission-steps strong {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 253, 248, .68);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.commission-steps span {
  font-size: 15px;
}

.commission-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(255, 253, 248, .54);
  background: rgba(251, 247, 239, .92);
  color: var(--ink);
}

.honey-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

label.full,
.submit-button,
.form-note {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #bfb2a1;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  letter-spacing: 0;
  padding: 13px 12px;
  text-transform: none;
}

textarea {
  resize: vertical;
}

.submit-button {
  width: 100%;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.form-note.is-error {
  color: #9b2f2f;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 36px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.site-footer strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.site-footer p {
  margin: 6px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 16px 24px;
}

.art-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 42px);
}

.art-modal.is-open {
  display: flex;
}

.art-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 19, 15, .72);
}

.art-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(260px, .65fr);
  width: min(1080px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}

.art-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: 30px/1 Georgia, "Times New Roman", serif;
  cursor: pointer;
}

.art-modal__media {
  min-height: 0;
  background: var(--ink);
}

.art-modal__media img {
  width: 100%;
  height: 100%;
  max-height: min(760px, calc(100vh - 36px));
  object-fit: contain;
}

.art-modal__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: clamp(24px, 5vw, 54px);
}

.art-modal__copy h2 {
  font-size: clamp(34px, 4vw, 58px);
}

.art-modal__copy p {
  margin: 0;
}

.art-modal__actions {
  display: grid;
  gap: 10px;
}

.mobile-action-bar {
  display: none;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 18px;
  }

  .brand,
  .header-actions {
    justify-self: center;
  }

  .hero,
  .feature-row,
  .split-section,
  .commission-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    height: auto;
  }

  .hero-art {
    min-height: 52vh;
  }

  .hero-art-left {
    display: block;
    order: 1;
  }

  .hero-copy {
    order: 2;
  }

  .hero-art-right {
    display: none;
  }

  .gallery-grid,
  .project-list,
  .recent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    display: block;
  }

  .section-heading a {
    display: inline-block;
    margin-top: 16px;
  }
}

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  .announcement {
    display: grid;
    gap: 4px;
    min-height: 36px;
    padding: 7px 12px;
    font-size: 11px;
  }

  .site-header {
    position: sticky;
    grid-template-columns: minmax(0, 1fr) 38px;
    gap: 10px 8px;
    padding: 11px 14px;
  }

  .brand {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .brand strong {
    font-size: 20px;
  }

  .brand small {
    font-size: 10px;
  }

  nav {
    grid-column: 1;
    grid-row: 2;
    width: auto;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    font-size: 10px;
  }

  nav a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 6px;
    border: 1px solid var(--line);
    background: var(--white);
    text-decoration: none;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: start;
  }

  .header-actions .button.small {
    display: none;
  }

  .icon-link {
    width: 34px;
    height: 34px;
  }

  .icon-link svg {
    width: 17px;
    height: 17px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    background: var(--paper);
  }

  .hero-art {
    min-height: 0;
  }

  .hero-art-left {
    display: block;
    order: 1;
    height: clamp(280px, 76vw, 430px);
    border-bottom: 1px solid var(--ink);
  }

  .hero-art-left img,
  .hero-art-left .hero-slide {
    object-position: center center;
  }

  .hero-copy {
    align-items: flex-start;
    justify-content: flex-start;
    order: 2;
    min-height: 0;
    padding: 28px 18px 34px;
    border-bottom: 1px solid var(--ink);
    background: var(--paper);
    text-align: left;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 11px;
  }

  h1 {
    font-size: clamp(52px, 17vw, 76px);
  }

  h2 {
    font-size: clamp(36px, 12vw, 54px);
  }

  h3 {
    font-size: 26px;
  }

  .hero-subtitle {
    margin-top: 18px;
    font-size: 18px;
  }

  .hero-buttons {
    width: 100%;
    justify-content: flex-start;
    margin-top: 24px;
  }

  .button {
    width: 100%;
    min-height: 52px;
  }

  .marquee-band {
    justify-content: flex-start;
    padding: 14px 18px;
    gap: 10px 18px;
    font-size: 22px;
  }

  .section,
  .commission-section {
    padding: 54px 18px;
  }

  .feature-row {
    gap: 28px;
  }

  .feature-media img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .feature-copy p:not(.eyebrow),
  .about-copy,
  .commission-intro p:not(.eyebrow) {
    font-size: 18px;
  }

  .stats,
  .etsy-reviews,
  .gallery-grid,
  .project-list,
  .commission-form,
  .recent-grid {
    grid-template-columns: 1fr;
  }

  .stats span {
    min-height: 48px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .stats strong {
    font-size: 28px;
  }

  .etsy-reviews figure {
    min-height: 0;
    padding: 12px;
  }

  .etsy-reviews blockquote {
    font-size: 15px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .gallery-grid {
    grid-auto-rows: auto;
  }

  .gallery-card.tall,
  .gallery-card.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-card {
    min-height: 0;
  }

  .gallery-card img {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .gallery-card.wide img {
    aspect-ratio: 4 / 3;
  }

  .recent-card {
    min-height: 0;
  }

  .recent-card img {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .split-section {
    gap: 22px;
  }

  .project-list article {
    min-height: 0;
    padding: 22px;
  }

  .commission-section {
    background-position: 58% center;
  }

  .commission-form {
    padding: 18px;
  }

  .art-modal {
    align-items: flex-end;
    padding: 10px;
  }

  .art-modal__dialog {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
  }

  .art-modal__media img {
    max-height: 54vh;
  }

  .art-modal__copy {
    padding: 22px;
  }

  .art-modal__actions .button {
    width: 100%;
  }

  .site-footer {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }

}
