/* ==========================================================================
   THE SACRED HOUR  ::  the site's only stylesheet (replaced meaning.css and
   blackwork.css on 2026-11-03; both stay in the repo for rollback).

   Idea: a technical drawing. Bone paper, ink type, hairline rules, one gold.
   Gold #b08a52 is decorative only (3.2:1 on white). Gold that carries text
   uses --gold-text (4.6:1 on bone). Numbers are set light and wide; small
   annotations are mono, like dimensions on a drawing.
   ========================================================================== */

:root {
    --bone: #f6f4ef;
    --paper: #fbfaf7;
    --white: #ffffff;
    --ink: #17171b;
    --ink-2: #3b3b43;
    --muted: #66666f;
    --rule: #dcd6ca;
    --rule-soft: #e9e5dc;
    --gold: #b08a52;
    --gold-text: #8a6a38;

    --display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    --wrap: 1200px;
    --gutter: clamp(20px, 4vw, 48px);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bone);
    color: var(--ink);
    font: 400 1.0625rem/1.75 var(--body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--bone); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; letter-spacing: -0.015em; line-height: 1.15; margin: 0; color: var(--ink); }
p { margin: 0 0 1.1em; text-wrap: pretty; }
h1, h2 { text-wrap: balance; }

.sh-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sh-label, .section-label, .hero-label {
    display: block;
    font: 500 0.7rem/1.4 var(--mono);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-text);
    margin: 0 0 1.25rem;
}

/* ---------- buttons ---------- */
.sh-btn, .btn-shop, .hero-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
    min-height: 52px; padding: 0 1.75rem;
    background: var(--ink); color: var(--bone);
    border: 1px solid var(--ink); border-radius: 0;
    font: 500 0.75rem/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase;
    text-decoration: none; cursor: pointer;
    transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.sh-btn:hover, .btn-shop:hover, .hero-cta:hover { background: transparent; color: var(--ink); }
.sh-btn-ghost { background: transparent; color: var(--ink); }
.sh-btn-ghost:hover { background: var(--ink); color: var(--bone); }
.sh-link {
    font: 500 0.75rem/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase;
    text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid var(--gold);
}

/* ---------- header ---------- */
.sh-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(246, 244, 239, 0.92);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rule);
}
.sh-header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.sh-logo {
    display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink);
    font: 500 0.8rem/1 var(--display); letter-spacing: 0.28em; text-transform: uppercase; white-space: nowrap;
}
.sh-logo svg { width: 30px; height: 30px; flex: none; }
.sh-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.sh-nav a { font: 400 0.82rem/1 var(--body); letter-spacing: 0.04em; color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
.sh-nav a:hover { color: var(--ink); }
.sh-nav .sh-nav-shop { color: var(--ink); padding: 10px 16px; border: 1px solid var(--ink); transition: background-color 0.3s, color 0.3s; }
.sh-nav .sh-nav-shop:hover { background: var(--ink); color: var(--bone); }
@media (max-width: 720px) {
    .sh-header-in { flex-wrap: wrap; gap: 6px 16px; padding-top: 14px; padding-bottom: 12px; min-height: 0; }
    .sh-nav { width: 100%; justify-content: space-between; gap: 12px; }
    .sh-nav a { font-size: 0.8rem; }
    .sh-nav .sh-nav-shop { padding: 8px 12px; }
}

/* ---------- homepage: hero ---------- */
.sh-hero { padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 104px); border-bottom: 1px solid var(--rule); }
.sh-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.sh-hero h1 { font-size: clamp(2.9rem, 6.4vw, 5.6rem); font-weight: 300; letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 1.75rem; }
.sh-hero h1 em { font-style: normal; color: var(--gold-text); }
.sh-hero-lede { font-size: 1.15rem; color: var(--ink-2); max-width: 30rem; margin-bottom: 2.25rem; }
.sh-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.sh-hero-figure { position: relative; margin: 0; background: var(--white); border: 1px solid var(--rule); }
.sh-hero-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.sh-hero-figure figcaption {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 14px 18px; border-top: 1px solid var(--rule);
    font: 400 0.7rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.sh-hero-figure figcaption b { font-weight: 500; color: var(--ink); }
/* registration marks on the photo frame, like a print proof */
.sh-hero-figure::before, .sh-hero-figure::after {
    content: ""; position: absolute; width: 18px; height: 18px; border-color: var(--gold); border-style: solid; pointer-events: none;
}
.sh-hero-figure::before { top: -9px; left: -9px; border-width: 1px 0 0 1px; }
.sh-hero-figure::after { bottom: -9px; right: -9px; border-width: 0 1px 1px 0; }
@media (max-width: 860px) {
    .sh-hero-grid { grid-template-columns: 1fr; }
    .sh-hero-figure { max-width: 420px; }
}
/* on phones the same photo opens the collection right below, so skip it here */
@media (max-width: 640px) { .sh-hero-figure { display: none; } }

/* ---------- homepage: number band ---------- */
.sh-band { border-bottom: 1px solid var(--rule); background: var(--paper); }
.sh-band ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--wrap); display: flex; justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
.sh-band ul::-webkit-scrollbar { display: none; }
.sh-band li { flex: 1 0 auto; text-align: center; padding: 22px 14px; border-left: 1px solid var(--rule-soft); }
.sh-band li:first-child { border-left: 0; }
.sh-band a { text-decoration: none; font: 300 1.35rem/1 var(--display); letter-spacing: 0.06em; color: var(--ink-2); transition: color 0.2s; }
.sh-band a:hover { color: var(--gold-text); }
.sh-band small { display: block; margin-top: 8px; font: 400 0.62rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- homepage sections ---------- */
.sh-section { padding: clamp(72px, 10vw, 136px) 0; }
.sh-section + .sh-section { border-top: 1px solid var(--rule); }
.sh-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 80px); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.sh-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); font-weight: 300; letter-spacing: -0.03em; }
.sh-head p { color: var(--ink-2); max-width: 34rem; margin: 0; }
@media (max-width: 860px) { .sh-head { grid-template-columns: 1fr; } }

