/*
Theme Name: Gold Jewellery Design
Theme URI: https://goldjewellerydesign.com/
Author: Gold Jewellery Design
Description: Editorial ivory and emerald theme for gold jewellery design galleries: wide 3:2 design cards with weight, purity and occasion, a karigar note on every piece, sticky gallery index, shelf-style home page, full-screen viewer and image SEO.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: goldjewellerydesign
*/

@font-face { font-family: "DM Serif Display"; src: url(assets/fonts/dm-serif-display-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url(assets/fonts/dm-serif-display-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(assets/fonts/manrope-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(assets/fonts/manrope-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(assets/fonts/manrope-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
	--paper: #faf7f0; --card: #ffffff; --ink: #1d1a16; --soft: #5d564b; --line: #e7dfcd;
	--emerald: #0f4c3a; --emerald-2: #16634d; --gold: #b08a3e; --gold-l: #f3ead6; --wash: #f1ece0;
	--serif: "DM Serif Display", Georgia, "Times New Roman", serif;
	--sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16.5px/1.7 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.18; letter-spacing: .005em; color: var(--ink); }
h2 { font-size: 1.75rem; margin: 2.4rem 0 .7rem; }
h3 { font-size: 1.2rem; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; }

/* header */
.gj-strip { background: var(--emerald); color: #e8f0ec; font-size: .78rem; letter-spacing: .04em; text-align: center; padding: 6px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gj-head { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.gj-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 10px; }
.gj-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.gj-brand svg { width: 40px; height: 40px; flex: none; }
.gj-brand span { display: flex; flex-direction: column; line-height: 1; }
.gj-brand b { font: 400 1.45rem/1 var(--serif); }
.gj-brand i { font: 600 .68rem/1.4 var(--sans); letter-spacing: .42em; text-transform: uppercase; color: var(--gold); font-style: normal; margin-top: 3px; }
.gj-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; border: 1px solid var(--ink); padding: 7px 14px; font-weight: 600; font-size: .9rem; }
.gj-menu summary::-webkit-details-marker { display: none; }
.gj-menu summary svg { width: 18px; height: 18px; }
.gj-menu[open] summary { background: var(--ink); color: var(--paper); }
.gj-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-bottom: 3px solid var(--gold); box-shadow: 0 18px 40px rgba(29, 26, 22, .12); max-height: 75vh; overflow: auto; }
.gj-panel .wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 28px; padding: 22px 0 26px; }
.gj-panel h3 { font: 800 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 14px 0 8px; }
.gj-panel a { display: block; text-decoration: none; color: var(--ink); padding: 4px 0; font-size: .95rem; }
.gj-panel a:hover { color: var(--emerald); }
.gj-nav { border-top: 1px solid var(--line); }
.gj-nav .wrap { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.gj-nav .wrap::-webkit-scrollbar { display: none; }
.gj-nav a { white-space: nowrap; text-decoration: none; color: var(--soft); font-size: .88rem; font-weight: 600; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.gj-nav a:hover { color: var(--emerald); border-color: var(--gold); }

/* hero */
.gj-hero { background: var(--wash); border-bottom: 1px solid var(--line); padding: 18px 0 30px; }
.gj-crumbs { font-size: .82rem; color: var(--soft); display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.gj-crumbs a { color: var(--soft); text-decoration: none; }
.gj-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin: 0 0 14px; max-width: 900px; }
.gj-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; font-size: .85rem; color: var(--soft); }
.gj-meta span::before { content: "\25C6"; color: var(--gold); font-size: .6rem; margin-right: 8px; vertical-align: 2px; }

/* gallery body: sticky index on the left */
.gj-main { padding-bottom: 40px; }
.gj-body { padding-top: 26px; }
@media (min-width: 1000px) {
	.gj-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); column-gap: 44px; }
	.gj-body > * { grid-column: 2; }
	.gj-body > .gj-jump { grid-column: 1; grid-row: 1 / span 80; align-self: start; position: sticky; top: 18px; flex-direction: column; border: 0; border-left: 2px solid var(--line); padding: 2px 0 2px 16px; background: none; }
	.gj-body > .gj-jump::before { content: "In this gallery"; font: 800 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
	.gj-body > .gj-jump a { border: 0; padding: 4px 0; background: none; white-space: normal; }
}
.gj-intro { font-size: 1.04rem; max-width: 760px; }
.gj-intro p:first-child::first-letter { font-family: var(--serif); float: left; font-size: 3.4rem; line-height: .9; margin: 6px 10px 0 0; color: var(--emerald); }
.gj-jump { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 18px 0 8px; padding: 2px 0; }
.gj-jump a { white-space: nowrap; text-decoration: none; color: var(--emerald); font-size: .86rem; font-weight: 600; border: 1px solid var(--line); background: var(--card); padding: 6px 12px; }
.gj-jump a:hover { border-color: var(--gold); }
.gj-sec { scroll-margin-top: 16px; }
.gj-sec > h2 { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.gj-sec > h2::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); margin: 0 12px 4px 2px; }

/* design cards */
.gj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; margin: 18px 0 8px; }
.gj-card { margin: 0; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; scroll-margin-top: 16px; }
.gj-zoom { display: block; aspect-ratio: 3 / 2; background: var(--gold-l); overflow: hidden; }
.gj-zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gj-zoom:hover img { transform: scale(1.035); }
.gj-card figcaption { padding: 0 16px 16px; font-size: .94rem; }
.gj-spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 -16px 12px; border-bottom: 1px solid var(--line); }
.gj-spec div { padding: 9px 10px 8px 16px; border-right: 1px solid var(--line); }
.gj-spec div:last-child { border-right: 0; }
.gj-spec dt { font: 800 .62rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.gj-spec dd { margin: 3px 0 0; font-weight: 600; font-size: .86rem; line-height: 1.3; }
.gj-card .cap { margin: 0 0 10px; }
.gj-card .note { margin: 0; font: italic 400 1.02rem/1.45 var(--serif); color: var(--emerald); }
.gj-card .note b { font: 800 .64rem/1 var(--sans); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 4px; }

/* guides, tables, faq */
.gj-guide { max-width: 800px; }
.gj-guide h2::after { content: ""; display: block; width: 46px; height: 2px; background: var(--gold); margin-top: 12px; }
.table-scroll { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--emerald); color: #fff; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.gj-faq { max-width: 800px; margin-top: 10px; }
.gj-faq details { border-top: 1px solid var(--line); }
.gj-faq details:last-child { border-bottom: 1px solid var(--line); }
.gj-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; }
.gj-faq summary::-webkit-details-marker { display: none; }
.gj-faq summary h3 { margin: 0; font: 600 1rem/1.5 var(--sans); }
.gj-faq summary::after { content: "+"; font: 400 1.5rem/1 var(--serif); color: var(--gold); }
.gj-faq details[open] summary::after { content: "\2212"; }
.gj-faq details > div { padding: 0 0 14px; color: var(--soft); }
.gj-ad { margin: 26px 0; text-align: center; min-height: 90px; }

