/* PULVR brand layer — tokens come from snippets/css-variables.liquid.
   Restraint is the aesthetic: signal orange only on buy actions and the
   wordmark dot; everything else is chalk, coal, sand and hairlines. */

/* ---------- Type ---------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display--family);
  font-weight: var(--font-display--weight);
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.16;
  text-wrap: balance;
}

.mono,
.pulvr-sub {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.pulvr-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0;
}

.pulvr-sub {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--color-muted);
}

/* ---------- Interactive elements ---------- */

button,
.button,
input[type='submit'],
.shopify-payment-button__button--unbranded {
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  font-family: var(--font-primary--family);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: filter 120ms ease;
}

button:hover,
.button:hover,
input[type='submit']:hover {
  filter: brightness(0.94);
}

.button--ghost {
  background: transparent;
  color: var(--color-foreground);
  border-color: var(--color-foreground);
}

.button--ghost:hover {
  filter: none;
  background: var(--color-foreground);
  color: var(--color-background);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.theme-toggle {
  background: transparent;
  border: none;
  padding: 0.3rem;
  color: var(--color-foreground);
  border-radius: 50%;
}

.theme-toggle:hover {
  filter: none;
  color: var(--color-muted);
}

.theme-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

body {
  transition: background-color 160ms ease, color 160ms ease;
}

input[type='text'],
input[type='number'],
input[type='email'],
input[type='search'],
input[type='password'],
select,
textarea {
  border: 1px solid var(--color-line);
  background: var(--color-panel);
  color: var(--color-foreground);
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--color-muted);
}

a {
  color: var(--color-foreground);
}

/* ---------- Header ---------- */

header {
  border-bottom: 1px solid var(--color-line);
}

.header__title {
  font-family: var(--font-display--family);
  font-weight: var(--font-display--weight);
  text-transform: uppercase;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  margin: 0;
}

.header__title a {
  text-decoration: none;
}

.header__title a::after {
  content: '.';
  color: var(--color-accent);
}

header .header__menu a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-foreground);
  padding-block: 0.3rem;
}

header .header__menu a:hover {
  color: var(--color-muted);
}

/* ---------- Footer ---------- */

footer a {
  color: var(--color-muted);
}

footer a:hover {
  color: var(--color-foreground);
}

/* ---------- Product cards ---------- */

.pulvr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

.pulvr-card {
  background: var(--color-panel);
  border: 1px solid var(--color-line);
  border-radius: 6px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  transition: border-color 140ms ease;
}

.pulvr-card:hover {
  border-color: var(--color-muted);
}

.pulvr-card__media {
  background: var(--color-sand);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1.05;
}

.pulvr-card__media img,
.pulvr-card__media svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.9rem;
}

.pulvr-card__title {
  font-family: var(--font-primary--family);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  margin: 0.85rem 0 0.2rem;
}

.pulvr-card__title a {
  text-decoration: none;
}

.pulvr-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.9rem;
}

.pulvr-price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}

/* ---------- Product page ---------- */

.product-info h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.product-images {
  background: var(--color-sand);
  border-radius: 6px;
}

/* ---------- Generic content pages ---------- */

.pulvr-page {
  padding-block: 3rem 4.5rem;
  max-width: 64ch;
}

.pulvr-page h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 0.4em;
}

/* ---------- Prose: long-form typography system ----------
   Scale: lead 1.19rem, body 1rem/1.68, measure 64ch.
   H2 = condensed caps section head. H3 = mono label, the
   "innehållsförteckning" register. Links are the only orange text. */

.prose {
  font-size: 1rem;
  line-height: 1.68;
}

.prose > p:first-of-type {
  font-size: 1.19rem;
  line-height: 1.55;
  color: var(--color-muted);
}

.prose > p:first-of-type strong,
.prose > p:first-of-type b {
  color: var(--color-foreground);
}

.prose p {
  margin-block: 0 1em;
}

.prose h2 {
  font-size: 1.5rem;
  margin: 2.2em 0 0.5em;
}

.prose h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-foreground);
  margin: 2.4em 0 0.7em;
}

.prose h2 + h3,
.prose h1 + h2 {
  margin-top: 0.6em;
}

.prose a {
  color: var(--color-foreground);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--color-accent);
}

.prose strong,
.prose b {
  font-weight: 600;
}

.prose em {
  color: var(--color-muted);
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  margin-block: 0 1em;
}

.prose li {
  margin-block: 0.3em;
}

.prose ul {
  list-style: none;
  padding-left: 0;
}

.prose ul li {
  padding-left: 1.2rem;
  position: relative;
}

.prose ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--color-muted);
}

.prose hr {
  border: none;
  border-top: 1px solid var(--color-line);
  margin-block: 2.2em;
}

.prose blockquote {
  margin: 1.4em 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--color-accent);
  color: var(--color-muted);
}

.prose table {
  margin-block: 0.4em 0.6em;
  font-size: 0.9rem;
}

.prose th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.prose td:last-child {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.prose img {
  border-radius: 6px;
}

@media (max-width: 649px) {
  .prose > p:first-of-type {
    font-size: 1.08rem;
  }
  .prose h2 {
    font-size: 1.25rem;
  }
}

/* ---------- Pagination ---------- */

.pagination,
span.page,
span.prev,
span.next {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ---------- Mobile ---------- */

@media (max-width: 649px) {
  h1,
  h2 {
    hyphens: auto;
  }

  .shopify-section .pulvr-featured h2,
  .shopify-section .pulvr-story__copy h2,
  .shopify-section .collection-header h1,
  .shopify-section .collections-header h1,
  .shopify-section .cart-header h1,
  .shopify-section .search-header h1 {
    font-size: 1.6rem;
  }

  .pulvr-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .pulvr-card {
    padding: 0.65rem;
    border-radius: 5px;
  }

  .pulvr-card__media img,
  .pulvr-card__media svg {
    padding: 0.45rem;
  }

  .pulvr-card__title {
    font-size: 0.85rem;
    margin-top: 0.6rem;
  }

  .pulvr-card .pulvr-sub {
    font-size: 0.64rem;
  }

  .pulvr-card__row {
    padding-top: 0.6rem;
  }

  .pulvr-card__row .button {
    padding: 0.45rem 0.95rem;
    font-size: 0.72rem;
  }

  .pulvr-price {
    font-size: 0.85rem;
  }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
