/*
Theme Name: Longship Fjord
Author: Longship
Description: A Viking-inspired WooCommerce storefront with an engraved fjord, oxblood sails and a warm paper catalogue.
Version: 1.0.1
Requires at least: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: longship-fjord
*/
:root {
  --ink: #142c2b;
  --night: #102726;
  --deep: #172f2d;
  --paper: #f8f4ea;
  --cream: #fff8e7;
  --ochre: #e3b67d;
  --red: #933f30;
  --muted: #53605a;
  --rule: #d3cbbb;
  --serif: "Baskervville", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Segoe UI", Arial, sans-serif;
  --gutter: clamp(1.15rem, 5.2vw, 5rem);
  --frame: 96rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.58 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .24em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #bb612c; outline-offset: 4px; }
.mast :focus-visible, .hero :focus-visible, .site-foot :focus-visible { outline-color: #ffcf8b; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1, h2 { line-height: 1.03; letter-spacing: -.045em; }
.shell { width: min(100%, var(--frame)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; z-index: 5; top: .3rem; left: .5rem; padding: .6rem 1rem; color: var(--ink); background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }

/* Masthead */
.mast, .site-foot { background: var(--night); color: var(--cream); }
.mast { border-bottom: 1px solid #897353; }
.mast-row { min-height: 5rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.brand, .bag, .main-nav a, .foot-brand { text-decoration: none; }
.brand { display: inline-flex; justify-self: start; align-items: center; gap: .7rem; min-width: 0; overflow-wrap: anywhere; }
.brand img { width: 3.35rem; height: 2.8rem; object-fit: contain; flex-shrink: 0; }
.brand > span { font: 600 1.62rem/1 var(--serif); text-transform: uppercase; letter-spacing: .08em; }
.brand small { display: block; margin-top: .35rem; color: var(--ochre); font: 650 .65rem/1.1 var(--sans); letter-spacing: .3em; }
.main-nav, .mast-end, .bag { display: flex; align-items: center; }
.main-nav { gap: clamp(1rem, 2.8vw, 3rem); }
.main-nav a, .bag { font-size: .94rem; font-weight: 600; }
.main-nav a, .bag { padding-block: .5rem; }
.main-nav a:hover, .bag:hover, .site-foot a:hover { color: var(--ochre); }
.mast-end { justify-self: end; gap: 1.15rem; }
.currency { color: #ddccb1; font-size: .78rem; font-weight: 650; letter-spacing: .1em; padding-right: 1rem; border-right: 1px solid #63716a; }
.bag { gap: .5rem; }
.bag-count { display: inline-grid; place-items: center; min-width: 1.4rem; padding: .05rem .3rem; border: 1px solid #7b8c80; border-radius: 2rem; color: #f5e3bc; font-size: .75rem; }

/* Full-bleed fjord engraving */
.hero { position: relative; isolation: isolate; overflow: hidden; background: #152b2a; color: var(--cream); }
.hero-plate, .hero::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-plate { z-index: -2; object-fit: cover; object-position: 79% 50%; }
.hero::before { content: ""; z-index: -1; background: linear-gradient(90deg, #081b1bf0 0%, #0c201ec9 24%, #0d211e87 41%, #0d211e1a 56%, transparent 68%); }
.hero::after, .process::before {
  content: ""; height: 5px; display: block;
  background-color: #9b6742;
  background-image: repeating-linear-gradient(45deg, transparent 0 5px, #edc998 5px 7px, transparent 7px 12px),
                    repeating-linear-gradient(-45deg, transparent 0 5px, #edc998 5px 7px, transparent 7px 12px);
  border-block: 1px solid #553d2a;
}
.hero-content { padding-block: clamp(3.5rem, 5.2vw, 6rem); }
.eyebrow, .card-category, .overline { text-transform: uppercase; font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .15em; }
.eyebrow { display: flex; align-items: center; gap: .9rem; color: #f3d6a3; }
.stamp { display: inline-block; position: relative; width: 2.2rem; height: 1px; background: #c9a16a; }
.stamp::after { content: ""; position: absolute; right: 0; width: .37rem; height: .37rem; background: #e5bc7c; transform: translateY(-40%) rotate(45deg); }
.hero h1 { margin: 1rem 0; max-width: 12ch; font-size: clamp(3.6rem, 6.25vw, 6.8rem); line-height: .96; letter-spacing: -.055em; }
.hero h1 em { display: block; color: #f2ce95; font-weight: 400; }
.hero-description { max-width: 36ch; font-size: clamp(1rem, 1.17vw, 1.16rem); line-height: 1.55; color: #f5eedf; }
.cta, .email-line button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .72rem 1.55rem; font: 700 .94rem/1.3 var(--sans); text-decoration: none; border: 1px solid transparent; border-radius: 2px; }
.cta { margin-top: 1.55rem; color: #192a26; background: #f0cc91; box-shadow: inset 0 0 0 2px #f6d8aa; }
.cta:hover { background: #ffe0a9; }

/* Catalogue */
.collection { padding-block: clamp(2.2rem, 3.4vw, 3.6rem) clamp(3.3rem, 5.8vw, 6rem); }
.section-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.section-top h2, .process h2, .news-grid h2 { font-size: clamp(2.6rem, 4vw, 4.5rem); }
.heading-stop { color: var(--red); }
.textlink { text-decoration-thickness: 1px; font-weight: 650; font-size: .95rem; }
.textlink:hover { color: var(--red); }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: .22rem 1.5rem; margin: -.15rem 0 1.25rem; border-bottom: 1px solid var(--rule); }
.chip { color: var(--muted); text-decoration: none; padding: .45rem .03rem .56rem; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: .94rem; }
.chip:hover { color: var(--red); }
.chip.active { color: var(--red); border-color: var(--red); font-weight: 700; }
.print-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1rem, 1.8vw, 2.1rem); }
.print-card { min-width: 0; }
.card-link { display: block; text-decoration: none; }
.card-photo { position: relative; overflow: hidden; background: #e9e2d3; aspect-ratio: 1.48; }
.card-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card-link:hover .card-photo > img { transform: scale(1.035); }
.card-link:hover h3 { color: var(--red); }
.card-photo .stock { display: inline-flex; align-items: center; gap: .4rem; position: absolute; top: .65rem; left: .65rem; padding: .18rem .55rem; color: #263c31; background: #fffaed; border: 1px solid #c9c3b1; border-radius: 2px; font: 650 .78rem/1.45 var(--sans); }
.card-photo .stock i { width: .39rem; height: .39rem; border-radius: 50%; background: #43684e; }
.card-photo .made i { background: #ab562f; }
.card-photo .gone i { background: #6e655b; }
.card-body { padding: .78rem 0 .9rem; border-bottom: 1px solid var(--rule); }
.card-category { color: #6b5545; font-size: .74rem; }
.card-data { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .3rem .8rem; margin-top: .15rem; }
.card-data h3 { font-size: clamp(1.35rem, 2.1vw, 2rem); line-height: 1.18; letter-spacing: -.035em; overflow-wrap: anywhere; }
.card-data .price { font-size: .94rem; font-weight: 650; }
.empty { grid-column: 1 / -1; padding: 1.8rem; border: 1px solid var(--rule); border-left: 3px solid var(--red); background: #f0ebdf; }
.empty h3 { font-size: 1.65rem; }.empty p { margin-top: .4rem; }

/* Ordering and release emails */
.process { background: var(--deep); color: var(--cream); }
.process-inner, .news-grid { padding-block: clamp(2.4rem, 4.2vw, 4.6rem); }
.process h2 { margin-bottom: 1.9rem; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(1rem, 3.3vw, 3.4rem); padding: 0; margin: 0; list-style: none; }
.steps li { border-top: 1px solid #77887a; padding-top: .85rem; }
.steps h3 { font-size: 1.5rem; margin-bottom: .4rem; color: #f0c38d; }
.steps p { color: #e0e5d9; max-width: 40ch; }
.studio-news { background: #eae4d4; color: var(--ink); }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7%; }
.news-grid h2 { margin: .45rem 0 .65rem; }
.news-grid .overline { color: #784431; }
.news-grid label { font-size: .92rem; }
.news-grid form > label:first-of-type { display: block; font-weight: 650; margin-bottom: .4rem; }
.email-line { display: flex; }
.email-line input { flex: 1; min-width: 0; padding: .65rem .75rem; border: 1px solid #8c9284; border-radius: 2px 0 0 2px; }
.email-line button { background: var(--night); color: var(--cream); }
.email-line button:hover { background: #27463e; }
.consent { display: flex; align-items: flex-start; gap: .55rem; margin: .75rem 0 .45rem; }
.consent input { margin-top: .34rem; accent-color: var(--ink); }
.news-grid small { color: var(--muted); }
.foot-row { min-height: 6rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.3rem; }
.foot-brand { font: 500 1.4rem/1.15 var(--serif); }
.foot-brand small { display: inline-block; color: #dfbd89; margin-left: .4rem; font: 650 .7rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .16em; }
.foot-row > div { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; font-size: .9rem; }

/* WooCommerce product pages, archives, cart and checkout */
.inner-page { padding-block: clamp(2.2rem,4vw,4.5rem) 4.5rem; min-height: 55vh; }
.inner-page h1 { font-size: clamp(2.6rem,5vw,5rem); margin: 0 0 1.4rem; }
.inner-page h2 { font-size: clamp(1.8rem,3vw,3rem); margin-bottom: .8rem; }
.inner-page h3 { font-size: 1.5rem; }
.inner-page p { margin-bottom: 1rem; }
.inner-page figure { margin-inline: 0; }
.inner-page table { max-width: 100%; }
.woocommerce form .input-text, .woocommerce .woocommerce-ordering select, .woocommerce .quantity .qty { color: var(--ink); background: #fffcf5; border: 1px solid #a69f8d; border-radius: 2px; padding: .55rem .65rem; }
.woocommerce .quantity .qty { min-width: 4.5em; }
.woocommerce div.product p.price, .woocommerce div.product span.price, .woocommerce ul.products li.product .price { color: var(--red); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font: 400 clamp(1.2rem,1.8vw,1.9rem)/1.2 var(--serif); }
.woocommerce ul.products li.product a img { aspect-ratio: 1; object-fit: cover; }
.woocommerce div.product p.stock { color: #354d38; font-size: .95rem; font-weight: 650; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .wp-block-button__link, .wc-block-components-button:not(.is-link) { border-radius: 2px; }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .wp-block-button__link, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button { background: var(--ink); color: white; }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover { background: #2e534b; color: white; }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info { border-top-color: var(--ink); background: #e8ece1; }
.woocommerce .woocommerce-message::before, .woocommerce .woocommerce-info::before { color: var(--ink); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.aligncenter { display: block; margin-inline: auto; }.wp-caption { max-width: 100%; }

@media (max-width: 56rem) {
  .mast-row { gap: .8rem; }.main-nav { gap: 1rem; }
  .mast-end { gap: .65rem; }.currency { padding-right: .65rem; }
  .hero::before { background: linear-gradient(90deg,#0a1c1cf2 0%,#0d201fcb 31%,#0d211e70 52%,transparent 73%); }
  .card-data { display: block; }.card-data .price { display: block; margin-top: .22rem; }
}
@media (max-width: 43rem) {
  .mast-row { grid-template-columns: 1fr auto; gap: 0 1rem; padding-top: .8rem; }
  .brand img { width: 2.7rem; height: 2.4rem; }.brand > span { font-size: 1.35rem; }
  .mast-end { grid-column: 2; grid-row: 1; }.main-nav { grid-column: 1 / -1; flex-wrap: wrap; gap: .15rem 1.5rem; margin-top: .4rem; }
  .main-nav a { padding: .45rem 0 .6rem; font-size: .88rem; }
  .hero-plate { height: clamp(15rem,62vw,24rem); object-position: 94% 44%; }
  .hero::before { background: linear-gradient(to bottom, transparent 0%, transparent 51%, #152b2a 100%); height: clamp(15rem,62vw,24rem); }
  .hero-content { padding-top: clamp(12rem,51vw,20rem); padding-bottom: 2.1rem; }
  .hero h1 { margin: .6rem 0 .7rem; font-size: clamp(3.2rem,9vw,4.1rem); }
  .hero-description { max-width: 38ch; }.cta { margin-top: 1.15rem; }
  .collection { padding-block: 2rem 2.8rem; }.section-top { gap: .4rem 1rem; }
  .section-top h2 { font-size: clamp(2.1rem,8vw,3.1rem); }.textlink { font-size: .88rem; }
  .filters { gap: .1rem 1rem; }.chip { font-size: .9rem; }
  .print-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.2rem .8rem; }
  .card-photo { aspect-ratio: 1.13; }.card-photo .stock { top: .4rem; left: .4rem; font-size: .72rem; }
  .steps, .news-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .steps p { max-width: 50ch; }.process h2 { margin-bottom: 1.1rem; }
}
@media (max-width: 22rem) {
  .currency { display: none; }.print-grid { grid-template-columns: 1fr; }
  .eyebrow { font-size: .7rem; }.card-photo { aspect-ratio: 1.55; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }.card-photo > img { transition: none; }
  .card-link:hover .card-photo > img { transform: none; }
}
