/*
 * SIMMONS PORTFOLIO — BASE (base.css)
 * Tokens, reset, shared text styles and utilities used across the page.
 *
 * CSS files (loaded in this order from index.html):
 *   base.css     tokens · reset · section titles · reveal · focus
 *   layout.css   header · mobile menu · quick menu · footer
 *   sections.css hero → promotions → intro → find rest → collections → journal → stores
 *   closing.css  final brand statement
 *   popup.css    event popup
 *
 * Breakpoints: 1200px (header) · 1100px · 900px (tablet) · 600px (mobile)
 */

/* Tokens ------------------------------------------------------------------ */
:root {
  --black: #000;
  --panel: #1d1d1f;
  --soft: #b7b7b7;
  --line: rgba(255, 255, 255, 0.16);
  --cream: #e9dfd0;
  --pad: clamp(24px, 4.2vw, 72px); /* side gutter */
  --section-y: clamp(64px, 6.5vw, 112px); /* top/bottom space of a section */
  --heading-gap: clamp(32px, 3.5vw, 56px); /* space under a section heading */
  --joined-gap: clamp(
    24px,
    3vw,
    48px
  ); /* promotions → intro sit close together */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 1100px) {
  :root {
    --section-y: 64px;
  }
}

@media (max-width: 900px) {
  :root {
    --heading-gap: 36px;
  }
}

@media (max-width: 600px) {
  :root {
    --pad: 20px;
    --section-y: 40px;
    --heading-gap: 24px;
    --joined-gap: 24px;
  }
}

/* Reset ------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--black);
  color: #fff;
  font-family: Inter, "Noto Sans KR", sans-serif;
  -webkit-font-smoothing: antialiased;
  /* Wrap Korean at spaces, not in the middle of a word. */
  word-break: keep-all;
  overflow-wrap: break-word;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

img {
  display: block;
  width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* Accessibility ----------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 10px;
  left: 10px;
  padding: 12px 18px;
  background: #fff;
  color: #000;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

:where(a, button, input):focus-visible,
.intro-panel:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 4px;
}

/* Prototype: links are disabled in main.js. */
a[aria-disabled="true"] {
  cursor: default;
}

/* Section spacing --------------------------------------------------------- */
.section-pad {
  padding: var(--section-y) var(--pad);
}

/* Shared text ------------------------------------------------------------- */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #aaa;
}

/* The six section headings share one size scale. */
.section-title {
  font-size: clamp(38px, 4.8vw, 68px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.06em;
}

@media (max-width: 900px) {
  .section-title {
    font-size: clamp(34px, 6.5vw, 48px);
  }
}

@media (max-width: 600px) {
  .section-title {
    font-size: clamp(31px, 8.8vw, 38px);
  }
}

.text-link {
  display: inline-flex;
  gap: 36px;
  align-items: center;
  margin-top: 36px;
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
}

.text-link span {
  font-size: 18px;
}

.pill-link {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 16px 24px;
  border: 1px solid #444;
  border-radius: 100px;
  font-size: 12px;
}

/* Scroll reveal (main.js adds .is-visible) ------------------------------- */
/* Only opacity/transform so the GPU can animate it while scrolling. */
.reveal {
  opacity: 0;
  transform: translateY(64px);
  transition:
    opacity 0.85s var(--ease),
    transform 1s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Pause hover effects while the page is scrolling (main.js toggles the class). */
html.is-scrolling main {
  pointer-events: none;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
