/* splitshop.ro "Quiver Night" base styles: fonts, tokens, reset, shared components. */

/* ds-allow-hardcode:start - @font-face declares the family names the tokens point at */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('schibsted-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('schibsted-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ds-allow-hardcode:end */

/* ---------- Tokens (from the design handoff; no other colours or fonts) ---------- */
:root {
  --bg: #0b0c0d;
  --surface: #16181a;
  --tile-gap: #000000;
  --media-tile: #f1f1ee; /* product photo tile; same off-white as --text */
  --text: #f1f1ee;
  --text-75: #f1f1eebf;
  --text-60: #f1f1ee99;
  --text-50: #f1f1ee80;
  --border-strong: #f1f1ee66;
  --line: #ffffff1c;
  --track: #ffffff1f;
  --accent: #e8763a;
  --accent-hover: #f08a52;
  --primary-hover: #ffffff;
  --silhouette-1: #d6d8d9;
  --silhouette-2: #6f7478;
  --silhouette-3: #3a3e42;

  --font-sans: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --fs-hero: 104px;
  --fs-product-title: 72px;
  --fs-h2: 44px;
  --fs-price: 34px;
  --fs-tile: 28px;
  --fs-logo: 26px;
  --fs-lead: 17px;
  --fs-body: 14px;
  --fs-small: 13px;
  --fs-xs: 12px;
  --fs-mono-sm: 11px;

  --gutter: 48px;
  --section-pad-top: 72px;
  --section-pad-bottom: 56px;
  --space-2: 2px;
  --space-3: 3px;
  --space-8: 8px;
  --space-12: 12px;
  --space-14: 14px;
  --space-16: 16px;
  --space-24: 24px;
  --space-30: 30px;
  --space-44: 44px;
  --space-18: 18px;
  --space-26: 26px;
  --space-28: 28px;
  --btn-pad-y: 16px;
  --btn-pad-x: var(--space-26);
  --btn-pad-x-accent: var(--space-28);
  --focus-ring: 2px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;
  --dur: 200ms;
  --tap: 44px;

  /* Aliases kept for untouched Skeleton sections until they are rebuilt. */
  --color-background: var(--bg);
  --color-foreground: var(--text);
  --page-margin: var(--gutter);
  --page-width: 100%;
  --style-border-radius-inputs: 0;

  color-scheme: dark;
}

@media (max-width: 1279px) {
  :root {
    --gutter: 32px;
    --fs-hero: 80px;
    --fs-product-title: 56px;
  }
}

@media (max-width: 989px) {
  :root {
    --gutter: 20px;
    --fs-hero: 52px;
    --fs-h2: 34px;
    --section-pad-top: 56px;
    --section-pad-bottom: 44px;
  }
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html:has(dialog[scroll-lock][open], details[scroll-lock][open]) {
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
textarea,
select,
button {
  font: inherit;
  color: inherit;
  border-radius: 0;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
  overflow-wrap: break-word;
}

p:empty {
  display: none;
}

dialog {
  background-color: var(--bg);
  color: var(--text);
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

:focus-visible {
  outline: var(--focus-ring) solid var(--accent);
  outline-offset: var(--focus-ring);
}

/* ---------- Section layout: full-bleed by default, gutter via .page-gutter ---------- */
.shopify-section {
  position: relative;
  width: 100%;
}

.page-gutter {
  padding-inline: var(--gutter);
}

/* ---------- Typography helpers ---------- */
.h-hero {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.h-product {
  font-size: var(--fs-product-title);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-75);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-60);
}

.mono-sm {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.price {
  font-size: var(--fs-price);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.link {
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.link:hover {
  text-decoration: underline;
  text-underline-offset: var(--space-3);
}

/* ---------- Buttons (square, no shadows) ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  min-height: var(--tap);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out);
}

.button--primary {
  background-color: var(--text);
  color: var(--bg);
}

.button--primary:hover {
  background-color: var(--primary-hover);
}

.button--accent {
  padding-inline: var(--btn-pad-x-accent);
  background-color: var(--accent);
  color: var(--bg);
}

.button--accent:hover {
  background-color: var(--accent-hover);
}

.button--ghost {
  border-color: var(--text-50);
  background-color: transparent;
  color: var(--text);
}

.button--ghost:hover {
  border-color: var(--text);
}

.button[disabled],
.button[aria-disabled='true'] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------- Spec list (mono label / value rows) and rich text ---------- */
  .spec-list {
    border-top: 1px solid var(--line);
  }

  .spec-list > div {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: var(--space-16);
    padding-block: 12px;
    border-bottom: 1px solid var(--line);
  }

  .spec-list dt {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-60);
  }

  .spec-list dd {
    margin: 0;
    font-size: var(--fs-body);
  }

  .rte {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-75);
    overflow-wrap: anywhere; /* long pasted URLs must not widen the page */
  }

  .rte > * + * {
    margin-top: 1em;
  }

  .rte h2,
  .rte h3 {
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .rte a {
    color: var(--text);
  }

  .rte table {
    width: 100%;
    border-collapse: collapse;
  }

  .rte th,
  .rte td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

@media (max-width: 989px) {
  .spec-list > div {
    grid-template-columns: 120px minmax(0, 1fr);
  }
}

/* ---------- Pages without a dedicated section (blog, article, policies, gift card) ---------- */
.template-blog main > .shopify-section,
.template-article main > .shopify-section,
.shopify-policy__container {
  padding: var(--section-pad-top) var(--gutter) var(--section-pad-bottom);
}

.shopify-policy__container {
  max-width: calc(720px + var(--gutter) * 2) !important;
  margin: 0 !important;
}

.shopify-policy__title h1 {
  margin-bottom: var(--space-30);
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.shopify-policy__body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-75);
}

.shopify-policy__body a {
  color: var(--text);
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--space-8);
  left: var(--space-8);
  z-index: 100;
  padding: var(--space-12) var(--space-18);
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
}

/* ds-allow-hardcode:start - near-zero durations are the standard reduced-motion override */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ds-allow-hardcode:end */
