@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap');
:root {
  color-scheme: dark;
  --ink:#ece5dc;
  --muted:#b8aab6;
  --plum:#251b2b;
  --plum-deep:#19131f;
  --line:#5b4b59;
  --accent:#d2ab79;
  --paper:#e9e0d4;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
}

body {
  margin:0;
  background:var(--plum-deep);
  color:var(--ink);
  font-family:"DM Sans",Arial,sans-serif;
  line-height:1.5;
}

a {
  color:inherit;
}

button, a {
  -webkit-tap-highlight-color:transparent;
}

a:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:5px;
}

.page-shell {
  max-width:1500px;
  margin:auto;
  overflow:hidden;
}

.topbar {
  height:88px;
  padding:0 clamp(24px,5vw,80px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid rgba(236,229,220,.16);
}

.wordmark {
  font-family:"Playfair Display",Georgia,serif;
  font-size:36px;
  font-weight:600;
  line-height:1;
  text-decoration:none;
}

.dot {
  color:var(--accent);
}

nav {
  display:flex;
  gap:clamp(18px,3vw,42px);
}

nav a {
  font-size:12px;
  letter-spacing:.13em;
  text-decoration:none;
  text-transform:uppercase;
  color:var(--muted);
}

nav a:hover, .socials a:hover, footer a:hover {
  color:var(--accent);
}

.hero {
  min-height:650px;
  padding:90px clamp(24px,5vw,80px) 110px;
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(260px,.6fr);
  align-items:center;
  gap:60px;
  background:radial-gradient(circle at 82% 42%,#463348 0%,#302238 22%,var(--plum) 53%);
}

.eyebrow {
  margin:0 0 26px;
  color:var(--accent);
  font-size:11px;
  font-weight:700;
  letter-spacing:.23em;
  text-transform:uppercase;
}

h1,h2,p {
  margin-top:0;
}

h1,h2 {
  font-family:"Playfair Display",Georgia,serif;
  font-weight:500;
  line-height:1.12;
}

h1 {
  max-width:850px;
  font-size:clamp(54px,7vw,104px);
  letter-spacing:-.045em;
  margin-bottom:30px;
}

h1 em,h2 em {
  color:var(--accent);
  font-weight:500;
}

.hero-description {
  color:#d0c5cc;
  font-size:clamp(16px,1.5vw,19px);
  max-width:510px;
  line-height:1.7;
}

.hero-link {
  display:inline-flex;
  gap:45px;
  align-items:center;
  margin-top:28px;
  padding:0 0 12px;
  border-bottom:1px solid var(--accent);
  color:var(--ink);
  text-decoration:none;
  font-size:12px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.hero-link span {
  color:var(--accent);
  font-size:20px;
  line-height:1;
}

.hero-mark {
  position:relative;
  width:min(100%,390px);
  aspect-ratio:1;
  display:grid;
  place-items:center;
  border:1px solid rgba(210,171,121,.48);
  border-radius:50%;
  justify-self:center;
  transform:rotate(-12deg);
}

.hero-mark::before,.hero-mark::after {
  content:"";
  position:absolute;
  border:1px solid rgba(210,171,121,.25);
  border-radius:50%;
  inset:15px;
}

.hero-mark::after {
  inset:37px;
}

.hero-mark span {
  font-family:"Playfair Display",Georgia,serif;
  font-size:clamp(130px,19vw,260px);
  color:#d3b287;
  font-style:italic;
  line-height:1;
  transform:rotate(12deg) translateY(-10px);
  opacity:.85;
}

.hero-mark img {
  width:70%;
  height:70%;
  object-fit:contain;
  transform:rotate(12deg);
}

.hero-mark i {
  position:absolute;
  top:-7px;
  left:50%;
  width:14px;
  height:14px;
  background:var(--accent);
  transform:rotate(45deg);
}

.work-section {
  padding:115px clamp(24px,5vw,80px) 125px;
  background:var(--paper);
  color:#312631;
}

.work-section .eyebrow {
  color:#8a624d;
}

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

h2 {
  font-size:clamp(40px,4.5vw,66px);
  letter-spacing:-.035em;
  margin:0;
}

.section-heading > p {
  max-width:230px;
  color:#756874;
  font-size:14px;
  line-height:1.6;
  margin:0 0 6px;
}

.gallery {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:48px 30px;
}

.piece {
  margin:0;
  min-width:0;
}

.art-frame {
  position:relative;
  width:100%;
  padding:0;
  aspect-ratio:5/4;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:#d9cdc2;
  border:1px solid #c9bdb4;
  cursor:zoom-in;
  color:inherit;
  transition:box-shadow .25s ease, transform .25s ease;
}

.art-frame:hover {
  transform:translateY(-5px) scale(1.012);
  box-shadow:0 16px 28px rgba(49,38,49,.16);
}

.art-frame:focus-visible {
  outline:3px solid #8a624d;
  outline-offset:4px;
}

.piece:nth-child(2n) .art-frame {
  background:#cfc2ba;
}

.piece:nth-child(3n) .art-frame {
  background:#d8cec8;
}

.art-frame::before {
  content:"";
  position:absolute;
  inset:18px;
  border:1px solid rgba(77,57,65,.23);
  pointer-events:none;
  z-index:1;
}

.slot {
  font-family:"Playfair Display",Georgia,serif;
  font-size:clamp(84px,13vw,190px);
  color:rgba(84,62,73,.18);
  font-style:italic;
  line-height:1;
}

.art-frame img {
  width:100%;
  height:100%;
  object-fit:contain;
  position:absolute;
  inset:0;
  background:#ded3c8;
  opacity:0;
}

.art-frame.has-image img {
  opacity:1;
}

.art-frame.has-image:hover img {
  transform:scale(1.035);
}

.art-frame img {
  transition:transform .3s ease;
}

.art-frame.has-image::before {
  display:none;
}

figcaption {
  padding:13px 1px 0;
  display:flex;
  justify-content:space-between;
  gap:15px;
  align-items:baseline;
  font-size:14px;
  font-weight:700;
}

figcaption small {
  color:#847985;
  font-size:11px;
  font-weight:500;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.about-section {
  padding:120px clamp(24px,5vw,80px);
  background:#2d2233;
  display:grid;
  grid-template-columns:1fr 2fr;
  gap:30px;
}

.about-content {
  max-width:780px;
}

.about-content h2 {
  margin-bottom:26px;
}

.about-content p {
  max-width:680px;
  color:#c9bbc8;
  font-size:clamp(16px,1.5vw,19px);
  line-height:1.8;
}

.elsewhere-section {
  padding:105px clamp(24px,5vw,80px) 120px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:50px;
  background:#211925;
}

.socials {
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.socials a {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 0;
  border-bottom:1px solid var(--line);
  font-family:"Playfair Display",Georgia,serif;
  font-size:24px;
  text-decoration:none;
}

.socials a span {
  color:var(--accent);
  font-family:"DM Sans",Arial,sans-serif;
  font-size:20px;
}

.viewer {
  position:fixed;
  inset:0;
  width:min(100vw,1500px);
  height:min(100dvh,950px);
  max-width:none;
  max-height:none;
  padding:18px clamp(16px,3vw,42px) 26px;
  border:1px solid var(--line);
  background:#19131f;
  color:var(--ink);
}

.viewer::backdrop {
  background:rgba(9,6,12,.86);
}

.viewer[open] {
  display:flex;
  flex-direction:column;
}

.viewer-top,.viewer-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.viewer-top {
  color:var(--accent);
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.viewer-close,.viewer-prev,.viewer-next {
  flex:none;
  border:1px solid #6d5c69;
  border-radius:50%;
  background:#2b202f;
  color:var(--ink);
  cursor:pointer;
}

.viewer-close {
  width:44px;
  height:44px;
  font-size:27px;
  line-height:1;
}

.viewer-stage {
  flex:1;
  min-height:0;
  display:grid;
  grid-template-columns:52px minmax(0,1fr) 52px;
  gap:12px;
  align-items:center;
}

.viewer-prev,.viewer-next {
  width:48px;
  height:48px;
  font-size:22px;
}

.viewer button:hover {
  border-color:var(--accent);
  color:var(--accent);
}

.viewer button:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:3px;
}

.viewer-art {
  min-width:0;
  min-height:0;
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  position:relative;
}

.viewer-art img {
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  display:none;
}

.viewer-art.has-image img {
  display:block;
}

.viewer-placeholder {
  font-family:"Playfair Display",Georgia,serif;
  font-size:clamp(100px,25vw,300px);
  color:#624d5d;
  font-style:italic;
}

.viewer-art.has-image .viewer-placeholder {
  display:none;
}

.viewer-bottom {
  min-height:48px;
  font-family:"Playfair Display",Georgia,serif;
  font-size:20px;
}

.viewer-category {
  color:var(--muted);
  font-family:"DM Sans",Arial,sans-serif;
  font-size:11px;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.wordmark img {
  display: block;
  width: auto;
  height: 36px;
  max-width: 140px;
  object-fit: contain;
}

.topbar .wordmark {
  display: flex;
  align-items: center;
}

.topbar .wordmark img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
}

footer {
  display:flex;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
  padding:27px clamp(24px,5vw,80px);
  color:#a99ba7;
  font-size:11px;
  letter-spacing:.04em;
  background:#19131f;
  border-top:1px solid #453746;
}

footer a {
  text-decoration:none;
}

@media(max-width:800px) {
  .hero {
    grid-template-columns:1fr;
    min-height:auto;
    padding-top:80px;
    gap:70px;
  }
  .hero-mark {
    width:220px;
    justify-self:end;
    opacity:.55;
    margin-top:-50px;
  }
  .about-section,.elsewhere-section {
    grid-template-columns:1fr;
    gap:28px;
  }
  .section-heading {
    align-items:start;
    flex-direction:column;
  }
}

@media(max-width:580px) {
  .topbar {
    height:72px;
  }
  nav {
    gap:15px;
  }
  nav a {
    font-size:10px;
  }
  .hero {
    padding-bottom:75px;
  }
  .work-section,.about-section,.elsewhere-section {
    padding-top:76px;
    padding-bottom:80px;
  }
  .gallery {
    grid-template-columns:1fr;
    gap:35px;
  }
  .section-heading {
    margin-bottom:32px;
  }
  .art-frame {
    aspect-ratio:5/4;
  }
  .viewer {
    padding:14px;
  }
  .viewer-stage {
    grid-template-columns:38px minmax(0,1fr) 38px;
    gap:3px;
  }
  .viewer-prev,.viewer-next {
    width:36px;
    height:36px;
    font-size:17px;
  }
  .viewer-bottom {
    font-size:16px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  .art-frame,.art-frame img {
    transition:none;
  }
}
