/* -------------------------------------------- */
/*  ROOT VARIABLES                              */
/* -------------------------------------------- */
:root {
  --black: #000;
  --white: #fff;
  --text: #0c0c0c;
  --subtle: #4a4a4a;
  --bg: #ffffff;

  --font-serif: "Literata", serif;
  --font-sans: "DM Sans", sans-serif;
  --font-script: "Allura", cursive;

  --max-width: 1400px;
  --section-padding: 100px;
  --container-padding: 20px;

  --bp-md: 1024px;
  --bp-sm: 768px;

  --transition: 0.3s ease;
}

/* -------------------------------------------- */
/*  RESET + BASE                                */
/* -------------------------------------------- */
*, 
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
  overscroll-behavior-y: none;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

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

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  color: inherit;
  font-family: inherit;
}

/* -------------------------------------------- */
/*  LAYOUT HELPERS                               */
/* -------------------------------------------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding) 0;
}

main {
  flex: 1 0 auto;
  display: block;
}

/* -------------------------------------------- */
/*  BUTTONS                                      */
/* -------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn:hover {
  background: transparent;
  color: var(--black);
}

.btn--primary {
  background: var(--black);
  color: var(--white);
}

/* -------------------------------------------- */
/*  AUTO DIVIDER BETWEEN SECTIONS (LUXE)         */
/* -------------------------------------------- */

.section + .section {
  position: relative;
}

.section + .section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.16),
    transparent
  );
  pointer-events: none;
}

/* -------------------------------------------- */
/*  GLOBAL LUXE LINK STYLE                       */
/* -------------------------------------------- */

.link-luxe {
    font-family: var(--font-sans);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: inherit;
    display: inline-block;
    border-bottom: 1px solid transparent;
    padding-bottom: 0;
    opacity: 0.8;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.link-luxe:hover {
    opacity: 1;
    border-color: currentColor;
}

/* -------------------------------------------- */
/*  MEDIA QUERIES                                */
/* -------------------------------------------- */

@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .section + .section::before {
    width: 70%;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
    --container-padding: 16px;
  }

  .section + .section::before {
    width: 80%;
  }
}
