/* parvezpothiawala.com
   Palette: ten swatches only. Cream is the frame, teal is the view, ochre is the accent. */
:root {
  --ink: #09212b;
  --teal: #255e71;
  --sky: #419296;
  --mint: #a1d0be;
  --cream: #f3f3e1;
  --ochre: #e39d37;
  --red: #a12f20;
  --ink-soft: rgba(9, 33, 43, 0.74);
  --hair: rgba(37, 94, 113, 0.35);
  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
img, svg { max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--teal); text-underline-offset: 5px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }
strong { font-weight: 600; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 48px; padding-right: 48px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--cream); padding: 8px 12px; z-index: 10; }

/* Header */
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.brand { font-family: var(--serif); font-size: 24px; color: var(--ink); text-decoration: none; }
.brand small { font-family: var(--sans); font-size: 14px; letter-spacing: 0.02em; color: var(--teal); margin-left: 6px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; font-size: 15px; }
.nav a { color: var(--teal); text-decoration: none; padding: 12px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ochre); }
.nav a.nav-cta { background: var(--teal); color: var(--cream); padding: 12px 22px; border: 0; }
.nav a.nav-cta:hover { background: var(--ink); }

/* Type */
.eyebrow, .label { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.label { color: var(--teal); }
.display { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -0.015em; }
.display--inner { font-size: clamp(38px, 5.2vw, 68px); max-width: 860px; }
.display--about { font-size: clamp(38px, 4.6vw, 60px); }
.lede { font-size: 20px; max-width: 700px; }
h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.12; }
h3, .h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; }
.soft { color: var(--ink-soft); }
.small { font-size: 16px; }
.rule { width: 72px; height: 3px; background: var(--ochre); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--lg { gap: 24px; }
.measure { max-width: 640px; }

/* Buttons and links */
.btn { display: inline-block; background: var(--ochre); color: var(--ink); text-decoration: none; font-family: var(--sans); font-weight: 600; font-size: 18px; line-height: 1.3; padding: 15px 30px; border: 0; border-radius: 2px; cursor: pointer; }
.btn:hover { background: var(--cream); color: var(--ink); }
.window--sky .btn:hover, .section .btn:hover { background: var(--ink); color: var(--cream); }
.btn--dark { background: var(--ink); color: var(--cream); font-weight: 500; font-size: 17px; padding: 14px 26px; }
.btn--dark:hover { background: var(--teal); color: var(--cream); }
.btn--ghost { background: transparent; color: var(--cream); font-weight: 500; font-size: 17px; padding: 13px 26px; border: 1px solid var(--sky); }
.btn--ghost:hover { background: var(--teal); color: var(--cream); }
.link-strong { color: var(--ink); font-weight: 600; padding: 12px 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

/* The window: a teal view framed by the cream page, with an ochre sill */
.window { margin: 0 24px; border-bottom: 6px solid var(--ochre); overflow: hidden; }
.window--sky { background: var(--sky); color: var(--ink); }
.window--deep { background: var(--teal); color: var(--cream); }
.window--deep .lede, .window--deep p { color: rgba(243, 243, 225, 0.92); }
.window .wrap { padding-top: 104px; padding-bottom: 32px; }
.window .stack { gap: 32px; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 80px; align-items: center; }
.hero-grid .lede { max-width: 500px; }
.range { display: block; width: 100%; height: 240px; }
.range--low { height: 110px; }

/* Source health panel */
.panel { background: var(--cream); color: var(--ink); padding: 28px 32px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 18px; }
.panel-head .h3 { font-size: 22px; }
.panel-row { display: flex; justify-content: space-between; gap: 12px; padding: 15px 0; border-top: 1px solid rgba(9, 33, 43, 0.16); font-size: 16px; }
.mono { font-family: var(--mono); font-size: 13px; color: var(--teal); white-space: nowrap; }
.mono--stale { color: var(--red); }
.panel-note { padding-top: 16px; border-top: 1px solid rgba(9, 33, 43, 0.16); font-size: 14px; color: var(--ink-soft); }

/* Bands */
.band--deep { background: var(--teal); color: var(--cream); }
.band--mint { background: rgba(161, 208, 190, 0.45); }
.band--sky { background: var(--sky); }
.band--mint .soft { color: rgba(9, 33, 43, 0.8); }
.stats { margin-top: 24px; }
.stats .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px 48px; padding-top: 56px; padding-bottom: 56px; }
.stat-num { font-family: var(--serif); font-weight: 300; font-size: 64px; line-height: 1.1; }
.stat-label { font-size: 15px; color: rgba(243, 243, 225, 0.9); }

/* Sections */
.section { padding-top: 120px; padding-bottom: 120px; }
.section--tight-top { padding-top: 0; }
.section-head { margin-bottom: 64px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 64px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; }
.cols--5 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.cols--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 64px; }
.card { border-top: 3px solid var(--sky); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.card--deep { border-top-color: var(--teal); }
.card p, .card li { color: var(--ink-soft); font-size: 16px; }
.card .label { color: var(--teal); font-size: 12px; }
.card .stage-num { color: var(--teal); font-size: 48px; }
.card--no { border-top-color: var(--red); }
.card--no .label { color: var(--red); }
.band--mint .card p { color: rgba(9, 33, 43, 0.8); }
.card ul { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; }
.card ul li { font-size: 17px; color: rgba(9, 33, 43, 0.8); }
.stage-num { font-family: var(--serif); font-weight: 300; font-size: 48px; line-height: 1; color: var(--teal); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 88px; }
.rows li { padding: 20px 0; border-top: 1px solid var(--hair); }
.rows li:last-child { border-bottom: 1px solid var(--hair); }
.rows .label { display: block; font-size: 11px; margin-bottom: 6px; }
.rows .sub { display: block; color: var(--ink-soft); font-size: 16px; }
.band--mint .rows .sub, .band--mint .rows span { color: rgba(9, 33, 43, 0.8); }
.rows .tag { color: var(--teal); }
.steps li { display: flex; gap: 24px; align-items: baseline; }
.step-num { font-family: var(--serif); font-size: 28px; color: var(--sky); }

/* Boards */
.board { display: flex; flex-direction: column; gap: 20px; color: var(--ink); text-decoration: none; }
.board-tile { height: 200px; background: var(--teal); color: var(--cream); display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 24px; border-bottom: 4px solid var(--ochre); }
.board-tile .h3 { font-size: 30px; font-weight: 300; color: var(--cream); }
.board-tile .mono { color: var(--mint); white-space: normal; }
.board:hover .board-tile { background: var(--ink); }
.board p { color: rgba(9, 33, 43, 0.8); font-size: 16px; }
.board .label { color: var(--teal); font-size: 11px; }

/* Callout */
.callout .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; padding-top: 72px; padding-bottom: 72px; }
.callout h2 { font-weight: 400; font-size: 34px; }
.callout p { color: var(--ink); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: 13px; color: var(--teal); padding-top: 8px; }
.chips li { border: 1px solid var(--sky); padding: 9px 14px; }

