:root {
  --paper: #fffdfa;
  --soft-paper: #f3ebe5;
  --blush: #e2cbc1;
  --rose: #a97d73;
  --sage: #7b8275;
  --gold: #a3825e;
  --charcoal: #28231f;
  --muted: #756b65;
  --line: #d8c9bf;
  --shadow: 0 24px 70px rgba(37, 35, 32, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--charcoal);
  background: #e8e2de;
  font-family: "Montserrat", Arial, sans-serif;
}

body.no-scroll {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

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

svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.home-page {
  position: relative;
  background: #efe8e3 url("assets/backgroud.png") center top / cover fixed no-repeat;
}

.home-page::before {
  position: fixed;
  inset: 0;
  content: "";
  background: rgba(255, 253, 250, 0.4);
  backdrop-filter: blur(3px);
}

.bio-stage {
  width: 100%;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 32px 12px;
}

.bio-card {
  width: min(440px, 100%);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(37, 35, 32, 0.14);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.bio-hero {
  height: 270px;
  position: relative;
  background: var(--blush);
}

.bio-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 17%;
}

.hero-shade,
.masthead-shade {
  position: absolute;
  inset: 0;
  background: rgba(37, 35, 32, 0.18);
}

.icon-button {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--charcoal);
  background: var(--paper);
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--rose);
  color: var(--rose);
  outline: 2px solid rgba(157, 105, 111, 0.2);
  outline-offset: 2px;
}

.logo-frame {
  width: 144px;
  height: 144px;
  position: absolute;
  right: 0;
  bottom: -58px;
  left: 0;
  margin: auto;
  overflow: hidden;
  border: 5px solid var(--paper);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(37, 35, 32, 0.18);
}

.logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-content {
  padding: 80px 26px 22px;
  text-align: center;
  background: rgba(255, 253, 250, 0.98);
}

