/* ═══════════════════════════════════════════════════
   Start of the Deal — Static Site Styles
   Editorial broadsheet aesthetic, warm & intellectual
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=Literata:ital,opsz,wght@0,7..72,400;0,7..72,500;1,7..72,400&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #FFF4EC;
  --surface: #FFFFFF;
  --ink: #1C1917;
  --ink-light: #44403C;
  --stone: #78716C;
  --accent: #C2410C;
  --accent-hover: #9A3412;
  --border: #E7E0D8;
  --border-light: #F0EBE4;
  --highlight: #FFF7ED;

  --font-display: 'Fraunces', serif;
  --font-body: 'Literata', serif;
  --font-ui: 'Plus Jakarta Sans', sans-serif;

  --max-width: 1140px;
  --content-width: 720px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-light);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

/* ─── Layout ─── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.content-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* ─── Header / Navigation ─── */
.site-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-logo span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--stone);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: all 0.3s;
}

.nav-toggle span + span { margin-top: 6px; }

/* ─── Hero ─── */
.hero {
  padding: 6rem 0 5rem;
  border-bottom: 1px solid var(--border);
}

.hero-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: block;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.03em;
  max-width: 800px;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
}

.hero p {
  font-size: 1.15rem;
  color: var(--stone);
  max-width: 560px;
  line-height: 1.7;
}

/* ─── Section Headings ─── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.75rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.section-header a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Post Cards ─── */
.posts-section {
  padding: 4rem 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 2.5rem;
}

.post-card {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2.5rem;
}

.post-card-meta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.post-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.post-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.post-card h3 a:hover {
  color: var(--accent);
}

.post-card p {
  font-size: 0.95rem;
  color: var(--stone);
  line-height: 1.65;
}

.post-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 3rem;
  border-bottom: 2px solid var(--border);
}

.post-card-featured .post-card-content {
  padding-top: 0.5rem;
}

.post-card-featured h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.post-card-featured p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.post-card-featured .read-more {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
  transition: all 0.2s;
}

.post-card-featured .read-more:hover {
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* ─── About Strip ─── */
.about-strip {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--highlight);
}

.about-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: center;
}

.about-strip h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

.about-strip h2 em {
  font-weight: 400;
  font-style: italic;
}

.about-strip p {
  margin-bottom: 1rem;
  color: var(--ink-light);
}

.about-strip p:last-of-type {
  margin-bottom: 1.75rem;
}

/* ─── Book Section ─── */
.book-section {
  padding: 5rem 0;
}

.book-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--surface);
  padding: 3rem;
  border: 1px solid var(--border);
}

.book-cover {
  width: 200px;
  height: 280px;
  background: linear-gradient(135deg, var(--ink) 0%, #44403C 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  flex-shrink: 0;
}

.book-cover-text {
  text-align: center;
  color: var(--bg);
}

.book-cover-text .book-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.book-cover-text .book-author {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
}

.book-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.book-content p {
  margin-bottom: 1rem;
  color: var(--ink-light);
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ─── Footer ─── */
.site-footer {
  padding: 3rem 0;
  border-top: 2px solid var(--ink);
  margin-top: 4rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.footer-left {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.footer-left span { color: var(--accent); }

.footer-right {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--stone);
}

.footer-right a {
  color: var(--stone);
  margin-left: 1.5rem;
}

.footer-right a:hover { color: var(--ink); }

/* ─── Page Header (for inner pages) ─── */
.page-header {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.page-header h1 em {
  font-weight: 400;
  font-style: italic;
}

.page-header p {
  margin-top: 1rem;
  color: var(--stone);
  max-width: 560px;
}

/* ─── About Page ─── */
.about-content {
  padding: 4rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, #E7E0D8 0%, #D4CBC0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2.5rem 0 1rem;
}

.about-text h2:first-child {
  margin-top: 0;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--ink-light);
}

.companies-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  list-style: none;
}

.companies-list li {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  color: var(--ink-light);
}

/* ─── Blog Listing ─── */
.blog-list {
  padding: 4rem 0;
}

.blog-list .post-card {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.blog-list .post-card:first-child {
  padding-top: 0;
}

.blog-list .post-card h3 {
  font-size: 1.75rem;
}

.blog-list .post-card p {
  font-size: 1rem;
  line-height: 1.7;
}

.blog-list .read-more {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

/* ─── Single Post ─── */
.post-header {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.post-header .content-narrow .post-card-meta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.post-originally {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--stone);
  opacity: 0.55;
  margin-top: 2.5rem;
  margin-bottom: 0;
  font-style: italic;
}

.post-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.post-body {
  padding-bottom: 4rem;
}

.post-body .content-narrow p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  color: var(--ink-light);
}

.post-body .content-narrow p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  float: left;
  line-height: 1;
  margin-right: 0.5rem;
  margin-top: 0.1rem;
  color: var(--ink);
}

.post-body .content-narrow blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--ink);
}

.post-body .content-narrow h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2.5rem 0 1rem;
}

.post-nav {
  border-top: 2px solid var(--ink);
  padding-top: 1.5rem;
  margin-bottom: 2rem;
}

.post-nav a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Book Page ─── */
.book-page-content {
  padding: 4rem 0;
}

.book-page-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.book-page-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--ink) 0%, #44403C 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: sticky;
  top: 6rem;
}

.book-page-cover .book-cover-text .book-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.book-page-cover .book-cover-text .book-author {
  font-size: 0.75rem;
}

.book-page-text h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2.5rem 0 1rem;
}

.book-page-text h2:first-child {
  margin-top: 0;
}

.book-page-text p {
  margin-bottom: 1rem;
  color: var(--ink-light);
}

.book-page-text blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 0 1rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero, .page-header, .post-header {
  animation: fadeUp 0.6s ease-out;
}

.post-card, .book-inner, .about-grid, .book-page-grid {
  animation: fadeUp 0.5s ease-out both;
}

.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.15s; }
.post-card:nth-child(3) { animation-delay: 0.2s; }
.post-card:nth-child(4) { animation-delay: 0.25s; }
.post-card:nth-child(5) { animation-delay: 0.3s; }
.post-card:nth-child(6) { animation-delay: 0.35s; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    border-left: 1px solid var(--border);
    transition: right 0.3s ease;
    z-index: 200;
  }

  .site-nav.open { right: 0; }

  .site-nav a {
    font-size: 1rem;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 150;
  }

  .nav-overlay.open { display: block; }

  .hero { padding: 3.5rem 0 3rem; }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .post-card-featured {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .post-card-featured h3 { font-size: 1.5rem; }

  .about-strip-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-photo {
    max-width: 200px;
  }

  .book-inner {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .book-cover { width: 160px; height: 220px; }

  .book-page-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .book-page-cover {
    max-width: 200px;
    position: static;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-right a:first-child { margin-left: 0; }
}