/* product cards */
.sh-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.sh-product { display: block; text-decoration: none; color: var(--ink); }
.sh-product-img { position: relative; background: var(--white); border: 1px solid var(--rule); overflow: hidden; }
.sh-product img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s var(--ease); }
.sh-product:hover img { transform: scale(1.03); }
.sh-product .sp-index { position: absolute; top: 14px; left: 16px; z-index: 1; font: 400 0.7rem/1 var(--mono); letter-spacing: 0.1em; color: var(--muted); }
.sh-product .sp-body { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 2px 0; }
.sh-product .sp-name { margin: 0; font: 400 1.2rem/1.3 var(--display); letter-spacing: -0.01em; }
.sh-product .sp-meta { margin: 4px 0 0; font: 400 0.72rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.sh-product .sp-price { font: 300 1.2rem/1 var(--display); white-space: nowrap; }
@media (max-width: 640px) { .sh-products { grid-template-columns: 1fr; } }
/* the full collection: 4 across on desktop, 2 across on tablets and phones */
.sh-products-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.sh-products-4 .sp-name { font-size: 1.02rem; }
.sh-products-4 .sp-price { font-size: 1rem; }
.sh-products-4 .sp-body { flex-direction: column; gap: 6px; }
@media (max-width: 900px) { .sh-products-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sh-products-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.article-body .sh-products-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.sh-soon {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
    margin-top: clamp(40px, 6vw, 64px); padding-top: 28px; border-top: 1px solid var(--rule);
    color: var(--ink-2);
}
.sh-soon p { margin: 0; }
.sh-soon strong { font-weight: 500; color: var(--ink); }

/* method: dark band with the construction drawing */
.sh-method { background: var(--ink); color: var(--bone); }
.sh-method h2, .sh-method h3 { color: var(--bone); }
.sh-method .sh-label { color: var(--gold); }
.sh-method .sh-head p { color: #b9b6ae; }
.sh-method-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.sh-drawing { width: 100%; max-width: 520px; margin: 0 auto; }
.sh-drawing .c { fill: none; stroke: var(--gold); stroke-width: 1; }
.sh-drawing .c2 { fill: none; stroke: rgba(246, 244, 239, 0.28); stroke-width: 0.75; }
.sh-drawing .ax { stroke: rgba(246, 244, 239, 0.35); stroke-width: 0.75; stroke-dasharray: 4 5; }
.sh-drawing .dim { stroke: var(--bone); stroke-width: 0.75; }
.sh-drawing text { font: 400 10px var(--mono); letter-spacing: 0.08em; fill: #b9b6ae; }
.sh-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.sh-steps li { counter-increment: step; display: grid; grid-template-columns: 3.25rem 1fr; padding: 24px 0; border-top: 1px solid rgba(246, 244, 239, 0.16); }
.sh-steps li:last-child { border-bottom: 1px solid rgba(246, 244, 239, 0.16); }
.sh-steps li::before { content: counter(step, decimal-leading-zero); font: 400 0.75rem/2.1 var(--mono); color: var(--gold); }
.sh-steps h3 { font-size: 1.3rem; margin-bottom: 6px; }
.sh-steps p { margin: 0; color: #b9b6ae; font-size: 0.98rem; }
@media (max-width: 860px) { .sh-method-grid { grid-template-columns: 1fr; } }

/* meanings index: hairline grid */
/* cells draw their own right/bottom rules, so a short last row leaves clean empty space */
.hub-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0; margin: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
}
.hub-grid a { display: block; padding: 26px 22px 22px; background: var(--bone); text-decoration: none; transition: background-color 0.25s; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.hub-grid a:hover { background: var(--white); }
.hub-grid .hn { display: block; font: 300 2.1rem/1 var(--display); letter-spacing: 0.05em; color: var(--ink); margin-bottom: 14px; }
.hub-grid a:hover .hn { color: var(--gold-text); }
.hub-grid .hl { display: block; font: 400 0.68rem/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* closing band */
.sh-close { text-align: center; }
.sh-close h2 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 300; letter-spacing: -0.03em; margin-bottom: 1rem; }
.sh-close p { color: var(--ink-2); max-width: 32rem; margin: 0 auto 2rem; }
.sh-close .sh-mark { width: 56px; height: 56px; margin: 0 auto 28px; }

/* ---------- article pages (meanings, gifts, necklaces, hub) ---------- */
.article-wrap { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(64px, 9vw, 120px); }
.breadcrumb {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px;
    font: 400 0.68rem/1.6 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
    margin-bottom: clamp(40px, 6vw, 64px);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.ah-numeral, .hero-numeral {
    text-align: center;
    font: 300 clamp(5rem, 17vw, 10.5rem)/0.95 var(--display);
    letter-spacing: 0.04em;
    color: var(--ink);
    margin: 0 0 0.12em;
}
.ah-title { text-align: center; font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 400; letter-spacing: -0.025em; max-width: 22ch; margin: 0 auto; }
/* the divider is a center line: hairline with a gold point at x = 0 */
.divider, .article-wrap > .divider {
    position: relative; height: 1px; width: 100%; max-width: 760px;
    margin: clamp(36px, 5vw, 56px) auto; background: var(--rule); border: 0; opacity: 1;
}
.divider::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); transform: translate(-50%, -50%); box-shadow: 0 0 0 6px var(--bone); }

.article-body { counter-reset: sec; }
.article-body p { color: var(--ink-2); }
.article-body p.lead, .article-body .lead {
    font: 300 clamp(1.25rem, 2.2vw, 1.5rem)/1.55 var(--display); letter-spacing: -0.01em;
    color: var(--ink); border: 0; padding: 0; margin: 0 0 2.5rem;
}
.article-body h2 {
    counter-increment: sec;
    font-size: clamp(1.45rem, 2.6vw, 1.85rem); font-weight: 400; letter-spacing: -0.02em;
    margin: 3.25rem 0 1rem; padding-top: 1.75rem; border-top: 1px solid var(--rule);
}
.article-body h2::before { content: counter(sec, decimal-leading-zero); display: block; font: 400 0.7rem/1 var(--mono); letter-spacing: 0.14em; color: var(--gold-text); margin-bottom: 14px; }
.article-body h3 { font-size: 1.15rem; font-weight: 500; margin: 2rem 0 0.6rem; }
.article-body strong { font-weight: 600; color: var(--ink); }
.article-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.article-body a.btn-shop, .article-body a.sh-product, .article-body .hub-grid a, .article-body .related-grid a { text-decoration: none; }
.article-body a.btn-shop { color: var(--bone); }
.article-body a.btn-shop:hover { color: var(--ink); }
.article-body ul, .article-body ol { color: var(--ink-2); padding-left: 1.25rem; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1.5rem 0; display: block; overflow-x: auto; }
.article-body th, .article-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.article-body th { font: 500 0.7rem/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.meaning-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 2.5rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.meaning-cards .mc { padding: 20px 18px 18px 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.meaning-cards .mc + .mc { padding-left: 18px; border-left: 1px solid var(--rule); }
.meaning-cards .mc .mc-label { font: 500 0.66rem/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 10px; }
.meaning-cards .mc p { margin: 0; font: 400 1rem/1.45 var(--display); color: var(--ink); font-style: normal; }
@media (max-width: 560px) {
    .meaning-cards { grid-template-columns: 1fr; }
    .meaning-cards .mc + .mc { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}

.product-cta {
    display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; align-items: center;
    margin: 3.5rem 0; padding: 28px; background: var(--white); border: 1px solid var(--rule); border-radius: 0; box-shadow: none;
}
.product-cta img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--rule-soft); }
.product-cta .pc-text h3 { font-size: 1.35rem; font-weight: 400; margin: 0 0 0.6rem; }
.product-cta .pc-text p { font-size: 0.98rem; }
.product-cta .browse-note { font-size: 0.88rem !important; color: var(--muted); margin: 1.1rem 0 0 !important; }
.product-cta .btn-shop { margin-top: 0.4rem; }
.product-new .sh-label { display: inline-block; margin-bottom: 0.4rem; }
.sh-section .product-new { margin: 2.5rem 0 0; }
@media (max-width: 600px) {
    .product-cta { grid-template-columns: 1fr; padding: 22px; }
    .product-cta img { max-width: 200px; }
    .product-cta .btn-shop { width: 100%; }
}

.faq { margin-top: 3.5rem; }
.faq-item { padding: 20px 0; border-top: 1px solid var(--rule); background: none; border-radius: 0; box-shadow: none; }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item h3 { margin: 0 0 6px; font-size: 1.08rem; font-weight: 500; }
.faq-item p { margin: 0; color: var(--ink-2); }

.related { margin-top: 4rem; text-align: center; }
.related-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.related-grid a { flex: 1 1 110px; padding: 18px 12px; background: var(--bone); text-decoration: none; font: 300 1.2rem/1 var(--display); letter-spacing: 0.05em; color: var(--ink); transition: background-color 0.25s, color 0.25s; }
.related-grid a:hover { background: var(--white); color: var(--gold-text); }

.browse-note a, .sh-soon a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* necklaces/gifts pages reuse the product grid inside the article column */
.article-body .sh-products { margin: 2.5rem 0 0; }

/* ---------- footer ---------- */
.sh-footer { background: var(--ink); color: #b9b6ae; padding: clamp(56px, 8vw, 96px) 0 32px; font-size: 0.92rem; }
.sh-footer .sh-logo { color: var(--bone); }
.sh-foot-top { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(246, 244, 239, 0.14); }
.sh-foot-top p { margin: 18px 0 0; max-width: 18rem; }
.sh-foot-top h4 { font: 500 0.68rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 6px 0 18px; }
.sh-foot-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sh-foot-top a { color: var(--bone); text-decoration: none; }
.sh-foot-top a:hover { color: var(--gold); }
.sh-foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; font: 400 0.7rem/1.6 var(--mono); letter-spacing: 0.06em; color: #8f8c85; }
.sh-foot-legal p { margin: 0; max-width: 46rem; }
@media (max-width: 860px) { .sh-foot-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .sh-foot-top { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.wrap { max-width: 640px; margin: 0 auto; padding: 120px var(--gutter); text-align: center; }
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 1.75rem; background: var(--ink); color: var(--bone); text-decoration: none; font: 500 0.75rem/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}

/* Quiet jump link under the intro of a number page, down to its necklace box (#wear-it). */
.article-body p.wear-note { margin: -0.6em 0 2.2em; padding-left: 14px; border-left: 2px solid var(--gold); font: 500 0.78rem/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.article-body p.wear-note a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; }
.product-cta#wear-it { scroll-margin-top: 96px; }
