/* =========================================================
   Perdata.ai — site styles
   Direction: monochrome. Generous spacing. Type does the work.
   ========================================================= */

:root {
  --ink: #111111;
  --bg: #FFFFFF;
  --bg-soft: #FAFAFA;
  --mute: #6B6B6B;
  --mute-2: #9A9A9A;
  --line: #ECECEC;
  --line-strong: #1A1A1A;
  --max: 1080px;
  --max-narrow: 760px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.5rem; line-height: 1.2; }

p { margin: 0; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--mute); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 1.8rem;
  display: inline-block;
}

.italic { font-style: italic; }

/* ============ NAV ============ */
nav.site-nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-mark {
  width: 24px;
  height: 24px;
  position: relative;
}
.brand-mark .a, .brand-mark .b {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}
.brand-mark .a {
  background: var(--ink);
  left: 0;
  top: 4px;
}
.brand-mark .b {
  background: transparent;
  border: 1.5px solid var(--ink);
  right: 0;
  top: 4px;
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 400;
}
.nav-links a:hover { color: var(--mute); }
.nav-links a.active { color: var(--mute); }

.nav-cta {
  background: var(--ink);
  color: var(--bg);
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 4px;

}

a.nav-cta, .nav-cta a { color: var(--bg); }

.nav-cta:hover, a.nav-cta:hover { background: var(--mute); color: var(--bg); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open li { border-top: 1px solid var(--line); }
  .nav-links.open a { display: block; padding: 18px 32px; }
  .nav-links.open .nav-cta { margin: 16px 32px; text-align: center; }
}

/* ============ HERO ============ */
.hero {
  padding: 140px 0 80px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  max-width: 14ch;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero h1 .italic {
  font-style: italic;
  color: var(--mute);
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--mute);
  max-width: 540px;
  margin-top: 48px;
  line-height: 1.55;
}

.hero-cta-row {
  display: flex;
  gap: 14px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 4px;
  letter-spacing: 0;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--mute); color: var(--bg); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--bg);
}

@media (max-width: 820px) {
  .hero { padding: 100px 0; }
}

/* ============ SECTIONS ============ */
section {
  padding: 140px 0;
}

@media (max-width: 820px) {
  section { padding: 80px 0; }
}

.photo-strip {
  width: 100%;
  height: 480px;
  overflow: hidden;
  line-height: 0;
}
.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.photo-diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 100%;
  height: 360px;
  overflow: hidden;
  line-height: 0;
}
.photo-diptych img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 4px;
}
@media (max-width: 600px) {
  .photo-diptych {
    grid-template-columns: 1fr;
    height: 560px;
  }
}

section.dark {
  background: var(--ink);
  color: var(--bg);
}
section.dark h1, section.dark h2, section.dark h3, section.dark h4 { color: var(--bg); }
section.dark .eyebrow { color: var(--mute-2); }
section.dark .mute, section.dark p.mute { color: rgba(255, 255, 255, 0.65); }

.section-head {
  max-width: 760px;
  margin-bottom: 80px;
}
.section-head h2 {
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}
.section-head p {
  font-size: 1.2rem;
  color: var(--mute);
  line-height: 1.55;
}
section.dark .section-head p { color: rgba(255, 255, 255, 0.65); }

/* ============ STAT ROW ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
  margin-top: 80px;
}
@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr; gap: 48px; }
}
.stat-big {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(3rem, 5.5vw, 4.4rem);
  color: var(--ink);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
section.dark .stat-big { color: var(--bg); }
.stat-label {
  color: var(--mute);
  font-size: 0.92rem;
  margin-top: 20px;
  max-width: 24ch;
  line-height: 1.5;
}
section.dark .stat-label { color: rgba(255, 255, 255, 0.6); }

/* ============ PRODUCT GRID ============ */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 800px) {
  .product-grid { grid-template-columns: 1fr; }
}

.product-card {
  padding: 56px 48px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: background 0.15s;
}
.product-card:hover { background: var(--bg-soft); }

