/* ==========================================================================
   THE SECONDHAND MARKET — BASE STYLES
   Reset, typography, layout primitives, buttons, forms, shared components.
   Depends on: tokens.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   RESET
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background: var(--bg-canvas);
  font-feature-settings: 'ss01', 'cv11';
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: var(--text-link);
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

hr {
  border: 0;
  border-top: 1px solid var(--border-hairline);
  margin: var(--space-6) 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* --------------------------------------------------------------------------
   FOCUS
   -------------------------------------------------------------------------- */

:focus {
  outline: none;
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-xs);
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
  font-optical-sizing: auto;
}

.display-xl {
  font-family: var(--font-display);
  font-size: var(--fs-display-xl);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
}

.display-lg {
  font-family: var(--font-display);
  font-size: var(--fs-display-lg);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 96;
}

.display-md {
  font-family: var(--font-display);
  font-size: var(--fs-display-md);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 48;
}

.display-sm {
  font-family: var(--font-display);
  font-size: var(--fs-display-sm);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.eyebrow--accent {
  color: var(--text-accent);
}

.lead {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
  max-width: 60ch;
}

.body {
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text-primary);
}

.meta {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
  letter-spacing: 0;
}

/* Price — the numeric signature of the brand */
.price {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-feature-settings: "tnum", "cv11";
  letter-spacing: -0.015em;
  color: var(--text-primary);
  white-space: nowrap;
}

.price--sm  { font-size: var(--fs-price-sm); }
.price--md  { font-size: var(--fs-price-md); }
.price--lg  { font-size: var(--fs-price-lg); letter-spacing: -0.02em; }
.price--xl  { font-size: var(--fs-price-xl); letter-spacing: -0.025em; }

.price__currency {
  font-weight: var(--fw-medium);
  color: var(--text-tertiary);
  margin-right: 0.15em;
}

.price__strike {
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: var(--fw-medium);
  margin-left: 0.4em;
  font-size: 0.75em;
}

/* --------------------------------------------------------------------------
   LAYOUT
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter-mobile);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--gutter);
  }
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--reading {
  max-width: var(--container-reading);
}

.stack > * + * {
  margin-top: var(--stack-gap, var(--space-4));
}

.stack--xs > * + * { --stack-gap: var(--space-2); }
.stack--sm > * + * { --stack-gap: var(--space-3); }
.stack--md > * + * { --stack-gap: var(--space-4); }
.stack--lg > * + * { --stack-gap: var(--space-6); }
.stack--xl > * + * { --stack-gap: var(--space-8); }
.stack--2xl > * + * { --stack-gap: var(--space-10); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.cluster--sm { gap: var(--space-2); }
.cluster--lg { gap: var(--space-5); }
.cluster--between { justify-content: space-between; }

.section {
  padding-block: var(--space-10);
}

@media (min-width: 1024px) {
  .section {
    padding-block: var(--space-12);
  }
}

.section--tight {
  padding-block: var(--space-8);
}

.section--flush {
  padding-block: 0;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border-hairline);
  border: 0;
}

.divider--strong {
  background: var(--border-strong);
}

/* --------------------------------------------------------------------------
   BUTTONS
   Restrained, editorial. No gradients. No unnecessary shadows.
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0 var(--space-5);
  height: 44px;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  line-height: 1;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background-color var(--dur-quick) var(--ease-standard),
    color var(--dur-quick) var(--ease-standard),
    border-color var(--dur-quick) var(--ease-standard),
    transform var(--dur-quick) var(--ease-standard);
  user-select: none;
  white-space: nowrap;
  text-decoration: none;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

/* Primary — solid ink */
.btn--primary {
  background: var(--ink-900);
  color: var(--ink-50);
  border-color: var(--ink-900);
}

.btn--primary:hover:not(:disabled) {
  background: var(--ink-800);
  border-color: var(--ink-800);
}

[data-theme="dark"] .btn--primary {
  background: var(--ink-50);
  color: var(--ink-900);
  border-color: var(--ink-50);
}

[data-theme="dark"] .btn--primary:hover:not(:disabled) {
  background: var(--ink-100);
}

/* Accent — burnt amber */
.btn--accent {
  background: var(--amber-600);
  color: #fff;
  border-color: var(--amber-600);
}

.btn--accent:hover:not(:disabled) {
  background: var(--amber-700);
  border-color: var(--amber-700);
}

/* Secondary — outline */
.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn--secondary:hover:not(:disabled) {
  background: var(--text-primary);
  color: var(--bg-surface);
}

/* Ghost — minimal */
.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: transparent;
}

.btn--ghost:hover:not(:disabled) {
  background: var(--bg-sunken);
}

/* Link-style button */
.btn--link {
  background: transparent;
  color: var(--text-primary);
  border: 0;
  height: auto;
  padding: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  line-height: 1.4;
}

.btn--link:hover:not(:disabled) {
  color: var(--text-accent);
}

/* Sizes */
.btn--sm {
  height: 36px;
  padding: 0 var(--space-4);
  font-size: var(--fs-sm);
}

