@font-face {
  font-family: "Stone99 Helvetica";
  src: local("Helvetica Neue Light"), local("HelveticaNeue-Light"), local("Helvetica Light");
  font-weight: 300;
}

@font-face {
  font-family: "Stone99 Helvetica";
  src: local("Helvetica Neue UltraLight"), local("HelveticaNeue-UltraLight"), local("Helvetica Neue ExtraLight");
  font-weight: 200;
}

:root {
  color-scheme: light;
  --paper: #f1f1f1;
  --ink: #232323;
  --muted: #505050;
  --rule: #cecece;
  --gutter: clamp(1.25rem, 4.5vw, 5rem);
  --header-height: 5.25rem;
  font-family: "Stone99 Helvetica", "Helvetica Neue", Helvetica, "DejaVu Sans Light", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: var(--header-height);
  padding: .375rem var(--gutter);
  isolation: isolate;
}

.site-header::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: #fff;
  border-bottom: 1px solid var(--rule);
  pointer-events: none;
}

.site-header.is-background-hidden:not(:has(:focus-visible, :popover-open))::before {
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .site-header::before { transition: opacity 220ms ease; }
}

[id]:is(main *, footer) { scroll-margin-top: var(--header-height); }

.header-wordmark {
  filter: brightness(0);
  display: block;
  width: clamp(5rem, 17vw, 10.75rem);
  height: auto;
}

.wordmark {
  display: grid;
  place-items: center;
  justify-self: start;
  width: 4rem;
  height: 3.5rem;
}

.wordmark img {
  display: block;
  transform: scale(.9);
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .5rem 0 .5rem .5rem;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: .8125rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.menu-icon {
  width: 1.125rem;
  height: .6rem;
  border-block: 2px solid currentColor;
}

.site-menu {
  inset: var(--header-height) var(--gutter) auto auto;
  margin: 0;
  min-width: 12rem;
  padding: .45rem;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 .5rem 1.5rem #0001;
}

.site-menu a { display: block; padding: .75rem; text-decoration: none; }
.site-menu a:hover { background: var(--paper); }

.quarry-home main {
  margin-top: calc(-1 * var(--header-height));
}

.quarry-home .site-header::before {
  background: #fff;
  border-bottom-color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  .quarry-home .site-header::before {
    transition: opacity 850ms cubic-bezier(.25, .1, .25, 1);
  }
}

.hero .intro { color: inherit; }

.hero {
  color: #fff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #383838;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: calc(var(--header-height) + clamp(3rem, 8vw, 7rem)) var(--gutter) clamp(3rem, 8vw, 7rem);
  text-align: center;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slides img + img { opacity: 0; }
.hero-slides img.is-visible { opacity: 1; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgb(0 0 0 / 38%), rgb(0 0 0 / 58%) 45%, rgb(0 0 0 / 55%) 65%, rgb(0 0 0 / 22%));
}

@media (prefers-reduced-motion: no-preference) {
  .hero-slides img + img { transition: opacity 1.2s ease-in-out; }
}

.photo-picker:not([hidden]) {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

.photo-picker button {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.photo-picker button::before {
  content: "";
  box-sizing: border-box;
  width: .375rem;
  height: .375rem;
  border: 1px solid white;
  border-radius: 50%;
}

.photo-picker button[aria-pressed="true"]::before { background: white; }
.photo-picker button:focus-visible { outline: 2px solid white; }

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7.4vw, 7rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -.045em;
}

h1 em {
  font-family: "Baskerville", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.065em;
}

.intro {
  max-width: 48ch;
  margin: 1.7rem auto 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 200;
  line-height: 1.6;
  color: var(--muted);
}

.site-menu a[aria-current="page"] {
  background: var(--paper);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.interior-page {
  min-height: calc(100svh - var(--header-height));
  padding: clamp(4rem, 11vw, 9rem) var(--gutter);
}

.interior-page p {
  max-width: 48ch;
  margin: 1.25rem 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 200;
  line-height: 1.65;
}

.page-link {
  display: inline-block;
  margin-top: .6rem;
  text-underline-offset: .25em;
}

.bespoke-showcase {
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
  border-top: 1px solid var(--rule);
  background: #fafafa;
}

.bespoke-intro {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 1rem clamp(2rem, 7vw, 7rem);
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.bespoke-intro h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.5vw, 3.25rem);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.bespoke-intro p {
  max-width: 52ch;
  margin: 0 0 .75rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
}

.bespoke-intro .page-link { font-weight: 200; }

.bespoke-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem .9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bespoke-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #eee;
}

.bespoke-gallery span {
  display: block;
  margin-top: .75rem;
  font-weight: 300;
}

.bespoke-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: .875rem;
}

@media (min-width: 761px) {
  .bespoke-intro-reversed > h2 { grid-area: 1 / 2; }
  .bespoke-intro-reversed > div { grid-area: 1 / 1; }
}

@media (max-width: 760px) {
  .bespoke-intro { grid-template-columns: 1fr; }
  .bespoke-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.collection-more {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  background: #efefec;
  color: inherit;
  font-weight: 300;
  text-underline-offset: .25em;
}
.collection-more:hover, .collection-more:focus-visible { background: #e5e5e1; }

.collection-strip {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: clamp(14rem, 22vw, 23rem);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: .75rem;
}
.collection-strip > li { scroll-snap-align: start; }
.collection-strip:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.site-footer {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  gap: 1rem clamp(1.25rem, 3vw, 3rem);
  padding: 1.25rem var(--gutter);
  border-top: 1px solid var(--rule);
  background: white;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 200;
  line-height: 1.35;
}

.site-footer address { font-style: normal; }
.site-footer p { margin: 0; }
.footer-credit { align-self: center; text-align: right; }
.footer-contact { align-self: center; }
.footer-contact a { text-underline-offset: .2em; }
.footer-socials { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.footer-email { text-decoration: none; }
.footer-email span { text-decoration: underline; }
.footer-socials a,
.footer-socials button {
  text-decoration: none;
  border: 1px solid var(--rule);
  border-radius: .25rem;
  background: transparent;
  padding: .25em .55em;
  color: var(--muted);
  font: inherit;
}

.contact-phones {
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: .5em;
  font-variant-numeric: tabular-nums;
}

.contact-phones a { grid-column: 2; text-decoration: none; }
.contact-phones a:hover { text-decoration: underline; }

@media (max-width: 60rem) {
  .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 36rem) {
  .site-footer { grid-template-columns: 1fr; }
}
