:root {
  --ink: #151515;
  --muted: #5f6553;
  --paper: #c4c6a5;
  --panel: #f7f4e8;
  --line: #aeb28c;
  --rose: #b54b4b;
  --moss: #4b6d58;
  --gold: #b9852f;
  --blue: #506b8f;
  --shadow: 0 22px 70px rgba(28, 24, 19, 0.14);
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
.button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(196, 198, 165, 0.88);
  border-bottom: 1px solid rgba(174, 178, 140, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 20px;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

nav a:hover,
nav a[aria-current="page"],
.text-link:hover {
  color: var(--rose);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 1.14fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: clamp(28px, 6vw, 86px) clamp(18px, 5vw, 76px) clamp(34px, 6vw, 72px);
}

.hero-copy {
  max-width: 580px;
  min-width: 0;
}

.kicker {
  margin: 0 0 14px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(42px, 6.5vw, 94px);
  line-height: 0.98;
}

h2 {
  font-size: clamp(34px, 5vw, 76px);
  line-height: 0.96;
}

.section-heading h1,
.story-header h1 {
  font-size: clamp(34px, 5vw, 76px);
  line-height: 0.96;
}

h3 {
  font-size: 24px;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(42px, 6.5vw, 94px);
  line-height: 0.98;
}

.intro {
  max-width: 480px;
  margin: 28px 0 0;
  color: #342f2a;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--ink);
  color: var(--panel);
}

.button.secondary {
  background: transparent;
}

.hero-art {
  margin: 0;
}

.hero-art img {
  width: min(680px, 100%);
  max-height: 76vh;
  margin-left: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 36px rgba(28, 24, 19, 0.18));
}

.hero-art figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(680px, 100%);
  margin: 18px 0 0 auto;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.release-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  background: var(--panel);
}

.release-strip div {
  min-height: 94px;
  padding: 22px clamp(18px, 4vw, 50px);
  border-right: 1px solid var(--line);
}

.release-strip div:last-child {
  border-right: 0;
}

.release-strip span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.release-strip strong {
  font-family: var(--font-heading);
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 400;
}

.section {
  padding: clamp(58px, 9vw, 122px) clamp(18px, 5vw, 76px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(280px, 1fr);
  gap: clamp(20px, 5vw, 72px);
  align-items: end;
  margin-bottom: 38px;
}

#drawings .section-heading {
  display: block;
  text-align: left;
}

#musings .section-heading {
  display: block;
  text-align: left;
}

#drawings .section-heading h2 {
  margin-left: 0;
  margin-bottom: 14px;
}

#musings .section-heading h1 {
  margin-left: 0;
  margin-bottom: 14px;
}

#drawings .section-heading p {
  margin-left: 0;
  padding-left: 0;
}

#musings .section-heading p {
  margin-left: 0;
  padding-left: 0;
}

.section-heading p:last-child {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.musings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.work-card {
  display: grid;
  grid-template-rows: minmax(280px, 1fr) auto;
  min-height: 520px;
  min-width: 0;
  background: var(--panel);
  cursor: pointer;
}

.musing-card {
  display: grid;
  grid-template-rows: auto auto;
  min-width: 0;
  background: var(--panel);
}

.work-media {
  display: grid;
  min-height: 360px;
  min-width: 0;
  place-items: center;
  padding: 26px;
  background: linear-gradient(135deg, #f7f4e8 0%, #eee8da 100%);
}

.musing-media {
  aspect-ratio: 1.42 / 1;
  min-width: 0;
  background: #f2ece3;
  padding: 18px;
}

.musing-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--panel);
}

.work-media img {
  width: 100%;
  max-height: 370px;
  object-fit: contain;
  opacity: 0;
  transition: opacity 180ms ease, transform 220ms ease;
}

.work-media img.is-loaded,
.work-media img.load-error {
  opacity: 1;
}

.work-card:hover .work-media img {
  transform: scale(1.018);
}

.work-info {
  border-top: 1px solid var(--line);
  padding: 20px;
  min-width: 0;
}

.work-info p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.36;
  overflow-wrap: break-word;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
  padding: clamp(48px, 8vw, 108px) clamp(18px, 5vw, 76px);
  background: #e9dfd0;
}

.feature-image {
  display: grid;
  min-height: 460px;
  place-items: center;
}

.feature-image img {
  max-height: 620px;
  object-fit: contain;
  filter: drop-shadow(0 20px 34px rgba(28, 24, 19, 0.16));
}

.feature-copy p:not(.kicker) {
  margin: 24px 0;
  color: #3a342f;
  font-size: 18px;
  line-height: 1.55;
}

.text-link {
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.contact {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "label heading"
    "links heading";
  gap: clamp(24px, 5vw, 74px);
  padding: clamp(58px, 9vw, 110px) clamp(18px, 5vw, 76px);
  border-top: 1px solid var(--line);
}

.contact {
  align-items: start;
  background: var(--moss);
  color: var(--panel);
}

.contact .kicker {
  grid-area: label;
  color: #f4c36f;
}

.contact h2 {
  grid-area: heading;
}

.contact-links {
  grid-area: links;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  align-self: end;
}

.story-page {
  padding: clamp(54px, 8vw, 108px) clamp(18px, 5vw, 76px);
}

.story-header {
  max-width: 940px;
  margin-bottom: clamp(30px, 5vw, 58px);
}

.story-body {
  max-width: 920px;
  color: #342f2a;
  font-family: var(--font-body);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.62;
}

.story-body p {
  margin: 0 0 1.35em;
}

.story-image {
  float: right;
  width: min(34vw, 360px);
  margin: 4px 0 26px clamp(24px, 4vw, 44px);
}

.story-image img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(28, 24, 19, 0.14));
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 76px);
  background: var(--ink);
  color: var(--panel);
  font-size: 12px;
  text-transform: uppercase;
}

dialog {
  width: min(1040px, calc(100vw - 30px));
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  padding: 0;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(18, 16, 14, 0.58);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  min-height: 34px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.dialog-body {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(260px, 0.9fr);
  gap: 32px;
  align-items: center;
  padding: clamp(22px, 5vw, 54px);
}

.dialog-body img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.dialog-body p {
  color: var(--muted);
  line-height: 1.52;
}

@media (max-width: 1080px) {
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  nav a,
  .button,
  .hero-art figcaption span,
  .story-body,
  .section-heading p:last-child {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .hero,
  .feature-band,
  .section-heading,
  .contact,
  .dialog-body {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-rows: auto;
    grid-template-areas:
      "label"
      "heading"
      "links";
  }

  .contact-links {
    align-self: start;
  }

  .hero {
    min-height: auto;
  }

  .hero-art img,
  .hero-art figcaption {
    margin-left: 0;
  }

  .hero-art figcaption {
    align-items: flex-start;
    flex-direction: column;
  }

  .release-strip {
    grid-template-columns: 1fr;
  }

  .release-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .works-grid,
  .musings-grid {
    grid-template-columns: 1fr;
  }

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

  .work-media {
    min-height: 300px;
  }

  .story-image {
    float: none;
    width: min(100%, 330px);
    margin: 0 0 26px;
  }
}

@media (max-width: 480px) {
  .hero-art figcaption,
  footer {
    flex-direction: column;
  }
}
