/* =========================================================================
   THE INDEPENDENT ARCHITECT
   Christopher Schumm, AIA — book series site
   Design system: navy + brass + cream, editorial serif display + Inter body
   ========================================================================= */

:root {
  /* Brand colors — series consistent with Book 1 cover */
  --navy:        #0E2A3B;
  --navy-deep:   #091f2d;
  --navy-elev:   #143548;
  --brass:       #C08A3E;
  --brass-hi:    #D9A65B;
  --cream:       #F3EEE3;
  --cream-warm:  #EFE9DA;
  --paper:       #FAF6EC;
  --ink:         #1B2A36;
  --ink-muted:   #4B5A66;
  --rule:        rgba(14, 42, 59, 0.14);
  --rule-strong: rgba(14, 42, 59, 0.25);

  /* Fonts */
  --font-display: 'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Spacing scale */
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-5:  1.25rem;
  --s-6:  1.5rem;
  --s-8:  2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;

  /* Container */
  --container-max: 1160px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--brass); }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 236, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s-4);
  padding-bottom: var(--s-4);
  gap: var(--s-6);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  text-decoration: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--brass);
  flex: 0 0 auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}
.brand-line-1 { color: var(--ink-muted); font-weight: 600; }
.brand-line-2 { color: var(--navy); font-size: 0.86rem; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  font-size: 0.92rem;
  font-weight: 500;
}
.primary-nav a {
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s ease;
}
.primary-nav a:hover { color: var(--brass); }
.nav-cta {
  padding: 0.55rem 1rem;
  background: var(--navy);
  color: var(--cream) !important;
  border-radius: 2px;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--navy-deep); }

@media (max-width: 700px) {
  .primary-nav a:not(.nav-cta) { display: none; }
  .brand-text { font-size: 0.66rem; }
  .brand-line-2 { font-size: 0.78rem; }
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(192, 138, 62, 0.06), transparent 60%),
    var(--paper);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 8vw, 6rem);
  border-bottom: 1px solid var(--rule);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.25rem;
  padding-left: 2.5rem;
  position: relative;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 1px;
  background: var(--brass);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-6);
  color: var(--navy);
}
.hero-title em {
  font-style: italic;
  color: var(--brass);
  font-weight: 500;
}

.hero-lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 42ch;
  margin: 0 0 var(--s-8);
}

.hero-actions {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.hero-quote {
  border-left: 2px solid var(--brass);
  padding: var(--s-4) 0 var(--s-4) var(--s-6);
  position: relative;
  align-self: center;
  max-width: 32ch;
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 0.5;
  color: var(--brass);
  margin-bottom: 0.5rem;
}
.hero-quote blockquote {
  margin: 0 0 var(--s-4);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--navy);
}
.quote-attr {
  font-size: 0.85rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 2px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--brass);
  color: var(--navy);
  border-color: var(--brass);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--rule-strong);
}
.btn-ghost:hover {
  border-color: var(--navy);
  background: rgba(14, 42, 59, 0.05);
}

/* -------------------------------------------------------------------------
   Section heads
   ------------------------------------------------------------------------- */
.section-head {
  margin-bottom: var(--s-12);
  max-width: 60ch;
}
.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-num {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--brass);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 var(--s-4);
}
.section-lede {
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
}
.section-head--center .section-lede { margin-left: auto; margin-right: auto; }

/* -------------------------------------------------------------------------
   The series
   ------------------------------------------------------------------------- */
.series {
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.books {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}
.book {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.book:nth-child(even) {
  grid-template-columns: 1fr 280px;
}
.book:nth-child(even) .book-cover { order: 2; }
.book:nth-child(even) .book-body  { order: 1; }

@media (max-width: 720px) {
  .book,
  .book:nth-child(even) { grid-template-columns: 1fr; gap: var(--s-6); }
  .book:nth-child(even) .book-cover { order: 0; }
  .book:nth-child(even) .book-body  { order: 0; }
  .book-cover { max-width: 220px; }
}

.book-cover {
  position: relative;
}
.book-cover img {
  width: 100%;
  border-radius: 2px;
  box-shadow:
    0 1px 2px rgba(14, 42, 59, 0.10),
    0 20px 40px -12px rgba(14, 42, 59, 0.25),
    0 6px 14px -6px rgba(14, 42, 59, 0.15);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.book:hover .book-cover img { transform: translateY(-4px); }

.book-meta {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.75rem;
}
.book--coming .book-meta { color: var(--ink-muted); }

.book-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 0.35rem;
}
.book-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-muted);
  margin-bottom: var(--s-5);
}
.book-blurb {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 var(--s-5);
  max-width: 55ch;
}
.book-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-6);
  max-width: 55ch;
}
.book-bullets li {
  position: relative;
  padding-left: 1.5rem;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink);
  border-top: 1px solid var(--rule);
}
.book-bullets li:last-child { border-bottom: 1px solid var(--rule); }
.book-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  top: 0.3rem;
  color: var(--brass);
  font-weight: 700;
}
.book-actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}

