@layer reset, base, primitives, utilities;

/* ---------- RESET ---------- */
@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

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

  body,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  figure,
  blockquote,
  dl,
  dd {
    margin: 0;
  }

  ul,
  ol {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  img,
  picture,
  svg,
  video,
  canvas {
    display: block;
    max-width: 100%;
    height: auto;
  }

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

  button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }

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

  table {
    border-collapse: collapse;
    border-spacing: 0;
  }

  blockquote,
  q {
    quotes: none;
  }

  blockquote::before,
  blockquote::after,
  q::before,
  q::after {
    content: "";
    content: none;
  }

  hr {
    border: none;
    height: 1px;
    background: currentColor;
    opacity: 0.25;
  }

  code,
  kbd,
  samp,
  pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 1em;
  }

  abbr[title] {
    text-decoration: underline dotted;
    cursor: help;
  }

  b,
  strong {
    font-weight: 600;
  }

  small {
    font-size: 0.875em;
  }

  sub,
  sup {
    font-size: 0.75em;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }

  sub {
    bottom: -0.25em;
  }

  sup {
    top: -0.5em;
  }

  fieldset {
    margin: 0;
    padding: 0;
    border: none;
  }

  legend {
    padding: 0;
  }

  [hidden] {
    display: none !important;
  }
}

