/*
Theme Name: Knee Deep Surf Shop
Theme URI: https://kneedeepsurfshop.com/
Author: Knee Deep Surf Shop
Description: A North Carolina coastal editorial and shop theme with Local Coastal Garage character.
Version: 1.0.1
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: knee-deep-surf-shop
*/

:root {
  --ink: #11110f;
  --paper: #f1efe8;
  --cream: #e7e1d2;
  --orange: #d86627;
  --line: rgba(17, 17, 15, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Roboto Mono", monospace;
  font-size: 16px;
  line-height: 1.75;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: Oswald, Impact, sans-serif;
  line-height: .98;
  text-transform: uppercase;
}
.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;
}
.screen-reader-text:focus {
  clip: auto;
  width: auto;
  height: auto;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 12px;
  background: white;
  color: var(--ink);
}

/* Header */
.site-header {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 4vw;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 50;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { display: block; width: 228px; max-height: 76px; object-fit: contain; }
.primary-nav { margin-left: auto; }
.primary-nav ul, .footer-links ul {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-nav a, .header-shop, .menu-toggle {
  font: 600 13px/1 Oswald, sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.primary-nav a {
  display: block;
  padding: 38px 0 35px;
  border-bottom: 3px solid transparent;
}
.primary-nav a:hover, .primary-nav a:focus-visible { border-bottom-color: var(--orange); }
.header-shop { background: var(--ink); color: white; padding: 15px 17px; }
.menu-toggle {
  display: none;
  border: 2px solid var(--ink);
  background: transparent;
  padding: 10px 12px;
  cursor: pointer;
}

/* Shared pieces */
.section-pad { padding: 110px 7vw; }
.eyebrow {
  margin: 0 0 20px;
  color: var(--orange);
  font: 600 12px/1.2 "Roboto Mono", monospace;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.eyebrow.light { color: #f5a06d; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 45px;
  padding: 17px 20px;
  font: 600 13px/1 Oswald, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.button-orange { background: var(--orange); color: white; }
.button-dark { background: var(--ink); color: white; }
.button span, .text-link span, .read-link b { display: inline-block; transition: transform .2s ease; }
.button:hover span, .text-link:hover span, .read-link:hover b { transform: translateX(5px); }

/* Homepage hero */
.hero {
  min-height: 690px;
  background: #4c5550 url('assets/images/hero-coast.png') center 58% / cover no-repeat;
  position: relative;
  color: white;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9,11,10,.9) 0%, rgba(9,11,10,.45) 49%, rgba(9,11,10,.08) 72%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 74vw);
  margin-left: 8vw;
  padding: 80px 0;
}
.hero h1 { max-width: 1050px; font-size: clamp(64px, 8.6vw, 128px); line-height: .86; letter-spacing: -.035em; }
.hero-deck { max-width: 650px; margin: 30px 0 32px; color: rgba(255,255,255,.86); font-size: 16px; line-height: 1.75; }
.hero-stamp {
  position: absolute;
  z-index: 2;
  right: 6vw;
  bottom: 56px;
  width: 138px;
  height: 138px;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transform: rotate(8deg);
  font-size: 8px;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
}
.hero-stamp strong { font: 700 21px/1 Oswald, sans-serif; }
.hero-coordinate { position: absolute; z-index: 2; right: 35px; top: 38px; writing-mode: vertical-rl; font-size: 8px; letter-spacing: .17em; opacity: .7; text-transform: uppercase; }
.ticker {
  min-height: 51px;
  padding: 10px 2vw;
  background: var(--orange);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  overflow: hidden;
  white-space: nowrap;
  font: 600 11px/1 Oswald, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ticker i { font-size: 7px; }

/* Stories */
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 80px; margin-bottom: 52px; }
.split-heading h2, .field-title h2, .shop-copy h2 { font-size: clamp(50px, 6vw, 84px); line-height: .93; letter-spacing: -.025em; }
.split-heading > p { max-width: 470px; padding-bottom: 7px; color: #504f49; font-size: 13px; line-height: 1.8; }
.story-grid { display: grid; grid-template-columns: 1.55fr 1fr 1fr; gap: 22px; }
.story-card { background: #e7e2d6; border-bottom: 2px solid var(--ink); transition: transform .25s ease; }
.story-card:hover { transform: translateY(-5px); }
.story-image { height: 260px; position: relative; overflow: hidden; background-position: center; background-size: cover; filter: saturate(.78); }
.lead .story-image { height: 350px; }
.story-wreck, .story-fallback-1 { background-image: linear-gradient(rgba(15,17,16,.08), rgba(15,17,16,.08)), url('assets/images/dock-story.png'); }
.story-ramp, .story-fallback-2 { background-image: linear-gradient(rgba(16,20,19,.08), rgba(16,20,19,.08)), url('assets/images/dock-story.png'); background-position: 44% 54%; }
.story-offseason, .story-fallback-3 { background-image: linear-gradient(rgba(28,33,31,.12), rgba(28,33,31,.12)), url('assets/images/hero-coast.png'); }
.story-number { position: absolute; top: 14px; right: 15px; padding: 7px 8px; background: var(--paper); font: 600 10px/1 Oswald, sans-serif; }
.photo-note { position: absolute; left: 16px; bottom: 15px; padding: 7px 9px; background: rgba(15,15,12,.75); color: white; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.story-body { padding: 24px 23px 25px; }
.story-body .eyebrow { margin-bottom: 10px; font-size: 9px; }
.story-body h3 { font-size: 30px; line-height: 1.05; letter-spacing: -.01em; }
.lead .story-body h3 { font-size: 38px; }
.story-body > p:not(.eyebrow) { min-height: 56px; color: #55534b; font-size: 11px; line-height: 1.7; }
.read-link { display: flex; justify-content: space-between; margin-top: 25px; padding-top: 15px; border-top: 1px solid var(--line); font: 600 10px/1 Oswald, sans-serif; letter-spacing: .12em; text-transform: uppercase; }

/* Manifesto and field notes */
.manifesto { min-height: 660px; display: grid; grid-template-columns: 1.08fr .92fr; background: var(--ink); color: white; }
.manifesto-photo { min-height: 550px; background: #53605d url('assets/images/dock-story.png') center / cover no-repeat; filter: saturate(.7) contrast(1.07); }
.manifesto-copy { padding: 110px 8vw 90px 6vw; display: flex; flex-direction: column; justify-content: center; }
.manifesto-copy h2 { font-size: clamp(58px, 6vw, 90px); line-height: .9; }
.manifesto-copy > p:not(.eyebrow) { max-width: 570px; margin: 32px 0; color: #c9c5ba; font-size: 13px; line-height: 1.85; }
.text-link { display: inline-flex; gap: 65px; width: max-content; padding-bottom: 9px; border-bottom: 1px solid currentColor; font: 600 12px/1 Oswald, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.light-link { color: #f5a06d; }
.field-notes { display: grid; grid-template-columns: .85fr 1.15fr; gap: 9vw; border-bottom: 1px solid var(--line); }
.field-title > p:last-child { max-width: 440px; color: #5c5a52; font-size: 12px; line-height: 1.75; }
.notes-list { border-top: 2px solid var(--ink); }
.note-row { min-height: 98px; display: grid; grid-template-columns: 120px 1fr 25px; align-items: center; gap: 25px; border-bottom: 1px solid var(--line); transition: padding .2s ease, background .2s ease; }
.note-row:hover { padding: 0 12px; background: #e8e3d7; }
.note-row small { color: var(--orange); font-size: 8px; letter-spacing: .08em; }
.note-row strong { font: 500 24px/1.1 Oswald, sans-serif; text-transform: uppercase; }

/* Shop */
.shop-section { padding: 115px 7vw; display: grid; grid-template-columns: .8fr 1.2fr; gap: 9vw; background: var(--cream); }
.shop-copy > p:not(.eyebrow) { max-width: 430px; margin: 27px 0 30px; color: #56544c; font-size: 12px; line-height: 1.8; }
.goods-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.product-card > div:first-child { min-height: 340px; display: grid; place-items: center; }
.product-card > div:last-child { display: flex; justify-content: space-between; font: 600 11px/1 Oswald, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.product-sticker > div:first-child { background: #b2ab96; }
.sticker-mock { width: 205px; height: 205px; border: 8px solid white; outline: 2px solid var(--ink); border-radius: 50%; background: var(--ink); color: white; box-shadow: 0 18px 28px rgba(0,0,0,.28); display: flex !important; flex-direction: column; justify-content: center; text-align: center; transform: rotate(-7deg); }
.sticker-mock span { font: 700 56px/.82 Oswald, sans-serif; letter-spacing: -.04em; }
.sticker-mock small { margin-top: 12px; font-size: 8px; letter-spacing: .22em; }
.product-shirt > div:first-child { background: #8a8a80; }
.shirt-mock { width: 205px; height: 260px; background: #22211f; clip-path: polygon(23% 7%,39% 0,61% 0,77% 7%,100% 21%,86% 40%,76% 34%,76% 100%,24% 100%,24% 34%,14% 40%,0 21%); color: #e9e5db; display: grid; place-items: center; box-shadow: 0 20px 30px rgba(0,0,0,.22); }
.shirt-mock b { font: 700 39px/1 Oswald, sans-serif; opacity: .85; }

/* Signup */
.dispatch { padding: 110px 6vw; background: var(--orange); color: white; text-align: center; }
.dispatch .eyebrow { color: #2a1d17; }
.dispatch h2 { font-size: clamp(54px, 7.2vw, 100px); line-height: .9; }
.dispatch > p:not(.eyebrow) { margin: 25px 0 32px; color: rgba(255,255,255,.82); font-size: 12px; }
.email-form { max-width: 690px; margin: 0 auto; display: flex; border: 2px solid white; }
.email-form input { flex: 1; min-width: 0; padding: 18px; border: 0; outline: 0; background: transparent; color: white; }
.email-form input::placeholder { color: rgba(255,255,255,.65); }
.email-form button { padding: 0 20px; border: 0; background: white; color: var(--ink); font: 600 12px/1 Oswald, sans-serif; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.signup-success { max-width: 690px; margin: 0 auto !important; padding: 19px; border: 2px solid white; color: white !important; font: 600 13px/1 Oswald, sans-serif !important; letter-spacing: .1em; text-transform: uppercase; }

/* Footer */
.site-footer { padding: 70px 6vw 25px; background: var(--ink); color: white; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand img { width: min(720px, 76vw); max-height: 245px; object-fit: contain; filter: invert(1); }
.footer-brand span { margin-top: 15px; color: #aaa79e; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { margin: 60px 0 45px; }
.footer-links a { font: 500 11px/1 Oswald, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.footer-bottom { padding-top: 20px; display: flex; justify-content: space-between; border-top: 1px solid #363632; color: #827f77; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }

/* Pages, posts and archives */
.content-main { min-height: 60vh; }
.content-hero { padding: clamp(90px, 12vw, 170px) 8vw 80px; background: var(--cream); border-bottom: 1px solid var(--line); }
.content-hero h1 { max-width: 1180px; font-size: clamp(58px, 9vw, 128px); line-height: .9; letter-spacing: -.03em; }
.single-hero { background: var(--ink); color: white; }
.entry-meta { margin: 28px 0 0; color: #aaa79e; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.single-featured { width: min(1300px, 90vw); margin: -28px auto 0; position: relative; }
.single-featured img { width: 100%; max-height: 720px; object-fit: cover; }
.entry-content-wrap { width: min(820px, 86vw); margin: 0 auto; padding: 80px 0 110px; }
.entry-content { font-size: 16px; line-height: 1.9; }
.entry-content h2 { margin: 2.5em 0 .8em; font-size: clamp(38px, 5vw, 62px); }
.entry-content h3 { margin: 2.2em 0 .7em; font-size: clamp(28px, 3vw, 42px); }
.entry-content a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { margin: 2.5em 0; padding: 8px 0 8px 28px; border-left: 5px solid var(--orange); font-family: Oswald, sans-serif; font-size: 29px; line-height: 1.25; text-transform: uppercase; }
.entry-content img, .entry-content .wp-block-image { margin-top: 2em; margin-bottom: 2em; }
.alignwide { width: min(1200px, 92vw); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.post-navigation { display: flex; justify-content: space-between; gap: 30px; margin-top: 75px; padding-top: 28px; border-top: 2px solid var(--ink); font: 600 16px/1.25 Oswald, sans-serif; text-transform: uppercase; }
.listing-hero .archive-description { max-width: 720px; margin-top: 25px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.archive-card { background: var(--cream); border-bottom: 2px solid var(--ink); }
.archive-image { min-height: 240px; background: #aaa493 url('assets/images/hero-coast.png') center / cover no-repeat; }
.archive-image img { width: 100%; height: 240px; object-fit: cover; display: block; }
.archive-body { padding: 25px; }
.archive-body .eyebrow { margin-bottom: 10px; font-size: 9px; }
.archive-body h2 { font-size: 32px; }
.archive-body > p:not(.eyebrow) { color: #55534b; font-size: 12px; }
.pagination { grid-column: 1 / -1; margin-top: 40px; }
.nav-links { display: flex; gap: 10px; }
.page-numbers { padding: 10px 14px; border: 1px solid var(--ink); font: 600 13px/1 Oswald, sans-serif; }
.page-numbers.current { background: var(--ink); color: white; }
.error-hero { min-height: 650px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.error-hero .button { margin-top: 35px; }
.comments-area { width: min(820px, 86vw); margin: 0 auto; padding: 0 0 100px; }
.comments-area h2, .comment-reply-title { margin-bottom: 28px; font-size: 38px; }
.comment-list { padding-left: 22px; }
.comment-form label { display: block; font: 600 12px/1 Oswald, sans-serif; text-transform: uppercase; }
.comment-form input, .comment-form textarea { width: 100%; padding: 12px; border: 1px solid var(--ink); background: white; }
.form-submit input { width: auto; padding: 14px 20px; border: 0; background: var(--ink); color: white; font: 600 13px/1 Oswald, sans-serif; text-transform: uppercase; cursor: pointer; }

/* WordPress and WooCommerce basics */
.wp-block-button__link, .button, button, input[type="submit"] { border-radius: 0; }
.woocommerce .button, .woocommerce button.button, .woocommerce input.button { background: var(--ink); color: white; font-family: Oswald, sans-serif; text-transform: uppercase; border-radius: 0; }
.woocommerce span.onsale { background: var(--orange); border-radius: 0; }

@media (max-width: 1050px) {
  .primary-nav ul { gap: 19px; }
  .brand img { width: 205px; }
}

@media (max-width: 900px) {
  .site-header { min-height: 78px; }
  .menu-toggle { display: block; margin-left: auto; }
  .header-shop { display: none; }
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 12px 6vw 25px; background: var(--paper); border-bottom: 2px solid var(--ink); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .hero { min-height: 630px; }
  .hero-copy { width: 86vw; margin-left: 6vw; }
  .hero-stamp { width: 105px; height: 105px; right: 4vw; bottom: 28px; }
  .story-grid { grid-template-columns: 1fr 1fr; }
  .story-card.lead { grid-column: 1 / -1; }
  .manifesto { grid-template-columns: 1fr; }
  .manifesto-photo { min-height: 430px; }
  .field-notes, .shop-section { grid-template-columns: 1fr; gap: 55px; }
  .archive-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .site-header { padding: 0 18px; }
  .brand img { width: 185px; }
  .menu-toggle { padding: 9px 10px; }
  .hero { min-height: 610px; align-items: flex-end; }
  .hero-copy { padding: 90px 0 120px; }
  .hero h1 { font-size: 56px; }
  .hero-deck { font-size: 13px; }
  .hero-stamp, .hero-coordinate { display: none; }
  .ticker { justify-content: flex-start; padding: 0 20px; }
  .ticker span:nth-of-type(n+4), .ticker i:nth-of-type(n+4) { display: none; }
  .section-pad { padding: 78px 22px; }
  .split-heading { align-items: start; flex-direction: column; gap: 24px; }
  .story-grid, .archive-grid { grid-template-columns: 1fr; }
  .story-card.lead { grid-column: auto; }
  .lead .story-image, .story-image { height: 270px; }
  .lead .story-body h3 { font-size: 31px; }
  .manifesto-photo { min-height: 360px; }
  .manifesto-copy { padding: 78px 25px; }
  .note-row { grid-template-columns: 82px 1fr 16px; gap: 10px; }
  .note-row strong { font-size: 19px; }
  .shop-section { padding: 78px 22px; }
  .goods-grid { grid-template-columns: 1fr; }
  .product-card > div:first-child { min-height: 300px; }
  .dispatch { padding: 85px 22px; }
  .email-form { flex-direction: column; }
  .email-form button { min-height: 54px; }
  .site-footer { padding: 58px 24px 24px; }
  .footer-links ul { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .content-hero { padding: 90px 22px 60px; }
  .content-hero h1 { font-size: 54px; }
  .entry-content-wrap { padding: 55px 0 80px; }
  .post-navigation { flex-direction: column; }
}
