@layer reset, tokens, base, primitives;

@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
  }

  body {
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
  }

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

  input, button, textarea, select {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    border-radius: 0;
    outline: none;
  }

  button {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
  }

  textarea {
    resize: vertical;
  }

  ul, ol {
    list-style: none;
  }

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

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

  blockquote, q {
    quotes: none;
  }

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

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  address {
    font-style: normal;
  }

  [hidden] {
    display: none !important;
  }

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

  @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;
      transition-delay: 0ms !important;
    }
  }
}

@layer tokens {
  :root {
    --color-warm-white: #FAF8F3;
    --color-walnut-brown: #785B46;
    --color-deep-graphite: #30343A;
    --color-sandy-beige: #E5D8C7;
    --color-steel-blue: #7796A7;
    --color-copper-accent: #C58B62;
    --color-graphite-soft: #5C6068;
    --color-walnut-deep: #4A382B;

    --color-border-light: rgba(120, 91, 70, 0.22);
    --color-border-dark: rgba(250, 248, 243, 0.16);
    --color-divider-light: rgba(120, 91, 70, 0.25);
    --color-divider-dark: rgba(74, 56, 43, 0.35);
    --color-focus-ring: var(--color-steel-blue);
    --color-image-overlay-warm: rgba(120, 91, 70, 0.08);
    --color-image-overlay-dark: rgba(48, 52, 58, 0.7);

    --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

    --text-display-size: clamp(2.5rem, 5vw + 1rem, 3.5rem);
    --text-display-line-height: 1.05;
    --text-display-letter-spacing: -0.02em;
    --text-display-weight: 600;

    --text-h1-size: clamp(2.25rem, 4vw + 0.75rem, 2.75rem);
    --text-h1-line-height: 1.1;
    --text-h1-letter-spacing: -0.015em;
    --text-h1-weight: 600;

    --text-h2-size: clamp(1.75rem, 3vw + 0.5rem, 2.125rem);
    --text-h2-line-height: 1.15;
    --text-h2-letter-spacing: -0.01em;
    --text-h2-weight: 600;

    --text-h3-size: clamp(1.375rem, 2vw + 0.375rem, 1.625rem);
    --text-h3-line-height: 1.2;
    --text-h3-letter-spacing: -0.005em;
    --text-h3-weight: 500;

    --text-h4-size: 1.25rem;
    --text-h4-line-height: 1.3;
    --text-h4-letter-spacing: 0;
    --text-h4-weight: 600;

    --text-body-large-size: 1.125rem;
    --text-body-large-line-height: 1.65;
    --text-body-large-letter-spacing: 0;
    --text-body-large-weight: 400;

    --text-body-size: 1rem;
    --text-body-line-height: 1.65;
    --text-body-letter-spacing: 0;
    --text-body-weight: 400;

    --text-small-size: 0.875rem;
    --text-small-line-height: 1.5;
    --text-small-letter-spacing: 0.01em;
    --text-small-weight: 400;

    --text-caption-size: 0.75rem;
    --text-caption-line-height: 1.4;
    --text-caption-letter-spacing: 0.06em;
    --text-caption-weight: 500;

    --text-button-size: 0.9375rem;
    --text-button-line-height: 1;
    --text-button-letter-spacing: 0.04em;
    --text-button-weight: 600;

    --space-2xs: 0.25rem;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    --container-standard: 75rem;
    --container-wide: 82.5rem;
    --page-padding-mobile: 1.5rem;
    --page-padding-tablet: 2.5rem;
    --page-padding-desktop: 4rem;
    --section-gap-mobile: 4rem;
    --section-gap-tablet: 6rem;
    --section-gap-desktop: 8rem;

    --radius-default: 2px;
    --radius-media: 2px;
    --radius-badge: 2px;
    --radius-circle: 50%;

    --shadow-card: 0 8px 24px rgba(48, 52, 58, 0.06);
    --shadow-card-raised: 0 10px 32px rgba(48, 52, 58, 0.1);

    --transition-fast: 120ms ease-out;
    --transition-base: 160ms ease-out;
    --transition-menu: 220ms ease-out;
    --transition-reveal: 300ms ease-out;
  }
}