.product-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 16px;
  display: block;
}
.product-card h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.product-card p {
  color: var(--mute);
  font-size: 0.97rem;
  line-height: 1.55;
}
.product-card .arrow {
  margin-top: auto;
  padding-top: 32px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}
.product-card .arrow::after {
  content: ' →';
  display: inline-block;
  transition: transform 0.15s;
}
.product-card:hover .arrow::after { transform: translateX(4px); }

/* ============ MANIFESTO ROW ============ */
.manifesto {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
  margin-top: 80px;
}
@media (max-width: 800px) {
  .manifesto { grid-template-columns: 1fr; gap: 48px; }
}
.manifest-item .num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--mute);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.manifest-item h3 {
  font-size: 1.9rem;
  margin-bottom: 14px;
}
.manifest-item p {
  color: var(--mute);
  line-height: 1.55;
}
section.dark .manifest-item .num { color: var(--mute-2); }
section.dark .manifest-item p {
  color: rgba(255, 255, 255, 0.65);
}

/* ============ BOOK BLOCK ============ */
.book-block {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 96px;
  align-items: center;
}
@media (max-width: 820px) {
  .book-block { grid-template-columns: 1fr; gap: 56px; }
}

.book-cover {
  background: var(--ink);
  color: var(--bg);
  aspect-ratio: 2 / 3;
  padding: 0px 0px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  max-width: 320px;
  margin: 0 auto;
}
.book-cover .label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}
.book-cover .title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.08;
  color: var(--bg);
  letter-spacing: -0.02em;
}
.book-cover .sub {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 14px;
  line-height: 1.3;
}
.book-cover .by {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}

.book-block h2 { margin-bottom: 24px; }
.book-block p { color: var(--mute); font-size: 1.05rem; line-height: 1.6; margin-bottom: 16px; }

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ============ TEAM ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 700px) {
  .team-grid { grid-template-columns: 1fr; }
}
.founder {
  padding: 56px 48px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.founder .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 28px;
  object-fit: cover;
  display: block;
}
.founder h3 { margin-bottom: 4px; font-size: 1.6rem; }
.founder .role {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 28px;
  font-weight: 600;
}
.founder p { color: var(--mute); font-size: 0.97rem; line-height: 1.6; }
.founder .link { font-size: 0.88rem; font-weight: 500; margin-top: 20px; display: inline-block; border-bottom: 1px solid var(--line); padding-bottom: 2px; }

/* ============ CTA ============ */
.cta-banner {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  padding: 160px 0;
}
.cta-banner h2 {
  color: var(--bg);
  max-width: 18ch;
  margin: 0 auto 48px;
  letter-spacing: -0.03em;
}
.cta-banner .row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-banner .btn-primary {
  background: var(--bg);
  color: var(--ink);
}
.cta-banner .btn-primary:hover { background: var(--mute-2); color: var(--ink); }
.cta-banner .btn-secondary {
  color: var(--bg);
  border-color: rgba(255, 255, 255, 0.4);
}
.cta-banner .btn-secondary:hover {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}

