/* Shared styles for Daniel Grey Newman's portfolio */
:root {
  --page: #EDEBE6;
  --ink: #121212;
  --body: #2A2A2A;
  --muted: #5E5D5A;
  --faint: #A6A49E;
  --recessed: #E2E0DA;
  --raised: #F6F5F1;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --margin: 80px;
  --sans: 'Geist', system-ui, sans-serif;
  --serif: 'Newsreader', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Global nav: name and the heavy rule only */
.site-nav { padding: 0 var(--margin); }
.site-nav__bar { height: 72px; display: flex; align-items: center; }
.site-nav__name { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; }
a.site-nav__name:hover { opacity: .7; }
.site-nav__rule { height: 2px; background: var(--ink); }

/* Type */
.label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); line-height: 1.6; text-transform: uppercase; }
.title-l { margin: 0; font-weight: 300; font-size: 40px; line-height: 1.08; letter-spacing: -0.025em; }
.body-serif { font-family: var(--serif); font-size: 18px; line-height: 1.55; color: var(--body); margin: 0; }
.link-u { font-size: 15px; border-bottom: 1px solid var(--ink); padding-bottom: 2px; align-self: flex-start; white-space: nowrap; }

/* Recessed area */
.recessed { background: var(--recessed); box-shadow: inset 0 6px 14px -6px rgba(18,18,18,0.22); }

/* Flat text controls (PREVIOUS / NEXT) */
.ctl {
  appearance: none; border: 0; background: none; margin: 0; padding: 0 8px; min-height: 44px; min-width: 44px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); cursor: pointer;
}
.ctl:hover { color: var(--ink); }
.ctl[aria-disabled="true"] { color: var(--faint); cursor: default; }
.ctl:focus-visible, .track:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }

/* Horizontal scroller */
.track { overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .track { scroll-behavior: auto; } }

@media (max-width: 899px) {
  :root { --margin: 16px; }
  .site-nav__bar { height: 52px; }
  .site-nav__name { font-size: 14px; }
  .label { font-size: 10px; }
  .title-l { font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; }
  .body-serif { font-size: 17px; line-height: 1.6; }
}
