/*
Theme Name: Arctic 01 Editorial
Theme URI: https://example.local/arctic-01
Author: Codex
Author URI: https://example.local
Description: A complete editorial winter fashion WordPress theme inspired by an arctic collection poster layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
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: arctic-01
Tags: custom-background, custom-logo, featured-images, one-column, portfolio, e-commerce
*/

:root {
  --ink: #eef8fb;
  --ink-soft: rgba(238, 248, 251, 0.74);
  --ink-faint: rgba(238, 248, 251, 0.46);
  --panel: #557487;
  --panel-dark: #213b4a;
  --panel-deep: #19303e;
  --tile: #b5cfde;
  --tile-2: #9bb9ca;
  --edge: rgba(229, 245, 250, 0.22);
  --edge-strong: rgba(241, 249, 251, 0.42);
  --shadow: 0 28px 70px rgba(7, 23, 32, 0.34);
  --condensed: "Arial Narrow", "Roboto Condensed", "DIN Condensed", Impact, sans-serif;
  --mono: "Courier New", Courier, monospace;
  --body: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #6f8796;
  font-family: var(--body);
}

body.admin-bar .arctic-page {
  min-height: calc(100vh - 32px);
}

a {
  color: inherit;
  text-decoration: none;
}

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;
}

.arctic-page {
  min-height: 100vh;
  background-image:
    linear-gradient(180deg, rgba(99, 123, 138, 0.8), rgba(62, 91, 108, 0.86)),
    var(--mountain-img);
  background-position: center top, center top;
  background-size: cover, cover;
  background-attachment: fixed, fixed;
  padding: clamp(34px, 7vw, 84px) clamp(14px, 4vw, 60px);
  overflow: hidden;
}

.arctic-stage {
  width: min(100%, 1050px);
  margin: 0 auto;
  box-shadow: var(--shadow);
  background: rgba(39, 67, 82, 0.18);
}

.arctic-hero {
  position: relative;
  isolation: isolate;
  min-height: 450px;
  overflow: hidden;
  background:
    radial-gradient(circle at 60% 10%, rgba(224, 242, 248, 0.26), transparent 32%),
    linear-gradient(135deg, rgba(31, 58, 72, 0.98), rgba(70, 102, 120, 0.88));
}

.arctic-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(22, 41, 52, 0.96) 0%, rgba(34, 61, 75, 0.62) 35%, rgba(61, 91, 108, 0.3) 68%, rgba(22, 41, 52, 0.86) 100%),
    var(--hero-img);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  filter: saturate(0.92);
}

.arctic-hero::after {
  content: "ARCTIC";
  position: absolute;
  z-index: -1;
  top: 66px;
  left: 220px;
  transform: rotate(-4deg);
  color: rgba(239, 249, 251, 0.13);
  font-family: var(--condensed);
  font-size: clamp(130px, 20vw, 260px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.78;
  text-transform: uppercase;
  filter: blur(1px);
  white-space: nowrap;
}

.arctic-topbar {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 68px;
  align-items: center;
  gap: 24px;
  padding: 26px 36px 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 44px;
  min-height: 28px;
  color: var(--ink);
  font-family: var(--condensed);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  transform: skew(-8deg);
}

.brand-mark span {
  display: inline-block;
  text-shadow: 1px 0 0 rgba(255, 255, 255, 0.4);
}

.brand-mark img {
  display: block;
  width: auto;
  max-width: 78px;
  height: auto;
  max-height: 34px;
  filter: brightness(0) invert(1);
}

.custom-brand {
  transform: none;
}

.custom-brand .custom-logo-link {
  display: inline-flex;
}

.arctic-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 58px);
  min-width: 0;
}

