:root {
  --ink: #252424;
  --paper: #faf9f6;
  --line: #dedbd5;
  --serif: "Instrument Serif",Georgia,serif;
  --sans: "DM Sans",Arial,sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 15px/1.5 var(--sans);
}

a {
  color: inherit;
  text-decoration: none;
}

button,select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: .45;
}

:focus-visible {
  outline: 2px solid #526a83;
  outline-offset: 4px;
}

[hidden] {
  display: none!important;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 3;
  background: white;
  padding: 8px;
}

.skip:focus {
  top: 12px;
}

.topline {
  text-align: center;
  padding: 8px;
  background: #eeebe8;
  font-size: 10px;
  letter-spacing: .2em;
  font-weight: 700;
}

.topline span {
  margin: 0 10px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 5%;
  min-height: 76px;
  background: #fff;
}

.brand {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .14em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 33px;
  height: 33px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.header-brand {
  --wordmark-width: clamp(106px, 10vw, 132px);
  --tagline-font-size: clamp(7px, .75vw, 8px);
  --tagline-height: calc(var(--tagline-font-size) * 1.5);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  padding: 8px 0;
}

.header-brand-emblem {
  /* Scale the emblem relative to the full wordmark and tagline. */
  width: auto;
  height: calc((var(--wordmark-width) * 182 / 456 + var(--tagline-height)) * 1.1);
  mix-blend-mode: multiply;
}

.header-brand-text {
  display: grid;
  justify-items: center;
}

.header-brand-wordmark {
  width: var(--wordmark-width);
  aspect-ratio: 456 / 182;
  /* Frame the LIPE LAB lettering from the original white logo artwork. */
  background: url('assets/lipe-lab-logo.webp') 50% 77.31% / 149.12% auto no-repeat;
  filter: brightness(1.035);
  mix-blend-mode: multiply;
}

.header-brand-tagline {
  font-size: var(--tagline-font-size);
  line-height: var(--tagline-height);
  font-weight: 600;
  letter-spacing: .105em;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 32px;
  font-size: 13px;
}

.nav nav {
  flex-wrap: wrap;
  gap: 8px clamp(10px, 1.6vw, 24px);
}

.nav nav a {
  white-space: nowrap;
}

.bag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  color: #a06b75;
  border: 0;
  background: none;
  white-space: nowrap;
}

.bag-icon {
  flex: none;
}

.bag span {
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
}

.hero {
  display: grid;
  grid-template-columns: 46% 54%;
  align-items: center;
  background: #f5f1ec;
}

.jewellery-gallery {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f2eceb;
}

.jewellery-gallery-image {
  aspect-ratio: 4 / 3;
  touch-action: pan-y pinch-zoom;
}

.jewellery-gallery-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.jewellery-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 5px 12px;
  background: #faf7f5;
}

.jewellery-gallery-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid #cdc4bd;
  border-radius: 50%;
  background: transparent;
  font-size: 19px;
}

.jewellery-gallery-controls button:hover {
  background: #eee6e0;
}

.jewellery-gallery-counter {
  min-width: 7ch;
  margin: 0;
  color: #4f4844;
  text-align: center;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .12em;
}

.hero-copy {
  grid-column: 1;
  grid-row: 1;
  padding: clamp(34px,5vw,92px) 3vw clamp(34px,5vw,92px) 5vw;
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  margin: 0 0 15px;
}

h1,h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: .97;
  margin: 0;
  letter-spacing: -.025em;
}

.hero h1 {
  font-family: "Cormorant Garamond", var(--serif);
  font-size: clamp(30px, 4.3vw, 84px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.015em;
}

.hero h1 span,
.hero h1 em {
  display: block;
  white-space: nowrap;
}

h2 {
  font-size: clamp(42px,5vw,75px);
}

.hero-copy>p:not(.eyebrow) {
  max-width: 330px;
  margin: 24px 0;
}

.actions,.buy-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  padding: 13px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  font-size: 13px;
}

.button:hover:not(:disabled) {
  background: #46413d;
}

.under {
  text-decoration: underline;
  text-underline-offset: 5px;
  font-size: 13px;
}

.signature {
  display: flex;
  justify-content: space-evenly;
  gap: 18px;
  text-align: center;
  padding: 18px 5%;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
}

