/* Treespeake · Charlotte Wakefield */

:root {
  --bg: #f6f5f1;
  --bg-tint: #eeebe2;
  --ink: #1d1d1b;
  --ink-soft: #46463f;
  --muted: #7a7a72;
  --rule: #dddcd8;
  --green: #2e3c32;
  --green-ink: #e9ebe4;
  --footer: #1d1d1b;
  --coin: #b8683c;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(20px, 5.3vw, 68px);
  --max: 1144px;
  --header-h: 76px;
  --section: clamp(72px, 10vw, 128px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
figure { margin: 0; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 5.3vw, 4.2rem); line-height: 1.05; }
h2 { font-size: clamp(2.1rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.75rem; }

p { margin: 0 0 1.1em; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.wrap--narrow { max-width: calc(784px + var(--pad) * 2); }

.center { text-align: center; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

.note {
  font-size: 14.5px;
  color: var(--muted);
}

/* Buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  background: transparent;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}

.btn--small { min-height: 44px; padding: 0 17px; }
.btn--solid { background: var(--green); border-color: var(--green); color: #f3f2ec; }
.btn--solid:hover { background: #24302a; }
.btn--outline:hover { background: var(--ink); color: var(--bg); }
.btn--light { background: #f2f1ec; border-color: #f2f1ec; color: var(--ink); }
.btn--light:hover { background: #fff; }

.link-arrow {
  display: inline-flex;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.link-arrow span { transition: transform .2s; }
.link-arrow:hover span { transform: translateX(4px); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--rule);
}

/* The blur lives on its own layer: a backdrop-filter on the header itself
   would trap the fixed mobile menu inside the header's box. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(246, 245, 241, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 29px; letter-spacing: -0.01em; }
.brand__sub {
  margin-top: 5px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) {
  font-size: 15px;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color .2s;
}
.nav a:not(.btn):hover { color: var(--ink); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .25s, top .25s;
}
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  overflow-y: auto;
  background: var(--bg);
  padding: 8px 0 40px;
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a {
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 22px;
  text-decoration: none;
}
.mobile-menu img { margin-top: 28px; aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }

/* Hero */

.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(40px, 5vw, 64px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 534px);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero h1 { margin-bottom: 30px; max-width: 7.6em; }
.hero .lede { max-width: 532px; font-size: 19px; line-height: 1.58; color: var(--ink-soft); margin-bottom: 36px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; }

.hero__figure img { width: 100%; aspect-ratio: 534 / 668; object-fit: cover; }
.hero__figure figcaption { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

/* Facts */

.facts { padding-bottom: var(--section); }
.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-block: 0;
}
.facts__grid > div {
  padding: 34px 24px 26px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.facts__grid > div + div { border-left: 1px solid var(--rule); }
.facts__grid > div:first-child { padding-left: 0; }
.facts dt {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd { margin: 6px 0 0; font-family: var(--serif); font-size: 24px; line-height: 1.3; }

/* Sections */

.section { padding: var(--section) 0; }
.section:not(.section--tint, .section--dark) + .section:not(.section--tint, .section--dark) { padding-top: 0; }
.section--tint { background: var(--bg-tint); }
.section--dark { background: var(--green); color: var(--green-ink); }
.section--dark .eyebrow { color: #a8b0a6; }

.section__head { margin-bottom: 40px; }
.section__head h2 { margin-bottom: 26px; }
.section__head p { max-width: 640px; color: var(--ink-soft); margin: 0; }
.section__head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 48px;
}

#work { padding-top: 0; }

/* Filters */

.filters {
  display: flex;
  gap: 30px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filters button {
  position: relative;
  flex: none;
  padding: 0 0 18px;
  border: 0;
  background: none;
  font-size: 15px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s;
}
.filters button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.filters button:hover { color: var(--ink); }
.filters button[aria-selected="true"] { color: var(--ink); }
.filters button[aria-selected="true"]::after { transform: scaleX(1); }

/* Gallery */

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 52px 33px;
}

.gallery li[hidden] { display: none; }
.gallery li.rise { animation: rise .5s ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: zoom-in;
}
.card__img { display: block; overflow: hidden; background: var(--bg-tint); aspect-ratio: 4 / 5; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card__img img { transform: scale(1.03); }
.card__title { display: block; margin-top: 18px; font-family: var(--serif); font-size: 23px; line-height: 1.2; }
.card__desc { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }

/* Uncropped galleries: paintings and photos keep their own shape */

.wall {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3;
  column-gap: 33px;
}
.wall li { break-inside: avoid; margin-bottom: 44px; }
.wall .card__img { aspect-ratio: auto; }
.wall .card__img img { height: auto; }

.wall--four { columns: 4; column-gap: 24px; }
.wall--four li { margin-bottom: 30px; }
.wall--four .card__title { font-size: 19px; margin-top: 12px; }

.wall--dark .card__img { background: rgba(255, 255, 255, 0.06); }
.wall--dark .card__title { color: #f3f2ec; }
.wall--dark .card__desc { color: #a8b0a6; }

/* Close-up details under "Trees that speak" */

.details { margin-top: clamp(56px, 7vw, 88px); }
.details__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.details .card__img { aspect-ratio: 1; }
.details .card__title { font-size: 18px; margin-top: 12px; }

/* Commissioned trees, inside the dark commissions section */

.commissioned { margin-top: clamp(72px, 9vw, 112px); }
.commissioned__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 40px;
  padding-top: 40px;
  margin-bottom: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.commissioned__head h3 { font-size: clamp(1.75rem, 2.6vw, 2.1rem); color: #f3f2ec; }
.commissioned__head p { margin: 0; color: #c9cdc5; }

/* Split sections */

.split {
  display: grid;
  grid-template-columns: minmax(0, 479px) minmax(0, 1fr);
  gap: clamp(36px, 7.9vw, 90px);
  align-items: center;
}
.split--text-first { grid-template-columns: minmax(0, 1fr) minmax(0, 479px); }
.split__text { max-width: 540px; }
.split__media img { width: 100%; aspect-ratio: 479 / 599; object-fit: cover; }
.split__media figcaption { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.section--dark .split__media figcaption { color: #a8b0a6; }
.split__text h2 { margin-bottom: 26px; }
.split__text p { color: var(--ink-soft); }
.section--dark .split__text p,
.section--dark .steps { color: #d9ddd5; }

.name .pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.55rem, 2.6vw, 1.92rem);
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 28px;
}
.name .note { margin-top: 30px; }

/* Scale */

.scale .split { grid-template-columns: minmax(0, 1fr) minmax(0, 534px); }
.scale .split__text { max-width: 490px; }
.scale .btn { margin-top: 12px; }
.scale .note { margin-top: 26px; }

.scale__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  aspect-ratio: 534 / 379;
  background: var(--bg-tint);
}
.scale__robin {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  transition: width .6s cubic-bezier(.3, .7, .2, 1), height .6s cubic-bezier(.3, .7, .2, 1);
}
.scale__coin {
  display: grid;
  place-items: center;
  width: 0;
  height: 20.3mm;
  margin-left: -24px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #cf8556, var(--coin) 60%, #9d532c);
  color: rgba(255, 255, 255, .75);
  font-size: 9px;
  letter-spacing: .05em;
  overflow: hidden;
  opacity: 0;
  transition: width .6s cubic-bezier(.3, .7, .2, 1), opacity .4s, margin .6s;
}
.scale__stage[data-size="actual"] .scale__robin { width: 25mm; height: 25mm; }
.scale__stage[data-size="actual"] .scale__coin { width: 20.3mm; margin-left: 0; opacity: 1; }

/* Shop */

.shop {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 33px;
}
.shop__item { display: block; text-decoration: none; }
.shop__img { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-tint); }
.shop__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.shop__item:hover .shop__img img { transform: scale(1.03); }
.shop__row { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; align-items: baseline; }
.shop__title { font-family: var(--serif); font-size: 23px; line-height: 1.2; }
.shop__price { font-size: 15px; white-space: nowrap; }
.shop__meta { display: block; margin-top: 6px; font-size: 14.5px; color: var(--muted); }

/* Commissions */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 40px 0 44px;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 20px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  font-family: var(--serif);
  font-size: 22px;
  color: #f3f2ec;
}
.steps strong { font-weight: 500; color: #f7f6f2; }

/* Kind words */

.kind h2 { margin-bottom: 54px; }
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
.quotes figure { padding: 40px 32px 0; }
.quotes figure + figure { border-left: 1px solid var(--rule); }
.quotes blockquote {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 25px;
  line-height: 1.33;
}
.quotes figcaption { font-size: 14px; color: var(--muted); }

/* FAQ */

.faq h2 { margin-bottom: 30px; }
.faq__list { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 300;
  color: var(--ink-soft);
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -8px 0 26px; max-width: 40em; font-size: 15.5px; color: var(--ink-soft); }

/* Footer */

.site-footer { background: var(--footer); color: #e6e5df; padding-top: 72px; }
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .535fr) minmax(0, .465fr);
  padding-bottom: 60px;
}
.site-footer__grid p { max-width: 24em; color: #c9c8c1; font-size: 15px; }
.site-footer__grid .site-footer__name { font-family: var(--serif); font-size: 34px; color: #f3f2ec; margin-bottom: 14px; line-height: 1; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer nav a { text-decoration: none; font-size: 15px; color: #e6e5df; }
.site-footer nav a:hover { color: #fff; }
.site-footer .eyebrow { color: #8f8e87; margin-bottom: 10px; }
.site-footer__base { border-top: 1px solid #3a3a37; margin-inline: 20px; padding: 26px 0 34px; }
.site-footer__base p { margin: 0; font-size: 13.5px; color: #8f8e87; padding-inline: calc(var(--pad) - 20px); }

/* Lightbox */

.lightbox {
  width: min(1120px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(29, 29, 27, 0.72); }
.lightbox[open] { animation: lb-in .3s ease; }
@keyframes lb-in { from { opacity: 0; transform: translateY(8px); } }

.lightbox__inner {
  display: grid;
  grid-template-columns: minmax(0, 689px) minmax(0, 1fr);
  height: min(604px, calc(100vh - 32px));
}
.lightbox__media { position: relative; background: var(--bg-tint); overflow: hidden; }
.lightbox__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lightbox__info {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 40px 48px;
}
.lightbox__info h3 { font-size: 33px; margin-bottom: 18px; }
.lightbox__info p:not(.eyebrow) { font-size: 17px; color: var(--ink-soft); margin-bottom: 30px; }
.lightbox__info .eyebrow { margin-bottom: 14px; }
.lightbox__nav { display: flex; gap: 10px; }
.lightbox__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

/* Responsive */

@media (max-width: 960px) {
  .nav { gap: 22px; }
  .wall--four { columns: 3; }
  .gallery { gap: 44px 22px; }
  .quotes blockquote { font-size: 22px; }
}

@media (max-width: 820px) {
  :root { --header-h: 64px; }

  .nav { display: none; }
  .menu-toggle { display: block; }
  .brand__name { font-size: 24px; }
  .brand__sub { font-size: 9.5px; }

  .hero { padding-top: 16px; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__figure { order: -1; }
  .hero__figure img { aspect-ratio: 5 / 4; }
  .hero .lede { font-size: 16px; }

  .facts__grid { grid-template-columns: 1fr 1fr; }
  .facts__grid > div { padding: 22px 16px 18px; border-bottom: 0; }
  .facts__grid > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts__grid > div:nth-child(n + 3) { border-bottom: 1px solid var(--rule); }
  .facts dd { font-size: 19px; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
  .wall, .wall--four { columns: 2; column-gap: 14px; }
  .wall li, .wall--four li { margin-bottom: 26px; }
  .wall--four .card__title { font-size: 16px; margin-top: 8px; }
  .details__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .details .card__title { font-size: 16px; margin-top: 8px; }
  .commissioned__head { padding-top: 32px; margin-bottom: 28px; }
  .card__title { font-size: 18px; margin-top: 10px; }
  .card__desc { font-size: 12.5px; }
  .filters { gap: 22px; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); margin-bottom: 26px; }

  .split,
  .split--text-first,
  .scale .split { grid-template-columns: 1fr; gap: 36px; }
  .split__text, .scale .split__text { max-width: none; }
  .scale__stage { aspect-ratio: 1 / 0.85; }
  .scale__robin { width: 62%; height: auto; aspect-ratio: 1; }
  .scale__stage[data-size="actual"] .scale__robin { width: 25mm; height: 25mm; }

  .section__head--row { flex-direction: column; align-items: flex-start; }
  .shop { grid-template-columns: 1fr; gap: 40px; }

  .quotes { grid-template-columns: 1fr; }
  .quotes figure { padding: 28px 0; }
  .quotes figure + figure { border-left: 0; border-top: 1px solid var(--rule); }

  .faq summary { font-size: 20px; padding: 20px 0; }

  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > div:first-child { grid-column: 1 / -1; }

  .lightbox__inner { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; height: calc(100vh - 32px); }
  .lightbox__info { padding: 22px 22px 24px; justify-content: flex-start; }
  .lightbox__info h3 { font-size: 26px; margin-bottom: 8px; }
  .lightbox__info p:not(.eyebrow) { margin-bottom: 18px; font-size: 15px; }
  .lightbox__close { top: auto; bottom: 18px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