.eyebrow {
  margin: 0;
  color: var(--rose);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bio-content h1 {
  margin: 7px 0 0;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.05;
}

.bio-description {
  max-width: 350px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.brand-divider {
  width: min(250px, 80%);
  height: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 17px auto 19px;
}

.brand-divider::before,
.brand-divider::after {
  flex: 1;
  height: 1px;
  content: "";
  background: var(--gold);
}

.brand-divider span {
  width: 12px;
  height: 12px;
  display: block;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.bio-links {
  display: grid;
  gap: 10px;
}

.link-button {
  width: 100%;
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #cbb9ac;
  border-radius: 8px;
  color: var(--charcoal);
  background: #f5ebe5;
  box-shadow: 0 3px 0 #d9c9bd;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.link-button:hover,
.link-button:focus-visible {
  border-color: var(--gold);
  background: var(--paper);
  box-shadow: 0 7px 18px rgba(40, 35, 31, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.instagram-link,
.sulam-link,
.tiktok-link,
.whatsapp-link,
.catalog-link {
  border-left-color: #cbb9ac;
}

.link-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #cbb9ac;
  border-radius: 50%;
  color: var(--charcoal);
  background: rgba(255, 253, 250, 0.86);
}

.instagram-link .link-icon,
.sulam-link .link-icon,
.whatsapp-link .link-icon {
  color: var(--charcoal);
  background: rgba(255, 253, 250, 0.86);
}

.link-copy {
  min-width: 0;
}

.link-copy strong,
.link-copy small {
  display: block;
  overflow-wrap: anywhere;
}

.link-copy strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: uppercase;
}

.link-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.link-arrow {
  width: 18px;
  height: 18px;
  color: #918983;
}

.bio-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.bio-footer span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.bio-footer svg {
  width: 14px;
  height: 14px;
  color: var(--rose);
}

.modal,
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  padding: 16px;
}

.modal.is-open,
.lightbox.is-open {
  display: grid;
  place-items: center;
}

.layer-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(25, 24, 22, 0.78);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.image-dialog {
  width: min(520px, 100%);
  max-height: calc(100vh - 32px);
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

.dialog-header h2 {
  margin: 4px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.05;
}

.dialog-media {
  min-height: 0;
  overflow: auto;
  background: var(--soft-paper);
}

.dialog-media img {
  width: 100%;
  height: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.dialog-action {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  color: #fff;
  background: var(--charcoal);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.dialog-action:hover,
.dialog-action:focus-visible {
  background: var(--rose);
  outline: none;
}

.dialog-action svg {
  width: 16px;
  height: 16px;
}

.social-dialog {
  width: min(420px, 100%);
  grid-template-rows: auto auto;
}

.social-accounts {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: var(--soft-paper);
}

.social-account {
  min-width: 0;
  min-height: 66px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid #cbb9ac;
  border-radius: 8px;
  color: var(--charcoal);
  background: var(--paper);
  text-decoration: none;
}

.social-account:hover,
.social-account:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 7px 18px rgba(40, 35, 31, 0.12);
  outline: none;
}

.social-account-copy {
  min-width: 0;
}

.social-account-copy strong,
.social-account-copy small {
  display: block;
}

.social-account-copy strong {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 700;
}

.social-account-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.catalog-page {
  background: var(--soft-paper);
}

.catalog-masthead {
  min-height: 355px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--charcoal);
}

.masthead-image {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center 22%;
}

.masthead-shade {
  background: rgba(37, 35, 32, 0.6);
}

.catalog-topbar,
.masthead-copy,
.catalog-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.catalog-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
}

.back-button,
.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.back-button {
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: rgba(37, 35, 32, 0.34);
}

.back-button:hover,
.back-button:focus-visible {
  border-color: #fff;
  background: rgba(37, 35, 32, 0.64);
  outline: none;
}

.mini-brand img {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 6px;
  object-fit: cover;
}

.masthead-copy {
  position: relative;
  z-index: 2;
  padding: 68px 0 48px;
  text-align: center;
}

.masthead-copy .eyebrow {
  color: #f0d8d4;
}

.masthead-copy h1 {
  max-width: 760px;
  margin: 9px auto 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.98;
}

.masthead-copy p:last-child {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.catalog-main {
  padding: 0 0 58px;
}

.branch-tabs {
  width: min(430px, calc(100% - 24px));
  min-height: 58px;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: -29px auto 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(37, 35, 32, 0.12);
}

.branch-tabs a {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.branch-tabs a.is-active {
  color: #fff;
  background: var(--charcoal);
}

.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 46px 0 20px;
}

.gallery-heading h2 {
  margin: 5px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
}

.gallery-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.catalog-credit {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.catalog-credit a {
  color: var(--charcoal);
  font-weight: 700;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

.catalog-credit a:hover,
.catalog-credit a:focus-visible {
  color: var(--rose);
  outline: none;
}

.gallery-card {
  min-width: 0;
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 9px 24px rgba(37, 35, 32, 0.08);
  cursor: zoom-in;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  border-color: var(--rose);
  box-shadow: 0 14px 32px rgba(37, 35, 32, 0.14);
  outline: 2px solid rgba(157, 105, 111, 0.2);
  outline-offset: 2px;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #f1ebe6;
}

.gallery-number {
  min-width: 34px;
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 6px 7px;
  border-radius: 5px;
  color: #fff;
  background: rgba(37, 35, 32, 0.74);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.lightbox-dialog {
  width: min(760px, 100%);
}

.lightbox-media {
  position: relative;
  overflow: hidden;
}

.lightbox-nav {
  width: 42px;
  height: 42px;
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 8px;
  color: #fff;
  background: rgba(37, 35, 32, 0.68);
  cursor: pointer;
  transform: translateY(-50%);
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: var(--rose);
  outline: 2px solid rgba(255, 255, 255, 0.5);
}

.lightbox-nav.previous {
  left: 10px;
}

.lightbox-nav.next {
  right: 10px;
}

@media (max-width: 820px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .bio-stage {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .bio-hero {
    height: 240px;
  }

  .logo-frame {
    width: 128px;
    height: 128px;
    bottom: -52px;
  }

  .bio-content {
    padding: 70px 16px 18px;
  }

  .bio-content h1 {
    font-size: 31px;
  }

  .link-button {
    grid-template-columns: 40px minmax(0, 1fr) 20px;
    gap: 10px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .link-icon {
    width: 40px;
    height: 40px;
  }

  .catalog-masthead {
    min-height: 330px;
  }

  .catalog-topbar,
  .masthead-copy,
  .catalog-main {
    width: min(100% - 24px, 1120px);
  }

  .masthead-copy {
    padding-top: 66px;
  }

  .mini-brand span {
    display: none;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-heading {
    align-items: start;
    margin-top: 42px;
  }

  .gallery-heading h2 {
    font-size: 31px;
  }

  .gallery-heading > p {
    max-width: 90px;
    text-align: right;
  }

  .lightbox-nav {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 370px) {
  .link-copy strong {
    font-size: 11px;
  }

  .bio-footer {
    gap: 10px;
  }
}

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

  .link-button {
    transition: none;
  }
}