@layer base {
  html {
    font-family: var(--font-body);
    font-size: 100%;
    color: var(--color-deep-graphite);
    background-color: var(--color-warm-white);
  }

  body {
    font-size: var(--text-body-size);
    font-weight: var(--text-body-weight);
    line-height: var(--text-body-line-height);
    letter-spacing: var(--text-body-letter-spacing);
    color: var(--color-deep-graphite);
    background-color: var(--color-warm-white);
    overflow-x: hidden;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-walnut-brown);
    text-wrap: balance;
  }

  h1 {
    font-size: var(--text-h1-size);
    line-height: var(--text-h1-line-height);
    letter-spacing: var(--text-h1-letter-spacing);
    font-weight: var(--text-h1-weight);
    margin-block-end: var(--space-lg);
  }

  h2 {
    font-size: var(--text-h2-size);
    line-height: var(--text-h2-line-height);
    letter-spacing: var(--text-h2-letter-spacing);
    font-weight: var(--text-h2-weight);
    margin-block-end: var(--space-md);
  }

  h3 {
    font-size: var(--text-h3-size);
    line-height: var(--text-h3-line-height);
    letter-spacing: var(--text-h3-letter-spacing);
    font-weight: var(--text-h3-weight);
    margin-block-end: var(--space-sm);
  }

  h4 {
    font-family: var(--font-body);
    font-size: var(--text-h4-size);
    line-height: var(--text-h4-line-height);
    letter-spacing: var(--text-h4-letter-spacing);
    font-weight: var(--text-h4-weight);
    color: var(--color-deep-graphite);
    margin-block-end: var(--space-sm);
  }

  h5, h6 {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-deep-graphite);
    margin-block-end: var(--space-xs);
  }

  p {
    margin-block-end: var(--space-md);
    text-wrap: pretty;
  }

  p:last-child {
    margin-block-end: 0;
  }

  a {
    color: var(--color-steel-blue);
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
  }

  a:hover {
    color: var(--color-copper-accent);
    text-decoration-color: var(--color-copper-accent);
  }

  a:focus-visible {
    outline: 2px solid var(--color-focus-ring);
    outline-offset: 2px;
    border-radius: var(--radius-default);
  }

  ul, ol {
    margin-block-end: var(--space-md);
    padding-inline-start: var(--space-lg);
  }

  ul {
    list-style: disc;
  }

  ol {
    list-style: decimal;
  }

  ul:last-child, ol:last-child {
    margin-block-end: 0;
  }

  li {
    margin-block-end: var(--space-xs);
  }

  li:last-child {
    margin-block-end: 0;
  }

  blockquote {
    margin-block-end: var(--space-md);
    padding-inline-start: var(--space-lg);
    border-inline-start: 2px solid var(--color-walnut-brown);
    color: var(--color-graphite-soft);
    font-style: italic;
  }

  blockquote:last-child {
    margin-block-end: 0;
  }

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

  figure:last-child {
    margin-block-end: 0;
  }

  figcaption {
    font-size: var(--text-caption-size);
    line-height: var(--text-caption-line-height);
    letter-spacing: var(--text-caption-letter-spacing);
    font-weight: var(--text-caption-weight);
    text-transform: uppercase;
    color: var(--color-graphite-soft);
    margin-block-start: var(--space-xs);
  }

  hr {
    border: none;
    border-block-start: 1px solid var(--color-divider-light);
    margin-block: var(--space-2xl);
  }

  code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.875em;
  }

  pre {
    background-color: var(--color-sandy-beige);
    padding: var(--space-md);
    border-radius: var(--radius-default);
    overflow-x: auto;
    margin-block-end: var(--space-md);
  }

  pre:last-child {
    margin-block-end: 0;
  }

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

  strong, b {
    font-weight: 600;
  }

  em, i {
    font-style: italic;
  }

  mark {
    background-color: var(--color-copper-accent);
    color: var(--color-deep-graphite);
    padding-inline: 0.125em;
  }

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

  label {
    display: block;
    font-size: var(--text-small-size);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-deep-graphite);
    margin-block-end: var(--space-xs);
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  input[type="number"],
  input[type="date"],
  input[type="time"],
  input[type="password"],
  select,
  textarea {
    display: block;
    width: 100%;
    font-family: var(--font-body);
    font-size: var(--text-body-size);
    line-height: var(--text-body-line-height);
    color: var(--color-deep-graphite);
    background-color: var(--color-warm-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-default);
    padding: var(--space-sm) var(--space-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  }

  input[type="text"]::placeholder,
  input[type="email"]::placeholder,
  input[type="tel"]::placeholder,
  input[type="url"]::placeholder,
  input[type="search"]::placeholder,
  input[type="number"]::placeholder,
  input[type="date"]::placeholder,
  input[type="time"]::placeholder,
  input[type="password"]::placeholder,
  select::placeholder,
  textarea::placeholder {
    color: var(--color-graphite-soft);
    opacity: 0.7;
  }

  input[type="text"]:focus,
  input[type="email"]:focus,
  input[type="tel"]:focus,
  input[type="url"]:focus,
  input[type="search"]:focus,
  input[type="number"]:focus,
  input[type="date"]:focus,
  input[type="time"]:focus,
  input[type="password"]:focus,
  select:focus,
  textarea:focus {
    border-color: var(--color-copper-accent);
    box-shadow: 0 0 0 2px rgba(197, 139, 98, 0.25);
  }

  select {
    appearance: none;
    -webkit-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='%23785B46' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    padding-inline-end: var(--space-2xl);
  }

  textarea {
    min-height: 8rem;
  }

  input[type="checkbox"],
  input[type="radio"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--color-copper-accent);
    vertical-align: middle;
    margin-inline-end: var(--space-xs);
    flex-shrink: 0;
  }

  fieldset {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-default);
    padding: var(--space-lg);
    margin-block-end: var(--space-md);
  }

  fieldset:last-child {
    margin-block-end: 0;
  }

  legend {
    font-size: var(--text-small-size);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-deep-graphite);
    padding-inline: var(--space-xs);
  }

  ::selection {
    background-color: var(--color-copper-accent);
    color: var(--color-deep-graphite);
  }

  @media (max-width: 47.9375rem) {
    h1 {
      margin-block-end: var(--space-md);
    }

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

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

    p {
      margin-block-end: var(--space-sm);
    }

    ul, ol {
      margin-block-end: var(--space-sm);
      padding-inline-start: var(--space-md);
    }

    blockquote {
      margin-block-end: var(--space-sm);
      padding-inline-start: var(--space-md);
    }

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

    hr {
      margin-block: var(--space-xl);
    }
  }
}

