/* Sonam Choudhury — site styles
   Palette and type per the Website Design Brief (Nov 2026). */

@font-face {
  font-family: "Libre Caslon Display";
  src: url("/assets/fonts/libre-caslon-display-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --chalk: #F5F5F2;
  --mineral: #D4D8D7;
  --graphite: #292D30;
  --petrol: #183E49;
  --steel: #82969D;
  --text-soft: #4A5054;      /* graphite tint, 7.6:1 on chalk */
  --on-petrol-soft: #C9D3D4; /* 9:1 on petrol */

  --serif: "Libre Caslon Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", Arial, Helvetica, sans-serif;

  --display: clamp(42px, 28px + 3.9vw, 88px);
  --headline: clamp(30px, 24px + 1.5vw, 46px);
  --lead: clamp(20px, 17px + 0.6vw, 25px);
  --body: clamp(16px, 15.6px + 0.12vw, 18px);

  --margin: clamp(20px, 5.5vw, 88px);
  --gutter: clamp(24px, 2.2vw, 32px);
  --max: 1440px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--graphite);
  font-family: var(--sans);
  font-size: var(--body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--petrol); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--graphite); }
::selection { background: var(--petrol); color: var(--chalk); }
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; }
.on-petrol :focus-visible { outline-color: var(--chalk); }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--margin); top: 12px; z-index: 50; background: var(--petrol); color: var(--chalk); padding: 8px 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.rule { height: 1px; border: 0; margin: 0; background: var(--steel); opacity: .55; }

/* Labels and small type */
.eyebrow {
  font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--petrol);
}
.caption { font-size: 12.5px; color: var(--text-soft); line-height: 1.5; }

/* ---------- Header ---------- */
.site-header .bar {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-block: 28px 18px; gap: 24px;
}
.wordmark {
  font-family: var(--serif); font-size: clamp(19px, 17px + .4vw, 23px);
  letter-spacing: -.01em; color: var(--graphite); text-decoration: none; white-space: nowrap;
}
.wordmark:hover { color: var(--petrol); }
.nav ul { display: flex; gap: clamp(20px, 2.6vw, 36px); }
.nav a {
  font-size: 14px; color: var(--graphite); text-decoration: none; padding-block: 6px;
  background: linear-gradient(var(--petrol), var(--petrol)) no-repeat 0 100% / 0 1px;
  transition: background-size .4s var(--ease), color .25s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--petrol); background-size: 100% 1px; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px); align-items: center; }
.hero-copy { grid-column: 1 / span 5; }
.hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: var(--display);
  line-height: .98; letter-spacing: -.018em;
}
.hero .positioning {
  font-family: var(--serif); font-size: var(--lead); line-height: 1.32;
  margin-top: clamp(18px, 2vw, 28px); max-width: 19em;
}
.hero .eyebrow { margin-top: clamp(28px, 3.4vw, 48px); }
.hero-visual { grid-column: 6 / span 7; }

/* Light study: an abstract, photo-free stand-in for directional daylight on concrete.
   Swap for an approved portrait or cleared architectural photograph when available. */
