/* Design Studies shares the portfolio shell, display fonts and theme tokens. */
.studies-page, .ceramic-page {
  --study-muted: #595b54;
  --study-gutter: 4.1vw;
  --study-cover-height: min(60svh, 660px);
  position: relative;
  isolation: isolate;
  min-height: 100vh;
}
html[data-theme="dark"] :is(.studies-page, .ceramic-page) { --study-muted: #c3c4bb; }

:is(.studies-page, .ceramic-page)::before,
:is(.studies-page, .ceramic-page)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
:is(.studies-page, .ceramic-page)::before {
  background: url("/objects/design-paper.svg") repeat;
  mix-blend-mode: multiply;
  opacity: .11;
}
:is(.studies-page, .ceramic-page)::after {
  background-image: url("/objects/construction-background.svg"), url("/objects/design-relief.svg");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: .062;
}
html[data-theme="dark"] :is(.studies-page, .ceramic-page)::before { mix-blend-mode: screen; opacity: .035; }
html[data-theme="dark"] :is(.studies-page, .ceramic-page)::after { filter: invert(1); }

.header nav a[aria-current] { display: inline-flex; text-decoration: underline; text-underline-offset: 5px; }
.studies-editorial, .ceramic-case, .study-back, .ceramic-page .next-project {
  width: min(calc(100% - 2 * var(--study-gutter)), 1500px);
  margin-inline: auto;
  padding-inline: 0;
}
.studies-editorial { padding-block: 45px clamp(60px, 7vw, 105px); }
.studies-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
  gap: min(6vw, 96px);
  margin-top: clamp(40px, 5vw, 75px);
}
.studies-intro h1, .study-feature h2, .study-feature h3 {
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.04;
  text-wrap: balance;
}
.studies-intro h1 { font-size: clamp(55px, 7vw, 104px); margin: 20px 0 0; }
.studies-intro h1 em { font-family: "Playfair Display", Georgia, serif; font-weight: 400; }
.studies-editorial p { max-width: 48ch; margin: 0; font-size: 16px; line-height: 1.65; }
.studies-intro-copy nav { display: flex; gap: 8px 24px; flex-wrap: wrap; margin-top: 20px; }
.studies-intro-copy nav a, .study-link, .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.studies-intro-copy nav a:hover, .study-link:hover, .text-link:hover {
  color: var(--accent);
  border-color: currentColor;
}
.study-feature {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: min(7vw, 100px);
  margin-top: clamp(44px, 5vw, 80px);
  padding-top: clamp(28px, 3.5vw, 56px);
  border-top: 1px solid var(--line);
}
.study-feature h2 { margin: 14px 0 0; font-size: clamp(44px, 5vw, 76px); }
.study-feature h3 {
  margin: 22px 0 16px;
  font-size: clamp(23px, 2.3vw, 36px);
  letter-spacing: -.035em;
  line-height: 1.18;
}
.study-link { margin-top: 14px; border-color: var(--ink); }
.feature-visual, .ceramic-case .opening-image {
  width: min(100%, calc(var(--study-cover-height) * .8));
  justify-self: center;
}
.feature-visual { position: relative; display: block; }
.feature-visual img, .ceramic-case .opening-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.night-visual img, .ceramic-case .night-hero img { object-position: 45% center; }
.feature-visual:hover .image-note { text-decoration: underline; }
.image-note {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: calc(100% - 32px);
  padding: 6px 10px;
  background: #161712ca;
  color: white;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 700px) {
  .studies-page, .ceramic-page { --study-gutter: 5vw; }
  .studies-editorial { padding-top: 30px; }
  .studies-intro-grid, .study-feature { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .studies-intro h1 { font-size: clamp(46px, 11vw, 75px); }
  .studies-editorial p { font-size: 15px; }
  .studies-intro-copy nav { margin-top: 10px; }
  .study-feature h2 { font-size: clamp(40px, 9vw, 60px); }
  .study-feature h3 { margin: 16px 0 12px; }
  .image-note { left: 12px; bottom: 12px; }
}
