@font-face {
  font-family: "Literata";
  src: url("../fonts/Literata-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: only light;
  --border-color: #000;
  --text-color: #000;
  --bg-color: #fff;
  --border: 1px solid var(--border-color);
  --transition-speed: 0.4s;
}

body {
  margin: 0;
  font-family: "Literata", "Times New Roman", serif;
  background: var(--bg-color);
  color: var(--text-color);
  transition: color var(--transition-speed) ease, background-color var(--transition-speed) ease;
  height: 100vh;
  overflow: hidden;
}

body[data-theme="white"] {
  --border-color: #000;
  --text-color: #000;
  --bg-color: #fff;
}

body[data-theme="moss"] {
  --border-color: #fff;
  --text-color: #fff;
  --bg-color: #002712;
  --border: 1px solid #fff;
}

body[data-theme="navy"] {
  --border-color: #fff;
  --text-color: #fff;
  --bg-color: #09182a;
  --border: 1px solid #fff;
}

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

header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem 1rem 0.75rem 1rem;
  border-bottom: var(--border);
  height: 50px;
  box-sizing: border-box;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
}

.brand img {
  display: block;
  height: 20px;
  width: auto;
  transition: opacity var(--transition-speed) ease;
  position: absolute;
}

.brand {
  position: relative;
  height: 20px;
  width: 20px;
}

.brand .logo-black {
  opacity: 1;
}

.brand .logo-white {
  opacity: 0;
}

body[data-theme="moss"] .brand .logo-black,
body[data-theme="navy"] .brand .logo-black {
  opacity: 0;
}

body[data-theme="moss"] .brand .logo-white,
body[data-theme="navy"] .brand .logo-white {
  opacity: 1;
}

main {
  display: flex;
  height: calc(100vh - 50px - 60px);
  overflow: hidden;
}

.image-panel,
.details-panel {
  flex: 1;
  display: flex;
}

.image-panel {
  border-right: var(--border);
  flex-direction: column;
  max-width: 60%;
}

.image-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.image-stage {
  position: relative;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  user-select: none;
}

.image-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  pointer-events: none;
}

.image-stage img.active {
  opacity: 1;
}

.hover-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hover-nav.left {
  left: 0;
}

.hover-nav.right {
  right: 0;
}

body[data-theme="white"] .hover-nav.left {
  background: linear-gradient(90deg, rgba(0,0,0,0.05) 0%, transparent 100%);
}

body[data-theme="white"] .hover-nav.right {
  background: linear-gradient(-90deg, rgba(0,0,0,0.05) 0%, transparent 100%);
}

body[data-theme="moss"] .hover-nav.left,
body[data-theme="navy"] .hover-nav.left {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, transparent 100%);
}

body[data-theme="moss"] .hover-nav.right,
body[data-theme="navy"] .hover-nav.right {
  background: linear-gradient(-90deg, rgba(255,255,255,0.05) 0%, transparent 100%);
}

.hover-nav:hover {
  opacity: 1;
}

.hover-nav::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  opacity: 0.7;
}

.hover-nav.left::after {
  left: 20px;
  border-width: 15px 15px 15px 0;
  border-color: transparent var(--text-color) transparent transparent;
}

.hover-nav.right::after {
  right: 20px;
  border-width: 15px 0 15px 15px;
  border-color: transparent transparent transparent var(--text-color);
}

.image-thumbs {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem;
  border-top: var(--border);
  height: 150px;
  box-sizing: border-box;
}

.image-thumbs .thumb {
  flex: 1;
  border: 1px solid var(--border-color);
  background: transparent;
  padding: 0;
  aspect-ratio: 1;
  height: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

body[data-theme="moss"] .image-thumbs .thumb,
body[data-theme="navy"] .image-thumbs .thumb {
  background: rgba(255,255,255,0.05);
}

.image-thumbs .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--text-color);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-thumbs .thumb.active::after {
  opacity: 1;
}

.image-thumbs .thumb:hover {
  transform: translateY(-2px);
}

.image-thumbs .thumb:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 2px;
}

.image-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.details-panel {
  flex-direction: column;
  justify-content: center;
}

.details {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  flex: 1;
}

h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin: 0;
  transition: color var(--transition-speed) ease;
}

.variant-name {
  font-size: 0.8em;
  opacity: 0.8;
  margin-left: 0.25em;
}

.color-selector {
  display: flex;
  gap: 0.75rem;
  margin: -0.5rem 0 0.5rem 0;
}

.color-option {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 3px;
}

.color-option.white {
  background: #fff;
  border: 1px solid #e0e0e0;
}

.color-option.moss {
  background: #002712;
}

.color-option.navy {
  background: #09182a;
}

.color-option::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid var(--text-color);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.color-option.active::after {
  opacity: 1;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.5;
  margin: 0;
  transition: color var(--transition-speed) ease;
}

.cta-button {
  border: 2px solid var(--border-color);
  background: transparent;
  color: var(--text-color);
  font-family: inherit;
  font-size: 1rem;
  text-transform: uppercase;
  padding: 1rem 2rem;
  cursor: pointer;
  width: fit-content;
  letter-spacing: 0.1em;
  text-decoration: none;
  display: inline-block;
  transition: all var(--transition-speed) ease;
  box-sizing: border-box;
}

.cta-button:hover {
  background: var(--text-color);
  color: var(--bg-color);
  border-color: var(--text-color);
}

.cta-button:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 4px;
}

footer {
  border-top: var(--border);
  height: 60px;
  box-sizing: border-box;
  background: var(--bg-color);
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  height: 100%;
  box-sizing: border-box;
}

.footer-brand {
  color: var(--text-color);
  transition: color var(--transition-speed) ease;
}

.footer-policies a {
  color: var(--text-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.footer-policies a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  body {
    height: auto;
    overflow: auto;
    display: block;
  }

  header {
    position: relative;
  }

  main {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .image-panel {
    border-right: none;
    border-bottom: var(--border);
    max-width: 100%;
    height: 40vh;
    display: block;
  }

  .image-wrap {
    height: 40vh;
    position: relative;
  }

  .image-stage {
    touch-action: none;
    position: relative;
    height: 100%;
    user-select: none;
    -webkit-user-select: none;
  }

  .image-stage img {
    object-fit: cover;
    background: var(--bg-color);
  }

  .image-thumbs {
    display: none;
  }

  .hover-nav {
    display: none;
  }

  .details-panel {
    flex: 1;
    min-height: 0;
  }

  .details {
    padding: 1.5rem;
    gap: 0.25rem;
    min-height: auto;
    padding-bottom: 3rem;
  }

  h1 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }

  .variant-name {
    display: block;
    font-size: 0.7em;
    margin-left: 0;
    margin-top: 0.25rem;
  }

  .color-selector {
    margin: 0.5rem 0 1rem 0;
    justify-content: flex-start;
  }

  .color-option {
    width: 35px;
    height: 35px;
  }

  .lead {
    max-width: 100%;
    font-size: 0.95rem;
    padding-bottom: 1rem;
  }

  .cta-button {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    display: block;
  }

  footer {
    position: relative;
    height: 50px;
  }

  .footer-content {
    padding: 0.75rem;
    font-size: 0.7rem;
  }
}

.policies-main {
  border-bottom: var(--border);
  min-height: calc(100vh - 200px);
}

.policies-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.policies-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 2rem 0;
  text-align: center;
}

.policy-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: var(--border);
}

.policy-section:last-child {
  border-bottom: none;
}

.policy-section h2 {
  font-size: 1.25rem;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.policy-section p {
  line-height: 1.6;
  margin: 0;
}