/* ---------------------------------------------------------
   danielreisinger.com — static rebuild
   Source-of-truth styling ported from Squarespace Custom CSS
   (with Less/Sass nesting flattened to vanilla CSS).
   No JS dependency. Fonts via Google Fonts.
   --------------------------------------------------------- */

/* CSS reset (just the essentials) */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, iframe, video { max-width: 100%; display: block; }
a { color: inherit; }

/* ---- Color + type tokens ---- */
:root {
  --bg: #ffffff;
  --fg: #000000;
  --hero-bg: #000000;
  --hero-fg: #ffffff;
  --thumb-overlay-dark: rgba(0,0,0,0.20);
  --thumb-overlay-light: rgba(255,255,255,0.75);
  --maxw: 1500px;
  --content-maxw: 600px;
  --ease: cubic-bezier(0.38, 0.12, 0.15, 0.97);
}

html { font-size: 16px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'Gloock', Georgia, serif;
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
}

p { margin: 0 0 1em; }
b, strong { font-weight: 400; }       /* matches Squarespace custom rule */
a { text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Layout shell ---- */
.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 50;
}
.site-header.on-dark { background: var(--hero-bg); color: var(--hero-fg); }
.site-header .nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1vw 1.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.site-header .nav a {
  color: inherit;
  opacity: 0.85;
}
.site-header .nav a:hover { opacity: 1; text-decoration: none; }
/* Per-page hide rules — match Squarespace behavior */
body.page-home  .nav .nav-work,
body.page-project .nav .nav-work { display: none; }
body.page-about .nav .nav-about { display: none; }
body.page-contact .site-header { visibility: hidden; height: 0; padding: 0; }

/* ---- Hero (home only) ---- */
.hero {
  background: var(--hero-bg);
  color: var(--hero-fg);
  min-height: calc(100vh - 50px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.005em;
  text-align: center;
}

/* ---- Bio block (home + about) ---- */
.bio-block {
  max-width: var(--content-maxw);
  margin: 5rem auto 6rem;
  padding: 0 1.5rem;
}
.bio-block p { font-size: 1rem; line-height: 1.55; }
.bio-block .read-more {
  color: #555;
  border-bottom: 1px solid #888;
}

/* ---- Work / project grids ---- */
.work-section { padding: 4rem 1.5rem 5rem; }
.work-section h2 {
  text-align: center;
  font-size: 1rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 2.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
@media (max-width: 960px)  { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .grid { grid-template-columns: 1fr; } }

/* Tile — Squarespace summary-block hover treatment */
.tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: #000;
  overflow: hidden;
  color: inherit;
}
.tile:hover { text-decoration: none; }
.tile .thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: all .6s var(--ease);
}
.tile .overlay {
  position: absolute;
  inset: 0;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--thumb-overlay-dark);
  color: #fff;
  transition: all .6s var(--ease);
  pointer-events: none;
}
.tile .overlay .tile-title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1em;
  font-size: 0.7rem;
  margin: 0 0 0.5rem;
  color: inherit;
}
.tile .overlay .tile-excerpt {
  font-family: 'Gloock', Georgia, serif;
  font-size: 2rem;
  line-height: 1em;
  margin: 0;
  color: inherit;
}
.tile:hover .overlay {
  background-color: var(--thumb-overlay-light);
  color: #000;
}

/* ---- Page intro / single-column pages ---- */
.page {
  max-width: var(--content-maxw);
  margin: 5rem auto 5rem;
  padding: 0 1.5rem;
}
.page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}
.page p { margin-bottom: 1em; font-size: 1rem; line-height: 1.6; }
.page img { margin: 2rem auto; }

/* ---- About-page reviews ---- */
.reviews { max-width: var(--content-maxw); margin: 0 auto; padding: 0 1.5rem; }
.reviews-divider {
  border: 0;
  border-top: 1px solid #000;
  margin: 4rem 0 2rem;
}
.reviews-subhead {
  text-align: center;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 400;
  margin: 2rem 0;
}
.review-quote { font-family: 'Gloock', Georgia, serif; font-size: 1.25rem; line-height: 1.25; margin: 1.5rem 0 0.5rem; }
.review-source { font-family: 'DM Sans', system-ui, sans-serif; font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: #444; margin: 0 0 2rem; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 760px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
.reviews-grid .review-card { font-size: 0.85rem; }
.reviews-grid .stars { color: #000; letter-spacing: 0.05em; font-size: 0.9rem; margin-bottom: 0.5rem; }
.reviews-grid .stars-7-10 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.5rem; }
.reviews-grid .rc-quote { font-family: 'DM Sans', system-ui, sans-serif; font-size: 0.85rem; line-height: 1.4; margin: 0 0 0.5rem; }
.reviews-grid .rc-src { font-size: 0.65rem; letter-spacing: 0.05em; text-transform: uppercase; color: #444; }

/* ---- Contact ---- */
.contact-page {
  max-width: 900px;
  margin: 6rem auto 6rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
@media (max-width: 720px) { .contact-page { grid-template-columns: 1fr; gap: 2rem; } }
.contact-page .quick-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}
.contact-page .quick-links a {
  font-family: 'Gloock', Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1;
  border-bottom: 1px solid #000;
}
.contact-page .quick-links a:hover { text-decoration: none; opacity: 0.7; }
.contact-page .details { font-size: 0.95rem; line-height: 1.6; }
.contact-page .details a { border-bottom: 1px solid #000; }

/* ---- Project detail page ---- */
.project-page { padding: 0 0 4rem; }
.project-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  max-width: 100vw;
  margin: 0 auto;
}
.project-video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.project-body {
  max-width: var(--content-maxw);
  margin: 3rem auto 4rem;
  padding: 0 1.5rem;
  text-align: right;
}
.project-body h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1.25rem;
  text-align: right;
}
.project-body .label {
  font-family: 'DM Sans', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
  color: #444;
  margin-bottom: 0.5rem;
}
.project-body p { font-size: 0.95rem; line-height: 1.6; text-align: right; }

/* ---- Footer ---- */
.site-footer {
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}
.site-footer .socials {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.site-footer .socials a {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: #000;
}
.site-footer .socials svg { width: 100%; height: 100%; fill: currentColor; }
.site-footer .wordmark {
  font-family: 'Gloock', Georgia, serif;
  font-size: 1.5rem;
  margin: 0;
}

/* ---- Read-more inline link ---- */
.inline-link { color: #777; border-bottom: 1px solid #999; }

/* ---- Tiny utility ---- */
.center { text-align: center; }
.muted { color: #555; }
.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;
}
