@import url("https://fonts.googleapis.com/css2?family=Allura&family=Open+Sans:wght@300;400;500;600;700&display=swap");

:root {
  --paper: #fbfbf8;
  --ink: #18221b;
  --muted: #657065;
  --line: #d8ddd4;
  --soft: #eff2ec;
  --accent: #c94f31;
  --forest: #163d36;
  --serif: Iowan Old Style, Baskerville, Georgia, serif;
  --sans: "Open Sans", Arial, sans-serif;
  --script: "Allura", "Segoe Script", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

button {
  color: inherit;
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  transform: translateY(-180%);
  padding: 0.7rem 0.9rem;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  padding: 3.2rem 2rem 0;
  text-align: center;
}

.wordmark {
  padding-bottom: 0.08em;
  font-family: var(--script);
  font-size: clamp(3.3rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.72;
  text-decoration: none;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1.1rem, 3vw, 2.25rem);
  flex-wrap: wrap;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav a {
  position: relative;
  padding-bottom: 0.25rem;
  text-decoration: none;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: currentColor;
  content: "";
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

main {
  flex: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-gallery {
  width: min(980px, calc(100% - 2.5rem));
  min-height: 0;
  margin: 0 auto;
  padding: clamp(2.8rem, 6vw, 5.4rem) 0 clamp(4rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.88fr);
  grid-template-rows: repeat(2, minmax(12rem, 18rem));
  gap: clamp(1.5rem, 3.2vw, 2.6rem);
}

.home-card {
  position: relative;
  display: block;
  min-height: 18rem;
  overflow: hidden;
  background: var(--soft);
  color: #fff;
  text-decoration: none;
}

.home-card--works {
  grid-row: span 2;
}

.home-card img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.home-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(24, 34, 27, 0.46));
  content: "";
  transition: background 240ms ease;
}

.home-card span {
  position: absolute;
  z-index: 1;
  right: 1.25rem;
  bottom: 1.1rem;
  left: 1.25rem;
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-card span i {
  font-style: normal;
}

.home-card:hover img,
.home-card:focus-visible img {
  transform: scale(1.035);
}

.home-card:hover::after,
.home-card:focus-visible::after {
  background: linear-gradient(180deg, rgba(24, 34, 27, 0.04), rgba(24, 34, 27, 0.62));
}

.kicker,
.footer-label,
.work-number {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-transform: uppercase;
}

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

h1,
.dialog-copy h2 {
  margin-bottom: 1.25rem;
  font-family: var(--serif);
  font-size: clamp(2.85rem, 5.4vw, 5.6rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.page-intro .kicker {
  margin-bottom: 1.15rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.text-link span {
  color: var(--accent);
  font-size: 1.15rem;
  transition: transform 180ms ease;
}

.text-link:hover span,
.text-link:focus-visible span {
  transform: translateX(0.22rem);
}

.site-footer {
  width: 100%;
  margin-top: 1rem;
  padding: 0;
  border: 0;
  background: #eee3e3;
  color: #373333;
  font-size: 0.88rem;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a,
.footer-button {
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible,
.footer-button:hover,
.footer-button:focus-visible {
  text-decoration: underline;
}

.footer-label {
  margin-bottom: 0.45rem !important;
}

.footer-panel {
  width: min(760px, calc(100% - 4rem));
  min-height: 16.75rem;
  margin: 0 auto;
  padding: clamp(2.8rem, 6vw, 4.2rem) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.footer-address address {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-signature {
  margin-bottom: 0.6rem !important;
  color: #181616;
  font-family: var(--script);
  font-size: clamp(3.15rem, 7vw, 4.45rem);
  font-weight: 400;
  line-height: 0.7;
}

.footer-follow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-follow .footer-label {
  color: inherit;
}

.instagram-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(55, 51, 51, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.81rem;
  font-weight: 600;
}

.footer-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.works-page,
.about-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 7.5rem) 2rem clamp(4.8rem, 9vw, 8rem);
}

.about-page--minimal {
  padding-top: clamp(2.8rem, 5vw, 4.5rem);
}

.page-intro {
  max-width: 42rem;
  margin-bottom: clamp(3.2rem, 7vw, 5.5rem);
}

.page-intro h1 {
  max-width: 42rem;
  margin-bottom: 1rem;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
}

.page-intro > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1.3rem, 3vw, 2.7rem);
  row-gap: clamp(3rem, 6vw, 5.25rem);
}

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

.work-image {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--soft);
  cursor: pointer;
}

.work-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 350ms ease;
}

.work-image > span {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.38rem 0.55rem;
  transform: translateY(0.4rem);
  opacity: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 180ms ease, transform 180ms ease;
}

.work-image:hover img,
.work-image:focus-visible img {
  transform: scale(1.025);
}

.work-image:hover > span,
.work-image:focus-visible > span {
  transform: translateY(0);
  opacity: 1;
}

.work-copy {
  padding-top: 0.95rem;
}

.work-copy h2 {
  margin: 0.35rem 0 0.22rem;
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.work-format {
  margin-bottom: 0.28rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.work-price {
  margin-bottom: 0;
  font-size: 0.96rem;
  font-weight: 650;
}

.is-unavailable .work-image img {
  filter: saturate(0.78);
}

.is-unavailable .work-price {
  color: var(--muted);
  font-weight: 500;
}

.about-intro {
  max-width: 35rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.82fr) minmax(20rem, 1.18fr);
  align-items: start;
  gap: clamp(3rem, 9vw, 9rem);
}

.about-art {
  margin: 0;
}

.about-art img {
  width: 100%;
  min-height: 33rem;
  object-fit: cover;
  object-position: center top;
}

.about-copy {
  max-width: 38rem;
  padding-top: 0.15rem;
}

.about-copy p {
  margin-bottom: 1.2rem;
  font-size: clamp(1rem, 1.32vw, 1.17rem);
}

.about-copy .text-link {
  margin-top: 0.7rem;
}

.work-dialog {
  width: min(980px, calc(100% - 2rem));
  max-width: none;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.work-dialog::backdrop {
  background: rgba(15, 20, 16, 0.6);
}

.dialog-shell {
  position: relative;
  max-height: min(820px, calc(100vh - 3rem));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.88fr);
  overflow: auto;
  background: var(--paper);
}

.dialog-image {
  min-height: 100%;
  background: var(--soft);
}

.dialog-image img {
  width: 100%;
  height: 100%;
  min-height: 30rem;
  object-fit: cover;
}

.dialog-copy {
  padding: clamp(2.1rem, 4vw, 4rem);
}

.dialog-copy h2 {
  margin-top: 0.45rem;
  margin-bottom: 0.7rem;
  font-size: clamp(2.2rem, 4vw, 3.45rem);
}

.dialog-copy > p {
  margin-bottom: 1.35rem;
}

.dialog-price {
  margin-bottom: 1rem !important;
  font-size: 1.12rem;
  font-weight: 700;
}

.dialog-close {
  position: absolute;
  z-index: 1;
  top: 0.8rem;
  right: 0.8rem;
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.work-facts {
  margin: 1.6rem 0 1.8rem;
  border-top: 1px solid var(--line);
}

.work-facts div {
  display: grid;
  grid-template-columns: 5.4rem 1fr;
  gap: 0.75rem;
  padding: 0.76rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  line-height: 1.45;
}

.work-facts dt {
  color: var(--muted);
  font-weight: 650;
}

.work-facts dd {
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.72rem 1rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: var(--soft);
}

.button-dark {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.button-dark:hover,
.button-dark:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
}

.button-plain {
  border-color: var(--line);
}

.cookie-dialog {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 1rem;
  background: rgba(16, 24, 18, 0.44);
}

.cookie-dialog[hidden] {
  display: none;
}

.cookie-card {
  width: min(720px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: var(--paper);
  box-shadow: 0 1rem 3.5rem rgba(0, 0, 0, 0.18);
}

.cookie-brand {
  margin: 0;
  padding: 1.35rem 1.5rem 1.05rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: -0.045em;
}

.cookie-tabs {
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cookie-tabs button {
  flex: 1;
  padding: 0.85rem 0.4rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: 0.79rem;
  letter-spacing: 0.03em;
}

.cookie-tabs button.is-active {
  border-bottom-color: var(--accent);
}

.cookie-content {
  min-height: 8.4rem;
  padding: 1.35rem 1.5rem;
}

.cookie-content h2 {
  margin-bottom: 0.55rem;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
}

.cookie-content p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.cookie-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.cookie-option h3 {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
}

.cookie-option strong,
.cookie-option small {
  display: block;
}

.cookie-option small {
  max-width: 31rem;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.35;
}

.cookie-option input {
  position: absolute;
  opacity: 0;
}

.always-on {
  color: var(--muted);
  font-size: 0.8rem;
}

.switch {
  position: relative;
  width: 2.6rem;
  height: 1.45rem;
  flex: 0 0 auto;
  border-radius: 10rem;
  background: #bac1b8;
}

.switch::after {
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 160ms ease;
}

.cookie-option input:checked + .switch {
  background: var(--forest);
}

.cookie-option input:checked + .switch::after {
  transform: translateX(1.15rem);
}

.cookie-option input:focus-visible + .switch,
.button:focus-visible,
.footer-button:focus-visible,
.dialog-close:focus-visible,
.work-image:focus-visible,
.home-card:focus-visible,
.primary-nav a:focus-visible,
.wordmark:focus-visible,
.text-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: 1rem 1.5rem 1.45rem;
}

@media (max-width: 840px) {
  .home-gallery,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .home-gallery {
    min-height: 0;
    grid-template-rows: none;
    gap: 1.5rem;
  }

  .home-card,
  .home-card--works {
    grid-row: auto;
    min-height: min(62vw, 28rem);
  }

  .about-art img {
    min-height: 25rem;
    max-height: 38rem;
  }

  .about-copy {
    max-width: 42rem;
  }

  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-panel {
    width: min(620px, calc(100% - 4rem));
  }

  .dialog-shell {
    grid-template-columns: 1fr;
  }

  .dialog-image img {
    min-height: 0;
    max-height: 48vh;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 1.15rem;
    padding: 1.85rem 1.25rem 0;
  }

  .primary-nav {
    gap: 1rem 1.4rem;
    font-size: 0.77rem;
  }

  .works-page,
  .about-page {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .home-gallery {
    padding-top: 2.5rem;
    padding-bottom: 4.2rem;
    gap: 1.25rem;
  }

  .home-card,
  .home-card--works {
    min-height: 21rem;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4.2rem);
  }

  .works-grid {
    grid-template-columns: 1fr;
    row-gap: 3.25rem;
  }

  .work-image > span {
    transform: translateY(0);
    opacity: 1;
  }

  .footer-panel {
    width: calc(100% - 2.5rem);
    flex-direction: column;
    gap: 1.35rem;
    align-items: flex-start;
  }

  .footer-follow {
    align-items: flex-start;
    text-align: left;
  }

  .cookie-dialog {
    padding: 0.6rem;
  }

  .cookie-content,
  .cookie-brand {
    padding-right: 1.1rem;
    padding-left: 1.1rem;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
    padding-right: 1.1rem;
    padding-left: 1.1rem;
  }

  .dialog-copy {
    padding: 1.7rem;
  }
}