.arctic-nav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.arctic-nav a {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.arctic-nav a::before,
.arctic-nav a::after {
  color: var(--ink-faint);
  content: "/";
  padding: 0 5px;
}

.nav-icons {
  display: flex;
  justify-content: end;
  gap: 8px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 0;
  border-radius: 4px;
  color: #294455;
  background: rgba(241, 249, 251, 0.9);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.icon-button svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.5;
}

.icon-button:hover,
.icon-button:focus-visible {
  transform: translateY(-1px);
  background: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) minmax(280px, 1fr) 245px;
  gap: 28px;
  min-height: 396px;
  padding: 50px 36px 36px;
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-title {
  max-width: 330px;
  margin: 27px 0 22px;
  color: #ffffff;
  font-family: var(--condensed);
  font-size: clamp(49px, 5.9vw, 70px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.82;
  text-transform: uppercase;
}

.tm {
  position: relative;
  top: -0.42em;
  font-size: 0.34em;
  vertical-align: baseline;
}

.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  max-width: 250px;
  margin: 0 0 23px;
}

.spec {
  display: grid;
  gap: 8px;
  min-width: 38px;
}

.spec small {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.spec strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.buy-strip {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hex-link {
  display: inline-grid;
  place-items: center;
  width: 78px;
  height: 70px;
  color: var(--ink);
  background: rgba(179, 211, 225, 0.12);
  border: 1px solid rgba(232, 247, 251, 0.45);
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
  transition: transform 170ms ease, background 170ms ease;
}

.hex-link svg {
  width: 22px;
  height: 22px;
}

.hex-link:hover,
.hex-link:focus-visible {
  transform: translate(2px, -2px);
  background: rgba(222, 242, 249, 0.2);
}

.price-block {
  display: grid;
  gap: 3px;
}

.price-block span {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.price-block strong {
  color: #ffffff;
  font-family: var(--condensed);
  font-size: 22px;
  letter-spacing: 0;
}

.hero-subject {
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 330px;
}

.hero-subject img {
  width: min(460px, 100%);
  height: 410px;
  object-fit: cover;
  object-position: center top;
  border: 0;
  filter: drop-shadow(0 16px 28px rgba(5, 20, 29, 0.34));
  transform: translateY(36px) scale(1.26);
}

.hero-side {
  align-self: center;
  display: grid;
  gap: 20px;
  justify-items: stretch;
}

.preview-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini-card {
  position: relative;
  min-height: 154px;
  overflow: hidden;
  background: var(--tile);
  clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
}

.mini-card::before {
  content: "";
  position: absolute;
  inset: 8px 6px 0;
  background-image: var(--lineup-img);
  background-repeat: no-repeat;
  background-size: 620% 100%;
  background-position: var(--pos, 0%) center;
  filter: saturate(0.94);
}

.mini-card:nth-child(2)::before {
  transform: scaleX(-1);
}

.slide-numbers {
  display: flex;
  justify-content: center;
  gap: 68px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
}

.socials {
  display: flex;
  justify-content: end;
  gap: 8px;
  padding-top: 48px;
}

.collection {
  position: relative;
  background: rgba(79, 111, 129, 0.98);
  padding: 56px 36px 58px;
}

.collection-head {
  display: grid;
  grid-template-columns: 1fr minmax(160px, 260px) minmax(140px, 260px) auto;
  gap: 28px;
  align-items: start;
  margin-bottom: 34px;
}

.section-title {
  margin: 0;
  color: #ffffff;
  font-family: var(--condensed);
  font-size: clamp(36px, 4.6vw, 52px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.86;
  text-transform: uppercase;
}

.micro-copy {
  margin: 0;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.35;
  text-transform: uppercase;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 25px;
  border: 0;
  border-radius: 6px;
  color: #4b6575;
  background: rgba(242, 248, 249, 0.94);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) repeat(3, minmax(140px, 1fr));
  gap: 18px;
}

.feature-card {
  position: relative;
  min-height: 235px;
  overflow: hidden;
  grid-row: span 1;
  background:
    linear-gradient(90deg, rgba(24, 48, 62, 0.18), rgba(24, 48, 62, 0.1)),
    var(--hero-img);
  background-size: cover;
  background-position: 52% 35%;
}

.feature-card::after {
  content: "";
  position: absolute;
  right: 15px;
  bottom: 17px;
  width: 106px;
  height: 106px;
  background:
    linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.95) 46% 53%, transparent 54%),
    linear-gradient(-45deg, transparent 45%, rgba(255, 255, 255, 0.95) 46% 53%, transparent 54%);
  opacity: 0.86;
  transform: rotate(16deg);
}

.feature-copy {
  position: absolute;
  right: 24px;
  top: 79px;
  width: 125px;
}

.feature-copy h3 {
  margin: 0;
  font-family: var(--condensed);
  font-size: 35px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.85;
  text-transform: uppercase;
}

.feature-copy p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.3;
  text-transform: uppercase;
}

.round-controls {
  display: flex;
  gap: 7px;
  margin-top: 14px;
}

.round-controls span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(246, 252, 253, 0.38);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
}

.product-card {
  min-width: 0;
}

.product-visual {
  position: relative;
  aspect-ratio: 1 / 1.24;
  overflow: hidden;
  background: linear-gradient(180deg, var(--tile), var(--tile-2));
  clip-path: polygon(8% 0, 100% 0, 100% 92%, 92% 100%, 0 100%, 0 8%);
}

.product-visual::before {
  content: "";
  position: absolute;
  inset: 9px 4px 0;
  background-image: var(--lineup-img);
  background-repeat: no-repeat;
  background-size: 620% 100%;
  background-position: var(--pos, 0%) center;
  filter: drop-shadow(0 12px 9px rgba(20, 42, 52, 0.28));
}