/* ---------- BASE TOKENS ---------- */
@layer base {
  :root {
    /* colors */
    --color-ink: #171817;
    --color-gold: #b08a4a;
    --color-parchment: #f3ebdd;
    --color-wine: #54282d;
    --color-umber: #55443a;

    --color-ink-rgb: 23, 24, 23;
    --color-gold-rgb: 176, 138, 74;
    --color-parchment-rgb: 243, 235, 221;
    --color-wine-rgb: 84, 40, 45;
    --color-umber-rgb: 85, 68, 58;

    --color-ink-soft: #20211f;
    --color-ink-muted: #2a2b28;
    --color-ink-deep: #0f100f;
    --color-parchment-muted: #d8d0c2;
    --color-gold-soft: #c9a66b;
    --color-gold-deep: #8a6a36;
    --color-umber-soft: #6d5a4d;
    --color-umber-deep: #3f322b;

    --color-umber-border: rgba(85, 68, 58, 0.5);
    --color-gold-border: rgba(176, 138, 74, 0.5);

    /* typography */
    --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --text-display-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    --text-display-line-height: 1.05;
    --text-display-tracking: -0.01em;

    --text-h1-size: clamp(2.25rem, 4vw + 0.75rem, 3.5rem);
    --text-h1-line-height: 1.1;
    --text-h1-tracking: -0.005em;

    --text-h2-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
    --text-h2-line-height: 1.15;
    --text-h2-tracking: 0em;

    --text-h3-size: clamp(1.375rem, 2vw + 0.375rem, 1.75rem);
    --text-h3-line-height: 1.2;
    --text-h3-tracking: 0em;

    --text-body-size: 1.125rem;
    --text-body-line-height: 1.6;
    --text-body-tracking: 0em;

    --text-small-size: 0.875rem;
    --text-small-line-height: 1.5;
    --text-small-tracking: 0.01em;

    --text-eyebrow-size: 0.8125rem;
    --text-eyebrow-tracking: 0.02em;

    /* spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-7: 4rem;
    --space-8: 6rem;
    --space-9: 8rem;

    /* containers */
    --container-max: 75rem;
    --container-padding: 1.5rem;
    --container-narrow-max: 65ch;

    /* surfaces */
    --surface-ink: var(--color-ink);
    --surface-ink-soft: var(--color-ink-soft);
    --surface-ink-muted: var(--color-ink-muted);
    --surface-parchment: var(--color-parchment);
    --surface-parchment-muted: var(--color-parchment-muted);
    --surface-wine: var(--color-wine);
    --surface-umber: var(--color-umber);

    /* shadows */
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.4);
    --shadow-deep: 0 30px 60px rgba(0, 0, 0, 0.5);
    --shadow-overlay: inset 0 0 0 1px rgba(0, 0, 0, 0.15), inset 0 -80px 80px -40px rgba(0, 0, 0, 0.55);
    --shadow-focus: 0 0 0 2px var(--color-gold);

    /* corners */
    --radius-none: 0px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 50%;

    /* transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* z-index */
    --z-header: 100;
    --z-overlay: 200;
    --z-popup: 300;
    --z-toast: 400;
  }

  html {
    font-family: var(--font-body);
    font-size: 100%;
    line-height: var(--text-body-line-height);
    color: var(--color-parchment);
    background-color: var(--color-ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body {
    min-height: 100vh;
    min-height: 100dvh;
    font-size: var(--text-body-size);
    letter-spacing: var(--text-body-tracking);
    background-color: var(--color-ink);
    color: var(--color-parchment);
    overflow-x: hidden;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-parchment);
  }

  h1,
  .text-display {
    font-size: var(--text-display-size);
    line-height: var(--text-display-line-height);
    letter-spacing: var(--text-display-tracking);
  }

  h2 {
    font-size: var(--text-h2-size);
    line-height: var(--text-h2-line-height);
    letter-spacing: var(--text-h2-tracking);
  }

  h3 {
    font-size: var(--text-h3-size);
    line-height: var(--text-h3-line-height);
    letter-spacing: var(--text-h3-tracking);
  }

  h4 {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  h5 {
    font-size: 1.0625rem;
    line-height: 1.35;
  }

  h6 {
    font-size: 0.9375rem;
    line-height: 1.4;
    letter-spacing: 0.01em;
  }

  p {
    font-size: var(--text-body-size);
    line-height: var(--text-body-line-height);
    letter-spacing: var(--text-body-tracking);
  }

  small,
  .text-small {
    font-size: var(--text-small-size);
    line-height: var(--text-small-line-height);
    letter-spacing: var(--text-small-tracking);
  }

  a {
    color: var(--color-gold);
    transition: color var(--transition-fast);
  }

  a:hover {
    color: var(--color-gold-soft);
  }

  strong,
  b {
    font-weight: 600;
    color: inherit;
  }

  em,
  i {
    font-style: italic;
  }

  blockquote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(1.375rem, 2vw + 0.5rem, 1.875rem);
    line-height: 1.35;
    color: var(--color-parchment);
  }

  blockquote p {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    font-style: inherit;
    color: inherit;
  }

  cite {
    font-family: var(--font-body);
    font-style: normal;
    font-size: var(--text-small-size);
    letter-spacing: var(--text-small-tracking);
    color: var(--color-gold);
  }

  ul,
  ol {
    font-size: inherit;
    line-height: inherit;
  }

  li {
    font-size: inherit;
    line-height: inherit;
  }

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

  figure {
    margin: 0;
  }

  figcaption {
    font-size: var(--text-small-size);
    line-height: var(--text-small-line-height);
    letter-spacing: var(--text-small-tracking);
    color: var(--color-parchment-muted);
  }

  hr {
    border: none;
    height: 1px;
    background-color: var(--color-gold-border);
    opacity: 1;
  }

  ::selection {
    background-color: var(--color-gold);
    color: var(--color-ink);
  }

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

  /* ---------- VERTICAL RHYTHM RESTORATION ---------- */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  blockquote,
  figure,
  ul,
  ol,
  dl,
  table,
  pre,
  address {
    margin-block-end: var(--space-4);
  }

  h1 {
    margin-block-end: var(--space-5);
  }

  h2 {
    margin-block-end: var(--space-4);
  }

  h3 {
    margin-block-end: var(--space-3);
  }

  h4,
  h5,
  h6 {
    margin-block-end: var(--space-3);
  }

  blockquote {
    margin-block-end: var(--space-5);
  }

  figure {
    margin-block-end: var(--space-4);
  }

  ul,
  ol {
    margin-block-end: var(--space-4);
  }

  dl {
    margin-block-end: var(--space-4);
  }

  table {
    margin-block-end: var(--space-4);
  }

  address {
    font-style: normal;
    margin-block-end: var(--space-4);
  }

  /* ---------- FORMS ---------- */
  label {
    display: block;
    font-size: var(--text-small-size);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-block-end: var(--space-2);
  }

  input,
  textarea,
  select {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-body-size);
    line-height: var(--text-body-line-height);
    color: var(--color-parchment);
    background-color: var(--color-ink-soft);
    border: 1px solid var(--color-umber-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  }

  input::placeholder,
  textarea::placeholder {
    color: var(--color-parchment-muted);
    opacity: 0.7;
  }

  input:focus,
  textarea:focus,
  select:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: var(--shadow-focus);
  }

  textarea {
    min-height: 8rem;
    resize: vertical;
  }

  select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B08A4A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    padding-right: var(--space-6);
    cursor: pointer;
  }

  input[type="checkbox"],
  input[type="radio"] {
    display: inline-block;
    width: auto;
    padding: 0;
    margin: 0;
    accent-color: var(--color-gold);
  }

  input[type="checkbox"] + label,
  input[type="radio"] + label {
    display: inline-block;
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-parchment);
    margin-block-end: 0;
    cursor: pointer;
  }

  fieldset {
    margin-block-end: var(--space-4);
  }

  legend {
    font-size: var(--text-small-size);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-block-end: var(--space-2);
  }
}