.light-study {
  position: relative; overflow: hidden; aspect-ratio: 7 / 5;
  background:
    radial-gradient(120% 90% at 90% 110%, rgba(41,45,48,.30), transparent 60%),
    linear-gradient(180deg, #B9BFBF 0%, #A9B0B1 100%);
}
.light-study::before { /* a long diagonal shaft of light */
  content: ""; position: absolute; inset: -20% -10% -20% 18%;
  background: linear-gradient(90deg, transparent 0%, rgba(245,245,242,.0) 12%, rgba(245,245,242,.55) 30%, rgba(245,245,242,.62) 44%, rgba(245,245,242,0) 64%);
  transform: skewX(-32deg);
  filter: blur(1px);
}
.light-study::after { /* board-formed texture */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(41,45,48,.045) 0 1px, transparent 1px 22px);
  mix-blend-mode: multiply;
}
.light-study .slot { /* the vertical slot window */
  position: absolute; left: 13%; top: 0; bottom: 21%; width: 2.4%;
  background: linear-gradient(180deg, #EEF0EC, #DCE1DC 70%, #C8CFC6);
  box-shadow: 0 0 0 6px rgba(41,45,48,.18);
}
.light-study .plane { /* cantilevered plane, upper right */
  position: absolute; right: 0; top: 14%; width: 30%; height: 30%;
  background: linear-gradient(180deg, #9EA6A8, #8E979A);
  box-shadow: 0 30px 40px -20px rgba(41,45,48,.35);
}
.light-study .floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 21%;
  background: linear-gradient(180deg, #8F9799, #A2AAAB);
}
.light-study .bench {
  position: absolute; left: 32%; bottom: 21%; width: 34%; height: 4.5%;
  background: linear-gradient(180deg, #C5CACA, #A8AFB0);
}

/* ---------- Sections ---------- */
.section { padding-bottom: clamp(64px, 8vw, 120px); }
.section > .rule { margin-bottom: clamp(24px, 2.6vw, 36px); }
.section-head { grid-column: 1 / span 4; }
.section-body { grid-column: 5 / span 8; }
.section h2 {
  font-family: var(--serif); font-weight: 400; font-size: var(--headline);
  line-height: 1.1; letter-spacing: -.008em;
}
.lead { font-family: var(--serif); font-size: var(--lead); line-height: 1.4; max-width: 30em; }
.lead + .lead { margin-top: .7em; }
.prose p { max-width: 36em; color: var(--graphite); }
.prose p + p { margin-top: 1em; }
.more { display: inline-block; margin-top: 28px; font-size: 14px; font-weight: 500; }

/* ---------- Featured creation (petrol) ---------- */
.feature { background: var(--petrol); color: var(--chalk); }
.feature a { color: var(--chalk); }
.feature a:hover { color: var(--on-petrol-soft); }
.feature .inner { padding-block: clamp(48px, 6vw, 88px); align-items: center; row-gap: 32px; }
.feature .eyebrow { color: var(--on-petrol-soft); }
.feature-copy { grid-column: 1 / span 5; }
.feature h2, .feature-title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 28px + 3vw, 72px);
  line-height: 1; letter-spacing: -.014em; margin-top: 18px;
}
.feature .tagline { font-family: var(--serif); font-size: var(--lead); line-height: 1.35; margin-top: 22px; color: var(--chalk); }
.feature p.desc { margin-top: 18px; color: var(--on-petrol-soft); max-width: 30em; }
.feature .cta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 32px;
  font-size: 14px; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.feature .cta span { transition: transform .35s var(--ease); }
.feature .cta:hover span { transform: translateX(4px); }
.feature-media { grid-column: 7 / span 6; }
.feature-media .frame { aspect-ratio: 4 / 3; overflow: hidden; background: #0F2B33; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.feature-media .caption { color: var(--on-petrol-soft); margin-top: 12px; }

/* ---------- Background list (About) ---------- */
.background { margin-top: 48px; }
.background ul { border-top: 1px solid rgba(130,150,157,.55); }
.background li {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.5fr); gap: var(--gutter);
  padding-block: 15px; border-bottom: 1px solid rgba(130,150,157,.55); align-items: baseline;
}
.background .org { font-family: var(--serif); font-size: 21px; }
.background .area { font-size: 15px; color: var(--text-soft); }

/* ---------- Creations archive ---------- */
.archive { border-top: 1px solid rgba(130,150,157,.55); }
.entry {
  display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gutter);
  padding-block: clamp(28px, 3vw, 44px); border-bottom: 1px solid rgba(130,150,157,.55); row-gap: 20px;
}
.entry .meta { grid-column: 1 / span 2; font-size: 13px; color: var(--text-soft); padding-top: 6px; }
.entry .media { grid-column: 3 / span 4; }
.entry .media .frame { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mineral); }
.entry .media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.entry .copy { grid-column: 8 / span 5; }
.entry h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 22px + 1.2vw, 38px); line-height: 1.1; }
.entry p { margin-top: 14px; color: var(--text-soft); max-width: 32em; }
.entry .ext { display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 500; }
.entry.upcoming .copy p { font-style: normal; }

/* ---------- Contact ---------- */
.contact-links { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 26px; }
.contact-links a { font-size: 15px; font-weight: 500; }

/* ---------- Page intro (inner pages) ---------- */
.page-intro { padding-block: clamp(40px, 6vw, 88px) clamp(40px, 5vw, 72px); }
.page-intro h1 {
  grid-column: 1 / span 8; font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 28px + 3vw, 72px); line-height: 1.02; letter-spacing: -.016em; margin-top: 16px;
}
.page-intro .eyebrow { grid-column: 1 / -1; }
.page-intro .lead { grid-column: 1 / span 7; margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { padding-bottom: 36px; }
.site-footer .rule { margin-bottom: 20px; }
.site-footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 13px; color: var(--text-soft); }
.site-footer a { color: var(--text-soft); }
.site-footer a:hover { color: var(--petrol); }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-copy { grid-column: 1 / span 6; }
  .hero-visual { grid-column: 7 / span 6; }
  .light-study { aspect-ratio: 4 / 5; }
  .section-head { grid-column: 1 / span 4; }
  .section-body { grid-column: 5 / span 8; }
  .feature-copy { grid-column: 1 / span 6; }
  .feature-media { grid-column: 7 / span 6; }
}
@media (max-width: 760px) {
  :root { --margin: 22px; }
  .grid > *, .entry > * { grid-column: 1 / -1 !important; }
  .site-header .bar { padding-block: 18px 14px; align-items: center; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 10px 0;
    font: 500 14px/1 var(--sans); color: var(--graphite); cursor: pointer;
  }
  .menu-toggle .bars { width: 18px; height: 9px; position: relative; }
  .menu-toggle .bars::before, .menu-toggle .bars::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease);
  }
  .menu-toggle .bars::before { top: 0; }
  .menu-toggle .bars::after { top: 7.5px; }
  .menu-toggle[aria-expanded="true"] .bars::before { top: 4px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bars::after { top: 4px; transform: rotate(-45deg); }
  .site-header .bar { flex-wrap: wrap; row-gap: 0; }
  .site-header .nav { flex-basis: 100%; }
  .js .nav { display: none; }
  .js .nav.open { display: block; padding-top: 10px; }
  .js .nav ul { flex-direction: column; gap: 0; }
  .js .nav a { display: block; font-size: 17px; padding-block: 13px; border-top: 1px solid rgba(130,150,157,.35); background: none; }
  .no-js .menu-toggle { display: none; }

  .hero { padding-block: 28px 56px; row-gap: 28px; }
  .light-study { aspect-ratio: 4 / 3; }
  .section-head { margin-bottom: 18px; }
  .feature .inner { row-gap: 28px; }
  .feature-media { order: -1; }
  .background li { grid-template-columns: 1fr; gap: 2px; }
  .entry .meta { padding-top: 0; }
  .page-intro h1, .page-intro .lead { grid-column: 1 / -1; }
}
