/* ==========================================================================
   Shrey Suratwala — shrey.litmusbrasserie.com
   One stylesheet for all pages. Light theme on :root, dark via media query.
   ========================================================================== */

/* ---------- Fonts ---------- */

@font-face {
  font-family: 'SF Pro Text';
  src: url('/assets/fonts/sfprotext-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Text';
  src: url('/assets/fonts/sfprotext-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Palette ---------- */

:root {
  --bg: #FAF7F0;
  --text: #323130;
  --muted: rgba(50, 49, 48, .62);
  --hairline: rgba(50, 49, 48, .14);
  --blue: #0B5BA3;      /* fills: circles, dot — same in both themes */
  --yellow: #FFB84C;
  --orange: #FF731D;
  --link: #0B5BA3;      /* inline text links & blue headings */
  --ink-on-accent: #fff;
  --ink-on-yellow: #323130;
  --header-bg: rgba(250, 247, 240, .95);
  --shadow: 0 10px 28px rgba(30, 22, 8, .14);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1815;
    --text: #F2EDE4;
    --muted: rgba(242, 237, 228, .6);
    --hairline: rgba(242, 237, 228, .16);
    --link: #8FBCE8;
    --header-bg: rgba(26, 24, 21, .95);
    --shadow: 0 10px 28px rgba(0, 0, 0, .45);
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'SF Pro Text', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 15.4px + .16vw, 17px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
}

p { margin: 0; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

::selection { background: var(--yellow); color: #323130; }

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: 1060px;
  margin-inline: auto;
  padding-inline: 24px;
}

@media (max-width: 600px) {
  .container { padding-inline: 16px; }
}

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}

.js [data-reveal].is-revealed {
  opacity: var(--reveal-opacity, 1);
  transform: none;
}

[data-reveal="2"] { transition-delay: .08s; }
[data-reveal="3"] { transition-delay: .16s; }
[data-reveal="4"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: var(--reveal-opacity, 1);
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

.brand-dot {
  flex: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--blue);
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 14px;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

.site-nav a + a { border-left: 1px solid var(--hairline); }

.site-nav a:hover { color: var(--link); }

.site-nav a[aria-current="page"] {
  color: var(--link);
  font-weight: 600;
}

.site-nav a:last-child { padding-right: 0; }

@media (max-width: 600px) {
  .site-nav a { padding-inline: 9px; }
}

@media (max-width: 360px) {
  .brand { font-size: 15px; gap: 8px; }
  .site-nav a { padding-inline: 6px; font-size: 13px; }
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(72px, 12vw, 128px);
  border-top: 1px solid var(--hairline);
  padding-block: clamp(40px, 7vw, 64px);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: clamp(20px, 4vw, 44px);
  row-gap: 2px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  text-decoration: none;
  color: var(--text);
}

.footer-links a:hover { color: var(--link); }

.footer-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Circle buttons ---------- */

.circle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
}

.circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(104px, 11.5vw, 140px);
  aspect-ratio: 1;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  color: var(--ink-on-accent);
  transition: transform .25s ease-out, box-shadow .25s ease-out;
}

.circle:hover {
  transform: scale(1.06);
  box-shadow: var(--shadow);
}

.circle:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 4px;
}

.circle-blue { background: var(--blue); }
.circle-orange { background: var(--orange); }
.circle-yellow {
  background: var(--yellow);
  color: var(--ink-on-yellow);
}

/* ---------- Page scaffolding ---------- */

.page { padding-top: clamp(48px, 8vw, 88px); }

.page-title {
  font-size: clamp(44px, 3vw + 33px, 64px);
  letter-spacing: -.015em;
}

.page-intro {
  margin-top: clamp(20px, 3vw, 28px);
  max-width: 60ch;
}

.section {
  margin-top: clamp(56px, 9vw, 96px);
  border-top: 1px solid var(--hairline);
  padding-top: clamp(40px, 6vw, 60px);
}

.section-heading {
  font-size: clamp(28px, 2vw + 21px, 36px);
  letter-spacing: -.01em;
}

/* ---------- Home hero ---------- */

.hero {
  display: grid;
  grid-template-columns: min(42vw, 460px) 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
  padding-block: clamp(48px, 8vw, 104px);
}

.hero-portrait {
  width: min(42vw, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: 35% 20%;
}

.hero-title {
  font-size: clamp(64px, 9vw + 30px, 110px);
  line-height: 1;
  letter-spacing: -.02em;
}

.hero-sub {
  margin-top: clamp(24px, 4vw, 40px);
  font-size: 22px;
}

.hero-copy {
  margin-top: 14px;
  max-width: 56ch;
}

.hero .circle-row { margin-top: clamp(32px, 5vw, 48px); }

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: clamp(28px, 7vw, 44px);
    padding-block: clamp(40px, 9vw, 64px);
  }
  .hero-portrait {
    width: min(78vw, 400px);
    margin-inline: auto;
  }
}

