:root {
    --bg-primary: #fefefe;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-primary: #111;
    --text-secondary: #fff;
    --accent: #2C6056;
    --accent-hover: #000;
    --border-color: #ddd;
    --gradient: linear-gradient(to right, #010204 0%, #09AF97 100%);
}

* {    box-sizing: border-box;}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* Header & Typography */
header {
   background: var(--gradient);
    color: #fff;
    padding: 4rem 1.5rem 2.5rem;
    text-align: center;
}



header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

/* Frosted glass sticky navigation */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1rem;
    text-align: center;
}

a {  color: var(--accent);}
a:hover {    color: var(--accent-hover);}
nav a {
  
    text-decoration: none;
    margin: 0 16px;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}



/* Page container & structural components */
.container {
    max-width: 980px;
    margin: 40px auto;
    padding: 0 24px;
}

h1 {
    font-size: 4rem;
    line-height: 1em;
    font-weight: 600;
    letter-spacing: -0.005em;
    margin: 0 0 0.5rem 0;
}

h2 {
    font-size: 2.1rem;
    font-weight: 600;
    letter-spacing: -0.003em;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}


h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

p,li {
    font-size: 1.2rem;
    line-height: 1.6em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

small {
    display: block;
    font-size: .9rem;
    line-height: 1.4em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    max-width: 480px;
    text-wrap: pretty;
}

figure{ margin:30px 0 100px 0;}
figcaption {font-size: .9rem; margin-top: 5px;}
.hero-img {width: 100%;max-height: 700px;object-fit: cover;}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    background: var(--card-bg);
  
    overflow: hidden;
    border: 1px solid var(--border-color);
}

th, td {
    padding: 16px 20px;
    text-align: left;
    font-size: 0.95rem;
}

th {
    background-color:var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--text-secondary);
}

td {
    border-bottom: 1px solid var(--border-color);
}

tr:last-child td {
    border-bottom: none;
}

/* Footer */
footer {
    color: var(--text-secondary);
    padding: 2.5rem 1rem;
    margin-top: 80px;
    
    border-top: 1px solid var(--border-color);
}
footer p {font-size: 0.9rem;}


/* Featured Book Card Callout */
.book-card {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f4f4f7 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  margin:100px 0;
  box-shadow: var(--shadow-md);
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* Badge */
.book-badge {
  display: inline-block;
  background-color: var(--accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 1rem;
}

/* Heading Overrides for Card Context */
.book-card h2 {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}


.book-description {
  max-width: 600px;
  margin: 0 auto 2rem auto;
  color: #424245;
  font-size: 1.05rem;
}

/* Action Buttons */
.book-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 980px; /* Apple-style pill button */
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover, .btn-secondary:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--border-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}


/* Note */
.book-note {
  font-size: 0.85rem;
  color: var(--text-primary);
  margin: 0;
  line-height: 1em;
}

.note-icon {
  width: 16px;
  height: 16px;
  fill: var(--accent);
  flex-shrink: 0;
}


@media (max-width:600px) {

nav a {white-space: nowrap;
    text-decoration: none;
    font-size: .9rem;
    line-height: 2em;
    
}
nav span {display: none;}
h1 {
    font-size: 3rem;
    margin: 0 0 0.5rem 0;
}

}