/* ==========================================================================
   CYT Chicago Inc — Specialty Coffee & Cafe Operations Architecture
   Handcrafted, Human-Centered Editorial Aesthetics
   ========================================================================== */

:root {
  /* Natural Paper & Roasted Espresso/Warm Caramel Palette */
  --paper: #FBF9F5;
  --paper-card: #FFFFFF;
  --paper-alt: #F4EFEA;
  --paper-border: #E6DFD6;
  
  --ink: #19120E;
  --ink-body: #362D27;
  --ink-muted: #73675E;
  
  --cobalt: #B85D19;
  --cobalt-hover: #96421C;
  --cobalt-soft: #FDF4EB;
  --terracotta: #A84B1E;
  --gold-foil: #D98838;
  --forest: #2D6A4F;
  --forest-soft: #F0FDF4;
  
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  --shadow-book: 0 28px 56px -14px rgba(25, 18, 14, 0.32), 0 10px 20px -5px rgba(25, 18, 14, 0.16);
  --shadow-card: 0 4px 20px rgba(25, 18, 14, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--paper);
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink-body);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1.2em;
}

a {
  color: inherit;
  transition: all 0.2s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--paper-border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  max-width: 1040px;
  margin: 0 auto;
}

.brand-press {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.brand-press .title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.1;
}

.brand-press .tag {
  font-size: 0.74rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-top: 2px;
}

nav.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav.header-nav a.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 4px 0;
}

nav.header-nav a.nav-link:hover {
  color: var(--ink);
}

.btn-header {
  background: var(--ink);
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-header:hover {
  background: var(--cobalt);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* ==========================================================================
   HERO: PHYSICAL BOOK / PLAYBOOK PRESENTATION
   ========================================================================== */
.hero-book {
  padding: 80px 0 70px;
  border-bottom: 1px solid var(--paper-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.edition-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--cobalt);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.edition-label::before {
  content: '';
  width: 14px;
  height: 2px;
  background: var(--cobalt);
}

.hero-book h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.14;
  margin: 0 0 22px;
}

.hero-book h1 em {
  font-style: italic;
  color: var(--cobalt);
  font-weight: 400;
}

.hero-subhead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink-body);
  margin-bottom: 32px;
  max-width: 48ch;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn-buy {
  background: var(--cobalt);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  padding: 15px 30px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25);
  transition: all 0.2s ease;
}

.btn-buy:hover {
  background: var(--cobalt-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(29, 78, 216, 0.35);
}

.btn-outline {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 20px;
  border-bottom: 1.5px solid var(--ink);
  transition: all 0.2s ease;
}

.btn-outline:hover {
  color: var(--cobalt);
  border-bottom-color: var(--cobalt);
}

.book-specs-strip {
  display: flex;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--paper-border);
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.book-specs-strip strong {
  color: var(--ink);
}

/* ==========================================================================
   3D HARDCOVER BOOK MOCKUP (WITH BLUE RIBBON BOOKMARK)
   ========================================================================== */
.book-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  padding: 24px 0 36px;
  position: relative;
}

.book-object {
  width: 295px;
  height: 420px;
  position: relative;
  transform: rotateY(-17deg) rotateX(10deg) rotateZ(-2deg);
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-book);
  border-radius: 3px 10px 10px 3px;
}

.book-object:hover {
  transform: rotateY(-7deg) rotateX(5deg) rotateZ(0deg) translateY(-8px);
}

/* Hardcover Front with Roasted Espresso & Bronze Foil */
.book-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #221611 0%, #130B07 100%);
  border-radius: 3px 10px 10px 3px;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 6px solid #0B0604;
  box-shadow: 
    inset 4px 0 12px rgba(0,0,0,0.7), 
    inset 0 0 0 1px rgba(217, 136, 56, 0.28),
    inset 0 0 0 2px rgba(255,255,255,0.05);
  color: #FFFFFF;
  z-index: 2;
}

/* Gold Frame Inset Detail */
.book-cover::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 14px;
  right: 12px;
  bottom: 12px;
  border: 1px solid rgba(200, 153, 69, 0.35);
  border-radius: 2px 6px 6px 2px;
  pointer-events: none;
}

