/* Aditya Yadav. Shared styles for every page. */

:root {
  --paper: #F4F1EB;       /* page background, warm off-white */
  --paper-2: #EAE5DB;     /* placeholder fill, hover tint */
  --ink: #1B1A17;         /* text, dark band */
  --ink-soft: #4A4740;    /* body copy on paper */
  --muted: #7C776D;       /* captions, secondary */
  --line: #D9D3C7;        /* hairlines */
  --accent: #B0623A;      /* copper */
  --accent-deep: #8C4C2B; /* copper on hover */
  --paper-on-ink: #EFEBE3;
  --muted-on-ink: #A29C90;

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  --max: 1200px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .22em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

.wrap { width: min(100% - 2 * var(--pad), var(--max)); margin: 0 auto; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-variation-settings: 'opsz' 96;
}
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.5rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 1rem;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.bar {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; color: var(--accent-deep); }
nav ul { list-style: none; display: flex; gap: clamp(1rem, 2.5vw, 2rem); }
nav a { font-size: .92rem; color: var(--ink-soft); padding: .25rem 0; }
nav a:hover { color: var(--ink); }
nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
}

/* Sections */
section { padding: clamp(4rem, 8vw, 7rem) 0; }
section + section { border-top: 1px solid var(--line); }
.head { margin-bottom: 2.5rem; }
.head p { margin-top: 1rem; color: var(--ink-soft); max-width: 54ch; font-size: 1.05rem; }

/* Home hero */
.hero { padding: clamp(5rem, 12vw, 10rem) 0 clamp(4rem, 8vw, 7rem); }
.hero h1 {
  font-size: clamp(3rem, 9.5vw, 7rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: .98;
  font-variation-settings: 'opsz' 144;
}
.hero p {
  margin-top: 2rem;
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  max-width: 42ch;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Category cards (home) */
.cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.card a { display: block; }
.card a:hover { text-decoration: none; }
.card .frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  overflow: hidden;
}
.card .frame img { width: 100%; height: 100%; object-fit: cover; }
.card .meta { padding-top: 1.1rem; }
.card .num {
  display: block;
  font-size: .74rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .14em;
  margin-bottom: .5rem;
}
.card h3 { font-size: 1.55rem; }
.card p { margin-top: .5rem; color: var(--ink-soft); font-size: .97rem; max-width: 34ch; }
.card .more {
  display: inline-block;
  margin-top: .9rem;
  font-size: .88rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: .1rem;
}
.card a:hover .more { border-color: var(--accent); }
.card a:hover h3 { color: var(--accent-deep); }

/* Placeholder slots (no photo yet) */
.slot {
  position: relative;
  background: var(--paper-2);
  overflow: hidden;
}
.slot:empty::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 1rem;
  font-size: .78rem;
  color: var(--muted);
}

/* About */
.about .wrap { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.about p {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 60ch;
}
.about p + p { margin-top: 1.25rem; }

/* Contact band (dark) */
.contact {
  background: var(--ink);
  color: var(--paper-on-ink);
  border-top: 0;
}
.contact .eyebrow { color: var(--accent); }
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; }
.contact h2 { font-weight: 300; font-size: clamp(2.2rem, 4.5vw, 3.75rem); letter-spacing: -0.02em; }
.contact ul { list-style: none; display: grid; gap: .5rem; }
.contact a {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  letter-spacing: -0.01em;
}
.contact a:hover { color: #fff; text-decoration-color: var(--accent); }
.contact .note { margin-top: 1.5rem; font-size: .9rem; color: var(--muted-on-ink); max-width: 40ch; }

footer {
  background: var(--ink);
  color: var(--muted-on-ink);
  padding: 1.5rem 0 2rem;
  font-size: .82rem;
  border-top: 1px solid rgba(239, 235, 227, .12);
}
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer a:hover { color: var(--paper-on-ink); }

/* Category pages */
.page-hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-hero .wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: end; }
.page-hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144;
}
.page-hero .lede { margin-top: 1.25rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 46ch; line-height: 1.5; }
.page-hero .index { text-align: right; font-size: .78rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.page-hero .index b { color: var(--accent); font-weight: 500; }

.lead { padding: 0 0 clamp(1.5rem, 3vw, 2.5rem); }
.lead .frame { aspect-ratio: 3 / 2; background: var(--paper-2); overflow: hidden; }
.lead .frame img { width: 100%; height: 100%; object-fit: cover; }

/* Editorial gallery: full-width leads, then pairs. Reads as curated with as few as three photos. */
.editorial {
  padding-top: 0;
  border-top: 0;
}
.editorial .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}
.editorial figure { margin: 0; }
.editorial .frame { background: var(--paper-2); overflow: hidden; }
.editorial .frame img { width: 100%; height: 100%; object-fit: cover; }
.editorial .full { grid-column: 1 / -1; }
.editorial .full .frame { aspect-ratio: 3 / 2; }
.editorial .half .frame { aspect-ratio: 4 / 5; }
.editorial .half.wide .frame { aspect-ratio: 3 / 2; }
.editorial figcaption { margin-top: .6rem; font-size: .82rem; color: var(--muted); }

/* Text block on category pages */
.approach .wrap { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(2rem, 5vw, 5rem); }
.approach h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.approach ol { list-style: none; display: grid; gap: 1.75rem; }
.approach li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; }
.approach li span { font-family: var(--serif); font-size: 1.3rem; color: var(--accent); line-height: 1.3; }
.approach h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin-bottom: .35rem; }
.approach p { color: var(--ink-soft); max-width: 56ch; }

/* Cross-links to the other categories */
.also .head { margin-bottom: 1.5rem; }
.also ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); }
.also a { display: grid; grid-template-columns: 7rem 1fr; gap: 1.25rem; align-items: center; }
.also a:hover { text-decoration: none; }
.also a:hover h3 { color: var(--accent-deep); }
.also .frame { aspect-ratio: 4 / 5; background: var(--paper-2); overflow: hidden; }
.also .frame img { width: 100%; height: 100%; object-fit: cover; }
.also h3 { font-size: 1.35rem; }
.also p { margin-top: .3rem; font-size: .92rem; color: var(--ink-soft); }
.also .more { display: inline-block; margin-top: .5rem; font-size: .85rem; font-weight: 500; color: var(--accent); }

/* Responsive */
@media (max-width: 900px) {
  .about .wrap, .approach .wrap, .page-hero .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .page-hero .index { text-align: left; }
  .contact .wrap { gap: 2.5rem; }
}
@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; gap: 2.5rem; }
  .card .frame { aspect-ratio: 4 / 5; }
  .also ul { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bar { flex-direction: column; align-items: flex-start; gap: .35rem; padding: .85rem 0; }
  nav ul { flex-wrap: wrap; gap: .25rem 1.1rem; }
  nav a { font-size: .9rem; }
  :root { --header-h: 6rem; }
  .editorial .grid { grid-template-columns: 1fr; }
  .editorial .half .frame { aspect-ratio: 4 / 5; }
  .editorial .half.wide .frame { aspect-ratio: 3 / 2; }
  .approach li { grid-template-columns: 2.25rem 1fr; }
}