.product-name {
  margin: 10px 0 0;
  color: #ffffff;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.22;
  text-transform: uppercase;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.dot {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.dot.dark::before {
  background: #122e3e;
}

.dot.black::before {
  background: #0b1c28;
}

.dot.navy::before {
  background: #17384f;
}

.dot.silver::before {
  background: #dce8ee;
}

.dot.blue::before {
  background: #84bfd8;
}

.dot.cream::before {
  background: #ebe3d7;
}

.card-price {
  display: block;
  margin-top: 5px;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 8px;
}

.filters-open .product-card[data-color="white"],
.filters-open .product-card[data-color="silver"],
.filters-open .product-card[data-color="blue"] {
  transform: translateY(-2px);
}

.product-card {
  transition: transform 160ms ease, opacity 160ms ease;
}

.mountain-poster {
  position: relative;
  min-height: 502px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(33, 58, 72, 0.28), rgba(10, 33, 45, 0.76) 52%, rgba(26, 54, 68, 0.18)),
    var(--mountain-img);
  background-size: cover;
  background-position: center bottom;
}

.mountain-poster::before {
  content: "HREN";
  position: absolute;
  top: 48px;
  left: 45%;
  transform: translateX(-50%) rotate(-8deg) skew(-9deg);
  color: rgba(229, 245, 250, 0.26);
  font-family: var(--condensed);
  font-size: clamp(120px, 17vw, 220px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.8;
  filter: blur(1px);
}

.poster-notes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.note {
  position: absolute;
  max-width: 130px;
  margin: 0;
  color: rgba(240, 249, 251, 0.78);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.35;
  text-transform: uppercase;
}

.note.left {
  left: 36px;
  top: 172px;
}

.note.right {
  right: 38px;
  top: 236px;
  text-align: right;
}

.poster-title {
  position: absolute;
  left: 36px;
  bottom: 72px;
  max-width: 380px;
  margin: 0;
  color: #ffffff;
  font-family: var(--condensed);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.84;
  text-transform: uppercase;
}

.barcode {
  position: absolute;
  right: 36px;
  bottom: 56px;
  display: flex;
  align-items: end;
  gap: 3px;
  height: 34px;
}

.barcode span {
  display: block;
  width: 3px;
  background: rgba(246, 252, 253, 0.92);
}

.barcode span:nth-child(1) { height: 22px; }
.barcode span:nth-child(2) { height: 31px; }
.barcode span:nth-child(3) { height: 18px; }
.barcode span:nth-child(4) { height: 34px; }
.barcode span:nth-child(5) { height: 24px; }
.barcode span:nth-child(6) { height: 28px; }
.barcode span:nth-child(7) { height: 15px; }
.barcode span:nth-child(8) { height: 32px; }
.barcode span:nth-child(9) { height: 20px; }
.barcode span:nth-child(10) { height: 27px; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 36px;
  color: rgba(241, 249, 251, 0.64);
  background: #213d4e;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .arctic-page {
    padding: 18px;
  }

  .arctic-topbar {
    grid-template-columns: 90px 1fr 60px;
    padding-inline: 24px;
  }

  .arctic-nav {
    gap: 14px;
    justify-content: start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .arctic-nav::-webkit-scrollbar {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    padding-inline: 24px;
  }

  .hero-copy {
    grid-column: 1;
  }

  .hero-subject {
    grid-column: 2;
    grid-row: 1;
  }

  .hero-subject img {
    height: 360px;
    transform: translateY(28px) scale(1.18);
  }

  .hero-side {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .preview-row {
    max-width: 320px;
  }

  .socials {
    padding-top: 0;
  }

  .collection {
    padding-inline: 24px;
  }

  .collection-head {
    grid-template-columns: 1fr 1fr auto;
  }

  .collection-head .micro-copy:nth-of-type(2) {
    display: none;
  }

  .product-layout {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  .feature-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .arctic-page {
    padding: 0;
    background-attachment: scroll, scroll;
  }

  .arctic-stage {
    width: 100%;
  }

  .arctic-topbar {
    grid-template-columns: 1fr auto;
    padding: 20px 18px 0;
  }

  .arctic-nav {
    order: 3;
    grid-column: 1 / -1;
    padding-top: 12px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 44px 18px 28px;
  }

  .hero-copy,
  .hero-subject,
  .hero-side {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-title {
    max-width: 300px;
  }

  .hero-subject {
    min-height: 330px;
    order: -1;
  }

  .hero-subject img {
    width: min(360px, 100%);
    height: 340px;
    transform: translateY(18px) scale(1.06);
  }

  .hero-side {
    grid-template-columns: 1fr;
  }

  .preview-row {
    max-width: none;
  }

  .collection {
    padding: 42px 18px 46px;
  }

  .collection-head {
    grid-template-columns: 1fr auto;
    gap: 18px;
  }

  .collection-head .micro-copy {
    grid-column: 1 / -1;
  }

  .product-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .feature-card {
    min-height: 235px;
  }

  .product-name,
  .product-meta,
  .card-price {
    font-size: 7px;
  }

  .mountain-poster {
    min-height: 460px;
  }

  .poster-title,
  .note.left {
    left: 18px;
  }

  .note.right,
  .barcode {
    right: 18px;
  }

  .site-footer {
    padding: 18px;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-visual {
    aspect-ratio: 1 / 1.02;
  }

  .product-visual::before {
    background-size: 640% 100%;
  }

  .hero-title {
    font-size: 48px;
  }
}