.section {
  padding: 70px 5%;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

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

.card {
  display: block;
  text-align: left;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
}

.card-image,.atelier-image {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #efede9;
}

.card-image {
  aspect-ratio: 1.24 / .85;
}

.card-image img,.atelier-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.card-image img {
  object-fit: cover;
  transition: transform .3s ease;
}

.card:hover .card-image img {
  transform: scale(1.035);
}

.studs, .pendants {
  background: #efede9;
}

.bracelets {
  background: #e9ecf0;
}

.card-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font: 27px var(--serif);
}

.atelier {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  margin: 12px 5%;
  background: #f0ece7;
}

.atelier-visual {
  margin: 0;
  align-self: center;
}

.atelier-image {
  aspect-ratio: 1.24;
}

.ear-size-guide {
  display: grid;
  grid-template-columns: minmax(100px, 180px) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin: 18px;
  padding-top: 18px;
  border-top: 1px solid #ccc4bb;
}

.ear-size-preview {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.ear-size-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
}

.ear-size-guide h3 {
  margin: 0;
  font: 28px/1.1 var(--serif);
}

.ear-size-guide p:not(.eyebrow) {
  font-size: 12px;
  line-height: 1.6;
}

.ear-size-guide .eyebrow {
  margin-bottom: 10px;
}

.size-guide-note {
  color: #625d59;
}

.ear-size-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: #72474f;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ear-size-link:hover {
  color: var(--ink);
}

body.ear-sizes-open {
  overflow: hidden;
}

dialog.ear-size-dialog {
  margin: auto;
  width: min(900px, calc(100% - 24px));
  max-width: none;
  height: fit-content;
  max-height: calc(100dvh - 24px);
  padding: 20px;
  border-radius: 4px;
}

.ear-size-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.ear-size-dialog-head h2 {
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.1;
}

.ear-size-dialog-head button {
  flex-shrink: 0;
  min-height: 44px;
  padding: 8px 12px;
  background: none;
  border: 1px solid var(--line);
  font-size: 13px;
}

.ear-size-dialog p {
  margin: 8px 0 16px;
  font-size: 12px;
}

.ear-size-dialog > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 170px);
  object-fit: contain;
}

@media(max-width:450px) {
  .ear-size-guide {
    grid-template-columns: minmax(90px, 40%) minmax(0, 1fr);
    gap: 14px;
    margin: 14px;
  }
  .ear-size-guide h3 {
    font-size: 24px;
  }
  dialog.ear-size-dialog {
    padding: 12px;
  }
}

.pair-weight {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.pair-weight strong {
  font-weight: 700;
}

.atelier-body {
  padding: clamp(25px,5vw,72px);
}

form {
  display: grid;
  gap: 13px;
  margin-top: 26px;
}

fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}

label,legend,small {
  font-size: 12px;
}

label {
  display: block;
  margin-bottom: 4px;
}

form>label {
  margin-bottom: -9px;
}

select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #aaa39a;
  background: #fff;
  padding: 5px 9px;
}

.options {
  display: flex;
  gap: 8px;
  margin-top: 5px;
  flex-wrap: wrap;
}

.choice {
  display: inline-grid;
  position: relative;
  place-items: center;
  margin: 0;
  cursor: pointer;
}

.choice input {
  opacity: 0;
  position: absolute;
  width: 1px;
  height: 1px;
}

.choice span {
  border: 1px solid #aaa39a;
  min-width: 43px;
  padding: 6px 8px;
  text-align: center;
  background: white;
}

.choice.swatch span {
  border-radius: 50%;
  min-width: 32px;
  width: 32px;
  height: 32px;
  background: var(--colour);
}

.choice input:checked+span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.choice input:focus-visible+span {
  outline: 2px dashed #526a83;
  outline-offset: 3px;
}

.diamond-config {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(108px, 34%);
  gap: clamp(9px, 1.5vw, 22px);
  align-items: start;
}

.diamond-options {
  display: grid;
  gap: 13px;
  min-width: 0;
}

.diamond-grades {
  border-left: 1px solid var(--line);
  padding-left: clamp(9px, 1.35vw, 19px);
  font-size: 12px;
}

.diamond-grades h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
}

.diamond-grades dl {
  margin: 0;
}

.diamond-grades dl div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 8px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}

