/* ============================================================
   Sinclair & Co. — link tree
   Elegant & timeless · ivory paper, charcoal ink, antique gold
   ============================================================ */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Palette — warm ivory paper, deep umber ink, antique gold */
  --color-bg: #faf7f1;
  --color-surface: #f3eee4;
  --color-ink: #2e2925;
  --color-text: #2e2925;
  --color-text-muted: #8a7f72;
  --color-text-faint: #b3a897;
  --color-accent: #a5824e;
  --color-accent-deep: #8a6a3c;
  --color-rule: #d9d0c0;

  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --transition-interactive: 220ms cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;
}

body {
  background:
    radial-gradient(120% 90% at 50% 0%, #fffdf8 0%, var(--color-bg) 55%, #f1ecdf 100%);
  display: flex;
  justify-content: center;
}

/* Hairline page frame, like a book plate */
.page-frame {
  position: fixed;
  inset: clamp(var(--space-3), 1.5vw, var(--space-5));
  border: 1px solid var(--color-rule);
  pointer-events: none;
  z-index: 1;
}
.page-frame::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid color-mix(in oklab, var(--color-rule) 55%, transparent);
}

.page {
  position: relative;
  z-index: 2;
  width: min(35rem, 100% - clamp(2.5rem, 8vw, 5rem));
  padding: clamp(var(--space-12), 8vh, var(--space-20)) var(--space-4) var(--space-12);
  margin-block: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

/* ---------- Masthead ---------- */

.masthead {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  animation: rise 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  line-height: 1.05;
  color: var(--color-ink);
  letter-spacing: 0.01em;
}

.amp {
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent);
}

.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--color-text-muted);
}

/* Ornament divider */
.ornament {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: min(16rem, 70%);
  margin-top: var(--space-2);
  color: var(--color-accent);
}
.ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-rule) 30%,
    var(--color-rule) 70%,
    transparent
  );
}
.ornament-mark {
  width: var(--space-5);
  height: var(--space-5);
  flex: none;
}

/* ---------- Link cards ---------- */

.links {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.link-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: color-mix(in oklab, var(--color-bg) 60%, #fffdf9);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  box-shadow: 0 1px 2px rgb(46 41 37 / 0.04);
  min-height: 44px;
  animation: rise 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.links .link-card:nth-child(1) { animation-delay: 90ms; }
.links .link-card:nth-child(2) { animation-delay: 180ms; }
.links .link-card:nth-child(3) { animation-delay: 270ms; }

.link-card:hover,
.link-card:focus-visible {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #f6f1e7;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgb(46 41 37 / 0.18);
}

.link-icon {
  flex: none;
  width: var(--space-8);
  height: var(--space-8);
  display: grid;
  place-items: center;
  color: var(--color-accent-deep);
}
.link-icon svg {
  width: var(--space-6);
  height: var(--space-6);
}
.link-card:hover .link-icon,
.link-card:focus-visible .link-icon {
  color: var(--color-accent);
}

.link-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.link-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.2;
}

.link-sub {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
}
.link-card:hover .link-sub,
.link-card:focus-visible .link-sub {
  color: color-mix(in oklab, #f6f1e7 72%, transparent);
}

.link-arrow {
  flex: none;
  margin-left: auto;
  color: var(--color-text-faint);
  transition: transform var(--transition-interactive), color var(--transition-interactive);
}
.link-arrow svg {
  width: var(--space-5);
  height: var(--space-5);
}
.link-card:hover .link-arrow,
.link-card:focus-visible .link-arrow {
  color: var(--color-accent);
  transform: translateX(3px);
}

/* Collection note */
.collection-note {
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  animation: rise 700ms cubic-bezier(0.16, 1, 0.3, 1) 320ms both;
}

/* ---------- Colophon ---------- */

.colophon {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-rule);
  animation: rise 700ms cubic-bezier(0.16, 1, 0.3, 1) 360ms both;
}

.affirmation {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.colophon-meta {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.dot {
  color: var(--color-accent);
}

/* ---------- Motion ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Small screens ---------- */

@media (max-width: 24rem) {
  .link-card {
    padding: var(--space-4);
    gap: var(--space-3);
  }
  .link-icon {
    width: var(--space-6);
  }
}
