/* YanKa Jewelry */
/* Self-hosted fonts (SIL Open Font License) */
@font-face { font-family: "Marcellus"; src: url("/assets/fonts/marcellus-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
:root {
  --mist: #e8eae5;
  --paper: #f5f6f2;
  --leaf: #2b3530;
  --leaf-2: #35413b;
  --ink: #1d2320;
  --muted: #565d58;
  --muted-on-leaf: #b9c2bc;
  --copper: #8e5230;
  --copper-hi: #a6623b;
  --labra: #3f6a82;
  --line: #cfd3cd;
  --display: "Marcellus", "Times New Roman", serif;
  --text: "Jost", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--labra); outline-offset: 3px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
.muted { color: var(--muted); font-size: .9rem; }
.center { text-align: center; }
.hide-sm { }
@media (max-width: 760px) { .hide-sm { display: none; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--mist) 92%, transparent);
  backdrop-filter: blur(8px);
  border-block-end: 1px solid var(--line);
}
.brand img { width: clamp(112px, 14vw, 170px); height: auto; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 32px); align-items: center; font-size: .98rem; }
.nav a { text-decoration: none; padding: 6px 0; border-block-end: 1px solid transparent; }
.nav a:hover { border-color: currentColor; }
.nav-end { justify-content: flex-end; }
.bag-btn {
  font: inherit; color: inherit; background: none; border: 1px solid var(--ink);
  border-radius: 999px; padding: 6px 14px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center;
}
.bag-count { min-width: 1.4em; height: 1.4em; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .78rem; display: inline-grid; place-items: center; padding: 0 .35em; }
.bag-btn.has-items .bag-count { background: var(--copper); }

/* Buttons */
.btn {
  display: inline-block; font: 500 1rem/1 var(--text); text-decoration: none; cursor: pointer;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent; text-align: center;
  transition: background-color .15s, color .15s;
}
.btn-copper { background: var(--copper); color: #fff; }
.btn-copper:hover { background: var(--copper-hi); }
.btn-copper[disabled] { opacity: .55; cursor: progress; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn-block { display: block; width: 100%; }
.link { color: var(--labra); text-underline-offset: 3px; }
.archive .link { color: var(--paper); }

/* Hero */
.hero { position: relative; background: var(--leaf); color: var(--paper); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to left, rgb(22 28 25 / .62) 0%, rgb(22 28 25 / .25) 45%, transparent 65%); }
[dir="rtl"] .hero::after { background: linear-gradient(to right, rgb(22 28 25 / .62) 0%, rgb(22 28 25 / .25) 45%, transparent 65%); }
.hero-copy { z-index: 1; }
.hero img { width: 100%; height: min(78vh, 760px); object-fit: cover; object-position: 20% 50%; }
.hero-copy {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: min(46%, 560px);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter); padding-inline-end: clamp(16px, 6vw, 96px);
}
.hero-copy h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); margin-bottom: .35em; }
.hero-copy p { font-size: 1.15rem; max-width: 34ch; color: #dfe5e0; }
.hero-copy .btn { align-self: flex-start; margin-top: .6em; }
@media (max-width: 760px) {
  .hero img { height: 56vh; object-position: 50% 50%; }
  .hero::after { display: none; }
  .hero-copy { position: static; width: auto; padding: 28px var(--gutter) 36px; }
}

.promises {
  list-style: none; margin: 0; padding: 18px var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px clamp(20px, 5vw, 64px);
  font-size: .95rem; color: var(--muted); border-block-end: 1px solid var(--line);
}
.promises li { display: flex; align-items: center; gap: 10px; }
.promises li::before { content: ""; width: 18px; height: 1px; background: var(--copper); }

/* Sections */
.section { padding: clamp(48px, 8vw, 104px) var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.section-head { max-width: 62ch; margin-bottom: clamp(24px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.archive { max-width: none; background: var(--leaf); color: var(--paper); }
.archive > * { max-width: var(--max); margin-inline: auto; }
.archive .section-head p { color: var(--muted-on-leaf); }
.archive .section-head { margin-inline: auto; }
.archive .grid { margin-inline: auto; }

/* Grids and cards */
.grid { list-style: none; padding: 0; margin: 0; display: grid; }
.grid-lg { grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px) clamp(16px, 2.4vw, 32px); }
.grid-sm { grid-template-columns: repeat(6, 1fr); gap: 14px 10px; }
@media (max-width: 1000px) { .grid-lg { grid-template-columns: repeat(2, 1fr); } .grid-sm { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .grid-lg { grid-template-columns: 1fr; } .grid-sm { grid-template-columns: repeat(2, 1fr); } }
.card a { text-decoration: none; display: block; }
.card-img { position: relative; overflow: hidden; background: var(--leaf-2); aspect-ratio: 4 / 5; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card a:hover .card-img img { transform: scale(1.03); }
.card-meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-top: 12px; }
.card-name { font-family: var(--display); font-size: 1.3rem; line-height: 1.2; }
.price { font-weight: 500; color: var(--copper); white-space: nowrap; }
.card-sub { display: block; color: var(--muted); font-size: .92rem; }
.card-sm .card-meta { margin-top: 8px; }
.card-sm .card-name { font-size: 1rem; }
.card-sm .card-sub { display: none; }
.archive .card-sub { color: var(--muted-on-leaf); }
.tag {
  position: absolute; inset-block-end: 8px; inset-inline-start: 8px;
  background: color-mix(in srgb, var(--leaf) 82%, transparent); color: var(--paper);
  font-size: .75rem; padding: 3px 9px; border-radius: 999px;
}
.card[hidden] { display: none; }

/* Filters */
.page-head { padding: clamp(32px, 6vw, 64px) var(--gutter) 0; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: .95rem; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.page-head + .section { padding-top: clamp(28px, 4vw, 48px); }
.filter-empty { color: var(--muted); }

/* Maker block */
.maker { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 6vw, 88px); align-items: center; max-width: var(--max); margin: 0 auto; padding: clamp(48px, 8vw, 104px) var(--gutter); }
.maker img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.maker p { max-width: 46ch; font-size: 1.1rem; color: var(--muted); }
@media (max-width: 760px) { .maker { grid-template-columns: 1fr; } }

/* Product page */
.crumbs { max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter) 0; font-size: .92rem; color: var(--muted); }
.crumbs a { color: var(--labra); }
.product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 72px); max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) clamp(40px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }
.gallery .main-img { width: 100%; aspect-ratio: 4/5; object-fit: contain; background: var(--leaf-2); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; width: 76px; }
.thumb img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.thumb[aria-pressed="true"] { border-color: var(--copper); }
.product-info { position: sticky; top: 96px; }
@media (max-width: 860px) { .product-info { position: static; } }
.specs { margin: 0 0 1.2em; display: grid; gap: 6px; }
.specs div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; border-block-end: 1px solid var(--line); padding-block: 8px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.desc { font-size: 1.08rem; max-width: 52ch; }
.price-lg { font-size: 1.7rem; color: var(--copper); margin: .2em 0 .6em; font-weight: 500; }
.assure { list-style: none; padding: 0; margin: 20px 0 0; color: var(--muted); font-size: .95rem; display: grid; gap: 6px; }
.assure li { display: flex; gap: 10px; align-items: center; }
.assure li::before { content: ""; width: 14px; height: 1px; background: var(--copper); }
.sold-note { color: var(--muted); }
.btn.is-added { background: var(--leaf); }

/* Narrow text pages */
.narrow { max-width: 720px; margin: 0 auto; padding: clamp(36px, 7vw, 80px) var(--gutter); }
.lead { font-size: 1.2rem; color: var(--muted); }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.center-page { text-align: center; min-height: 50vh; }
.steps { padding-inline-start: 1.3em; margin: 0 0 2em; display: grid; gap: 8px; }
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 80px); max-width: var(--max); margin: 0 auto; padding: clamp(36px, 7vw, 80px) var(--gutter); align-items: start; }
.about > img { position: sticky; top: 96px; aspect-ratio: 4/5; object-fit: cover; }
.narrow-col { max-width: 62ch; }
.narrow-col h2 { font-size: 1.5rem; margin-top: 1.4em; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about > img { position: static; } }

