/* Arpit Gaind — site stylesheet
   Palette: wheat / sea-salt / black / grey — deliberately no true white anywhere.
   Typography: Jost (geometric sans, headings/UI) + Lora (warm serif, body) — free
   equivalents to the paid Futura PT / Calluna pairing this palette was inspired by.
   Accent is a CSS variable — change --accent below to retheme the entire site. */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --bg: #ddd2bd;         /* wheat/sea-salt base — replaces the old near-white */
  --ink: #262422;        /* warm near-black, matches --dark below */
  --ink-soft: #5c5346;
  --line: #c7baa0;
  --warm-grey: #cfc3ab;
  --dark: #262422;
  --dark-soft: #b8b2ab;
  --off-white: #ece5d6;  /* the lightest tone on the site — used sparingly for text on dark, never as a page bg */
  --accent: #a4502f; /* single accent color — swap this one value to retheme */
  --max-width: 780px;
  --font-body: 'Lora', Georgia, 'Iowan Old Style', serif;
  --font-ui: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
a:hover { border-bottom-color: currentColor; }

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

/* Header / nav */
header.site-header {
  background: var(--dark);
  padding: 28px 0 22px;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: padding 0.25s ease, box-shadow 0.25s ease;
}
header.site-header.scrolled {
  padding: 12px 0 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
header.site-header.scrolled .site-title { font-size: 20px; }
header.site-header.scrolled .site-title .divider { height: 26px; }
header.site-header .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 920px;
}
.site-title {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: #fff;
  border-bottom: none;
  display: inline-flex;
  align-items: center;
  transition: font-size 0.25s ease;
}
.site-title .divider {
  display: inline-block;
  align-self: center;
  width: 1px;
  height: 34px;
  background: var(--dark-soft);
  margin: 0 8px;
  transition: height 0.25s ease;
}
.site-title:hover { color: #fff; opacity: 0.85; }

nav.site-nav {
  font-family: var(--font-ui);
  font-size: 13px;
}
nav.site-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
nav.site-nav a {
  color: var(--dark-soft);
  border-bottom: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
nav.site-nav a:hover,
nav.site-nav a[aria-current="page"] {
  color: #fff;
}

nav.site-nav li.has-dropdown {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: -10px;
}
nav.site-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  min-width: 200px;
  background: var(--dark);
  border: 1px solid #3a3733;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  z-index: 20;
}
nav.site-nav li.has-dropdown:hover .dropdown,
nav.site-nav li.has-dropdown:focus-within .dropdown {
  display: block;
}
nav.site-nav .dropdown li { padding: 0; }
nav.site-nav .dropdown a {
  display: block;
  padding: 8px 16px;
  white-space: nowrap;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.02em;
}
nav.site-nav .dropdown a:hover {
  background: #322f2b;
}

main {
  padding: 56px 0 80px;
}
main.wide { max-width: 920px; margin: 0 auto; }

h1, h2, h3, h4 {
  font-family: var(--font-ui);
  font-weight: 600;
  line-height: 1.3;
}
h1 { font-size: 32px; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 48px 0 16px; border-top: 1px solid var(--line); padding-top: 32px; }
h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
h3 { font-size: 17px; margin: 24px 0 6px; }
h4 { font-size: 15px; margin: 16px 0 4px; }

.tagline {
  font-family: var(--font-ui);
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0 0 32px;
}

.placeholder {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
  padding: 10px 14px;
  border-radius: 4px;
  margin: 8px 0 24px;
  display: inline-block;
}

/* Name banner — homepage only, full-width abstract background with name + tagline */
.name-banner {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: 90px 24px;
  text-align: center;
}
.name-banner-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.name-banner-text {
  position: relative;
  z-index: 1;
}
.name-banner-text h1 {
  font-family: var(--font-ui);
  color: var(--ink);
  font-size: 40px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 12px;
}
.name-banner-text .tagline {
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
}

/* Cover banner — homepage only, single static field photo */
.cover-banner {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background: var(--dark);
}
.cover-banner img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* Photo + intro panel — homepage, below the cover banner */
.split-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.split-hero-photo {
  background: var(--dark);
  min-height: 420px;
  overflow: hidden;
}
.split-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  opacity: 0.95;
}
.split-hero-text {
  background: var(--dark);
  color: var(--dark-soft);
  padding: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.split-hero-text h2 {
  font-family: var(--font-ui);
  color: #fff;
  font-size: 22px;
  letter-spacing: 0.04em;
  font-weight: 500;
  margin: 0 0 18px;
  border-top: none;
  padding-top: 0;
}
.split-hero-text p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 24px;
}
.split-hero-text p strong { color: #fff; font-weight: 500; }

/* Bio box — sets "Hello, I'm Arpit" + the bio paragraph apart as a distinct card */
.bio-box {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 32px 36px;
  margin: 0 0 24px;
  max-width: 480px;
}
.bio-box p:last-child { margin-bottom: 0; }
.bio-box a {
  color: var(--dark-soft);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding: 2px 5px;
  border-radius: 3px;
}
.bio-box a:hover { color: #fff; background: rgba(255, 255, 255, 0.16); border-bottom-color: #fff; }
.bio-more { display: none; }
.bio-more.expanded { display: block; }
.hats-grid {
  display: flex;
  justify-content: center;
  margin: 0 0 24px;
}
.hats-grid img {
  width: 100%;
  max-width: 260px;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  cursor: zoom-in;
}
.bio-box .toggle-btn { color: var(--dark-soft); }
.bio-box .toggle-btn:hover { color: #fff; }

/* Get in Touch — repeated CTA button, solid fill on every background */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 28px;
  background: var(--dark);
  color: #fff !important;
  border: 1px solid var(--dark);
  border-radius: 2px;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }

/* Awards & Recognitions */
.award-featured {
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 32px;
}
.award-featured .eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.award-featured h3 { margin: 0 0 4px; }
ul.awards-list { list-style: none; padding: 0; margin: 0; }
ul.awards-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
ul.awards-list li .award-amount {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .split-hero { grid-template-columns: 1fr; }
  .split-hero-photo { min-height: 320px; }
  .split-hero-text { padding: 40px 28px; }
}

@media (max-width: 760px) {
  .cover-banner { min-height: 300px; }
  .name-banner { padding: 60px 20px; }
  .name-banner-text h1 { font-size: 28px; }
}

/* Hero photo placeholder on homepage */
.hero-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  text-align: center;
  padding: 12px;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Field photography */
.field-photo {
  margin: 0 0 16px;
  border-radius: 6px;
  overflow: hidden;
}
.field-photo img {
  width: 100%;
  display: block;
}
.field-photo figcaption {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--ink-soft);
  padding: 8px 2px 0;
}

.header-photo {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 28px;
  display: block;
}

/* Contact page — prominent email, supporting text set apart below */
.contact-email {
  font-family: var(--font-ui);
  font-size: 30px;
  margin: 8px 0 20px;
}
.contact-email a { border-bottom: none; }
.contact-note {
  padding-left: 20px;
  border-left: 2px solid var(--line);
  color: var(--ink-soft);
  margin-bottom: 36px;
}

/* Icon column */
.icon-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 20px 0 36px;
  font-family: var(--font-ui);
  font-size: 14px;
}
.icon-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  background: var(--dark);
  border: 1px solid var(--dark);
  padding: 7px 14px;
  border-radius: 20px;
}
.icon-row a:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.icon-row .pending {
  opacity: 0.55;
  cursor: default;
}