/* -------------------------------------------------------------------------
   About
   ------------------------------------------------------------------------- */
.about {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background:
    linear-gradient(180deg, transparent 0, rgba(14, 42, 59, 0.02) 100%),
    var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.about-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; }
}
.about-copy p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 var(--s-4);
  max-width: 58ch;
}
.about-copy .about-lede {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--navy);
}

.about-side {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  padding-left: var(--s-6);
  border-left: 1px solid var(--rule-strong);
}
@media (max-width: 900px) {
  .about-side {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--rule-strong);
    padding-top: var(--s-6);
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .pull-stat { flex: 1 1 30%; min-width: 140px; }
}

.pull-stat-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--brass);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.pull-stat-label {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-muted);
  max-width: 24ch;
}

/* -------------------------------------------------------------------------
   Newsletter
   ------------------------------------------------------------------------- */
.newsletter {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(4rem, 9vw, 7rem) 0;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(192, 138, 62, 0.18), transparent 70%);
  pointer-events: none;
}
.newsletter-inner {
  position: relative;
  max-width: 720px;
}
.newsletter .section-title { color: var(--cream); }
.newsletter .section-lede { color: rgba(243, 238, 227, 0.75); }
.newsletter .section-num { color: var(--brass-hi); }
.newsletter em { color: var(--brass-hi); font-style: italic; }

.signup-form {
  margin-top: var(--s-6);
}
.signup-label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(243, 238, 227, 0.7);
  margin-bottom: 0.5rem;
  text-align: left;
}
.signup-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-3);
}
@media (max-width: 560px) {
  .signup-row { grid-template-columns: 1fr; }
}
.signup-input {
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(243, 238, 227, 0.25);
  border-radius: 2px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.signup-input::placeholder { color: rgba(243, 238, 227, 0.45); }
.signup-input:focus {
  outline: none;
  border-color: var(--brass);
  background: rgba(255, 255, 255, 0.10);
}
.btn-signup {
  background: var(--brass);
  color: var(--navy);
  border-color: var(--brass);
}
.btn-signup:hover {
  background: var(--brass-hi);
  color: var(--navy);
  border-color: var(--brass-hi);
}
.signup-fine {
  font-size: 0.83rem;
  color: rgba(243, 238, 227, 0.55);
  margin: var(--s-3) 0 0;
  text-align: left;
}
.signup-thanks {
  margin-top: var(--s-4);
  padding: var(--s-4);
  background: rgba(192, 138, 62, 0.12);
  border: 1px solid var(--brass);
  border-radius: 2px;
  font-size: 1rem;
  color: var(--cream);
  text-align: center;
}
.signup-thanks strong { color: var(--brass-hi); }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(243, 238, 227, 0.7);
  padding: var(--s-12) 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-6);
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--cream);
}
.footer-brand .brand-mark { color: var(--brass); width: 32px; height: 32px; }
.footer-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--cream);
  line-height: 1.2;
}
.footer-sub {
  font-size: 0.83rem;
  color: rgba(243, 238, 227, 0.55);
}

.footer-nav {
  display: flex;
  gap: var(--s-5);
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: rgba(243, 238, 227, 0.8);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--brass-hi); }

.footer-legal {
  font-size: 0.82rem;
  color: rgba(243, 238, 227, 0.45);
  text-align: right;
}
@media (max-width: 720px) {
  .footer-legal { text-align: center; }
}

/* -------------------------------------------------------------------------
   Prefers-reduced-motion
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