/* Forms */
.form { display: grid; gap: 16px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 8px; display: grid; gap: 14px; }
.form legend { font-family: var(--display); font-size: 1.35rem; margin-bottom: 8px; }
.form label { display: grid; gap: 6px; font-size: .95rem; }
.form label.inline { display: inline-flex; gap: 8px; align-items: center; margin-inline-end: 18px; }
.form input:not([type=radio]), .form select, .form textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid #b9beb7; border-radius: 6px; padding: 12px 14px; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--labra); outline-offset: 0; border-color: var(--labra); }
.form [aria-invalid="true"] { border-color: #a3362b; background: #fbf1ef; }
.two { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { background: #fbf1ef; color: #7d2a21; border: 1px solid #e3b9b2; padding: 12px 14px; border-radius: 6px; }
.form-msg.info { background: var(--paper); color: var(--ink); border-color: var(--line); }

/* Checkout */
.checkout { max-width: var(--max); margin: 0 auto; padding: clamp(32px, 6vw, 64px) var(--gutter); }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } .summary { order: -1; } }
.summary { background: var(--paper); padding: 24px; position: sticky; top: 96px; }
.summary h2 { font-size: 1.4rem; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.row.total { border-block-start: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-size: 1.15rem; }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-block-end: 1px solid var(--line); }
.line-item img { aspect-ratio: 4/5; object-fit: cover; }
.line-item .li-name { font-family: var(--display); font-size: 1.05rem; line-height: 1.2; }
.line-item .li-sub { color: var(--muted); font-size: .85rem; }
.line-item button { font: inherit; font-size: .85rem; color: var(--labra); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; justify-self: start; }

/* Bag drawer */
.bag { position: fixed; inset: 0; z-index: 50; }
.bag[hidden] { display: none; }
.bag-scrim { position: absolute; inset: 0; background: rgb(20 26 23 / .45); }
.bag-panel {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: min(420px, 100%);
  background: var(--mist); display: flex; flex-direction: column; padding: 20px 22px;
  box-shadow: -12px 0 40px rgb(0 0 0 / .18);
}
.bag-head { display: flex; justify-content: space-between; align-items: center; }
.bag-head h2 { font-size: 1.6rem; margin: 0; }
.icon-btn { font-size: 1.8rem; line-height: 1; background: none; border: 0; cursor: pointer; padding: 4px 8px; color: inherit; }
.bag-items { flex: 1; overflow-y: auto; margin: 12px 0; }
.bag-empty { color: var(--muted); }
.bag-foot { border-block-start: 1px solid var(--line); padding-top: 12px; }

/* Footer */
.site-footer { background: var(--ink); color: #cfd5d0; padding: clamp(40px, 6vw, 64px) var(--gutter) 24px; }
.foot-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 32px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer img { width: 150px; margin-bottom: 12px; }
.site-footer p { max-width: 32ch; }
.foot-small { max-width: var(--max); margin: 32px auto 0; font-size: .85rem; color: #8f9893; }
@media (max-width: 760px) { .foot-inner { grid-template-columns: 1fr 1fr; } .foot-inner > div:first-child { grid-column: 1 / -1; } }

[dir="rtl"] .bag-panel { box-shadow: 12px 0 40px rgb(0 0 0 / .18); }