/* Section link icons on homepage */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.section-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px 16px;
  text-align: center;
  font-family: var(--font-ui);
}
.section-card a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: none;
}
.section-card:hover { border-color: var(--accent); }
.section-card:hover a { color: var(--accent); }
.section-card .sub {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 4px;
}

ul.plain { padding-left: 20px; }
ul.plain li { margin-bottom: 8px; }

.entry { margin-bottom: 28px; }
.entry .meta {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.note {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
}

.video-slot {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px 20px;
  text-align: center;
  font-family: var(--font-ui);
  color: var(--ink-soft);
  margin-bottom: 8px;
  background: var(--warm-grey);
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  margin-bottom: 8px;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Ways of Seeing sub-site */
.project-banner {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--warm-grey);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 16px;
  margin-bottom: 24px;
}
.project-banner a { font-weight: 600; }

nav.project-nav {
  font-family: var(--font-ui);
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  padding-bottom: 16px;
}
nav.project-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
nav.project-nav a {
  color: var(--ink-soft);
  border-bottom: none;
}
nav.project-nav a:hover,
nav.project-nav a[aria-current="page"] {
  color: var(--accent);
}

.source-credit {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: -8px;
  margin-bottom: 24px;
}

footer.site-footer {
  background: var(--dark);
  padding: 48px 0 40px;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: #fff;
  border-bottom: none;
  display: inline-flex;
  align-items: center;
}
.footer-logo:hover { color: #fff; opacity: 0.85; }
.footer-logo .divider {
  display: inline-block;
  width: 1px;
  height: 26px;
  background: var(--dark-soft);
  margin: 0 8px;
}
.footer-nav {
  margin: 22px 0 0;
  font-family: var(--font-ui);
  font-size: 12px;
}
.footer-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
.footer-nav a {
  color: var(--dark-soft);
  border-bottom: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-nav a:hover { color: #fff; }
.footer-nav li[aria-hidden] { color: #4a4642; }
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
}
.footer-social svg {
  width: 18px;
  height: 18px;
  fill: var(--dark-soft);
  transition: fill 0.2s ease;
}
.footer-social a:hover svg { fill: #fff; }

@media (max-width: 560px) {
  h1 { font-size: 26px; }
  body { font-size: 17px; }
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--off-white);
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 90;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--accent); }

/* Hover zoom on photography */
.field-photo, .split-hero-photo, .header-photo-wrap {
  overflow: hidden;
}
.field-photo img, .split-hero-photo img, .header-photo-wrap img {
  transition: transform 0.6s ease;
}
.field-photo:hover img,
.split-hero-photo:hover img,
.header-photo-wrap:hover img {
  transform: scale(1.045);
}
.field-photo img, .header-photo-wrap img { cursor: zoom-in; }

.header-photo-wrap {
  border-radius: 6px;
  margin-bottom: 28px;
}
.header-photo-wrap img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  cursor: zoom-out;
  animation: lightbox-fade 0.2s ease;
  padding: 40px;
}
@keyframes lightbox-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: var(--off-white);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

/* Collapsible "show more" lists */
.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}
.toggle-btn:hover { border-bottom-color: currentColor; }
.toggle-btn .arrow { transition: transform 0.25s ease; display: inline-block; }
.toggle-btn[aria-expanded="true"] .arrow { transform: rotate(180deg); }
.collapsible-item {
  display: none;
}
.collapsible-item.expanded {
  display: list-item;
}

/* In-page section nav (scrollspy) */
nav.page-nav {
  position: sticky;
  top: 90px;
  font-family: var(--font-ui);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  padding-bottom: 16px;
  background: var(--bg);
  z-index: 10;
}
nav.page-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
nav.page-nav a {
  color: var(--ink-soft);
  border-bottom: none;
  transition: color 0.2s ease;
}
nav.page-nav a:hover,
nav.page-nav a.active {
  color: var(--accent);
  font-weight: 600;
}
