* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #eeeeee;
  --panel: #dad7d3;
  --ink: #3c2717;
  --muted: #6f4d36;
  --title: #a46e3d;
  --line: #b07d4f;
  --bar: rgba(84, 53, 25, 0.8);
  --paper: #f3f3f3;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "EB Garamond", serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.topbar {
  margin-top: -4px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 300;
  background: var(--bar);
  backdrop-filter: blur(12px);
  transition: transform 240ms ease, opacity 240ms ease;
}

.topbar__inner {
  width: min(1200px, 92vw);
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand {
  text-decoration: none;
  color: #ebebeb;
  font-family: "GFS Didot", serif;
  font-size: 1.05rem;
  letter-spacing: 0.1px;
}

.menu-icon {
  width: 44px;
  height: 44px;
  border: 1px solid #ebebeb;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
  cursor: pointer;
  padding: 10px 6px;
}

.menu-icon span {
  width: 24px;
  height: 3px;
  background: #ebebeb;
}

.content {
  width: min(1120px, 88vw);
  margin: 0 auto;
}

.illustrations-section {
  padding: 128px 0 88px;
  background: var(--paper);
}

.section-heading {
  width: min(760px, 100%);
  margin: 0 auto 54px;
  text-align: center;
}

.section-kicker {
  color: var(--muted);
  font-family: "EB Garamond", serif;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

h1,
h2 {
  font-family: "GFS Didot", serif;
  color: var(--title);
  font-weight: 700;
}

h1 {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h1::after,
.illustration-copy h2::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 10%;
  bottom: 0;
  width: 87%;
  height: 3px;
  background: var(--line);
}

.illustrations-list {
  display: grid;
  gap: 84px;
}

.illustration-work {
  display: grid;
  grid-template-columns: minmax(280px, 480px) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}

.illustration-work:nth-child(even) .illustration-media {
  order: 2;
}

.illustration-media {
  margin-left: 45px;
  margin-right: 45px;
  background: var(--panel);
  box-shadow: 0 16px 34px rgba(60, 39, 23, 0.13);
}

.illustration-media picture {
  display: contents;
}

.illustration-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  object-position: center;
}

.illustration-media--wide img {
  aspect-ratio: 4 / 3;
}

.illustration-media figcaption {
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 1.7;
  padding: 16px 14px 14px;
  text-align: center;
}

.illustration-copy h2 {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin-left: 30px;
  margin-right: 30px;
  margin-top: 20px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  font-size: clamp(4.7rem, 3.1vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.illustration-copy p {
  margin-left: 40px;
  margin-right: 40px;
  max-width: 640px;
  color: #543519;
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
  line-height: 1.78;
}

.contact-strip {
  background: var(--panel);
  padding: 58px 0 66px;
}

.contact-strip__inner {
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
}

.contact-strip p {
  color: #3e2918;
  font-family: "GFS Didot", serif;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.12;
}

.contact-btn {
  width: min(420px, 82vw);
  border: 2px solid var(--line);
  color: #5a3f2a;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px;
  font-family: "GFS Didot", serif;
  font-size: clamp(1.02rem, 1.8vw, 1.42rem);
  letter-spacing: 0.2px;
  transition: background 220ms ease, color 220ms ease;
}

.contact-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  object-fit: contain;
  flex: 0 0 auto;
}

.contact-btn:hover {
  background: var(--line);
  color: #f2ece7;
}

footer {
  background: #3b1b0c;
  color: rgba(244, 241, 233, 0.86);
  padding: 24px 16px;
  text-align: center;
  font-size: 0.96rem;
}

@media (max-width: 820px) {
  .topbar__inner {
    min-height: 70px;
    padding: 10px 0;
  }

  .brand {
    font-size: 1.02rem;
  }

  .menu-icon {
    width: 42px;
    height: 42px;
    gap: 5px;
    padding: 8px 6px;
  }

  .menu-icon span {
    width: 22px;
    height: 2px;
  }

  .content {
    width: min(100% - 32px, 640px);
  }

  .illustrations-section {
    padding: 108px 0 64px;
  }

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

  .illustrations-list {
    gap: 66px;
  }

  .illustration-work {
    grid-template-columns: 1fr;
    gap: 28px;
    min-width: 0;
    max-width: 100%;
  }

  .illustration-work:nth-child(even) .illustration-media {
    order: 0;
  }

  .illustration-media,
  .illustration-copy {
    min-width: 0;
    max-width: 100%;
  }

  .illustration-media {
    margin-right: 0;
    margin-left: 0;
  }

  /* Keep each artwork at its natural proportion on narrow screens. */
  .illustration-media img,
  .illustration-media--wide img {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .illustration-copy {
    width: 100%;
  }


.illustration-copy h2::after {
  width: 95%;
  left: 2.5%;
}

  .illustration-copy h2 {
    width: fit-content;
    max-width: 80%;
    margin: 0 10% 15px;
    text-align: center;
    font-size: 1.45rem;
    overflow-wrap: break-word;
    white-space: normal;
  }

  .illustration-copy p {
    text-align: justify;
    overflow-wrap: break-word;
  }
}

@media (min-width: 1025px) {
  body {
    background: #f4f1e9;
  }

  .topbar {
    background: rgba(84, 53, 25, 0.86);
  }

  .topbar__inner {
    width: min(1180px, calc(100% - 68px));
    min-height: 78px;
  }

  .brand {
    font-size: 1.12rem;
  }

  .content {
    width: min(1180px, calc(100% - 68px));
  }

  .illustrations-section {
    padding: 150px 0 112px;
  }

  .section-heading {
    width: min(820px, 100%);
    margin-bottom: 76px;
  }

  .section-kicker {
    font-size: 1.14rem;
  }

  h1 {
    font-size: clamp(3.2rem, 4.2vw, 5rem);
  }

  .illustrations-list {
    gap: 108px;
  }

  .illustration-work {
    grid-template-columns: minmax(360px, 520px) minmax(420px, 1fr);
    gap: clamp(54px, 6vw, 96px);
  }

  .illustration-media {
    box-shadow: 0 20px 42px rgba(60, 39, 23, 0.16);
  }

  .illustration-media img {
    aspect-ratio: 4 / 5;
  }

  .illustration-media--wide img {
    aspect-ratio: 4 / 3;
  }

  .illustration-media figcaption {
    padding: 18px 18px 16px;
    font-size: 1.08rem;
  }

  .illustration-copy h2 {
    max-width: 720px;
    margin-bottom: 28px;
    font-size: clamp(2.1rem, 2.8vw, 3.1rem);
  }

  .illustration-copy p {
    max-width: 680px;
    font-size: 1.18rem;
    line-height: 1.82;
  }

  .contact-strip {
    padding: 76px 0 84px;
  }

  .contact-strip p {
    font-size: clamp(2.25rem, 3vw, 3.1rem);
  }

  .contact-btn {
    width: min(430px, 100%);
  }

  footer {
    padding: 28px 16px;
  }
}

@media (min-width: 1280px) {
  .topbar__inner,
  .content {
    width: min(1320px, calc(100% - 96px));
  }

  .illustrations-section {
    padding: 164px 0 132px;
  }

  .section-heading {
    width: min(900px, 100%);
    margin-bottom: 96px;
  }

  .illustrations-list {
    gap: 140px;
  }

  .illustration-work {
    grid-template-columns: minmax(420px, 560px) minmax(480px, 1fr);
    gap: clamp(80px, 8vw, 148px);
  }

  .illustration-media {
    margin: 0;
    aspect-ratio: 4 / 5;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    align-self: stretch;
    overflow: hidden;
    padding: 14px 14px 0;
    border: 1px solid rgba(176, 125, 79, 0.38);
    background: #e7e3de;
    box-shadow: 0 22px 46px rgba(60, 39, 23, 0.14);
  }

  .illustration-media img,
  .illustration-media--wide img {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    background: #f4f1e9;
  }

  .illustration-media figcaption {
    min-height: 96px;
    display: grid;
    align-content: center;
    padding: 16px 12px;
  }

  .illustration-copy h2,
  .illustration-copy p {
    margin-left: 0;
    margin-right: 0;
  }

  .illustration-copy h2 {
    margin-bottom: 30px;
    font-size: clamp(2.55rem, 3vw, 3.6rem);
  }

  .illustration-copy p {
    font-size: 1.25rem;
    line-height: 1.86;
  }

  .illustration-work:not(:first-child) {
    content-visibility: auto;
    contain-intrinsic-size: auto 660px;
  }
}
