/* ---------------------------------------------------------------
   maxim durand — shared styles
   strict minimalism: one column, mono-neutral, type does the work
--------------------------------------------------------------- */

:root {
  --bg: #ffffff;
  --text: #000000;
  --muted: #9a9a97;
  --faint: #c4c4c1;
  --border: #ececea;
  --link-underline: #d6d6d3;
  --accent: #000000;
  --link: #dc2626;
  --max: 560px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  font-size: 15px;
  letter-spacing: -0.006em;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 24px;
  overscroll-behavior-y: none;
  display: flex;
  flex-direction: column;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 0 40px;
}

/* ---- entrance: clean staggered fade-up on load ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wrap > * {
  opacity: 0;
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.wrap > *:nth-child(1) { animation-delay: 0.05s; }
.wrap > *:nth-child(2) { animation-delay: 0.13s; }
.wrap > *:nth-child(3) { animation-delay: 0.21s; }
.wrap > *:nth-child(4) { animation-delay: 0.29s; }
.wrap > *:nth-child(5) { animation-delay: 0.37s; }
.wrap > *:nth-child(6) { animation-delay: 0.45s; }
@media (prefers-reduced-motion: reduce) {
  .wrap > * { opacity: 1; transform: none; animation: none; }
}

/* ---- links ---- */
a { color: inherit; text-decoration: none; }
/* inline / content links: red, underline on hover (sharif style) */
.link, .prose a {
  color: var(--link);
  text-decoration: none;
}
.link:hover, .prose a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ---- top nav ---- */
nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 56px;
}
nav .home {
  font-weight: 500;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
nav .home .avatar {
  width: 1.15em;
  height: 1.15em;
  border-radius: 3px;
  object-fit: cover;
  display: block;
}
nav .nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
}
nav .nav-links a {
  color: var(--muted);
  transition: color 0.15s ease;
}
nav .nav-links a:hover,
nav .nav-links a.active { color: var(--text); }

/* ---- generic type ---- */
h1 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
p { margin-bottom: 18px; color: var(--text); }
p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }

/* section heading (e.g. "building", "elsewhere") */
.label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 48px 0 16px;
  font-weight: 500;
}
.label:first-of-type { margin-top: 40px; }

/* ---- intro (home) ---- */
.intro p { font-size: 15px; }

/* "talk to me about" list */
.talk-list {
  list-style: none;
  margin: -8px 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.talk-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
}
.talk-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 8px;
  height: 1px;
  background: var(--faint);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 0 rgba(52,199,89,0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,199,89,0.45); }
  70% { box-shadow: 0 0 0 6px rgba(52,199,89,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,199,89,0); }
}

/* ---- list rows: plain "Title — detail" lines (sharif bookshelf style) ---- */
.rows { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
.row { display: block; color: var(--text); line-height: 1.5; }
a.row { color: var(--text); }
a.row:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.row-desc { color: var(--muted); }

/* ---- "you can find me on" line ---- */
.find-me { margin-top: 44px; color: var(--text); }

/* ---- socials (text links) ---- */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 15px;
}
.socials a { color: var(--link); }
.socials a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---- consuming filters ---- */
.filters {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 14px;
}
.filters button {
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 0; font: inherit;
  transition: color 0.15s ease;
}
.filters button:hover { color: var(--text); }
.filters button.active { color: var(--text); }

/* ---- outdoor / writing prose ---- */
.prose p { color: var(--text); }

/* ---- photo gallery (2-column masonry) ---- */
.gallery { column-count: 2; column-gap: 14px; margin-top: 10px; }
.gallery figure { break-inside: avoid; margin: 0 0 14px; }
.gallery img { width: 100%; display: block; border-radius: 3px; }
.gallery figcaption { color: var(--muted); font-size: 14px; margin-top: 7px; line-height: 1.4; }

/* ---- garage: future builds, one landscape photo per row ---- */
.car-list { display: flex; flex-direction: column; gap: 44px; margin-top: 36px; }
.car { margin: 0; }
.car img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.car figcaption { margin-top: 13px; }
.car .car-name { font-weight: 500; color: var(--text); letter-spacing: -0.01em; }
.car .car-spec { color: var(--muted); font-size: 15px; margin-top: 3px; line-height: 1.5; }

/* ---- mobile ---- */
@media (max-width: 560px) {
  body { padding: 0 20px; }
  .wrap { padding: 40px 0 72px; }
  nav { margin-bottom: 44px; }
  nav .nav-links { gap: 14px; font-size: 14px; }
  .row { flex-direction: column; gap: 2px; align-items: flex-start; }
  .row .row-meta { font-size: 12px; }
}