/* Quote */
.quote .wrap { padding-top: 112px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 28px; }
.quote blockquote { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.2; max-width: 880px; }
.quote figcaption { font-size: 16px; color: rgba(243, 243, 225, 0.92); }

/* About hero */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 88px; align-items: center; }
.about-grid .stack { gap: 24px; max-width: 760px; }
.photo { width: 100%; height: 480px; object-fit: cover; display: block; }
.window--deep.window--about .wrap { padding-top: 104px; padding-bottom: 104px; }

/* Closing band and footer */
.close { background: var(--ink); color: var(--cream); border-top: 6px solid var(--ochre); }
.close .wrap.close-main { padding-top: 112px; padding-bottom: 112px; }
.close h2 { max-width: 760px; }
.close h2.big { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; }
.close p { color: var(--mint); max-width: 540px; }
.close-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.close-row h2 { max-width: 620px; }
.close a.plain { color: var(--mint); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 28px; border-top: 1px solid rgba(65, 146, 150, 0.6); font-size: 14px; color: var(--mint); }
.foot a { color: var(--mint); }
.foot a:hover { color: var(--cream); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* Contact form */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; width: 100%; max-width: 760px; padding-top: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mint); }
.form input, .form textarea { background: transparent; border: 0; border-bottom: 1px solid var(--sky); border-radius: 0; color: var(--cream); font-family: var(--sans); font-size: 17px; letter-spacing: 0; text-transform: none; min-height: 44px; padding: 8px 0; }
.form textarea { resize: vertical; }
.form .full { grid-column: 1 / -1; }
.form .hp { position: absolute; left: -9999px; }
.form-status { font-size: 16px; color: var(--cream); min-height: 1.6em; }

/* Plain pages (privacy, 404) */
.plain-page { padding-top: 96px; padding-bottom: 120px; max-width: 760px; }
.plain-page h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08; }
.plain-page h2 { font-size: 28px; margin-top: 16px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding-left: 22px; padding-right: 22px; }
  .window { margin: 0 10px; }
  .window .wrap { padding-top: 64px; padding-bottom: 40px; }
  .window--deep.window--about .wrap { padding-top: 56px; padding-bottom: 56px; }
  .hero-grid, .about-grid, .split { gap: 48px; grid-template-columns: 1fr; }
  .cols, .cols--2, .cols--5 { grid-template-columns: 1fr; gap: 36px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .section--tight-top { padding-top: 0; }
  .section-head, .head-row { margin-bottom: 40px; }
  .lede { font-size: 18px; }
  .range { height: 140px; }
  .range--low { height: 70px; }
  .stat-num { font-size: 48px; }
  .close .wrap.close-main, .quote .wrap { padding-top: 72px; padding-bottom: 72px; }
  .nav { gap: 4px 22px; }
  .photo { height: 340px; }
  .panel { padding: 22px 20px; }
  .panel-row .mono { white-space: normal; text-align: right; }
}