/* ---------- PRIMITIVES ---------- */
@layer primitives {
  .container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
  }

  .container-full {
    width: 100%;
    margin-inline: auto;
  }

  .section {
    padding-block: var(--space-8);
  }

  .section-tight {
    padding-block: var(--space-6);
  }

  .section-loose {
    padding-block: var(--space-9);
  }

  .section-divider {
    border-top: 1px solid var(--color-gold-border);
  }

  .eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--text-eyebrow-size);
    font-weight: 500;
    letter-spacing: var(--text-eyebrow-tracking);
    text-transform: uppercase;
    color: var(--color-gold);
    margin-block-end: var(--space-3);
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: var(--radius-none);
    cursor: pointer;
    transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base), transform var(--transition-fast);
    white-space: nowrap;
  }

  .btn:active {
    transform: translateY(1px);
  }

  .btn-primary {
    background-color: var(--color-gold);
    color: var(--color-ink);
    border: 1px solid var(--color-gold);
  }

  .btn-primary:hover {
    background-color: var(--color-wine);
    border-color: var(--color-wine);
    color: var(--color-parchment);
  }

  .btn-secondary {
    background-color: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
  }

  .btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-ink);
  }

  .btn-ghost {
    background-color: transparent;
    color: var(--color-parchment);
    border: 1px solid var(--color-umber-border);
  }

  .btn-ghost:hover {
    background-color: var(--color-ink-muted);
    border-color: var(--color-umber-soft);
    color: var(--color-parchment);
  }

  .btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: 0.8125rem;
  }

  .btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: 1rem;
  }

  .card {
    background-color: var(--surface-parchment);
    color: var(--color-ink);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: var(--space-5);
  }

  .card-dark {
    background-color: var(--surface-ink-soft);
    color: var(--color-parchment);
    border: 1px solid var(--color-umber-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: var(--space-5);
  }

  .card-wine {
    background-color: var(--surface-wine);
    color: var(--color-parchment);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: var(--space-5);
  }

  .card > :last-child,
  .card-dark > :last-child,
  .card-wine > :last-child {
    margin-block-end: 0;
  }

  .surface-parchment {
    background-color: var(--surface-parchment);
    color: var(--color-ink);
  }

  .surface-ink {
    background-color: var(--surface-ink);
    color: var(--color-parchment);
  }

  .surface-ink-soft {
    background-color: var(--surface-ink-soft);
    color: var(--color-parchment);
  }

  .surface-wine {
    background-color: var(--surface-wine);
    color: var(--color-parchment);
  }

  .surface-umber {
    background-color: var(--surface-umber);
    color: var(--color-parchment);
  }

  .text-gold {
    color: var(--color-gold);
  }

  .text-parchment {
    color: var(--color-parchment);
  }

  .text-ink {
    color: var(--color-ink);
  }

  .text-wine {
    color: var(--color-wine);
  }

  .text-umber {
    color: var(--color-umber);
  }

  .text-muted {
    color: var(--color-parchment-muted);
  }

  .text-center {
    text-align: center;
  }

  .text-left {
    text-align: left;
  }

  .text-right {
    text-align: right;
  }

  .text-uppercase {
    text-transform: uppercase;
  }

  .text-italic {
    font-style: italic;
  }

  .text-serif {
    font-family: var(--font-heading);
  }

  .text-sans {
    font-family: var(--font-body);
  }

  .text-display {
    font-family: var(--font-heading);
    font-size: var(--text-display-size);
    line-height: var(--text-display-line-height);
    letter-spacing: var(--text-display-tracking);
    font-weight: 500;
  }

  .text-h1 {
    font-family: var(--font-heading);
    font-size: var(--text-h1-size);
    line-height: var(--text-h1-line-height);
    letter-spacing: var(--text-h1-tracking);
    font-weight: 500;
  }

  .text-h2 {
    font-family: var(--font-heading);
    font-size: var(--text-h2-size);
    line-height: var(--text-h2-line-height);
    letter-spacing: var(--text-h2-tracking);
    font-weight: 500;
  }

  .text-h3 {
    font-family: var(--font-heading);
    font-size: var(--text-h3-size);
    line-height: var(--text-h3-line-height);
    letter-spacing: var(--text-h3-tracking);
    font-weight: 500;
  }

  .text-body {
    font-family: var(--font-body);
    font-size: var(--text-body-size);
    line-height: var(--text-body-line-height);
    letter-spacing: var(--text-body-tracking);
  }

  .text-small {
    font-family: var(--font-body);
    font-size: var(--text-small-size);
    line-height: var(--text-small-line-height);
    letter-spacing: var(--text-small-tracking);
  }

  .text-eyebrow {
    font-family: var(--font-body);
    font-size: var(--text-eyebrow-size);
    font-weight: 500;
    letter-spacing: var(--text-eyebrow-tracking);
    text-transform: uppercase;
    color: var(--color-gold);
  }

  .lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-parchment-muted);
  }

  .link-underline {
    position: relative;
    color: var(--color-gold);
    transition: color var(--transition-fast);
  }

  .link-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background-color: var(--color-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
  }

  .link-underline:hover {
    color: var(--color-gold-soft);
  }

  .link-underline:hover::after {
    transform: scaleX(1);
  }

  .divider-ornament {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--color-gold);
  }

  .divider-ornament::before,
  .divider-ornament::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--color-gold-border);
  }

  .divider-ornament::after {
    content: "";
  }

  .divider-ornament-diamond {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--color-gold);
    transform: rotate(45deg);
    flex-shrink: 0;
  }

  .overlay-gradient {
    position: relative;
  }

  .overlay-gradient::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(23, 24, 23, 0.85) 0%, rgba(23, 24, 23, 0.25) 50%, rgba(23, 24, 23, 0.05) 100%);
    pointer-events: none;
  }

  .overlay-wine {
    position: relative;
  }

  .overlay-wine::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(84, 40, 45, 0.7) 0%, rgba(23, 24, 23, 0.4) 100%);
    pointer-events: none;
  }

  .ratio-3-2 {
    aspect-ratio: 3 / 2;
  }

  .ratio-16-9 {
    aspect-ratio: 16 / 9;
  }

  .ratio-1-1 {
    aspect-ratio: 1 / 1;
  }

  .object-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .img-zoom {
    overflow: hidden;
  }

  .img-zoom img {
    transition: transform var(--transition-slow);
  }

  .img-zoom:hover img {
    transform: scale(1.02);
  }

  .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: absolute;
    top: -100%;
    left: var(--space-4);
    z-index: var(--z-toast);
    padding: var(--space-3) var(--space-4);
    background-color: var(--color-gold);
    color: var(--color-ink);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: top var(--transition-base);
  }

  .skip-link:focus {
    top: var(--space-4);
  }
}

