/* DeNshe design tokens, reset, and base typography.
   Storefront components live in storefront.css. */

:root {
  /* Only the logo: royal blue field, ivory lettering. */
  --ink: #101048;
  --navy: #181868;
  --navy-soft: #202090;
  --royal: #202090;
  --ivory: #f7f3ec;
  --paper: #f7f3ec;
  --sand: #e7e6f2;
  --sand-deep: #d4d3e4;
  --gold: #181868;
  --gold-soft: #f7f3ec;
  --muted: #4c4f80;
  --muted-light: #6a6d9c;

  --line: rgba(16, 16, 72, 0.14);
  --line-soft: rgba(16, 16, 72, 0.08);
  --line-strong: rgba(16, 16, 72, 0.28);
  --line-ivory: rgba(247, 243, 236, 0.28);

  --shadow-sm: 0 1px 2px rgba(16, 16, 72, 0.06);
  --shadow-md: 0 18px 40px -26px rgba(16, 16, 72, 0.4);
  --shadow-lg: 0 44px 90px -48px rgba(16, 16, 72, 0.5);

  --font-display: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --font-body: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --page: min(1320px, 100% - 3rem);
  --page-narrow: min(720px, 100% - 3rem);
  --masthead-height: 4.75rem;

  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
  --fast: 160ms var(--ease);
  --slow: 520ms var(--ease);
}

@media (max-width: 48rem) {
  :root {
    --page: min(1320px, 100% - 2rem);
    --page-narrow: min(720px, 100% - 2rem);
    --masthead-height: 3.75rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem);
}

h2 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem);
}

h3 {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration-color: var(--line-strong, rgba(11, 13, 31, 0.3));
  text-underline-offset: 0.22em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--royal);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection {
  background: var(--navy);
  color: var(--ivory);
}

/* Small letterspaced caps, echoing "JEWELLERY" in the logo. */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  color: var(--muted);
  font-weight: 300;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -120%;
  z-index: 200;
  background: var(--ink);
  color: var(--ivory);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  transition: translate var(--fast);
}

.skip-link:focus {
  translate: -50% 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