.book-cover-top {
  border-bottom: 1px solid rgba(200, 153, 69, 0.35);
  padding-bottom: 12px;
}

.cover-publisher {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-foil);
}

.book-cover-center {
  margin: auto 0;
}

.cover-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cover-title em {
  font-style: italic;
  color: var(--gold-foil);
  font-weight: 400;
}

.cover-sub {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #CBD5E1;
}

.book-cover-bottom {
  border-top: 1px solid rgba(200, 153, 69, 0.25);
  padding-top: 14px;
}

.cover-author {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.cover-location {
  font-size: 0.68rem;
  color: #94A3B8;
}

/* Roasted Caramel Ribbon Bookmark Peeking from Bottom */
.book-ribbon {
  position: absolute;
  bottom: -28px;
  left: 55px;
  width: 22px;
  height: 48px;
  background: linear-gradient(180deg, #E28743 0%, #B85D19 75%, #96421C 100%);
  box-shadow: 2px 4px 10px rgba(0,0,0,0.35);
  z-index: 1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  transform: rotateZ(2deg);
}

/* Realistic Page Thickness on the Right */
.book-pages-side {
  position: absolute;
  top: 4px;
  right: -16px;
  width: 16px;
  height: calc(100% - 8px);
  background: repeating-linear-gradient(
    to right,
    #F4F0E8 0px,
    #E8E1D5 1px,
    #F9F6F0 2px
  );
  transform: rotateY(90deg);
  transform-origin: left center;
  border-radius: 0 3px 3px 0;
  box-shadow: inset -2px 0 5px rgba(0,0,0,0.2);
}

/* ==========================================================================
   WHAT'S IN THE PACKAGE (TANGIBLE BREAKDOWN)
   ========================================================================== */
section.editorial-section {
  padding: 84px 0;
}

section.editorial-section.alt {
  background: var(--paper-alt);
  border-top: 1px solid var(--paper-border);
  border-bottom: 1px solid var(--paper-border);
}

.kicker-editorial {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 10px;
}

.section-headline {
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 22ch;
}

.section-intro {
  font-size: 1.08rem;
  color: var(--ink-body);
  max-width: 60ch;
  line-height: 1.7;
  margin-bottom: 44px;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.package-item {
  background: var(--paper-card);
  border: 1px solid var(--paper-border);
  border-radius: 6px;
  padding: 30px;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.package-icon {
  width: 44px;
  height: 44px;
  background: var(--paper-alt);
  border: 1px solid var(--paper-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.package-item h4 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}

.package-item p {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   TABLE OF CONTENTS (CHAPTERS)
   ========================================================================== */
.toc-card {
  background: var(--paper-card);
  border: 1px solid var(--paper-border);
  border-radius: 6px;
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.chapter-list {
  display: flex;
  flex-direction: column;
}

.chapter-row {
  display: grid;
  grid-template-columns: 80px 1fr 140px;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--paper-border);
  align-items: baseline;
}

.chapter-row:first-child {
  border-top: none;
  padding-top: 0;
}

.chapter-num {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cobalt);
}

.chapter-main h4 {
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
}

.chapter-main p {
  font-size: 0.93rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.6;
}

.chapter-meta {
  text-align: right;
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* ==========================================================================
   PERSONAL NOTE FROM THE AUTHOR (LETTER STYLE)
   ========================================================================== */
.author-letter-card {
  background: var(--paper-card);
  border: 1px solid var(--paper-border);
  border-radius: 6px;
  padding: 48px;
  box-shadow: var(--shadow-card);
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.author-letter-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 28px;
  font-family: var(--font-serif);
  font-size: 80px;
  color: var(--paper-alt);
  line-height: 1;
  pointer-events: none;
}

.letter-greeting {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  margin-bottom: 20px;
  color: var(--ink);
}

.letter-body p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--ink-body);
}

.letter-signoff {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--paper-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.author-signature-block .name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.author-signature-block .role {
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.author-address-stamp {
  font-size: 0.84rem;
  color: var(--ink-muted);
  text-align: right;
  line-height: 1.5;
}

/* ==========================================================================
   WHO IT'S FOR (HONEST CHECKLIST)
   ========================================================================== */
.honest-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 32px;
}

.honest-box {
  background: var(--paper-card);
  border: 1px solid var(--paper-border);
  border-radius: 6px;
  padding: 36px;
}

.honest-box h4 {
  font-size: 1.2rem;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.honest-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.honest-box li {
  display: flex;
  gap: 12px;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--ink-body);
}

.honest-bullet-yes {
  color: var(--forest);
  font-weight: 800;
}

.honest-bullet-no {
  color: var(--terracotta);
  font-weight: 800;
}

/* ==========================================================================
   PRICING / BUY CARD (ORDER SLIP STYLE)
   ========================================================================== */
.order-slip-card {
  background: var(--ink);
  color: #FFFFFF;
  border-radius: 8px;
  padding: 56px;
  box-shadow: var(--shadow-book);
}

.order-slip-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.order-slip-left h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 12px;
}

.order-slip-left p {
  color: #CBD5E1;
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 0;
}

.order-slip-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.slip-price {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
}

.slip-note {
  font-size: 0.82rem;
  color: #94A3B8;
  margin-top: 8px;
}

/* ==========================================================================
   POLICIES & FAQ
   ========================================================================== */
.policy-group {
  margin-top: 36px;
  background: var(--paper-card);
  border: 1px solid var(--paper-border);
  border-radius: 6px;
  padding: 36px;
}

.policy-group h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  margin: 0 0 10px;
}

.policy-group p.intro {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.policy-items-table {
  display: flex;
  flex-direction: column;
}

.policy-single-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--paper-border);
}

.policy-single-row:first-child {
  border-top: none;
}

.policy-single-row strong {
  font-size: 0.95rem;
  color: var(--ink);
}

.policy-single-row p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.contact-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}

.office-card {
  background: var(--paper-card);
  border: 1px solid var(--paper-border);
  border-radius: 6px;
  padding: 36px;
}

.office-card h3 {
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.office-table {
  display: flex;
  flex-direction: column;
}

.office-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--paper-border);
  font-size: 0.93rem;
}

