:root {
  --paper: #e8e4d9;
  --paper-deep: #dcd5c7;
  --ink: #27241f;
  --muted: #665f55;
  --accent: #9b4935;
  --accent-dark: #743425;
  --rule: rgba(78, 66, 51, 0.24);
  --display: "Bodoni 72", Didot, "Iowan Old Style", Baskerville, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-width: 280px;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.68), transparent 36rem),
    linear-gradient(135deg, var(--paper) 0%, #e3ddd1 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: rgba(39, 36, 31, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--accent-dark);
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.site-shell {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(40px, 7vw, 92px) 0 28px;
}

.back {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.back a {
  text-decoration-color: var(--accent);
}

.plaster-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(390px, 1.18fr);
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
  min-height: calc(100vh - 190px);
}

.portrait-wrap {
  position: relative;
  justify-self: end;
  width: min(100%, 430px);
  padding: 0 0 clamp(16px, 2vw, 26px) clamp(16px, 2vw, 26px);
}

.portrait-wrap::before {
  position: absolute;
  inset: clamp(16px, 2vw, 26px) clamp(16px, 2vw, 26px) 0 0;
  z-index: -1;
  border: 1px solid rgba(116, 52, 37, 0.56);
  content: "";
}

.portrait {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper-deep);
  box-shadow: 0 24px 64px rgba(67, 48, 34, 0.17);
}

.plaster-copy {
  max-width: 680px;
  padding: 24px 0;
}

h1 {
  max-width: 11ch;
  margin: 0 0 clamp(22px, 3vw, 38px);
  font-family: var(--display);
  font-size: clamp(3.4rem, 7vw, 7rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.82;
}

.intro {
  max-width: 58ch;
  margin-top: 0;
  font-size: clamp(1.06rem, 1.5vw, 1.24rem);
  line-height: 1.58;
}

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 32px;
  margin: 28px 0;
  padding: 24px 0;
  border-block: 1px solid var(--rule);
  list-style: none;
}

.services li {
  position: relative;
  padding-left: 18px;
}

.services li::before {
  position: absolute;
  top: 0.76em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  transform: translateY(-50%);
}

.plaster-copy > p:not(.intro):not(.gallery-link) {
  max-width: 64ch;
  color: var(--muted);
}

.gallery-link {
  margin: 34px 0 0;
}

.gallery-link a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fffaf4;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.gallery-link a:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-top: clamp(48px, 7vw, 84px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.contact p,
.credit {
  margin: 0;
}

.contact {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.48rem);
  line-height: 1.45;
}

.credit {
  color: var(--muted);
  font-size: 0.72rem;
}

@media (max-width: 820px) {
  .site-shell {
    width: min(100% - 36px, 680px);
    padding-top: 26px;
  }

  .back {
    margin-bottom: 24px;
  }

  .plaster-card {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: 0;
  }

  .portrait-wrap {
    justify-self: center;
    width: min(82vw, 420px);
  }

  .plaster-copy {
    max-width: none;
    padding: 0;
  }

  h1 {
    margin-bottom: 24px;
    font-size: clamp(3.7rem, 18vw, 6.4rem);
  }

  footer {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 520px) {
  .site-shell {
    width: min(100% - 28px, 680px);
  }

  .services {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .gallery-link a {
    justify-content: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .gallery-link a {
    transition: none;
  }
}