.btn--lg {
  height: 52px;
  padding: 0 var(--space-6);
  font-size: var(--fs-md);
}

.btn--xl {
  height: 60px;
  padding: 0 var(--space-8);
  font-size: var(--fs-lg);
}

.btn--block {
  width: 100%;
}

.btn--icon {
  width: 44px;
  padding: 0;
}

.btn--icon.btn--sm { width: 36px; }
.btn--icon.btn--lg { width: 52px; }

/* Loading state */
.btn.is-loading {
  color: transparent !important;
  pointer-events: none;
  position: relative;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  color: inherit;
  animation: btn-spin 720ms linear infinite;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -8px;
  opacity: 0.9;
}

.btn--primary.is-loading::after,
.btn--accent.is-loading::after {
  color: #fff;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   FORM CONTROLS
   -------------------------------------------------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  letter-spacing: 0;
}

.label__required {
  color: var(--amber-600);
  margin-left: 2px;
}

.hint {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

.error-text {
  font-size: var(--fs-xs);
  color: var(--red-600);
  font-weight: var(--fw-medium);
}

.input,
.textarea,
.select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.4;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  transition:
    border-color var(--dur-quick) var(--ease-standard),
    box-shadow var(--dur-quick) var(--ease-standard),
    background-color var(--dur-quick) var(--ease-standard);
  appearance: none;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-muted);
}

.input:hover,
.textarea:hover,
.select:hover {
  border-color: var(--ink-500);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--ink-900);
  box-shadow: 0 0 0 3px rgba(20,20,20,0.08);
}

[data-theme="dark"] .input:focus,
[data-theme="dark"] .textarea:focus,
[data-theme="dark"] .select:focus {
  border-color: var(--ink-50);
  box-shadow: 0 0 0 3px rgba(241,239,232,0.10);
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"],
.select[aria-invalid="true"] {
  border-color: var(--red-600);
  box-shadow: 0 0 0 3px rgba(180,52,42,0.10);
}

.textarea {
  min-height: 120px;
  padding: var(--space-3) var(--space-4);
  line-height: 1.5;
  resize: vertical;
}

.select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235C5C58' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-9);
}

[data-theme="dark"] .select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23B8B6AD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}

/* Input with prefix (₦, @, etc.) */
.input-group {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-surface);
  transition: border-color var(--dur-quick) var(--ease-standard);
}

.input-group:focus-within {
  border-color: var(--ink-900);
  box-shadow: 0 0 0 3px rgba(20,20,20,0.08);
}

.input-group__prefix,
.input-group__suffix {
  display: inline-flex;
  align-items: center;
  padding: 0 var(--space-3);
  background: var(--bg-sunken);
  color: var(--text-secondary);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  border-right: 1px solid var(--border-hairline);
}

.input-group__suffix {
  border-right: 0;
  border-left: 1px solid var(--border-hairline);
}

.input-group .input {
  border: 0;
  border-radius: 0;
}

.input-group .input:focus {
  box-shadow: none;
}

/* Checkbox and Radio */
.checkbox,
.radio {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--fs-base);
  line-height: 1.4;
  color: var(--text-primary);
}

.checkbox input[type="checkbox"],
.radio input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--border-default);
  background: var(--bg-surface);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all var(--dur-quick) var(--ease-standard);
  position: relative;
}

.checkbox input[type="checkbox"] { border-radius: var(--radius-xs); }
.radio input[type="radio"] { border-radius: 50%; }

.checkbox input[type="checkbox"]:hover,
.radio input[type="radio"]:hover {
  border-color: var(--ink-700);
}

.checkbox input[type="checkbox"]:checked,
.radio input[type="radio"]:checked {
  background: var(--ink-900);
  border-color: var(--ink-900);
}

[data-theme="dark"] .checkbox input[type="checkbox"]:checked,
[data-theme="dark"] .radio input[type="radio"]:checked {
  background: var(--ink-50);
  border-color: var(--ink-50);
}

.checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

[data-theme="dark"] .checkbox input[type="checkbox"]:checked::after {
  border-color: var(--ink-900);
}

.radio input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

[data-theme="dark"] .radio input[type="radio"]:checked::after {
  background: var(--ink-900);
}

/* --------------------------------------------------------------------------
   BADGES & CHIPS
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  border-radius: var(--radius-xs);
  background: var(--bg-sunken);
  color: var(--text-secondary);
  line-height: 1.4;
}

.badge--ink       { background: var(--ink-900); color: var(--ink-50); }
.badge--accent    { background: var(--amber-100); color: var(--amber-800); }
.badge--success   { background: var(--green-100); color: var(--green-600); }
.badge--warning   { background: var(--amber-status-bg); color: var(--amber-status); }
.badge--danger    { background: var(--red-100); color: var(--red-600); }
.badge--info      { background: var(--blue-100); color: var(--blue-600); }
.badge--outline   { background: transparent; border: 1px solid var(--border-default); color: var(--text-primary); }

[data-theme="dark"] .badge--ink { background: var(--ink-50); color: var(--ink-900); }
[data-theme="dark"] .badge--accent { color: var(--amber-400); }

.badge--dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* Chip (rounded, larger, used for filters) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 32px;
  padding: 0 var(--space-4);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--dur-quick) var(--ease-standard);
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--ink-700);
}

.chip.is-active {
  background: var(--ink-900);
  color: var(--ink-50);
  border-color: var(--ink-900);
}

[data-theme="dark"] .chip.is-active {
  background: var(--ink-50);
  color: var(--ink-900);
  border-color: var(--ink-50);
}

/* --------------------------------------------------------------------------
   CARDS
   Deliberately minimal — no big shadows.
   -------------------------------------------------------------------------- */

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.card--flat {
  border: 0;
  background: var(--bg-surface-alt);
}

