/*
Theme Name: South Vinland Stores
Theme URI: https://stores.southvinland.com
Author: South Vinland
Description: A restrained gateway and WooCommerce storefront for the houses of South Vinland.
Version: 1.0.3
Text Domain: south-vinland-stores
Requires at least: 6.6
Requires PHP: 8.1
*/

:root {
	--bone: #efe8da;
	--coal: #151411;
	--ink: #0b0c0a;
	--copper: #bf7a40;
	--pine: #1c3328;
	--line-dark: rgb(11 12 10 / 18%);
	--line-light: rgb(239 232 218 / 18%);
	--font-body: Arial, Helvetica, sans-serif;
	--font-display: Georgia, "Times New Roman", serif;
	--font-code: "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: clamp(16px, .833333vw, 20px); }
body { margin: 0; background: var(--bone); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
	position: relative; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
	min-height: 5.375rem; padding: 0 4.5vw; border-bottom: 1px solid var(--line-light); background: var(--ink); color: var(--bone);
}
.site-header-overlay { position: absolute; inset: 0 0 auto; background: linear-gradient(180deg, rgb(7 9 8 / 76%), transparent); }
.wordmark { display: inline-flex; align-items: center; gap: .75rem; width: max-content; }
.wordmark-mark { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; border: 1px solid rgb(239 232 218 / 40%); font: 600 .62rem var(--font-code); }
.wordmark strong, .wordmark small { display: block; }
.wordmark strong { font: 400 .85rem var(--font-display); letter-spacing: .02em; }
.wordmark small { margin-top: .18rem; font-size: .48rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: clamp(1.8rem, 4vw, 4.5rem); }
.site-nav a, .header-link, .header-shop-button { font-size: .58rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.site-nav a { color: rgb(239 232 218 / 62%); transition: color 180ms ease; }
.site-nav a:hover { color: var(--bone); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; }
.header-link { color: rgb(239 232 218 / 64%); }
.header-shop-button { display: inline-flex; align-items: center; gap: .55rem; padding: .72rem .9rem; border: 1px solid rgb(239 232 218 / 42%); }
.sv-cart-count { display: inline-grid; min-width: 1.15rem; min-height: 1.15rem; place-items: center; border-radius: 50%; background: var(--bone); color: var(--ink); }
.mobile-menu { position: relative; display: none; }
.mobile-menu summary { display: flex; min-height: 2.75rem; align-items: center; gap: .55rem; padding: 0 .85rem; border: 1px solid rgb(239 232 218 / 34%); color: var(--bone); cursor: pointer; font-size: .72rem; font-weight: 700; letter-spacing: .1em; list-style: none; text-transform: uppercase; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu-chevron { font-size: 1rem; line-height: 1; transition: transform 180ms ease; }
.mobile-menu[open] .mobile-menu-chevron { transform: rotate(180deg); }
.mobile-menu-panel { position: absolute; top: calc(100% + .65rem); right: 0; z-index: 70; display: grid; width: min(19rem, calc(100vw - 2.5rem)); padding: .45rem; border: 1px solid rgb(239 232 218 / 24%); background: rgb(11 12 10 / 98%); box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 38%); }
.mobile-menu-panel a { display: flex; align-items: center; justify-content: space-between; padding: .95rem .9rem; border-bottom: 1px solid rgb(239 232 218 / 12%); color: rgb(239 232 218 / 82%); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mobile-menu-panel a:last-child { border-bottom: 0; }
.mobile-menu-panel .sv-cart-count { min-width: 1.35rem; min-height: 1.35rem; }

.eyebrow, .house-eyebrow { margin: 0; color: var(--copper); font-size: .58rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.hero-shell {
	position: relative; display: flex; min-height: 100svh; align-items: flex-end; overflow: hidden; padding: 10rem 4.5vw 7rem;
	background: linear-gradient(90deg, rgb(5 8 7 / 97%) 0%, rgb(5 8 7 / 78%) 42%, rgb(5 8 7 / 24%) 76%, rgb(5 8 7 / 6%) 100%), url("assets/south-vinland-storefront-hero.png") center right / cover no-repeat, #0b0d0c;
	color: var(--bone); isolation: isolate;
}
.hero-shell::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 52%, rgb(3 5 4 / 55%)); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; width: min(760px, 78vw); animation: rise-in 900ms ease both; }
.hero-copy h1 { max-width: 720px; margin: .55rem 0 1.2rem; font: 400 clamp(4.2rem, 9.6vw, 9.5rem)/.84 var(--font-display); letter-spacing: -.07em; }
.hero-lede { max-width: 520px; margin: 0; color: rgb(239 232 218 / 72%); font-size: clamp(.95rem, 1.3vw, 1.16rem); line-height: 1.7; }
.scroll-cue { display: inline-flex; align-items: center; gap: .7rem; margin-top: 2.2rem; padding-bottom: .55rem; border-bottom: 1px solid var(--copper); font-size: .61rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.hero-edition { position: absolute; right: 4.5vw; bottom: 7rem; margin: 0; color: rgb(239 232 218 / 45%); font: .52rem var(--font-code); letter-spacing: .2em; text-transform: uppercase; writing-mode: vertical-rl; }

.houses-section { padding: clamp(5rem, 10vw, 9rem) 4.5vw; background: var(--ink); color: var(--bone); }
.section-intro, .catalog-heading { display: grid; grid-template-columns: .7fr 1.7fr 1fr; align-items: end; gap: 2rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-intro h2, .catalog-heading h2 { margin: 0; font: 400 clamp(2.8rem, 5vw, 5.5rem)/.92 var(--font-display); letter-spacing: -.055em; }
.section-intro > p:last-child { margin: 0; color: rgb(239 232 218 / 58%); line-height: 1.65; }
.houses-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid rgb(239 232 218 / 22%); }
.house-card { position: relative; display: flex; min-height: min(60vw, 640px); flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(1.5rem, 3.2vw, 3.5rem); isolation: isolate; }
.house-card:first-child { border-right: 1px solid rgb(239 232 218 / 22%); }
.house-card::before, .house-card::after { content: ""; position: absolute; inset: 0; z-index: -2; transition: transform 650ms cubic-bezier(.22,1,.36,1); }
.house-card::after { z-index: -1; background: linear-gradient(180deg, rgb(0 0 0 / 5%), rgb(0 0 0 / 64%)); }
.house-card:hover::before { transform: scale(1.035); }
.house-dalmora::before { background: radial-gradient(circle at 72% 26%, rgb(191 122 64 / 24%), transparent 28%), linear-gradient(145deg, #3a332a, #11110f 70%); }
.house-south-vinland::before { background: radial-gradient(circle at 70% 28%, rgb(92 125 105 / 26%), transparent 30%), linear-gradient(145deg, #2d3a31, #0e1410 70%); }
.house-number { align-self: flex-end; color: rgb(239 232 218 / 45%); font: .65rem var(--font-code); }
.house-card h3 { max-width: 520px; margin: .7rem 0 1rem; font: 400 clamp(3rem, 6.2vw, 6.6rem)/.88 var(--font-display); letter-spacing: -.06em; }
.house-description { max-width: 420px; color: rgb(239 232 218 / 65%); line-height: 1.6; }
.house-action { display: flex; align-items: center; justify-content: space-between; padding-top: 1.2rem; border-top: 1px solid rgb(239 232 218 / 24%); font-size: .62rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.workshop-strip { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 1.4rem; margin-top: 1.2rem; padding: 1.25rem; background: var(--bone); color: var(--ink); }
.workshop-icon { display: grid; width: 3.2rem; height: 3.2rem; place-items: center; background: var(--ink); color: var(--bone); }
.workshop-copy small, .workshop-copy strong { display: block; }
.workshop-copy small { margin-bottom: .35rem; color: rgb(11 12 10 / 50%); font-size: .6rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.workshop-copy strong { font: 400 clamp(1.2rem, 2.3vw, 2rem) var(--font-display); }
.workshop-status { font-size: .63rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.site-footer { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; padding: 2.1rem 4.5vw; background: var(--ink); color: rgb(239 232 218 / 54%); font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; }
.site-footer p { margin: 0; }
.site-footer p:nth-child(2) { text-align: center; }
.site-footer p:last-child { text-align: right; }

.brand-page, .content-page { min-height: calc(100svh - 86px); background: var(--bone); color: var(--ink); }
.back-link { display: inline-flex; width: max-content; margin-bottom: clamp(2.5rem, 7vh, 5rem); font-size: .64rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.brand-hero { position: relative; display: grid; min-height: 72svh; grid-template-columns: minmax(0,1.6fr) minmax(260px,.6fr); align-items: end; gap: 4rem; overflow: hidden; padding: clamp(4rem,8vw,8rem) 4.5vw; color: var(--bone); isolation: isolate; }
.brand-hero > div:first-child { position: relative; z-index: 2; max-width: 900px; }
.brand-hero h1 { margin: .4rem 0 1.4rem; font: 400 clamp(4.2rem,10vw,10rem)/.82 var(--font-display); letter-spacing: -.07em; }
.brand-hero > div:first-child > p:last-child { max-width: 560px; color: rgb(239 232 218 / 72%); font-size: clamp(1rem,1.5vw,1.22rem); line-height: 1.7; }
.south-vinland-hero { background: linear-gradient(90deg, rgb(10 13 10 / 97%) 0%, rgb(10 13 10 / 80%) 49%, rgb(10 13 10 / 28%) 100%), url("assets/south-vinland-storefront-hero.png") center right / cover no-repeat, #101410; }
.brand-hero-note { position: relative; z-index: 2; align-self: end; padding: 1.4rem 0; border-top: 1px solid rgb(239 232 218 / 28%); border-bottom: 1px solid rgb(239 232 218 / 28%); }
.brand-hero-note span, .brand-hero-note strong { display: block; }
.brand-hero-note span { color: var(--copper); font-size: .6rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.brand-hero-note strong { max-width: 280px; margin-top: .6rem; font: 400 clamp(1.35rem,2.6vw,2.5rem)/1.08 var(--font-display); }
.brand-hero-note b { display: block; margin-top: 2rem; font-weight: 400; }
.catalog-section, .dalmora-features { padding: clamp(5rem,10vw,9rem) 4.5vw; }
.catalog-heading > p:last-child { margin: 0; color: rgb(11 12 10 / 62%); line-height: 1.65; }
.dalmora-hero { background: radial-gradient(circle at 78% 34%, rgb(180 166 139 / 22%), transparent 28%), linear-gradient(135deg, #27251f, #0c0c0b 70%); }
.dalmora-seal { position: relative; z-index: 2; display: grid; aspect-ratio: 1; place-items: center; align-self: center; border: 1px solid rgb(239 232 218 / 28%); border-radius: 50%; }
.dalmora-seal::before { content: ""; position: absolute; inset: 9%; border: 1px solid rgb(239 232 218 / 14%); border-radius: inherit; }
.dalmora-seal span { font: 400 clamp(5rem,11vw,9rem)/1 var(--font-display); }
.dalmora-seal small { position: absolute; bottom: 15%; font-size: .52rem; letter-spacing: .15em; text-transform: uppercase; }
.dalmora-feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.dalmora-feature-card { padding-bottom: 1rem; border-bottom: 1px solid var(--line-dark); }
.dalmora-feature-visual { display: flex; min-height: 390px; justify-content: flex-end; padding: 1rem; color: var(--bone); }
.dalmora-feature-1 { background: linear-gradient(145deg,#272520,#11110f); }
.dalmora-feature-2 { background: linear-gradient(145deg,#6e675c,#282723); }
.dalmora-feature-3 { background: linear-gradient(145deg,#333a35,#101311); }
.dalmora-feature-visual span, .dalmora-feature-card > p { font-size: .58rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.dalmora-feature-card > p { margin: 1rem 0 .4rem; color: var(--copper); }
.dalmora-feature-card h3 { margin: 0; font: 400 1.65rem var(--font-display); }
.feature-link { display: flex; justify-content: space-between; margin-top: 1.1rem; color: rgb(11 12 10 / 52%); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }

.workshop-page { background: var(--ink); color: var(--bone); }
.workshop-hero { position: relative; display: flex; min-height: calc(100svh - 86px); flex-direction: column; align-items: center; justify-content: center; overflow: hidden; padding: 6rem 4.5vw; text-align: center; isolation: isolate; }
.workshop-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 55%, rgb(191 122 64 / 25%), transparent 20%), linear-gradient(rgb(239 232 218 / 6%) 1px, transparent 1px), linear-gradient(90deg,rgb(239 232 218 / 6%) 1px,transparent 1px); background-size: auto,8vw 8vw,8vw 8vw; mask-image: radial-gradient(circle at center,black,transparent 78%); }
.workshop-hero .back-link { position: absolute; top: 3rem; left: 4.5vw; }
.workshop-hero-icon { display: grid; width: 4rem; height: 4rem; place-items: center; margin-bottom: 2rem; border: 1px solid rgb(239 232 218 / 32%); }
.workshop-hero h1 { max-width: 960px; margin: .7rem auto 1.5rem; font: 400 clamp(3.5rem,8.5vw,8rem)/.9 var(--font-display); letter-spacing: -.065em; }
.workshop-hero > p:not(.eyebrow) { max-width: 620px; color: rgb(239 232 218 / 62%); font-size: 1.05rem; line-height: 1.7; }
.workshop-chapter { margin-top: 3rem; color: var(--copper); font: .62rem var(--font-code); letter-spacing: .16em; text-transform: uppercase; }
.button-link { display: inline-flex; margin-top: 1.5rem; padding: .9rem 1.2rem; border: 1px solid rgb(239 232 218 / 35%); font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.entry-shell, .commerce-shell { width: min(1100px,91vw); margin: 0 auto; padding: clamp(5rem,10vw,9rem) 0; }
.entry-shell h1 { margin: .5rem 0 2rem; font: 400 clamp(3rem,7vw,7rem)/.9 var(--font-display); letter-spacing: -.06em; }
.entry-content { max-width: 780px; line-height: 1.75; }
.account-shell { display: grid; min-height: calc(100svh - 86px); grid-template-columns: minmax(0,1fr) minmax(360px,.75fr); }
.account-aside { display: flex; flex-direction: column; justify-content: center; padding: clamp(4rem,8vw,8rem) 8vw 4rem 4.5vw; background: radial-gradient(circle at 75% 25%, rgb(191 122 64 / 22%), transparent 24%), var(--ink); color: var(--bone); }
.account-aside h1 { max-width: 700px; margin: .7rem 0 1.5rem; font: 400 clamp(3.2rem,6.2vw,6.4rem)/.9 var(--font-display); letter-spacing: -.06em; }
.account-aside > p:not(.eyebrow) { max-width: 560px; color: rgb(239 232 218 / 62%); line-height: 1.7; }
.account-aside ul { display: grid; gap: .7rem; margin: 2rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line-light); color: rgb(239 232 218 / 72%); font-size: .74rem; list-style: none; }
.account-aside li::before { content: "—"; margin-right: .7rem; color: var(--copper); }
.account-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem,7vw,7rem); }

/* WooCommerce */
.woocommerce .woocommerce-breadcrumb, .woocommerce-products-header__title.page-title { display: none; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3.5rem 1.25rem; margin: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
.woocommerce ul.products li.product a img { aspect-ratio: 4 / 5; object-fit: cover; margin: 0 0 1rem; background: linear-gradient(145deg,#304337,#111813); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0; font: 400 clamp(1.3rem,2vw,1.8rem) var(--font-display); }
.woocommerce ul.products li.product .price { color: var(--ink); font: .82rem var(--font-code); }
.woocommerce ul.products li.product .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button { border: 1px solid rgb(11 12 10 / 24%); border-radius: 0; background: transparent; color: var(--ink); font-size: .62rem; letter-spacing: .09em; text-transform: uppercase; }
.woocommerce ul.products li.product .button { display: block; width: 100%; margin-top: 1rem; padding: .9rem; text-align: center; }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background: var(--ink); color: var(--bone); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--copper); background: rgb(191 122 64 / 10%); }
.woocommerce-info::before, .woocommerce-message::before { color: var(--copper); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea { min-height: 3rem; padding: .7rem; border: 1px solid var(--line-dark); border-radius: 0; background: transparent; }
.woocommerce-MyAccount-navigation ul { margin: 0 0 2rem; padding: 0; border-bottom: 1px solid var(--line-dark); list-style: none; }
.woocommerce-MyAccount-navigation li { display: inline-block; margin-right: 1rem; padding: .7rem 0; font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.empty-catalog { padding: 2rem; border: 1px solid var(--line-dark); color: rgb(11 12 10 / 60%); }

@keyframes rise-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (max-width: 860px) {
	.site-header { grid-template-columns: 1fr auto; min-height: 76px; }
	.site-nav { display: none; }
	.header-link, .header-shop-button { display: none; }
	.mobile-menu { display: block; }
	.hero-shell { padding-top: 8rem; }
	.hero-edition { display: none; }
	.section-intro, .catalog-heading { grid-template-columns: 1fr; align-items: start; }
	.houses-grid { grid-template-columns: 1fr; }
	.house-card:first-child { border-right: 0; border-bottom: 1px solid rgb(239 232 218 / 22%); }
	.brand-hero { grid-template-columns: 1fr; }
	.dalmora-seal { display: none; }
	.dalmora-feature-grid { grid-template-columns: 1fr; }
	.account-shell { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.site-header, .hero-shell, .houses-section, .site-footer { padding-right: 1.25rem; padding-left: 1.25rem; }
	.hero-copy { width: 100%; }
	.hero-copy h1 { font-size: clamp(3.7rem,20vw,6rem); }
	.house-card { min-height: 490px; }
	.workshop-strip { grid-template-columns: auto 1fr auto; }
	.workshop-status { display: none; }
	.site-footer { grid-template-columns: 1fr; }
	.site-footer p:nth-child(2), .site-footer p:last-child { text-align: left; }
	.brand-hero, .catalog-section, .dalmora-features, .workshop-hero, .account-aside, .account-panel { padding-right: 1.25rem; padding-left: 1.25rem; }
	.brand-hero h1 { font-size: clamp(3.2rem,17vw,4.75rem); }
	.woocommerce ul.products { grid-template-columns: 1fr; }
	.workshop-hero .back-link { left: 1.25rem; }
}