.diamond-grades dt span {
  display: block;
  font-size: 10px;
}

.diamond-grades dd {
  margin: 0;
  font-weight: 700;
}

.material-note {
  margin: 0;
  font-size: 13px;
}

.buy-row {
  justify-content: space-between;
  border-top: 1px solid #ccc4bb;
  padding-top: 13px;
}

.buy-row small {
  display: block;
}

.info {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7vw;
}

.info article {
  border-top: 1px solid var(--line);
  padding-top: 23px;
}

.info h2 {
  font-size: clamp(38px,4vw,62px);
}

summary {
  cursor: pointer;
  font-weight: 600;
}

.site-footer {
  padding: 56px 5% 24px;
  background: #f4f3f0;
  border-top: 1px solid #d9d8d4;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  padding-bottom: 36px;
}

.footer-tagline {
  margin: 16px 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
}

.footer-description {
  margin: 0;
  color: #625d59;
  font-size: 14px;
  line-height: 1.7;
}

.site-footer h2 {
  margin: 5px 0 15px;
  font: 700 11px/1.5 var(--sans);
  letter-spacing: .15em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.footer-links a,
.footer-contact address a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  font-size: 14px;
}

.footer-links a:hover,
.footer-contact address a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-contact address {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-style: normal;
}

.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
  margin-top: 14px;
  padding: 10px 16px;
  border: 1px solid #25d366;
  background: #25d366;
  color: #073b20;
  border-radius: 2px;
  font-size: 13px;
}

.footer-whatsapp:hover {
  background: #20bd5a;
  border-color: #20bd5a;
}

.footer-contact-note {
  margin: 10px 0 0;
  color: #625d59;
  font-size: 12px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-top: 22px;
  border-top: 1px solid #d9d8d4;
  color: #625d59;
}

.footer-bottom small:first-child {
  margin-right: auto;
}

@media(max-width:650px) {
  .site-footer {
    padding-top: 36px;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-links a,
  .footer-contact address a {
    min-height: 44px;
  }
  .footer-bottom small:first-child {
    flex-basis: 100%;
  }
}

dialog {
  border: 0;
  margin: 0 0 0 auto;
  max-width: min(100%,500px);
  width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 26px;
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
}

dialog::backdrop {
  background: #25242475;
}

.bag-head,.subtotal,.line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.bag-head button {
  background: none;
  border: 0;
  font-size: 32px;
}

.line {
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
}

.line p {
  margin: 4px 0;
  font-size: 12px;
}

.line button {
  background: white;
  border: 1px solid #aaa39a;
  min-width: 32px;
  min-height: 32px;
}

.quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.bag-foot {
  margin-top: 22px;
}

.bag-foot .button {
  width: 100%;
  margin-top: 12px;
}

.bag-foot p {
  font-size: 12px;
}

@media(max-width:800px) {
  .nav {
    flex-wrap: wrap;
    gap: 0;
    padding-top: 12px;
  }
  .nav nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 0;
  }
  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .jewellery-gallery-image {
    max-height: 430px;
  }
  .hero h1 {
    font-size: clamp(30px, 7.5vw, 65px);
  }
  .hero-copy {
    width: 100%;
    padding: 28px 5% 36px;
  }
  .signature {
    flex-wrap: wrap;
  }
  .grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .section {
    padding: 48px 5%;
  }
  .atelier {
    grid-template-columns: 1fr;
  }
  .info {
    grid-template-columns: 1fr;
  }
  .brand {
    font-size: 20px;
  }
}

@media(max-width:400px) {
  .section-head {
    display: block;
  }
  .section-head .under {
    display: inline-block;
    margin-top: 12px;
  }
  .card-label {
    font-size: 22px;
  }
}

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

.brand-story {
  max-width: 880px;
  margin-inline: auto;
  line-height: 1.65;
}

.brand-story h3,
.brand-story h4,
.brand-story h5,
.story-tagline {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
}

.brand-story h3 { font-size: clamp(30px, 4vw, 42px); margin-block: 1.2em .5em; }
.brand-story h4 {
  font-size: clamp(25px, 3vw, 34px);
  margin-block: 1.3em .5em;
  padding-top: .7em;
  border-top: 1px solid var(--line);
}
.brand-story h5,
.story-tagline { font-size: 24px; }