.office-row:first-child {
  border-top: none;
}

.office-row span:first-child {
  color: var(--ink-muted);
}

.office-row span:last-child {
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

form.human-contact-form {
  background: var(--paper-card);
  border: 1px solid var(--paper-border);
  border-radius: 6px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

form.human-contact-form label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  display: block;
}

form.human-contact-form input,
form.human-contact-form textarea {
  width: 100%;
  border: 1px solid var(--paper-border);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--paper);
  border-radius: 4px;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}

form.human-contact-form input:focus,
form.human-contact-form textarea:focus {
  background: #FFFFFF;
  border-color: var(--cobalt);
}

form.human-contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

/* Alert Notification */
.alert-message {
  padding: 14px 18px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.alert-success {
  background: var(--forest-soft);
  border: 1px solid #86EFAC;
  color: var(--forest);
}

.alert-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
}

.form-pot {
  display: none !important;
  visibility: hidden !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer.site-footer {
  border-top: 1px solid var(--paper-border);
  padding: 56px 0 40px;
  background: var(--paper-alt);
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 36px;
}

.footer-brand .name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  text-decoration: none;
  color: var(--ink-muted);
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-legal-bar {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--paper-border);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .book-stage {
    order: -1;
  }
  .package-grid {
    grid-template-columns: 1fr;
  }
  .honest-split {
    grid-template-columns: 1fr;
  }
  .contact-section-grid {
    grid-template-columns: 1fr;
  }
  .chapter-row {
    grid-template-columns: 60px 1fr;
  }
  .chapter-meta {
    grid-column: 2;
    text-align: left;
    margin-top: 4px;
  }
}

@media (max-width: 680px) {
  nav.header-nav {
    display: none;
  }
  .hero-book {
    padding: 44px 0;
  }
  .order-slip-card {
    padding: 32px 24px;
  }
  .order-slip-right {
    align-items: flex-start;
  }
  .policy-single-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .book-specs-strip {
    flex-wrap: wrap;
    gap: 14px;
  }
}