@layer primitives {
  .container {
    width: 100%;
    max-width: var(--container-standard);
    margin-inline: auto;
    padding-inline: var(--page-padding-mobile);
  }

  .container--wide {
    max-width: var(--container-wide);
  }

  @media (min-width: 48rem) {
    .container {
      padding-inline: var(--page-padding-tablet);
    }
  }

  @media (min-width: 64rem) {
    .container {
      padding-inline: var(--page-padding-desktop);
    }
  }

  .section {
    padding-block: var(--section-gap-mobile);
  }

  @media (min-width: 48rem) {
    .section {
      padding-block: var(--section-gap-tablet);
    }
  }

  @media (min-width: 64rem) {
    .section {
      padding-block: var(--section-gap-desktop);
    }
  }

  .section--flush {
    padding-block: 0;
  }

  .surface-warm-white {
    background-color: var(--color-warm-white);
  }

  .surface-sandy-beige {
    background-color: var(--color-sandy-beige);
  }

  .surface-deep-graphite {
    background-color: var(--color-deep-graphite);
    color: var(--color-warm-white);
  }

  .surface-deep-graphite h1,
  .surface-deep-graphite h2,
  .surface-deep-graphite h3,
  .surface-deep-graphite h4,
  .surface-deep-graphite h5,
  .surface-deep-graphite h6 {
    color: var(--color-warm-white);
  }

  .surface-deep-graphite p,
  .surface-deep-graphite li,
  .surface-deep-graphite blockquote {
    color: var(--color-sandy-beige);
  }

  .surface-deep-graphite a {
    color: var(--color-steel-blue);
  }

  .surface-deep-graphite a:hover {
    color: var(--color-copper-accent);
  }

  .surface-deep-graphite hr {
    border-block-start-color: var(--color-divider-dark);
  }

  .card {
    background-color: var(--color-sandy-beige);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-default);
    padding: var(--space-lg);
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
  }

  .card:hover {
    box-shadow: var(--shadow-card-raised);
    transform: translateY(-2px);
  }

  .card--featured {
    border-block-start: 2px solid var(--color-walnut-brown);
  }

  .card--warm-white {
    background-color: var(--color-warm-white);
  }

  .card--deep-graphite {
    background-color: var(--color-deep-graphite);
    border-color: var(--color-border-dark);
    color: var(--color-warm-white);
  }

  .card--deep-graphite h1,
  .card--deep-graphite h2,
  .card--deep-graphite h3,
  .card--deep-graphite h4,
  .card--deep-graphite h5,
  .card--deep-graphite h6 {
    color: var(--color-warm-white);
  }

  .card--deep-graphite p,
  .card--deep-graphite li,
  .card--deep-graphite blockquote {
    color: var(--color-sandy-beige);
  }

  .card--deep-graphite a {
    color: var(--color-steel-blue);
  }

  .card--deep-graphite a:hover {
    color: var(--color-copper-accent);
  }

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

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-family: var(--font-body);
    font-size: var(--text-button-size);
    line-height: var(--text-button-line-height);
    letter-spacing: var(--text-button-letter-spacing);
    font-weight: var(--text-button-weight);
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius-default);
    padding: var(--space-md) var(--space-lg);
    min-height: 3rem;
    cursor: pointer;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
    white-space: nowrap;
  }

  .btn--primary {
    background-color: var(--color-copper-accent);
    color: var(--color-deep-graphite)!important;
    border: 1px solid var(--color-copper-accent);
  }

  .btn--primary:hover {
    background-color: #B57C55;
    border-color: #B57C55;
    color: var(--color-deep-graphite)!important;
    text-decoration: none;
  }

  .btn--primary:focus-visible {
    outline: 2px solid var(--color-steel-blue);
    outline-offset: 2px;
  }

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

  .btn--secondary:hover {
    background-color: var(--color-walnut-brown);
    color: var(--color-warm-white);
    text-decoration: none;
  }

  .btn--secondary:focus-visible {
    outline: 2px solid var(--color-steel-blue);
    outline-offset: 2px;
  }

  .btn--full {
    width: 100%;
  }

  .btn--small {
    min-height: 2.5rem;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8125rem;
  }

  .btn--large {
    min-height: 3.5rem;
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
  }

  .btn--icon {
    width: 3rem;
    height: 3rem;
    padding: 0;
    border-radius: var(--radius-circle);
  }

  .btn--icon.btn--small {
    width: 2.5rem;
    height: 2.5rem;
  }

  .btn--icon.btn--large {
    width: 3.5rem;
    height: 3.5rem;
  }

  .btn--disabled,
  .btn[disabled],
  .btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
  }

  .badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    font-size: var(--text-caption-size);
    line-height: var(--text-caption-line-height);
    letter-spacing: var(--text-caption-letter-spacing);
    font-weight: var(--text-caption-weight);
    text-transform: uppercase;
    color: var(--color-walnut-brown);
    background-color: transparent;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-badge);
    padding: var(--space-2xs) var(--space-sm);
    white-space: nowrap;
  }

  .badge--copper {
    color: var(--color-deep-graphite);
    background-color: var(--color-copper-accent);
    border-color: var(--color-copper-accent);
  }

  .badge--steel {
    color: var(--color-warm-white);
    background-color: var(--color-steel-blue);
    border-color: var(--color-steel-blue);
  }

  .badge--walnut {
    color: var(--color-warm-white);
    background-color: var(--color-walnut-brown);
    border-color: var(--color-walnut-brown);
  }

  .badge--outline {
    color: var(--color-walnut-brown);
    background-color: transparent;
    border-color: var(--color-walnut-brown);
  }

  .divider {
    border: none;
    border-block-start: 1px solid var(--color-divider-light);
    margin-block: var(--space-lg);
  }

  .divider--walnut {
    border-block-start-color: var(--color-walnut-brown);
    border-block-start-width: 2px;
  }

  .divider--dark {
    border-block-start-color: var(--color-divider-dark);
  }

  .divider--flush {
    margin-block: 0;
  }

  .rule-heading {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
  }

  .rule-heading::before {
    content: "";
    display: block;
    width: 3rem;
    height: 1px;
    background-color: var(--color-walnut-brown);
  }

  .rule-heading--copper::before {
    background-color: var(--color-copper-accent);
  }

  .rule-heading--steel::before {
    background-color: var(--color-steel-blue);
  }

  .rule-heading--centered {
    align-items: center;
    text-align: center;
  }

  .caption {
    font-size: var(--text-caption-size);
    line-height: var(--text-caption-line-height);
    letter-spacing: var(--text-caption-letter-spacing);
    font-weight: var(--text-caption-weight);
    text-transform: uppercase;
    color: var(--color-steel-blue);
  }

  .caption--walnut {
    color: var(--color-walnut-brown);
  }

  .caption--copper {
    color: var(--color-copper-accent);
  }

  .caption--graphite {
    color: var(--color-graphite-soft);
  }

  .caption--light {
    color: var(--color-sandy-beige);
  }

  .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-letter-spacing);
    font-weight: var(--text-display-weight);
    color: var(--color-walnut-brown);
    text-wrap: balance;
  }

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

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

  .text-caption {
    font-size: var(--text-caption-size);
    line-height: var(--text-caption-line-height);
    letter-spacing: var(--text-caption-letter-spacing);
    font-weight: var(--text-caption-weight);
    text-transform: uppercase;
  }

  .text-walnut {
    color: var(--color-walnut-brown);
  }

  .text-graphite {
    color: var(--color-deep-graphite);
  }

  .text-graphite-soft {
    color: var(--color-graphite-soft);
  }

  .text-steel {
    color: var(--color-steel-blue);
  }

  .text-copper {
    color: var(--color-copper-accent);
  }

  .text-warm-white {
    color: var(--color-warm-white);
  }

  .text-sandy-beige {
    color: var(--color-sandy-beige);
  }

  .flex {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
  }

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

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

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

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

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

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

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

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

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

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

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

  .flex--justify-evenly {
    justify-content: space-evenly;
  }

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

  .flex--gap-xs {
    gap: var(--space-xs);
  }

  .flex--gap-sm {
    gap: var(--space-sm);
  }

  .flex--gap-md {
    gap: var(--space-md);
  }

  .flex--gap-lg {
    gap: var(--space-lg);
  }

  .flex--gap-xl {
    gap: var(--space-xl);
  }

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

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

  .flex--gap-none {
    gap: 0;
  }

  .flex > * {
    min-width: 0;
    flex-shrink: 1;
  }

  .flex > img,
  .flex > picture,
  .flex > video,
  .flex > svg {
    flex-shrink: 0;
  }

  .flex-item--grow {
    flex-grow: 1;
  }

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

  .flex-item--full {
    flex-basis: 100%;
  }

  .flex-item--half {
    flex-basis: calc(50% - var(--space-md) / 2);
  }

  .flex-item--third {
    flex-basis: calc(33.333% - var(--space-md) * 2 / 3);
  }

  .flex-item--quarter {
    flex-basis: calc(25% - var(--space-md) * 3 / 4);
  }

  @media (max-width: 47.9375rem) {
    .flex-item--half,
    .flex-item--third,
    .flex-item--quarter {
      flex-basis: 100%;
    }
  }

  .grid {
    display: grid;
    gap: var(--space-lg);
  }

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

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

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

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

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

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

  .grid--gap-xs {
    gap: var(--space-xs);
  }

  .grid--gap-sm {
    gap: var(--space-sm);
  }

  .grid--gap-md {
    gap: var(--space-md);
  }

  .grid--gap-lg {
    gap: var(--space-lg);
  }

  .grid--gap-xl {
    gap: var(--space-xl);
  }

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

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

  .grid--gap-none {
    gap: 0;
  }

  .grid > * {
    min-width: 0;
  }

  @media (max-width: 63.9375rem) {
    .grid--4 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

  @media (max-width: 47.9375rem) {
    .grid--2,
    .grid--3,
    .grid--4,
    .grid--6,
    .grid--12 {
      grid-template-columns: 1fr;
    }
  }

  .visually-hidden {
    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;
    top: var(--space-sm);
    left: var(--space-sm);
    z-index: 9999;
    background-color: var(--color-warm-white);
    color: var(--color-deep-graphite);
    border: 1px solid var(--color-walnut-brown);
    border-radius: var(--radius-default);
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-small-size);
    font-weight: 500;
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform var(--transition-fast);
  }

  .skip-link:focus {
    transform: translateY(0);
  }

  .image-overlay-warm {
    position: relative;
  }

  .image-overlay-warm::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--color-image-overlay-warm);
    pointer-events: none;
    border-radius: inherit;
  }

  .image-overlay-dark {
    position: relative;
  }

  .image-overlay-dark::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(48, 52, 58, 0) 0%,
      rgba(48, 52, 58, 0.35) 30%,
      var(--color-image-overlay-dark) 70%
    );
    pointer-events: none;
    border-radius: inherit;
  }

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

  .ratio-4-5 {
    aspect-ratio: 4 / 5;
  }

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

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

  .ratio-3-2 img,
  .ratio-4-5 img,
  .ratio-16-9 img,
  .ratio-1-1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .content-list {
    list-style: none;
    padding-inline-start: 0;
    margin-block-end: 0;
  }

  .content-list > li {
    margin-block-end: var(--space-sm);
    padding-inline-start: var(--space-lg);
    position: relative;
  }

  .content-list > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 0.5rem;
    height: 1px;
    background-color: var(--color-walnut-brown);
  }

  .content-list > li:last-child {
    margin-block-end: 0;
  }

  .content-list--copper > li::before {
    background-color: var(--color-copper-accent);
  }

  .content-list--steel > li::before {
    background-color: var(--color-steel-blue);
  }

  .content-list--check > li {
    padding-inline-start: var(--space-xl);
  }

  .content-list--check > li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    background: none;
    color: var(--color-copper-accent);
    font-weight: 600;
    font-size: 0.875em;
  }

  .content-list--flush > li {
    margin-block-end: 0;
  }

  .content-list--compact > li {
    margin-block-end: var(--space-2xs);
    padding-inline-start: var(--space-md);
  }
}