/* ==========================================================================
   Borheir — site styles
   Edit the variables below to change the palette and type across the site.
   ========================================================================== */

:root {
  /* Palette: soft, chalky, historic-paint inspired */
  --paper:      #f3eee4;  /* limewash ground */
  --paper-deep: #e9e1d2;  /* parchment */
  --ink:        #2f2c28;  /* text */
  --muted:      #6f685d;  /* secondary text */
  --line:       #d6ccba;  /* hairlines */
  --sage:       #7d806a;  /* accent */
  --hearth:     #3b3732;  /* dark band */

  --serif: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --sans:  "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;

  --max: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.13rem, 1.05rem + 0.3vw, 1.3rem);
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .33 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

h1, h2, h3 {
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3.1rem); }
h3 { font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.85rem); }

p { margin: 0 0 1.1em; text-wrap: pretty; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.4rem;
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper); padding: .5rem 1rem;
}
.skip:focus { left: 1rem; z-index: 200; }

:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

section { padding: var(--section) var(--gutter); }

/* ---------- Header ---------- */

.site-header {
  text-align: center;
  padding: clamp(1.75rem, 4vw, 2.75rem) var(--gutter) 0;
}

.wordmark { display: inline-block; text-decoration: none; }
.wordmark__name {
  display: block;
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-right: -0.32em; /* optically re-center tracked caps */
}
.wordmark__tag {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem clamp(1.25rem, 3.5vw, 2.75rem);
  margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
  padding: 1rem 0;
  max-width: var(--max);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.nav a {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s;
}
.nav a:hover { color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding-top: clamp(3rem, 7vw, 6rem);
}
@media (min-width: 860px) {
  .hero { grid-template-columns: 5fr 6fr; }
}

.hero__lede {
  font-size: 1.15em;
  font-style: italic;
  color: var(--muted);
  max-width: 30ch;
  margin-bottom: 2.2rem;
}

.hero__image { margin: 0; }
.hero__image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.link-arrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid currentColor;
}
.link-arrow::after { content: " \2192"; }

/* ---------- Intro ---------- */

.intro {
  max-width: 50rem;
  margin: 0 auto;
  text-align: center;
}
.intro p {
  font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.2rem);
  line-height: 1.45;
  font-weight: 400;
  margin: 0;
}
.intro::before {
  content: "";
  display: block;
  width: 1px; height: 4rem;
  margin: 0 auto 3rem;
  background: var(--line);
}

/* ---------- Section headings ---------- */

.section-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}
.section-head__note { font-style: italic; color: var(--muted); }

/* ---------- Studio / Services ---------- */

.studio { background: var(--paper-deep); }

.services {
  display: grid;
  gap: clamp(2.5rem, 4vw, 4rem);
  max-width: var(--max);
  margin: 0 auto;
}
@media (min-width: 800px) {
  .services { grid-template-columns: repeat(3, 1fr); }
}

.service { border-top: 1px solid var(--line); padding-top: 1.75rem; }
.service__num {
  display: block;
  font-style: italic;
  color: var(--sage);
  font-size: 1.2em;
  margin-bottom: 0.6rem;
}
.service p { color: var(--muted); }

/* ---------- Rooms gallery ---------- */

.gallery {
  max-width: var(--max);
  margin: 0 auto;
  columns: 1;
  column-gap: clamp(1.25rem, 3vw, 2.5rem);
}
@media (min-width: 640px)  { .gallery { columns: 2; } }
@media (min-width: 1000px) { .gallery { columns: 3; } }

.gallery figure {
  break-inside: avoid;
  margin: 0 0 clamp(1.75rem, 3vw, 2.75rem);
}


/* ---------- Pattern ---------- */

.pattern {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .pattern { grid-template-columns: 4fr 7fr; }
}
.pattern__text p:not(.eyebrow) { color: var(--muted); max-width: 34ch; }

.swatches {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}
@media (min-width: 560px) { .swatches { grid-template-columns: repeat(3, 1fr); } }

.swatch { margin: 0; }
.swatch img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .8s ease;
}
.swatch { overflow: hidden; }
.swatch:hover img { transform: scale(1.04); }

.pattern__visual { display: grid; gap: clamp(0.75rem, 1.5vw, 1.25rem); }

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}
.chips li {
  aspect-ratio: 3 / 2;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.05);
}

/* ---------- About ---------- */

.about {
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
}
@media (min-width: 860px) {
  .about { grid-template-columns: 5fr 7fr; }
}

/* Oval, like an antique portrait mat */
.about__image {
  margin: 0;
  padding: clamp(0.75rem, 1.5vw, 1.25rem);
  border: 1px solid var(--line);
  border-radius: 50%;
  max-width: 440px;
  justify-self: center;
}
.about__image img {
  border-radius: 50%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about__text p:not(.eyebrow) { max-width: 60ch; }

/* ---------- Inquiries ---------- */

.inquiries {
  background: var(--hearth);
  color: var(--paper);
  text-align: center;
}
.inquiries__inner { max-width: 40rem; margin: 0 auto; }
.inquiries .eyebrow { color: #b8b59d; }
.inquiries p { color: #d9d2c4; }

.email { margin: 2rem 0 2.5rem; }
.email a {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem);
  font-style: italic;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgb(243 238 228 / 0.35);
  padding-bottom: 0.15rem;
  transition: border-color .2s;
}
.email a:hover { border-color: var(--paper); }

.instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: #d9d2c4;
}
.instagram:hover { color: var(--paper); }

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  padding: 3.5rem var(--gutter) 3rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.site-footer__mark {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0.2em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.credits { max-width: 42rem; margin: 0 auto; }
.credits summary { cursor: pointer; text-decoration: underline; text-underline-offset: 0.25em; }
.credits p { margin-top: 1rem; line-height: 1.7; }

/* ---------- Scroll reveal (progressive enhancement) ----------
   Browsers without scroll-driven animations simply show content. */

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}
@keyframes reveal {
  from { opacity: 0; transform: translateY(1.75rem); }
  to   { opacity: 1; transform: none; }
}
