/* Refinements layer, loaded after style.css.
   1. Navigation typography and a bookable primary action.
   2. Drawn arrows and chevrons instead of font glyphs.
   3. Curved photographic surfaces below the fold.
   4. Atelier rooms and a little more reading matter.
   5. Three treatments for type crossing a photograph (see variants).      */

:root {
  --nav: 13px;
  --veil: 239 238 233;
}

/* 1 — Navigation ---------------------------------------------------------- */
.site-header { height: 92px; }
.brand { font-size: 25px; letter-spacing: -.01em; }
.site-header nav { gap: clamp(22px, 2.6vw, 42px); font-size: var(--nav); }
.site-header nav a {
  position: relative;
  padding-block: 10px;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.site-header nav a:not(.appointment-link)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 300ms cubic-bezier(.2, .7, .2, 1);
}
.site-header nav a:not(.appointment-link):hover::after,
.site-header nav [aria-current='page']::after { transform: scaleX(1); }
.site-header nav [aria-current='page'] { text-decoration: none; }

.site-header .appointment-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border: 1px solid rgb(142 49 41 / 45%);
  color: var(--accent);
  transition: background-color 260ms ease, color 260ms ease, border-color 260ms ease;
}
.site-header .appointment-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}
.appointment-link span { margin-left: 0; font-size: inherit; }

/* 2 — Drawn arrows -------------------------------------------------------- */
.arrow, .chev { display: inline-block; flex: none; }
.chev {
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 220ms cubic-bezier(.2, .7, .2, 1);
}
.arrow {
  position: relative;
  width: 26px;
  height: 7px;
  transition: transform 220ms cubic-bezier(.2, .7, .2, 1);
}
.arrow::before {
  content: '';
  position: absolute;
  left: 0;
  right: 1px;
  top: 3px;
  height: 1px;
  background: currentColor;
}
.arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.text-link { gap: 32px; font-size: var(--nav); letter-spacing: .15em; text-transform: uppercase; }
.text-link .arrow { font-size: 0; }
.text-link:hover .arrow { transform: translateX(4px); }
.text-link:hover span { transform: none; }
.appointment-link .arrow { width: 22px; }
.site-header .appointment-link:hover .arrow { transform: translateX(3px); }
.treatment-links a > span:last-child { font-size: inherit; color: var(--accent); }
.treatment-links a:hover .chev { transform: rotate(45deg) translate(3px, -3px); }
.treatment-index span { margin-left: 18px; color: var(--accent); }
.site-footer > a > span { margin-left: 18px; }
.site-footer .arrow { color: var(--accent); }
.dialog-close span { font-size: 20px; }

/* 3 — Curved photographs below the fold ----------------------------------- */
.edit-photo,
.closing-story figure,
.room-photo { position: relative; isolation: isolate; }

/* 4 — Atelier: a little more to read, and the rooms ----------------------- */
.atelier-note { max-width: 44ch; }
.atelier-copy { margin-top: 26px; font-size: var(--type-ui); line-height: 1.75; max-width: 42ch; }

.atelier-rooms {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 8%;
  align-items: start;
  margin-top: 0;
  padding-bottom: clamp(90px, 11vw, 160px);
  padding-left: 6%;
  padding-right: 4.5%;
}
.atelier-rooms .room:last-child { margin-top: clamp(60px, 9vw, 150px); }
.room-photo { aspect-ratio: 4 / 5; }
.room:last-child .room-photo { aspect-ratio: 3 / 4; }
.room-caption {
  margin-top: 18px;
  font-size: var(--type-meta);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgb(69 71 63 / 68%);
}

/* The studio ------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
  column-gap: clamp(40px, 6vw, 96px);
  align-items: start;
  padding: clamp(110px, 13vw, 190px) 4.5% clamp(120px, 14vw, 210px) 6%;
}
.about-portrait { grid-row: 1 / 3; aspect-ratio: 4 / 5; position: relative; isolation: isolate; }
.about-name, .about-copy { grid-column: 2; }
.about-name h2 {
  margin-top: 30px;
  font: 400 clamp(46px, 4.6vw, 72px)/1.04 var(--font-display);
  letter-spacing: -.035em;
}
.about-copy { padding-top: clamp(26px, 3vw, 44px); max-width: 44ch; }
.about-copy p { font-size: var(--type-ui); line-height: 1.75; }
.about-copy p + p { margin-top: 20px; }
.about-facts {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.about-facts li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--type-meta);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.treatment-links a { align-items: center; }
.treatment-links a > span:first-child { display: block; }
.treatment-lede {
  display: block;
  margin-top: 10px;
  font-size: var(--type-ui);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  color: rgb(69 71 63 / 70%);
}
.treatment-links a:hover .treatment-lede { color: rgb(142 49 41 / 75%); }

.appointment-lede {
  margin-bottom: 30px;
  font-size: var(--type-ui);
  line-height: 1.7;
  max-width: 34ch;
}
.appointment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 32px;
  font-size: var(--type-meta);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgb(69 71 63 / 62%);
}

/* A single vertical rhythm for the lower half of the page. */
.treatment-edit { padding-left: 6%; }
.atelier { padding-left: 6%; padding-bottom: clamp(100px, 12vw, 180px); }
.closing-story { margin-top: clamp(120px, 14vw, 210px); }
.appointments { padding-top: clamp(120px, 14vw, 210px); padding-bottom: clamp(110px, 12vw, 170px); }

@media (max-width: 640px) {
  .site-header { height: 80px; }
  .about { display: block; padding: 90px 0 100px; }
  .about-portrait { width: 88%; margin-bottom: 36px; }
  .about-copy { padding-top: 32px; }
  .site-header .appointment-link { padding: 10px 14px; }
  .atelier-rooms { display: block; padding: 0 0 20px; }
  .treatment-edit { padding-left: 0; }
  .atelier { padding-left: 0; }
  .atelier-rooms .room:last-child { margin-top: 48px; margin-left: 16%; }
  .room-photo { width: 88%; }
  .room:last-child .room-photo { width: 84%; }
  .atelier-note { max-width: none; }
  .appointment-meta { margin-top: 26px; }
}
