@font-face {
  font-family: 'Cormorant Garamond';
  src: url('./assets/cormorant.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('./assets/cormorant-italic.woff2') format('woff2');
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Jost';
  src: url('./assets/jost.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4f0e8;
  --page: #fbf9f4;
  --ink: #27221d;
  --subtle: #5d554b;
  --copper: #76513b;
  --line: #d9d0c3;
  --chalk: #f2ebe0;
  --deep: #27201c;
  --deep-text: #e4d7ca;
  --gutter: clamp(1.25rem, 5.4vw, 6rem);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font: 400 1.0625rem / 1.55 var(--sans);
}
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
:focus-visible { outline: 2px solid #8d5737; outline-offset: 5px; }
p, h1, h2, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: .96; }
h1 em, h2 em { font-weight: 400; }
section[id] { scroll-margin-top: 7.875rem; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 10;
  margin: .75rem;
  padding: .65rem 1rem;
  background: var(--ink);
  color: var(--page);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 3;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--page);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 1.5rem;
  max-width: 112rem;
  min-height: 5.5rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 2.75rem;
}
.wordmark img {
  width: clamp(7.25rem, 12.5vw, 11.25rem);
  height: auto;
}
.main-nav, .header-actions {
  display: flex;
  align-items: center;
  gap: clamp(.65rem, 2.35vw, 2.5rem);
}
.header-actions { justify-content: end; gap: clamp(.55rem, 1.3vw, 1.3rem); }
.main-nav a, .header-actions a, .eyebrow, .button, .card-label {
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .115em;
  text-transform: uppercase;
}
.main-nav a, .header-actions a {
  display: grid;
  align-items: center;
  min-height: 2.75rem;
}
.main-nav a:hover, .header-actions a:hover { color: var(--copper); }
.header-contact {
  padding-inline-start: clamp(.55rem, 1.3vw, 1.3rem);
  min-width: 2.75rem;
  justify-items: center;
  position: relative;
}
.header-contact img { width: 1.45rem; height: auto; }
.header-contact::before {
  content: '';
  position: absolute;
  inset: .9rem auto .9rem 0;
  width: 1px;
  background: var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(20rem, 39%) minmax(0, 1fr);
  min-height: clamp(31.5rem, 43vw, 46rem);
  background: var(--paper);
}
.hero-copy { display: grid; align-items: center; }
.hero-copy-inner {
  width: 100%;
  max-width: 49rem;
  margin-inline-start: auto;
  padding: clamp(3rem, 7vw, 7rem) clamp(1.4rem, 3.1vw, 3.5rem) clamp(3rem, 6vw, 7rem) var(--gutter);
}
.eyebrow { color: var(--copper); }
.hero-location {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-block-end: 1.45rem;
}
.hero-location::before {
  content: '';
  width: 1.8rem;
  height: 1px;
  flex-shrink: 0;
  background: #a27e67;
}
.hero h1 {
  font-size: clamp(3.65rem, 6.1vw, 7.375rem);
  letter-spacing: -.046em;
}
.hero-description {
  max-width: 22rem;
  margin-block: 1.45rem 1.7rem;
  color: var(--subtle);
  font-size: clamp(1.02rem, 1.45vw, 1.2rem);
}
.hero-photo {
  position: relative;
  overflow: hidden;
  min-width: 0;
  background: #74635a;
}
.hero-photo img, .craft-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo img { object-position: 58% 55%; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  max-width: 100%;
  padding: .7rem 1.45rem;
  border: 1px solid transparent;
  text-align: center;
  line-height: 1.35;
}
.button-ink { background: var(--ink); color: var(--page); }
.button-ink:hover { background: #493527; }

.section-wrap {
  max-width: 112rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.collection, .inspiration { padding-block: clamp(3.7rem, 7vw, 7.2rem); }
.section-header {
  display: grid;
  justify-items: center;
  gap: .65rem;
  margin-block-end: clamp(1.85rem, 3.5vw, 3.25rem);
  text-align: center;
}
.section-header h2, .contact h2 {
  font-size: clamp(2.65rem, 5.4vw, 5.7rem);
  letter-spacing: -.035em;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.85rem, 2vw, 2.15rem);
}
.collection-card, .inspiration-card {
  display: block;
  min-width: 0;
  cursor: zoom-in;
}
.photo-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: #ddd3c5;
}
.collection-card .photo-frame { aspect-ratio: 1.05; }
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}
.collection-card[data-group="iron"] img { object-position: 50% 37%; }
.collection-card[data-group="onyx"] img { object-position: 50% 49%; }
.collection-card:hover img, .inspiration-card:hover img { transform: scale(1.035); }
.card-label {
  display: block;
  padding-block: .95rem .55rem;
  border-bottom: 1px solid var(--line);
}

