/* Shared styles for the /builds/ landing pages: the homepage styles from index.html, then the landing-page rules. */
/* Layout borrows bradleyziffer.com (2026-11-23); colours and type are Pranav's own: white page, evergreen accent, Libre Caslon Display, General Sans, Red Hat Mono. */
:root {
  --paper: #ffffff;
  --ink: #1b1a17;
  --ink-2: #57544c;
  --rule: rgb(27 26 23 / .14);
  --accent: #24513c;
  --accent-deep: #1b3f2e;
  --accent-wash: #dce6dc;
  --tint-1: #c9d8c6;
  --tint-2: #d6dcc4;
  --tint-3: #bfd2c3;
  --serif: "Libre Caslon Display", Georgia, serif;
  --sans: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, Menlo, monospace;
  --wrap: min(1248px, calc(100% - 64px));
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); text-rendering: optimizeLegibility; }
::selection { background: var(--accent-wash); color: var(--ink); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
p { margin: 0; }
.wrap { width: var(--wrap); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; }
.nb { white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 30; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

/* header: a mark and one black pill */
.top .wrap { display: flex; align-items: center; justify-content: space-between; padding: 32px 0 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__name { font: 400 22px/1 var(--serif); }
.mark { width: 40px; height: 40px; overflow: visible; }
.mark circle, .mark path { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.mark .mark__fill { fill: var(--accent-wash); }
.mark .mark__pin { fill: var(--accent); stroke-width: 0; }
.mark__needle { transform-origin: 12px 12px; transition: transform .9s cubic-bezier(.34, 1.56, .64, 1); }
.brand:hover .mark__needle, .brand:focus-visible .mark__needle { transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .mark__needle { transition: none; } }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: #fff; font: 500 16px/1 var(--sans); text-decoration: none; transition: background-color .2s; }
.pill:hover { background: var(--accent-deep); }
.pill__short { display: none; }

/* hero */
.hero { padding: 64px 0 120px; }
.hero h1 { font-size: clamp(36px, 3.4vw, 48px); line-height: 1.16; letter-spacing: -.01em; max-width: 13em; }
.hero h1 em { font-style: italic; }
.hl { color: var(--accent); background: var(--accent-wash); display: inline-block; line-height: .85; padding: 0 .06em .22em; }
.ico { display: inline-block; width: .5em; height: .5em; margin: 0 .12em 0 .32em; vertical-align: .08em; overflow: visible; }
.ico circle, .ico path { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico .ico__fill { fill: var(--accent-wash); }
.hero__lead { margin-top: 36px; max-width: 34em; font-size: 18px; line-height: 1.6; color: var(--ink-2); }

/* section label: an outlined serif pill */
.label { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 999px; font: 400 22px/1 var(--serif); }
.section { padding: 0 0 160px; }
.section__top { margin-bottom: 40px; }

/* selected builds: a narrow and a wide column of tiles */
.tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.04fr); gap: 16px; align-items: start; }
.tiles__col { display: grid; gap: 16px; }
.tile { display: block; text-decoration: none; }
.tile__frame { position: relative; display: block; border-radius: 20px; overflow: hidden; background: var(--tint-1); }
.tile--n .tile__frame { aspect-ratio: 405 / 420; }
.tile--t .tile__frame { aspect-ratio: 405 / 560; }
.tile--w .tile__frame { aspect-ratio: 825 / 560; }
.tile:nth-child(2) .tile__frame { background: var(--tint-2); }
.tile:nth-child(3) .tile__frame { background: var(--tint-3); }
.tile__shot { position: absolute; left: 9%; width: min(96%, 720px); top: 11%; display: block; padding-top: 26px; border-radius: 10px; overflow: hidden; background: #fafafa; box-shadow: 0 0 0 1px rgb(15 17 17 / .08), 0 24px 48px -24px rgb(15 17 17 / .35); transition: transform .7s var(--ease); }
.tile__shot::before { content: ""; position: absolute; inset: 0 0 auto; height: 26px; border-bottom: 1px solid rgb(15 17 17 / .07); background: radial-gradient(circle at 14px 13px, #d4d6d7 3.5px, transparent 4px), radial-gradient(circle at 27px 13px, #d4d6d7 3.5px, transparent 4px), radial-gradient(circle at 40px 13px, #d4d6d7 3.5px, transparent 4px); }
.tile__shot img { display: block; }
@media (hover: hover) { .tile:hover .tile__shot { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .tile__shot { transition: none; } .tile:hover .tile__shot { transform: none; } }
.tile__cap { display: flex; flex-direction: column; gap: 2px; padding: 12px 4px 8px; }
.tile__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tile__row b { font-weight: 500; font-size: 17px; }
.tile__cap > span:last-child { color: var(--ink-2); font-size: 15px; max-width: 40em; }
.tag { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); white-space: nowrap; }
.tag svg { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.tile:hover .tile__row b { text-decoration: underline; text-underline-offset: 4px; }

/* section headings: large centered serif with one evergreen italic phrase */
.sec__head { margin-bottom: 56px; }
.sec__head--right { text-align: right; }
.sec__head h2 { font-size: clamp(40px, 5.6vw, 80px); line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
.sec__head h2 em { font-style: italic; color: var(--accent); }
.roles { list-style: none; margin: 0; padding: 0; }
.roles li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) 11em; gap: 24px; align-items: baseline; padding: 22px 0; font-size: 18px; line-height: 1.3; }
.roles li + li { border-top: 1px solid var(--rule); }
.roles li span:first-child { font-weight: 500; }
.roles li span:nth-child(2) { color: var(--ink-2); }
.roles li span:last-child { text-align: right; font: 400 13px/1.3 var(--mono); letter-spacing: .02em; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* four kinds of work: serif titles beside short descriptions */
.craft__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.craft__grid li { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 24px; align-items: start; min-width: 0; padding: 40px 40px 40px 0; }
.craft__grid li:nth-child(even) { padding: 40px 0 40px 40px; border-left: 1px solid var(--rule); }
.craft__grid li:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
.craft__grid h3 { font-size: 34px; line-height: 1.1; }
.craft__grid p { color: var(--ink-2); }
.craft__grid a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 8px; color: var(--accent); text-decoration: none; }
.craft__grid a svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.craft__grid a:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* closing statement and footer */
.close { padding: 40px 0 48px; }
.close__rule { border: 0; height: 1px; margin: 0 0 24px; background: repeating-linear-gradient(90deg, rgb(27 26 23 / .45) 0 10px, transparent 10px 18px); }
.close h2 { font-size: max(40px, calc(min(1248px, 100vw - 64px) / 11.1)); line-height: 1.05; letter-spacing: -.015em; white-space: nowrap; }
.close h2 em { font-style: italic; color: var(--accent); }
.foot { display: flex; flex-wrap: wrap; gap: 12px 56px; margin-top: 56px; font: 500 16px/1 var(--sans); }
.foot a { text-decoration: none; min-height: 24px; display: inline-flex; align-items: center; }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot span { color: var(--ink-2); margin-left: auto; font: 400 13px/1 var(--mono); letter-spacing: .02em; }

@media (max-width: 1000px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile--n .tile__frame, .tile--t .tile__frame, .tile--w .tile__frame { aspect-ratio: 16 / 11; }
  .craft__grid { grid-template-columns: minmax(0, 1fr); }
  .craft__grid li, .craft__grid li:nth-child(even) { padding: 32px 0; border-left: 0; }
  .craft__grid li:nth-child(-n+3) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 700px) {
  :root { --wrap: calc(100% - 40px); }
  .hero { padding: 48px 0 88px; }
  .section { padding-bottom: 112px; }
  .tile--n .tile__frame, .tile--t .tile__frame, .tile--w .tile__frame { aspect-ratio: 4 / 3; border-radius: 16px; }
  .tile__shot { left: 6%; width: 120%; top: 10%; }
  .sec__head--right { text-align: left; }
  .roles li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; font-size: 16px; }
  .roles li span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--ink-2); }
  .roles li span:last-child { grid-column: 2; grid-row: 1; }
  .craft__grid li { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .close h2 { white-space: normal; }
  .foot span { margin-left: 0; width: 100%; }
}
@media (max-width: 420px) { .pill__long { display: none; } .pill__short { display: inline; } }

/* builds landing pages */
.bhero { padding: 64px 0 96px; }
.bhero__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 24px; color: var(--ink-2); text-decoration: none; }
.bhero__back:hover { color: var(--ink); }
.bhero__back svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.bhero h1 { font-size: clamp(48px, 6vw, 88px); line-height: 1.04; letter-spacing: -.015em; max-width: none; }
.bhero__lead { margin-top: 28px; max-width: 34em; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.bhero__count { margin-top: 20px; color: var(--ink-2); }
.ltiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ltiles .tile__frame { aspect-ratio: 612 / 470; }
.ltiles--solo { grid-template-columns: minmax(0, 1fr); }
.ltiles--solo .tile__frame { aspect-ratio: 1248 / 620; }
.ltiles--solo .tile__shot { left: 18%; width: min(64%, 720px); top: 9%; }
.blist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.blist a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 18px 0; border-top: 1px solid var(--rule); text-decoration: none; min-height: 44px; }
.blist b { font-weight: 500; }
.blist em { grid-column: 1; font-style: normal; font-size: 15px; color: var(--ink-2); }
.blist .mono { grid-column: 2; grid-row: 1; align-self: center; color: var(--ink-2); }
.blist a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.bnav { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bnav a { display: flex; flex-direction: column; gap: 6px; min-height: 44px; text-decoration: none; }
.bnav b { font: 400 34px/1.1 var(--serif); }
.bnav span { color: var(--ink-2); }
.bnav a:hover b { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
@media (max-width: 1000px) { .ltiles { grid-template-columns: minmax(0, 1fr); } .ltiles .tile__frame, .ltiles--solo .tile__frame { aspect-ratio: 16 / 11; } .ltiles--solo .tile__shot { left: 9%; width: min(96%, 720px); } }
@media (max-width: 760px) { .blist { grid-template-columns: minmax(0, 1fr); } .bnav { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .ltiles .tile__frame, .ltiles--solo .tile__frame { aspect-ratio: 4 / 3; } .ltiles--solo .tile__shot { left: 6%; width: 120%; top: 10%; } }