.story-links {
  display: flex;
  gap: 8px 24px;
  flex-wrap: wrap;
  margin-block: 16px 28px;
}

.story-links a { text-decoration: underline; text-underline-offset: .25em; }

.brand-story table {
  width: 100%;
  max-width: 440px;
  border-collapse: collapse;
}

.brand-story th,
.brand-story td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.brand-story tbody th { font-weight: normal; }

.story-portraits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 20px);
  margin-block: 20px 28px;
}

.story-portraits img {
  display: block;
  width: 100%;
  height: auto;
  background: #eee7e0;
}

.rewards-certificate {
  margin: 16px 0 24px;
}

.rewards-certificate img {
  display: block;
  width: 100%;
  height: auto;
}

.rewards-certificate figcaption {
  margin-top: 6px;
  font-size: 13px;
}

.signature-packaging {
  margin-block: 18px;
}

.signature-packaging h5 {
  margin: 0 0 10px;
}

.packaging-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 780px;
}

.packaging-photos img {
  display: block;
  width: 100%;
  height: auto;
}

/* Diamond identification and certification */
.quality-assurance { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 36px; align-items: center; margin: 64px 0; padding: clamp(28px, 5vw, 64px); border: 1px solid #ded5d4; background: linear-gradient(120deg, #faf8f5, #f6eeed 58%, #f2f5f7); scroll-margin-top: 28px; }
.quality-seal { width: 112px; height: 136px; display: grid; place-items: center; color: #926a74; border: 1px solid #d7c8ca; border-radius: 56px 56px 12px 12px; background: #ffffff70; }
.quality-seal svg { width: 70px; height: 70px; }
.quality-copy .eyebrow { color: #71515b; font-size: 10px; line-height: 1.8; margin: 0 0 20px; }
.quality-copy h2 { font-size: clamp(38px, 4.5vw, 64px); line-height: 1.05; }
.quality-copy h2 em { color: #916472; font-weight: 400; }
.quality-copy .quality-description { max-width: 540px; font-size: 15px; line-height: 1.8; margin: 24px 0; color: #51494b; }
.quality-copy .quality-signoff { display: flex; flex-wrap: wrap; gap: 8px; color: #71515b; font: 600 9px/1.8 var(--sans); letter-spacing: .13em; margin: 0; }
.card-assurance { display: block; padding: 11px 0 0; color: #735963; font-size: 10px; line-height: 1.6; }
.diamond-assurance { display: flex; align-items: center; gap: 10px; margin: 22px 0; padding: 14px 0; border-block: 1px solid #d8cccb; color: #71515b; font-size: 12px; line-height: 1.6; }
.diamond-assurance svg { flex: none; width: 26px; height: 26px; }
.diamond-assurance:hover span { text-decoration: underline; text-underline-offset: 4px; }
@media(max-width: 600px) { .quality-assurance { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-block: 40px; } .quality-seal { width: 72px; height: 88px; } .quality-seal svg { width: 48px; height: 48px; } .quality-copy .quality-signoff { font-size: 8px; letter-spacing: .08em; } }

/* Official IGI sample, reproduced without modifying the report. */
.quality-report { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 32px; margin: 8px 0 0; padding-top: 32px; border-top: 1px solid #ded5d4; }
.quality-report-image { display: block; max-width: 320px; width: 100%; justify-self: center; cursor: zoom-in; box-shadow: 0 10px 30px #493b4014; transition: transform .2s ease; }
.quality-report-image:hover { transform: translateY(-3px); }
.quality-report-image img { display: block; width: 100%; height: auto; }
.quality-report figcaption { min-width: 0; color: #51494b; font-size: 13px; line-height: 1.8; }
.quality-report .quality-report-title { font: 400 clamp(28px, 3vw, 40px)/1.1 var(--serif); color: var(--ink); margin: 0 0 18px; }
.quality-report figcaption .eyebrow { color: #71515b; font-size: 9px; }
.quality-report-source { display: block; margin-top: 22px; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
@media(max-width: 600px) { .quality-report { grid-template-columns: minmax(0, 1fr); gap: 24px; } .quality-report-image { max-width: 280px; } }
@media(prefers-reduced-motion: reduce) { .quality-report-image { transition: none; } }