.craft {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--deep);
  color: var(--chalk);
}
.craft-photo {
  position: relative;
  min-height: 26rem;
  overflow: hidden;
  background: #533d32;
}
.craft-photo img { object-position: 58% 64%; }
.craft-copy {
  align-self: center;
  padding: clamp(3.6rem, 6.5vw, 7.1rem) var(--gutter) clamp(3.6rem, 6.5vw, 7.1rem) clamp(2rem, 5.9vw, 7rem);
}
.craft-copy .eyebrow { color: #dcc0a8; }
.craft-copy h2 {
  margin-block: .85rem 1.35rem;
  font-size: clamp(2.75rem, 4.75vw, 5.4rem);
  letter-spacing: -.037em;
}
.craft-copy p:last-child { max-width: 31rem; color: var(--deep-text); }

.inspiration-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(8rem, 18vw, 20rem);
  gap: clamp(.65rem, 1.3vw, 1.4rem);
}
.inspiration-card:first-child { grid-area: 1 / 1 / 3 / 3; }
.inspiration-card .photo-frame { height: 100%; }
.inspiration-card:first-child img { object-position: 56% 50%; }

.contact {
  padding: clamp(3.6rem, 7vw, 7rem) var(--gutter);
  background: #ece4d8;
  text-align: center;
}
.contact-inner { max-width: 43rem; margin-inline: auto; }
.contact-inner p { margin-block: .85rem .95rem; color: var(--subtle); }
.contact-whatsapp {
  display: inline-grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
}
.contact-whatsapp img { width: 2.9rem; height: auto; }
.header-contact:hover img, .contact-whatsapp:hover img { opacity: .78; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--page);
  color: var(--subtle);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto 1fr;
  align-items: center;
  gap: .6rem clamp(.9rem, 2.25vw, 2.5rem);
  min-height: 6.5rem;
  padding-block: .85rem;
  font-size: .9375rem;
}
.footer-inner .wordmark img { width: 7.25rem; }
.copyright { justify-self: end; }
.copyright small { font-size: .875rem; }
.install-link {
  padding: .45rem .65rem;
  border: 1px solid #877366;
  background: transparent;
  cursor: pointer;
}
.install-link:hover { border-color: var(--ink); }

dialog {
  max-height: calc(100% - 1.5rem);
  padding: 0;
  border: 1px solid var(--line);
  background: var(--page);
  color: var(--ink);
}
dialog::backdrop { background: rgb(22 18 15 / .83); }
.lightbox { width: min(100% - 1.5rem, 64rem); }
.dialog-bar, .dialog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: .65rem clamp(.75rem, 3vw, 1.4rem);
}
.dialog-bar h2 {
  font-size: clamp(1.5rem, 3.25vw, 2.2rem);
  line-height: 1.1;
}
.lightbox-image {
  width: 100%;
  height: auto;
  max-height: min(66svh, 40rem);
  background: #e6ddd0;
  object-fit: contain;
}
.close-button, .dialog-controls button {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .35rem .75rem;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.close-button { font-size: 1.55rem; line-height: 1; }
.dialog-controls button:hover, .close-button:hover { background: var(--paper); }
.dialog-controls button { font-size: .9375rem; }
.lightbox-status { color: var(--subtle); font-size: .9375rem; text-align: center; }
.install-dialog {
  width: min(100% - 2rem, 31rem);
  padding: 1.75rem;
}
.install-dialog form { display: flex; justify-content: end; }
.install-dialog h2 { margin-block: .45rem .85rem; font-size: 2.4rem; }
.install-dialog p { color: var(--subtle); }

@media (max-width: 1050px) {
  .hero-copy-inner { padding-inline-start: var(--gutter); }
  .hero h1 { font-size: clamp(3.45rem, 6.65vw, 4.8rem); }
}

@media (max-width: 760px) {
  section[id] { scroll-margin-top: 6.5rem; }
  .header-inner {
    min-height: auto;
    grid-template-columns: 1fr 1fr;
    column-gap: .5rem;
    padding-block: .35rem 0;
  }
  .header-inner .wordmark img { width: 8rem; }
  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: .4rem;
    border-top: 1px solid #e7dfd3;
  }
  .main-nav a, .header-actions a { letter-spacing: .075em; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }
  .hero-copy-inner { max-width: none; padding: 2.55rem var(--gutter) 2.7rem; }
  .hero-location { margin-block-end: 1rem; }
  .hero h1 { font-size: clamp(3.7rem, 11vw, 5.5rem); }
  .hero-description { margin-block: 1rem 1.3rem; }
  .hero-photo { min-height: 0; aspect-ratio: 1.3; }
  .hero-photo img { object-position: 61% 53%; }
  .collection-grid { gap: .85rem; }
  .collection-card .photo-frame { aspect-ratio: .88; }
  .card-label { font-size: .875rem; letter-spacing: .03em; }
  .craft { grid-template-columns: minmax(0, 1fr); }
  .craft-photo { min-height: 0; aspect-ratio: 1.45; }
  .craft-copy { padding: 2.75rem var(--gutter) 3rem; }
  .inspiration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: clamp(13rem, 60vw, 23rem);
    grid-auto-rows: clamp(8rem, 39vw, 15rem);
  }
  .inspiration-card:first-child { grid-area: 1 / 1 / 2 / 3; }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    min-height: auto;
    padding-block: 1.15rem;
  }
  .footer-inner > :nth-child(2) { text-align: right; }
  .install-link { justify-self: start; }
}

@media (max-width: 415px) {
  .collection-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .collection-card .photo-frame { aspect-ratio: 1.02; }
  .contact h2, .section-header h2 { line-height: .99; }
}

@media (max-width: 360px) {
  :root { --gutter: 1rem; }
  .main-nav a { letter-spacing: .035em; }
  .hero h1 { font-size: 3.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .photo-frame img { transition: none; }
}