/* tiles and shelves */
.gj-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.gj-tile { text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); display: block; }
.gj-tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gj-tile span { display: block; padding: 10px 12px 12px; }
.gj-tile b { display: block; font: 400 1.08rem/1.25 var(--serif); }
.gj-tile small { color: var(--gold); font-weight: 600; font-size: .78rem; letter-spacing: .04em; }
.gj-tile:hover { border-color: var(--gold); }
.gj-more { margin-top: 44px; }
.gj-shelf { padding-top: 10px; scroll-margin-top: 10px; }
.gj-shelf h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.gj-shelf h2 small { font: 600 .8rem/1 var(--sans); color: var(--soft); }

/* front page */
.gj-front { background: var(--emerald); color: #f2efe6; padding: 40px 0; }
.gj-front .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.gj-eyebrow { font: 800 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #d8bd7e; margin: 0 0 14px; }
.gj-front h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.5rem); margin: 0 0 14px; }
.gj-front .lead { font-size: 1.08rem; max-width: 520px; margin: 0; color: #dfe9e4; }
.gj-front-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gj-front-pick a { position: relative; display: block; text-decoration: none; border: 1px solid rgba(216, 189, 126, .5); }
.gj-front-pick img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gj-front-pick span { position: absolute; left: 0; bottom: 0; background: rgba(15, 76, 58, .88); color: #fff; font-size: .82rem; font-weight: 600; padding: 4px 10px; }

/* static pages */
.gj-static { max-width: 780px; padding: 10px 0 30px; }
.gj-static h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 8px 0 18px; }
.gj-plain { padding-top: 20px; }

/* footer */
.gj-foot { background: #15130f; color: #cfc8b8; margin-top: 50px; padding: 40px 0 26px; font-size: .9rem; }
.gj-foot a { color: #cfc8b8; text-decoration: none; display: block; padding: 3px 0; }
.gj-foot a:hover { color: #d8bd7e; }
.gj-foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; border-bottom: 1px solid #3a352c; padding-bottom: 24px; }
.gj-foot-brand { max-width: 380px; margin: 0; }
.gj-foot-brand b { font: 400 1.4rem/1.3 var(--serif); color: #fff; }
.gj-foot-info { display: flex; flex-wrap: wrap; gap: 4px 22px; max-width: 560px; align-content: flex-start; }
.gj-foot-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 26px; padding: 18px 0; }
.gj-foot h3 { font: 800 .68rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #d8bd7e; margin: 14px 0 8px; }
.gj-legal { border-top: 1px solid #3a352c; padding-top: 16px; margin: 0; font-size: .8rem; color: #8f877a; }

/* viewer */
.gj-view { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: rgba(12, 11, 9, .96); color: #eee; }
.gj-view[open] { display: grid; grid-template-columns: 56px 1fr 56px; grid-template-rows: auto 1fr auto; }
.gj-view::backdrop { background: rgba(0, 0, 0, .7); }
.gj-view .bar { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; font-size: .85rem; }
.gj-view .close { background: none; border: 1px solid #555; color: #fff; font-size: 1.4rem; width: 40px; height: 40px; cursor: pointer; }
.gj-view .stage { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 6px; }
.gj-view .stage img { max-height: 100%; max-width: 100%; object-fit: contain; }
.gj-view .nav { background: none; border: 0; color: #d8bd7e; font-size: 1.8rem; cursor: pointer; }
.gj-view .info { grid-column: 1 / -1; padding: 12px 16px 18px; max-width: 760px; margin: 0 auto; text-align: center; }
.gj-view .info p { margin: 0 0 12px; font-size: .92rem; }
.gj-view .act { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.gj-view .act a { color: #15130f; background: #d8bd7e; text-decoration: none; font-weight: 700; font-size: .82rem; padding: 7px 14px; }

@media (max-width: 760px) {
	body { font-size: 16px; }
	.gj-strip { white-space: normal; font-size: .72rem; line-height: 1.4; padding: 6px 0; }
	.gj-brand b { font-size: 1.22rem; }
	.gj-brand i { letter-spacing: .3em; }
	.gj-grid { grid-template-columns: 1fr; gap: 20px; }
	.gj-front .wrap { grid-template-columns: 1fr; }
	.gj-front { padding: 28px 0; }
	.gj-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.gj-tile b { font-size: .98rem; }
	h2 { font-size: 1.48rem; }
	.gj-spec dd { font-size: .8rem; }
	.gj-view[open] { grid-template-columns: 34px 1fr 34px; }
}
