/* ============================================================
   michaelurquidi.com - Shared styles
   Editorial, refined. Generous whitespace, hairline rules,
   mono uppercase labels. Continuous with the PDF catalog.
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; }

/* ---- Type ---- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
p { color: var(--ink); }
a { color: var(--link); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--accent); }
strong { font-weight: 600; }
em { font-style: italic; }

.label {
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); line-height: 1.6; }
.muted { color: var(--muted); }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg); /* fallback for browsers without color-mix */
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brandmark {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brandmark .dot { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--link); }
@media (max-width: 620px) {
  .nav-links { gap: 16px; }
  .nav-links a.hide-sm { display: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  letter-spacing: 0.01em;
  padding: 13px 24px; border-radius: var(--radius-s);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .16s var(--ease), background .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-d); color: var(--on-primary); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-d); color: var(--on-gold); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-s); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); }
.btn[aria-disabled="true"] {
  background: var(--surface); color: var(--muted);
  border-color: var(--border); cursor: not-allowed;
  pointer-events: none;
}
.btn[aria-disabled="true"] .arrow { display: none; }
.arrow { transition: transform .18s var(--ease); }
.btn:hover .arrow, .lnk:hover .arrow { transform: translateX(3px); }

.lnk {
  font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.04em; color: var(--accent);
  display: inline-flex; align-items: center; gap: 7px;
}
.lnk:hover { color: var(--accent-d); }

/* ---- Hairline rule ---- */
.rule { height: 1px; background: var(--border); border: 0; }
.rule-strong { height: 1px; background: var(--border-s); border: 0; }

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--border-s); }

/* ---- Footer ---- */
.foot {
  border-top: 1px solid var(--border);
  margin-top: 0;
  padding: 56px 0 64px;
}
.foot .wrap { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
.foot .col h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 400;
}
.foot .col a, .foot .col p {
  display: block; font-size: 14.5px; color: var(--ink);
  margin-bottom: 8px;
}
.foot .col a:hover { color: var(--accent); }
.foot .sig {
  width: 100%; margin-top: 36px; padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---- Reveal on load ---- */
.reveal { opacity: 0; transform: translateY(14px); animation: rise .8s var(--ease) forwards; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .14s; }
.d3 { animation-delay: .23s; } .d4 { animation-delay: .32s; }
.d5 { animation-delay: .41s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
}
