/*
Theme Name: G.nightday Atelier
Theme URI: https://gnightday.com/
Author: G.nightday
Description: An editorial WooCommerce storefront for G.nightday fine jewelry.
Version: 0.4.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: gnightday-atelier
*/

:root {
  --gn-paper: #f7f5f0;
  --gn-cream: #eeeae2;
  --gn-ink: #26231f;
  --gn-muted: #777168;
  --gn-line: #d9d4ca;
  --gn-gold: #a98750;
  --gn-white: #fffefa;
  --gn-serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", Georgia, serif;
  --gn-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gn-content: 1360px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--gn-ink);
  background: var(--gn-paper);
  font: 15px/1.65 var(--gn-sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
.gn-skip-link { position: absolute; left: -9999px; z-index: 999; }
.gn-skip-link:focus { left: 1rem; top: 1rem; padding: .75rem; background: white; }
.gn-wrap { width: min(var(--gn-content), calc(100% - 9vw)); margin-inline: auto; }
.gn-announcement { padding: 8px 18px; background: var(--gn-ink); color: var(--gn-paper); text-align: center; font-size: 10px; letter-spacing: .17em; text-transform: uppercase; }
.gn-header { position: relative; z-index: 10; background: rgba(247,245,240,.96); border-bottom: 1px solid var(--gn-line); }
.gn-nav { min-height: 82px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; }
.gn-nav-links, .gn-nav-actions { display: flex; align-items: center; gap: 25px; }
.gn-nav-links > li { margin: 0; padding: 0; list-style: none; }
.gn-nav-links a, .gn-nav-actions a, .gn-nav-actions button { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.gn-nav-links a:hover, .gn-nav-actions a:hover { color: var(--gn-gold); }
.gn-logo { display: inline-flex; flex-direction: row; align-items: center; gap: 10px; font: 29px/1 var(--gn-serif); letter-spacing: -.045em; white-space: nowrap; }
.gn-logo-mark { width: 44px; height: 44px; flex: 0 0 44px; object-fit: cover; mix-blend-mode: multiply; }
.gn-logo-type { display: flex; flex-direction: column; align-items: flex-start; }
.gn-logo small { padding-top: 7px; color: var(--gn-muted); font: 8px/1 var(--gn-sans); letter-spacing: .2em; text-transform: uppercase; }
.gn-nav-actions { justify-content: flex-end; }
.gn-cart-link { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; cursor: pointer; }
.gn-cart-count { min-width: 19px; height: 19px; padding: 0 5px; display: inline-grid; place-items: center; border: 1px solid var(--gn-line); border-radius: 50%; font-size: 9px; }
.gn-menu-toggle { display: none; border: 0; background: transparent; font-size: 20px; }

.gn-hero { min-height: 650px; display: grid; grid-template-columns: minmax(0, .94fr) minmax(400px, 1.06fr); overflow: hidden; background: var(--gn-cream); }
.gn-hero-copy { align-self: center; padding: 75px max(7vw, calc((100vw - var(--gn-content)) / 2)); padding-right: 3vw; }
.gn-eyebrow { margin: 0 0 20px; color: var(--gn-gold); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.gn-hero h1 { max-width: 650px; margin: 0; font: 500 clamp(47px, 6vw, 82px)/.98 var(--gn-serif); letter-spacing: -.055em; }
.gn-hero h1 em { color: var(--gn-gold); font-weight: 400; }
.gn-hero-lede { max-width: 410px; margin: 25px 0 30px; color: #625e56; font-size: 14px; line-height: 1.8; }
.gn-button { min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; border: 1px solid var(--gn-ink); background: var(--gn-ink); color: var(--gn-white); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; transition: .2s ease; }
.gn-button:hover { background: transparent; color: var(--gn-ink); }
.gn-hero-note { margin-top: 20px; color: var(--gn-muted); font-size: 10px; letter-spacing: .08em; }
.gn-hero-visual { position: relative; min-height: 520px; display: grid; place-items: center; overflow: hidden; background: #ede9e0; }
.gn-hero-visual::before, .gn-hero-visual::after { content: ""; position: absolute; border: 1px solid rgba(169,135,80,.2); border-radius: 50%; pointer-events: none; }
.gn-hero-visual::before { width: min(78%, 580px); aspect-ratio: 1; animation: gn-halo-breathe 9s ease-in-out infinite; }
.gn-hero-visual::after { width: min(64%, 460px); aspect-ratio: 1; animation: gn-halo-breathe 9s ease-in-out -4.5s infinite; }
.gn-hero-product { position: relative; z-index: 1; width: min(88%, 660px); mix-blend-mode: multiply; filter: brightness(1.08) contrast(1.03) drop-shadow(0 12px 14px rgba(69,56,40,.07)); transform-origin: 50% 56%; transition: filter .8s ease; animation: gn-ring-float 8s cubic-bezier(.45,0,.55,1) infinite; }
.gn-hero-glint { position: absolute; z-index: 2; top: 59%; left: 50%; color: #c8a568; font: 17px/1 var(--gn-serif); text-shadow: 0 0 12px rgba(255,248,221,.9); pointer-events: none; animation: gn-gem-glint 4.8s ease-in-out 1.2s infinite; }
.gn-hero-visual:hover .gn-hero-product { animation-duration: 5.5s; filter: brightness(1.1) contrast(1.04) drop-shadow(0 16px 19px rgba(69,56,40,.12)); }
.gn-hero-visual:hover .gn-hero-glint { animation-duration: 2.4s; }
@keyframes gn-ring-float { 0%,100% { transform: translate3d(0,0,0) rotate(-.25deg); } 50% { transform: translate3d(0,-8px,0) rotate(.25deg); } }
@keyframes gn-halo-breathe { 0%,100% { transform: scale(1); opacity: .78; } 50% { transform: scale(1.018); opacity: 1; } }
@keyframes gn-gem-glint { 0%,72%,100% { opacity: 0; transform: translate(-50%,-50%) scale(.55) rotate(0); } 78% { opacity: .9; transform: translate(-50%,-50%) scale(1.15) rotate(20deg); } 84% { opacity: .2; transform: translate(-50%,-50%) scale(.8) rotate(40deg); } }
.gn-hero-caption { position: absolute; right: 5%; bottom: 5%; z-index: 2; color: var(--gn-muted); font: italic 14px var(--gn-serif); }

.gn-proof { display: flex; justify-content: center; gap: clamp(20px, 6vw, 90px); padding: 22px 5%; border-bottom: 1px solid var(--gn-line); background: var(--gn-paper); }
.gn-proof span { color: var(--gn-muted); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; }
.gn-shop { padding-block: clamp(55px, 8vw, 105px); }
.gn-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 30px; }
.gn-section-heading h2 { margin: 0; font: 400 clamp(32px, 4vw, 50px)/1 var(--gn-serif); letter-spacing: -.04em; }
.gn-section-heading p { margin: 10px 0 0; color: var(--gn-muted); font-size: 12px; }
.gn-text-link { padding-bottom: 5px; border-bottom: 1px solid var(--gn-ink); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.gn-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.gn-card { min-width: 0; }
.gn-card-media { position: relative; aspect-ratio: 4/4.65; display: block; overflow: hidden; background: #eeece6; }
.gn-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .38s ease, transform .7s cubic-bezier(.2,.65,.2,1); }
.gn-card-primary { z-index: 1; }
.gn-card-secondary { z-index: 2; opacity: 0; }
.gn-card-media:hover .gn-card-primary, .gn-card-media.is-touched .gn-card-primary { opacity: 0; }
.gn-card-media:hover .gn-card-secondary, .gn-card-media.is-touched .gn-card-secondary { opacity: 1; }
.gn-card-media:hover img, .gn-card-media.is-touched img { transform: scale(1.035); }
.gn-card-badge { position: absolute; top: 13px; left: 13px; z-index: 4; padding: 6px 9px; background: var(--gn-white); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.gn-card-meta { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 13px 2px 0; }
.gn-card-meta h3 { margin: 0; font: 400 18px/1.2 var(--gn-serif); }
.gn-card-meta p { margin: 5px 0 0; color: var(--gn-muted); font-size: 10px; }
.gn-card-price { padding-top: 2px; font-size: 11px; white-space: nowrap; }
.gn-empty-products { grid-column: 1/-1; min-height: 180px; display: grid; place-items: center; border: 1px dashed var(--gn-line); color: var(--gn-muted); text-align: center; }
.gn-empty-products p { max-width: 420px; padding: 20px; font-size: 12px; }
.gn-first-ring { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(280px,.9fr); align-items: center; gap: clamp(30px,7vw,95px); max-width: 1120px; margin: 0 auto; }
.gn-first-ring-media { aspect-ratio: 1.08/1; background: #efede7; }
.gn-first-ring-media img { object-fit: contain; mix-blend-mode: multiply; padding: 4%; }
.gn-first-ring-copy { max-width: 440px; padding: 24px 0; }
.gn-first-ring-copy h3 { margin: 0; font: 400 clamp(36px,4vw,54px)/1.05 var(--gn-serif); letter-spacing: -.04em; }
.gn-first-ring-description { margin-top: 14px; color: var(--gn-muted); font-size: 12px; line-height: 1.85; }
.gn-first-ring-description p { margin: 0; }
.gn-first-ring-price { margin: 20px 0 22px; font: 20px var(--gn-serif); }

.gn-image-story { padding-block: clamp(48px, 8vw, 105px); }
.gn-image-story .gn-section-heading { max-width: 640px; margin: 0 auto 28px; }
.gn-image-story .gn-section-heading h2 { font: 400 clamp(34px, 4vw, 50px)/1.08 var(--gn-serif); letter-spacing: -.035em; }
.gn-image-story .gn-section-heading p:not(.gn-eyebrow) { max-width: 480px; color: var(--gn-muted); font-size: 12px; }
.gn-image-story-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.gn-image-story-grid figure { margin: 0; }
.gn-image-story-grid img { display: block; width: 100%; aspect-ratio: 4/4.7; object-fit: cover; background: #eeece6; }
.gn-image-story-grid figcaption { padding-top: 10px; color: var(--gn-muted); font: 15px var(--gn-serif); }

.gn-story { display: grid; grid-template-columns: 1fr 1fr; min-height: 410px; background: #eae6dd; }
.gn-story-art { min-height: 300px; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 55%, #faf8f2 0 28%, #e8e3d9 72%); }
.gn-story-art img { width: min(60%, 300px); mix-blend-mode: multiply; }
.gn-story-copy { align-self: center; max-width: 550px; padding: 65px 9%; }
.gn-story-copy h2 { margin: 0; font: 400 clamp(33px, 4vw, 52px)/1.06 var(--gn-serif); }
.gn-story-copy p { max-width: 390px; margin: 18px 0 24px; color: var(--gn-muted); font-size: 12px; line-height: 1.9; }
.gn-footer { padding: 44px 0 22px; background: #23211e; color: #f7f5f0; }
.gn-footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 35px; padding-bottom: 35px; }
.gn-footer .gn-logo { align-items: center; font-size: 26px; }
.gn-footer .gn-logo small { color: #c4b9a8; }
.gn-footer h3 { margin: 0 0 13px; color: #c9ae7d; font-size: 9px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; }
.gn-footer a, .gn-footer p { color: #d3cec4; font-size: 10px; }
.gn-footer-links { display: grid; gap: 8px; }
.gn-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 17px; border-top: 1px solid #4b4842; color: #b5aea2; font-size: 9px; }

/* WooCommerce catalog and product templates */
.woocommerce .site-main, .gn-wc-main { width: min(var(--gn-content), calc(100% - 9vw)); margin: 0 auto; padding: 54px 0 85px; }
.woocommerce .woocommerce-breadcrumb { margin-bottom: 25px; color: var(--gn-muted); font-size: 10px; }
.woocommerce-products-header__title, .woocommerce h1.product_title { font: 400 clamp(34px, 4vw, 52px)/1.1 var(--gn-serif); letter-spacing: -.035em; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { float: none; width: auto; margin: 0; }
.woocommerce ul.products li.product .gn-card { width: 100%; margin: 0; }
.woocommerce ul.products li.product a img { margin: 0 0 13px; }
.woocommerce .button, .woocommerce button.button, .woocommerce input.button { min-height: 46px; padding: 0 21px; border: 1px solid var(--gn-ink); border-radius: 0; background: var(--gn-ink); color: white; font-size: 10px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; }
.woocommerce .button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: transparent; color: var(--gn-ink); }
.woocommerce div.product { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr); gap: clamp(30px,7vw,95px); align-items: start; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none; width: auto; }
.woocommerce div.product div.images img { background: #eeece6; }
.woocommerce div.product .price { color: var(--gn-ink); font: 20px var(--gn-serif); }
.woocommerce div.product form.cart { padding-top: 16px; border-top: 1px solid var(--gn-line); }
.woocommerce div.product form.cart .variations { margin-bottom: 14px; }
.woocommerce div.product form.cart .variations label { font-size: 10px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.woocommerce select, .woocommerce input.input-text, .woocommerce textarea, .woocommerce-page select, .woocommerce-page input.input-text { min-height: 44px; padding: 9px 12px; border: 1px solid var(--gn-line); border-radius: 0; background: var(--gn-white); color: var(--gn-ink); }
.gn-engraving { margin: 18px 0; padding: 16px; background: #efede7; }
.gn-engraving label { display: block; margin-bottom: 8px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.gn-engraving select, .gn-engraving input { width: 100%; }
.gn-engraving-hint { margin: 7px 0 0; color: var(--gn-muted); font-size: 10px; }
.gn-size-guide { margin: 14px 0 22px; padding: 12px 0; border-block: 1px solid var(--gn-line); }
.gn-size-guide-trigger { display: inline-flex; align-items: center; gap: 9px; padding: 0; border: 0; background: transparent; color: var(--gn-ink); cursor: pointer; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.gn-size-guide-trigger:hover { color: var(--gn-gold); }
.gn-size-guide-trigger span { font-size: 14px; }
.gn-size-guide-dialog { width: min(760px, calc(100% - 32px)); max-height: min(86vh, 760px); padding: 0; border: 1px solid var(--gn-line); background: var(--gn-paper); color: var(--gn-ink); box-shadow: 0 24px 80px rgba(25,22,18,.24); }
.gn-size-guide-dialog::backdrop { background: rgba(24,22,19,.56); backdrop-filter: blur(3px); }
.gn-size-guide-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 26px 30px 20px; border-bottom: 1px solid var(--gn-line); }
.gn-size-guide-head .gn-eyebrow { margin: 0 0 7px; }
.gn-size-guide-head h2 { margin: 0; font: 400 clamp(28px,4vw,40px)/1.1 var(--gn-serif); }
.gn-size-guide-close { width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid var(--gn-line); border-radius: 50%; background: transparent; color: var(--gn-ink); cursor: pointer; font-size: 24px; line-height: 1; }
.gn-size-guide-close:hover { background: var(--gn-ink); color: var(--gn-white); }
.gn-size-guide-content { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 30px; padding: 24px 30px 30px; }
.gn-size-guide-content h3 { margin: 0 0 12px; font: 400 21px/1.2 var(--gn-serif); }
.gn-size-guide-content ol { margin: 0; padding-left: 20px; color: var(--gn-muted); font-size: 12px; line-height: 1.8; }
.gn-size-guide-content li { margin-bottom: 8px; padding-left: 4px; }
.gn-size-guide-note { margin: 15px 0 0; color: var(--gn-muted); font-size: 11px; line-height: 1.7; }
.gn-size-guide-table-wrap { overflow-x: auto; }
.gn-size-guide-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.gn-size-guide-table th, .gn-size-guide-table td { padding: 10px 12px; border-bottom: 1px solid var(--gn-line); text-align: left; }
.gn-size-guide-table thead th { background: var(--gn-ink); color: var(--gn-paper); font-size: 9px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.gn-size-guide-table tbody th { font-weight: 500; }
.gn-size-guide-table tbody tr:last-child th, .gn-size-guide-table tbody tr:last-child td { border-bottom: 0; }
.woocommerce table.shop_table { border-collapse: collapse; border-color: var(--gn-line); border-radius: 0; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: var(--gn-line); }
.woocommerce .quantity .qty { width: 72px; }
.woocommerce-info, .woocommerce-message { border-top-color: var(--gn-gold); }
.woocommerce-info::before, .woocommerce-message::before { color: var(--gn-gold); }
.woocommerce-checkout #payment { background: #eeece6; border-radius: 0; }
.woocommerce-checkout #payment div.payment_box { background: #e4dfd5; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #e4dfd5; }

.gn-page { width: min(900px, calc(100% - 9vw)); min-height: 45vh; margin: 0 auto; padding: 65px 0; }
.gn-page h1 { font: 400 44px/1.1 var(--gn-serif); }
.gn-404 { padding: 90px 20px; text-align: center; }
.gn-mobile-panel { display: none; }

@media (max-width: 820px) {
  .gn-wrap { width: min(var(--gn-content), calc(100% - 8vw)); }
  .gn-nav { min-height: 70px; grid-template-columns: 40px 1fr 40px; gap: 8px; }
  .gn-menu-toggle { display: block; }
  .gn-nav-links { display: none; }
  .gn-nav-actions { grid-column: 3; gap: 0; }
  .gn-nav-actions .gn-account-link { display: none; }
  .gn-logo { grid-column: 2; grid-row: 1; justify-self: center; gap: 7px; font-size: 24px; }
  .gn-logo-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .gn-mobile-panel.is-open { position: absolute; top: 100%; left: 0; right: 0; display: grid; padding: 16px 6vw 23px; border-bottom: 1px solid var(--gn-line); background: var(--gn-paper); box-shadow: 0 10px 20px rgba(0,0,0,.05); }
  .gn-mobile-panel a { padding: 11px 0; border-bottom: 1px solid var(--gn-line); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
  .gn-hero { min-height: initial; grid-template-columns: 1fr; }
  .gn-hero-visual { min-height: 390px; grid-row: 1; }
  .gn-hero-copy { padding: 42px 8vw 48px; }
  .gn-hero h1 { font-size: clamp(45px, 10vw, 68px); }
  .gn-proof { flex-wrap: wrap; gap: 12px 25px; }
  .gn-proof span { font-size: 8px; }
  .gn-product-grid, .woocommerce ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .gn-card-media { aspect-ratio: 4/4.7; }
  .gn-card-meta h3 { font-size: 16px; }
  .gn-card-price { font-size: 10px; }
  .gn-story { grid-template-columns: 1fr; }
  .gn-image-story-grid { gap: 12px; }
  .gn-image-story-grid img { aspect-ratio: 3/4; }
  .gn-story-art { min-height: 260px; }
  .gn-story-copy { padding: 38px 8vw 48px; }
  .gn-first-ring { grid-template-columns: 1fr; gap: 14px; }
  .gn-first-ring-media { aspect-ratio: 1/1; }
  .gn-first-ring-copy { padding: 20px 0 5px; }
  .gn-size-guide-content { grid-template-columns: 1fr; gap: 22px; padding: 20px; }
  .gn-size-guide-head { padding: 21px 20px 16px; }
  .gn-footer-top { grid-template-columns: 1fr 1fr; }
  .woocommerce div.product { grid-template-columns: 1fr; gap: 25px; }
  .woocommerce .site-main, .gn-wc-main { width: calc(100% - 8vw); padding: 34px 0 58px; }
}
@media (max-width: 480px) {
  .gn-announcement { font-size: 8px; }
  .gn-logo { font-size: 20px; }
  .gn-logo small { font-size: 7px; }
  .gn-hero-visual { min-height: 310px; }
  .gn-hero-copy { padding-top: 35px; }
  .gn-section-heading { align-items: start; flex-direction: column; }
  .gn-card-badge { top: 8px; left: 8px; font-size: 7px; }
  .gn-card-meta { display: block; }
  .gn-card-meta h3 { font-size: 15px; }
  .gn-card-price { display: block; margin-top: 5px; }
  .gn-footer-top { grid-template-columns: 1fr; gap: 25px; }
  .gn-footer-bottom { flex-direction: column; gap: 7px; }
  .woocommerce div.product form.cart .button { width: 100%; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