/* ---------- About: timeline ---------- */

.timeline {
  list-style: none;
  margin: clamp(20px, 3vw, 32px) 0 0;
  padding: 0;
}

.timeline-row {
  display: grid;
  grid-template-columns: 176px 1fr;
  gap: 12px clamp(24px, 4vw, 56px);
  padding-block: clamp(28px, 4vw, 40px);
}

.timeline-row + .timeline-row { border-top: 1px solid var(--hairline); }

.timeline-label {
  padding-top: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

.timeline-title { font-size: 22px; }

.timeline-title a {
  color: var(--link);
  text-decoration: none;
}

.timeline-title a:hover { text-decoration: underline; }

.timeline-body p {
  margin-top: 8px;
  max-width: 58ch;
}

@media (max-width: 700px) {
  .timeline-row { grid-template-columns: 1fr; gap: 6px; }
  .timeline-label { padding-top: 0; }
}

/* ---------- About: skills ---------- */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
  margin-top: clamp(24px, 4vw, 36px);
}

.skill-card {
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: clamp(24px, 3.5vw, 36px);
}

.skill-card h3 { font-size: 20px; }

.skill-card p { margin-top: 10px; }

@media (max-width: 700px) {
  .skills-grid { grid-template-columns: 1fr; }
}

/* ---------- Work: projects ---------- */

.work-title { color: var(--yellow); }

.projects { margin-top: clamp(40px, 6vw, 64px); }

.project {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.project + .project {
  margin-top: clamp(56px, 8vw, 88px);
  border-top: 1px solid var(--hairline);
  padding-top: clamp(56px, 8vw, 88px);
}

.project-title {
  font-size: clamp(26px, 1.5vw + 20px, 28px);
  color: var(--link);
}

.project-copy {
  margin-top: 12px;
  max-width: 52ch;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-top: 18px;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
}

.project-links a:hover { text-decoration: underline; }

.project-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 420px;
  object-fit: cover;
  border-radius: 20px;
}

.project-image-faded {
  --reveal-opacity: .55;
  opacity: .55;
}

.project-soon {
  margin-top: 12px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .project { grid-template-columns: 1fr; gap: 24px; }
  .project-image { order: 2; }  /* image after text when stacked */
}

/* ---------- Connect ---------- */

.connect-intro { margin-top: clamp(16px, 3vw, 24px); }

.connect-circles { margin-top: clamp(36px, 6vw, 56px); }

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 40px);
  margin: 0;
  margin-top: clamp(56px, 9vw, 96px);
  border-top: 1px solid var(--hairline);
  padding-top: clamp(40px, 6vw, 56px);
}

.contact-item dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-item dd {
  margin: 8px 0 0;
  font-size: 20px;
  font-weight: 600;
}

.contact-item dd a {
  color: var(--text);
  text-decoration: none;
}

.contact-item dd a:hover { color: var(--link); }

@media (max-width: 600px) {
  .contact-details { grid-template-columns: 1fr; }
}

/* ---------- 404 ---------- */

.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52vh;
  padding-block: clamp(56px, 10vw, 112px);
  text-align: center;
}

.notfound .circle { margin-top: 18px; }