/* ---------- UTILITIES ---------- */
@layer utilities {
  .flex {
    display: flex;
  }

  .flex-wrap {
    flex-wrap: wrap;
  }

  .flex-nowrap {
    flex-wrap: nowrap;
  }

  .flex-col {
    flex-direction: column;
  }

  .flex-row {
    flex-direction: row;
  }

  .items-start {
    align-items: flex-start;
  }

  .items-center {
    align-items: center;
  }

  .items-end {
    align-items: flex-end;
  }

  .items-stretch {
    align-items: stretch;
  }

  .justify-start {
    justify-content: flex-start;
  }

  .justify-center {
    justify-content: center;
  }

  .justify-end {
    justify-content: flex-end;
  }

  .justify-between {
    justify-content: space-between;
  }

  .justify-around {
    justify-content: space-around;
  }

  .gap-1 {
    gap: var(--space-1);
  }

  .gap-2 {
    gap: var(--space-2);
  }

  .gap-3 {
    gap: var(--space-3);
  }

  .gap-4 {
    gap: var(--space-4);
  }

  .gap-5 {
    gap: var(--space-5);
  }

  .gap-6 {
    gap: var(--space-6);
  }

  .gap-7 {
    gap: var(--space-7);
  }

  .gap-8 {
    gap: var(--space-8);
  }

  .flex-1 {
    flex: 1 1 0%;
    min-width: 0;
  }

  .flex-auto {
    flex: 1 1 auto;
    min-width: 0;
  }

  .flex-none {
    flex: none;
  }

  .grow {
    flex-grow: 1;
  }

  .grow-0 {
    flex-grow: 0;
  }

  .shrink {
    flex-shrink: 1;
  }

  .shrink-0 {
    flex-shrink: 0;
  }

  .basis-auto {
    flex-basis: auto;
  }

  .basis-0 {
    flex-basis: 0%;
  }

  .self-start {
    align-self: flex-start;
  }

  .self-center {
    align-self: center;
  }

  .self-end {
    align-self: flex-end;
  }

  .self-stretch {
    align-self: stretch;
  }

  .m-0 {
    margin: 0;
  }

  .mt-0 {
    margin-block-start: 0;
  }

  .mb-0 {
    margin-block-end: 0;
  }

  .mt-1 {
    margin-block-start: var(--space-1);
  }

  .mb-1 {
    margin-block-end: var(--space-1);
  }

  .mt-2 {
    margin-block-start: var(--space-2);
  }

  .mb-2 {
    margin-block-end: var(--space-2);
  }

  .mt-3 {
    margin-block-start: var(--space-3);
  }

  .mb-3 {
    margin-block-end: var(--space-3);
  }

  .mt-4 {
    margin-block-start: var(--space-4);
  }

  .mb-4 {
    margin-block-end: var(--space-4);
  }

  .mt-5 {
    margin-block-start: var(--space-5);
  }

  .mb-5 {
    margin-block-end: var(--space-5);
  }

  .mt-6 {
    margin-block-start: var(--space-6);
  }

  .mb-6 {
    margin-block-end: var(--space-6);
  }

  .mt-7 {
    margin-block-start: var(--space-7);
  }

  .mb-7 {
    margin-block-end: var(--space-7);
  }

  .mt-8 {
    margin-block-start: var(--space-8);
  }

  .mb-8 {
    margin-block-end: var(--space-8);
  }

  .p-0 {
    padding: 0;
  }

  .pt-0 {
    padding-block-start: 0;
  }

  .pb-0 {
    padding-block-end: 0;
  }

  .p-1 {
    padding: var(--space-1);
  }

  .p-2 {
    padding: var(--space-2);
  }

  .p-3 {
    padding: var(--space-3);
  }

  .p-4 {
    padding: var(--space-4);
  }

  .p-5 {
    padding: var(--space-5);
  }

  .p-6 {
    padding: var(--space-6);
  }

  .p-7 {
    padding: var(--space-7);
  }

  .p-8 {
    padding: var(--space-8);
  }

  .w-full {
    width: 100%;
  }

  .h-full {
    height: 100%;
  }

  .min-w-0 {
    min-width: 0;
  }

  .overflow-hidden {
    overflow: hidden;
  }

  .relative {
    position: relative;
  }

  .absolute {
    position: absolute;
  }

  .sticky {
    position: sticky;
    top: 0;
  }

  .z-1 {
    z-index: 1;
  }

  .z-2 {
    z-index: 2;
  }

  .z-3 {
    z-index: 3;
  }

  .hidden {
    display: none;
  }

  .block {
    display: block;
  }

  .inline-block {
    display: inline-block;
  }

  .inline-flex {
    display: inline-flex;
  }

  .grid {
    display: grid;
  }

  .grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .col-span-1 {
    grid-column: span 1 / span 1;
  }

  .col-span-2 {
    grid-column: span 2 / span 2;
  }

  .col-span-3 {
    grid-column: span 3 / span 3;
  }

  .col-span-4 {
    grid-column: span 4 / span 4;
  }

  .col-span-full {
    grid-column: 1 / -1;
  }

  .col-start-1 {
    grid-column-start: 1;
  }

  .col-start-2 {
    grid-column-start: 2;
  }

  .col-start-3 {
    grid-column-start: 3;
  }

  .col-start-4 {
    grid-column-start: 4;
  }

  .row-span-1 {
    grid-row: span 1 / span 1;
  }

  .row-span-2 {
    grid-row: span 2 / span 2;
  }

  .row-span-3 {
    grid-row: span 3 / span 3;
  }

  .row-span-full {
    grid-row: 1 / -1;
  }

  .row-start-1 {
    grid-row-start: 1;
  }

  .row-start-2 {
    grid-row-start: 2;
  }

  .row-start-3 {
    grid-row-start: 3;
  }

  .row-start-4 {
    grid-row-start: 4;
  }

  .grid-flow-row {
    grid-auto-flow: row;
  }

  .grid-flow-col {
    grid-auto-flow: column;
  }

  .grid-flow-dense {
    grid-auto-flow: dense;
  }

  .auto-cols-fr {
    grid-auto-columns: minmax(0, 1fr);
  }

  .auto-rows-fr {
    grid-auto-rows: minmax(0, 1fr);
  }

  .justify-items-start {
    justify-items: start;
  }

  .justify-items-center {
    justify-items: center;
  }

  .justify-items-end {
    justify-items: end;
  }

  .justify-items-stretch {
    justify-items: stretch;
  }

  .items-grid-start {
    align-items: start;
  }

  .items-grid-center {
    align-items: center;
  }

  .items-grid-end {
    align-items: end;
  }

  .items-grid-stretch {
    align-items: stretch;
  }

  .place-items-center {
    place-items: center;
  }

  .place-items-start {
    place-items: start;
  }

  .place-items-end {
    place-items: end;
  }

  .place-items-stretch {
    place-items: stretch;
  }

  .place-content-center {
    place-content: center;
  }

  .place-content-start {
    place-content: start;
  }

  .place-content-end {
    place-content: end;
  }

  .place-content-between {
    place-content: space-between;
  }

  .place-content-around {
    place-content: space-around;
  }

  .place-content-stretch {
    place-content: stretch;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 64rem) {
  :root {
    --container-padding: 1.25rem;
  }

  .section {
    padding-block: var(--space-7);
  }

  .section-loose {
    padding-block: var(--space-8);
  }
}

@media (max-width: 48rem) {
  :root {
    --container-padding: 1rem;
  }

  .section {
    padding-block: var(--space-6);
  }

  .section-tight {
    padding-block: var(--space-5);
  }

  .section-loose {
    padding-block: var(--space-7);
  }

  .btn {
    padding: var(--space-3) var(--space-4);
  }

  .btn-lg {
    padding: var(--space-3) var(--space-5);
  }

  .card,
  .card-dark,
  .card-wine {
    padding: var(--space-4);
  }
}

@media (max-width: 30rem) {
  .section {
    padding-block: var(--space-5);
  }

  .section-loose {
    padding-block: var(--space-6);
  }
}

@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;
  }
}