@import url("./v2-tokens.css");

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

.v2-shell {
  --v2-current-gutter: var(--gutter-mobile);
  min-inline-size: 0;
  color: var(--color-text-primary);
  background: var(--color-snow);
  font-family: var(--font-family-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
  letter-spacing: var(--letter-spacing-normal);
  overflow-wrap: break-word;
}

.v2-container {
  inline-size: min(100% - (2 * var(--v2-current-gutter)), var(--layout-content-max));
  margin-inline: auto;
}

.v2-container--wide {
  inline-size: min(100% - (2 * var(--v2-current-gutter)), var(--layout-wide-max));
  margin-inline: auto;
}

.v2-prose {
  max-inline-size: var(--layout-readable-max);
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
}

.v2-prose > * {
  margin-block: 0;
}

.v2-prose > * + * {
  margin-block-start: var(--space-4);
}

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

.v2-stack {
  display: flex;
  flex-direction: column;
  gap: var(--v2-stack-space, var(--space-5));
}

.v2-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--v2-cluster-space, var(--space-3));
}

.v2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--layout-card-min)), 1fr));
  gap: var(--v2-grid-space, var(--space-5));
}

.v2-eyebrow {
  margin: 0;
  color: var(--color-brand-blue);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

.v2-heading {
  margin: 0;
  color: var(--color-text-primary);
  font-family: var(--font-family-serif);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
  letter-spacing: var(--letter-spacing-tight);
}

.v2-heading--xl {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-tight);
}

.v2-heading--lg {
  font-size: var(--font-size-xl);
}

.v2-heading--md {
  font-size: var(--font-size-lg);
}

.v2-lead {
  margin: 0;
  max-inline-size: var(--layout-readable-max);
  color: var(--color-text-secondary);
  font-size: var(--font-size-md);
  line-height: var(--line-height-body);
}

.v2-meta {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-heading);
}

.v2-button {
  display: inline-flex;
  min-block-size: var(--touch-target-min);
  padding: var(--space-2) var(--space-5);
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: var(--border-width) solid transparent;
  border-radius: var(--radius-pill);
  color: var(--color-text-primary);
  background: transparent;
  font: inherit;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-heading);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    color var(--duration-fast) var(--easing-standard),
    background-color var(--duration-fast) var(--easing-standard),
    border-color var(--duration-fast) var(--easing-standard),
    box-shadow var(--duration-fast) var(--easing-standard),
    transform var(--duration-fast) var(--easing-standard);
}

.v2-button--primary {
  color: var(--color-text-inverse);
  background: var(--color-brand-blue);
}

.v2-button--primary:hover {
  background: var(--color-brand-blue-hover);
}

.v2-button--secondary {
  border-color: var(--color-brand-blue);
  color: var(--color-brand-blue);
  background: var(--color-surface);
}

.v2-button--secondary:hover {
  color: var(--color-text-inverse);
  background: var(--color-brand-blue);
}

.v2-button--ghost {
  color: var(--color-brand-blue);
}

.v2-button--ghost:hover {
  background: var(--color-surface-muted);
}

.v2-button:active:not(:disabled, [aria-disabled="true"]) {
  transform: translateY(var(--motion-press-distance));
}

.v2-button:disabled,
.v2-button[aria-disabled="true"] {
  opacity: var(--opacity-disabled);
  cursor: not-allowed;
  pointer-events: none;
}

.v2-button:focus-visible,
.v2-skip-link:focus-visible,
.v2-shell :where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: var(--focus-ring-width) solid var(--color-focus);
  outline-offset: var(--focus-ring-offset);
  box-shadow: var(--focus-ring-shadow);
}

.v2-card {
  min-inline-size: 0;
  overflow: hidden;
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-large);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.v2-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-surface-muted);
}

.v2-card__media > img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.v2-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
}

.v2-card__title {
  margin: 0;
  color: var(--color-text-primary);
  font-family: var(--font-family-serif);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
}

.v2-card__description {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
}

.v2-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block-start: auto;
  padding-block-start: var(--space-2);
}

.v2-surface {
  color: var(--color-text-primary);
  background: var(--color-surface);
}

.v2-surface--muted {
  background: var(--color-surface-muted);
}

.v2-section-header {
  display: grid;
  max-inline-size: var(--layout-readable-max);
  gap: var(--space-3);
  margin-block-end: var(--space-6);
}

.v2-skip-link {
  position: fixed;
  inset-block-start: var(--space-3);
  inset-inline-start: var(--space-3);
  z-index: var(--z-index-modal);
  display: inline-flex;
  min-block-size: var(--touch-target-min);
  padding-inline: var(--space-4);
  align-items: center;
  border-radius: var(--radius-small);
  color: var(--color-text-inverse);
  background: var(--color-brand-navy);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--duration-fast) var(--easing-standard);
}

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

.v2-visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 48rem) {
  .v2-shell {
    --v2-current-gutter: var(--gutter-tablet);
  }

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

@media (min-width: 75rem) {
  .v2-shell {
    --v2-current-gutter: var(--gutter-desktop);
  }
}

@media (prefers-reduced-motion: reduce) {
  .v2-button,
  .v2-skip-link {
    transition: none;
  }
}