/* ============ FOOTER ============ */
footer.site-footer {
  background: var(--bg);
  color: var(--mute);
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
.footer-grid h4 {
  color: var(--ink);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-grid a {
  display: block;
  color: var(--mute);
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.footer-grid a:hover { color: var(--ink); }
.footer-grid p {
  color: var(--mute);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 30ch;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--mute-2);
}
@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ============ PRODUCT DETAIL PAGE ============ */
.product-detail {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}

.product-detail:last-child { border-bottom: none; }
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 96px;
  align-items: start;
}
@media (max-width: 820px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 40px; }
}
.product-detail h2 {
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.product-detail .tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 16px;
  display: inline-block;
}
.product-detail .summary {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--mute);
  margin-top: 20px;
  line-height: 1.4;
}
.product-detail ul {
  list-style: none;
  padding: 0;
}
.product-detail ul li {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.product-detail ul li:last-child { border-bottom: none; }
.product-detail ul li b {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
}
.product-detail ul li span {
  color: var(--mute);
  font-size: 0.97rem;
  line-height: 1.55;
}
.product-col-img {
  display: block;
  width: 100%;
  border-radius: 8px;
  margin-top: 30px;
}

/* ============ VISION ============ */
.vision-hero {
  padding: 140px 0 80px;
}
.vision-hero h1 {
  max-width: 18ch;
  margin-bottom: 56px;
  letter-spacing: -0.035em;
}
.vision-hero h1 .italic {
  font-style: italic;
  color: var(--mute);
}
.vision-hero .lead {
  font-size: 1.3rem;
  color: var(--mute);
  max-width: 640px;
  line-height: 1.55;
}

.principle {
  border-top: 1px solid var(--line);
  padding: 80px 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 56px;
}
@media (max-width: 820px) {
  .principle { grid-template-columns: 1fr; gap: 16px; padding: 56px 0; }
}
.principle .num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--mute);
  line-height: 1;
}
.principle h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.principle p { color: var(--mute); max-width: 640px; font-size: 1.05rem; line-height: 1.6; }

/* ============ CONTACT ============ */
.press-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.press-list li {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.press-title {
  display: inline-block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.press-title:hover { color: var(--ink); border-bottom-color: var(--ink); }
.press-list p { color: var(--mute); font-size: 0.97rem; line-height: 1.6; max-width: 720px; }

/* ============ RESOURCES ============ */
.resource-category {
  margin-bottom: 80px;
}
.resource-category > .eyebrow {
  margin-bottom: 0;
  display: block;
}
.resource-list {
  list-style: none;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.resource-item {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.resource-meta {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 10px;
}
.resource-type {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute-2);
}
.resource-author {
  font-size: 0.85rem;
  color: var(--mute);
}
.resource-title {
  display: inline-block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.resource-title:hover { color: var(--ink); border-bottom-color: var(--ink); }
.resource-item p { color: var(--mute); font-size: 0.97rem; line-height: 1.6; max-width: 720px; }

/* ============ BOOK RESOURCES ============ */
.org-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 820px) {
  .org-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .org-grid { grid-template-columns: 1fr; }
}
.org-card {
  padding: 36px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.org-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.org-card p { color: var(--mute); font-size: 0.92rem; line-height: 1.6; margin-bottom: 14px; }
.org-card .link { font-size: 0.85rem; }

.pundit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 700px) {
  .pundit-grid { grid-template-columns: 1fr; }
}
.pundit-card {
  padding: 40px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pundit-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.pundit-card p { color: var(--mute); font-size: 0.92rem; line-height: 1.6; margin-bottom: 8px; }
.pundit-book { font-style: italic; color: var(--mute-2) !important; }
.pundit-card .link { font-size: 0.85rem; margin-top: 6px; display: inline-block; }

.book-list {
  list-style: none;
  border-top: 1px solid var(--line);
  columns: 2;
  column-gap: 80px;
}
@media (max-width: 700px) {
  .book-list { columns: 1; }
}
.book-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.book-list li em { color: var(--ink); font-style: italic; font-size: 0.97rem; }
.book-list li span { color: var(--mute-2); font-size: 0.82rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-card {
  padding: 56px 48px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contact-card h3 { margin-bottom: 14px; font-size: 1.6rem; }
.contact-card p { color: var(--mute); margin-bottom: 24px; }
.contact-card .row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-card .row b { color: var(--ink); font-weight: 500; }
.contact-card .row a { font-weight: 500; border-bottom: 1px solid var(--line); padding-bottom: 1px; display: inline-block; }

/* ============ UTILITY ============ */
.center { text-align: center; }
.mute { color: var(--mute); }
.serif { font-family: 'Fraunces', Georgia, serif; }
.serif-italic { font-family: 'Fraunces', Georgia, serif; font-style: italic; }