.card__body {
  padding: var(--space-5);
}

.card__body--lg {
  padding: var(--space-6);
}

/* --------------------------------------------------------------------------
   IMAGE SLOT — placeholder for admin-managed images
   -------------------------------------------------------------------------- */

.img-slot {
  position: relative;
  overflow: hidden;
  background: var(--bg-sunken);
  border: 1px dashed var(--border-default);
}

.img-slot:has(img) {
  border-style: solid;
  border-color: var(--border-hairline);
}

.img-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-slot__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  text-align: center;
  padding: var(--space-4);
}

.img-slot:has(img) .img-slot__placeholder {
  display: none;
}

.img-slot__placeholder svg {
  width: 32px;
  height: 32px;
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   SKELETON LOADER
   -------------------------------------------------------------------------- */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-sunken) 0%,
    var(--bg-surface-alt) 50%,
    var(--bg-sunken) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --------------------------------------------------------------------------
   TOAST
   -------------------------------------------------------------------------- */

.toast-region {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
  max-width: calc(100% - var(--space-6));
  width: max-content;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--ink-900);
  color: var(--ink-50);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toast-in var(--dur-base) var(--ease-emphasis);
  max-width: 480px;
}

[data-theme="dark"] .toast {
  background: var(--ink-50);
  color: var(--ink-900);
}

.toast--success { background: var(--green-600); color: #fff; }
.toast--error   { background: var(--red-600);   color: #fff; }

@keyframes toast-in {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* --------------------------------------------------------------------------
   MODAL / DIALOG
   -------------------------------------------------------------------------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14,14,13,0.55);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: fade-in var(--dur-base) var(--ease-standard);
}

.modal-backdrop.is-open {
  display: flex;
}

.modal {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modal-in var(--dur-base) var(--ease-emphasis);
}

.modal__header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal__body {
  padding: var(--space-6);
}

.modal__footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-hairline);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modal-in {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* --------------------------------------------------------------------------
   UTILITY CLASSES
   -------------------------------------------------------------------------- */

.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: -100px;
  left: var(--space-4);
  padding: var(--space-3) var(--space-5);
  background: var(--ink-900);
  color: var(--ink-50);
  z-index: var(--z-tooltip);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--space-4);
}

.hidden { display: none !important; }
.invisible { visibility: hidden !important; }

.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary  { color: var(--text-tertiary); }
.text-muted     { color: var(--text-muted); }
.text-accent    { color: var(--text-accent); }
.text-inverse   { color: var(--text-inverse); }

.bg-canvas    { background: var(--bg-canvas); }
.bg-surface   { background: var(--bg-surface); }
.bg-sunken    { background: var(--bg-sunken); }
.bg-inverse   { background: var(--bg-inverse); color: var(--text-inverse); }
.bg-ink       { background: var(--ink-900); color: var(--ink-50); }
.bg-accent    { background: var(--amber-600); color: #fff; }

.no-wrap { white-space: nowrap; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }

.aspect-square    { aspect-ratio: 1 / 1; }
.aspect-photo     { aspect-ratio: 4 / 3; }
.aspect-portrait  { aspect-ratio: 3 / 4; }
.aspect-wide      { aspect-ratio: 16 / 9; }
.aspect-hero      { aspect-ratio: 3 / 2; }
.aspect-editorial { aspect-ratio: 5 / 7; }

.rounded-none { border-radius: 0; }
.rounded-sm   { border-radius: var(--radius-sm); }
.rounded-md   { border-radius: var(--radius-md); }
.rounded-lg   { border-radius: var(--radius-lg); }
.rounded-full { border-radius: 50%; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.flex   { display: flex; }
.grid   { display: grid; }
.block  { display: block; }
.inline-block { display: inline-block; }

.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.items-end     { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end   { justify-content: flex-end; }
.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.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); }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

/* --------------------------------------------------------------------------
   SCROLLBAR (subtle)
   -------------------------------------------------------------------------- */

* {
  scrollbar-width: thin;
  scrollbar-color: var(--ink-300) transparent;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: var(--ink-300);
  border: 2px solid var(--bg-canvas);
  border-radius: 8px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--ink-500);
}

/* --------------------------------------------------------------------------
   SELECTION
   -------------------------------------------------------------------------- */

::selection {
  background: var(--amber-600);
  color: #fff;
}