/* Base styles */
body {
    font-family: 'Nue Gothic', sans-serif;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    background-color: #CCC000;
    color: #333;
    padding: 12px;
    text-align: center;
    opacity: 1; /* <-- header is visible by default now */
}

/* Optional fade-in version (only used if you add these classes in JS)
   If you don't need fade-in, you can delete this block. */
header.fade-in-start {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

header.fade-in-start.visible {
    opacity: 1;
}

/* Keystone header layout */
.keystone-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    min-height: 360px; /* fills the header space nicely */
    text-align: center;
}

.crow-header-keystone {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

/* Crow image sequence (animated via JavaScript) */
#crow-seq {
    max-width: 450px;   /* adjust for size */
    width: 100%;
    height: auto;
    display: block;
}

/* Product intro section */
.product-intro {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 50px 20px;
    text-align: center;
}

/* Buy Now button with color + scale hover */
.buy-now {
    background-color: #000000;
    color: white;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.buy-now:hover,
.buy-now:focus {
    background-color: #FF0000;
    transform: scale(1.1);
    outline: none;
}

/* (Old multi-frame crow CSS left here in case you reuse it elsewhere)
   It does NOT affect the new #crow-seq animation, but is harmless. */

/* Crow typing animation container */
.crow-typing {
    position: relative;
    width: 400px;
    height: 300px;
    margin: 0 auto;
}

/* All crow frames stacked */
.crow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
}

/* Each frame gets its own animation */
.crow-1,
.crow-2,
.crow-3,
.crow-4,
.crow-5,
.crow-6,
.crow-7 {
    animation-duration: 6s;
    animation-timing-function: steps(1);
    animation-iteration-count: infinite;
}

/* 0–15%: watching */
.crow-1 {
    animation-name: crow-1-anim;
}
@keyframes crow-1-anim {
    0%   { opacity: 1; }
    15%  { opacity: 1; }
    16%  { opacity: 0; }
    100% { opacity: 0; }
}

/* 15–30%: typing frame 1 */
.crow-2 {
    animation-name: crow-2-anim;
}
@keyframes crow-2-anim {
    0%   { opacity: 0; }
    15%  { opacity: 0; }
    16%  { opacity: 1; }
    30%  { opacity: 1; }
    31%  { opacity: 0; }
    100% { opacity: 0; }
}

/* 30–40%: typing frame 2 */
.crow-3 {
    animation-name: crow-3-anim;
}
@keyframes crow-3-anim {
    0%   { opacity: 0; }
    30%  { opacity: 0; }
    31%  { opacity: 1; }
    40%  { opacity: 1; }
    41%  { opacity: 0; }
    100% { opacity: 0; }
}

/* 40–55%: wings lifting */
.crow-4 {
    animation-name: crow-4-anim;
}
@keyframes crow-4-anim {
    0%   { opacity: 0; }
    40%  { opacity: 0; }
    41%  { opacity: 1; }
    55%  { opacity: 1; }
    56%  { opacity: 0; }
    100% { opacity: 0; }
}

/* 55–70%: flying away */
.crow-5 {
    animation-name: crow-5-anim;
}
@keyframes crow-5-anim {
    0%   { opacity: 0; }
    55%  { opacity: 0; }
    56%  { opacity: 1; }
    70%  { opacity: 1; }
    71%  { opacity: 0; }
    100% { opacity: 0; }
}

/* 70–100%: feather drifting */
.crow-6 {
    animation-name: crow-6-anim;
}
@keyframes crow-6-anim {
    0%   { opacity: 0; }
    70%  { opacity: 0; }
    71%  { opacity: 1; }
    100% { opacity: 1; }
}

/* Features section with slide-in items */
.features {
    padding: 20px;
}

.features h2 {
    text-align: center;
}

.features ul {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
}

.feature-item {
    background-color: #FFFFFF;
    margin: 10px 0;
    padding: 12px;
    border: 4px solid #993300;
    transform: translateX(-100%);
    animation: slideIn 0.5s forwards;
}

/* Slide-in animation for features */
@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

/* Staggered animation delays */
.feature-item:nth-child(1) {
    animation-delay: 0.2s;
}

.feature-item:nth-child(2) {
    animation-delay: 0.5s;
}

.feature-item:nth-child(3) {
    animation-delay: 0.8s;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 20px;
}
/* HEADER LAYOUT */
.keystone-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.5rem 1rem 2rem;
  min-height: 420px;
  text-align: center;
}

/* Crow header container */
.crow-header-keystone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  width: 100%;
  max-width: 900px;  /* or 1000px if you like it bigger */
  margin-left: auto;
  margin-right: auto;
}

/* Images fill the header width */
.crow-header-keystone img {
  width: 100%;
  height: auto;
  display: block;
}

/* Final feather header – we’ll use .show on static pages */
#crow-final {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  pointer-events: none;
  width: 100%;
  max-width: 1000px;
}

#crow-final.show {
  opacity: 1;
}

/* BOOK CARD BORDER + PADDING */
.title-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
}

.title-card figure {
  margin: 0;
  padding: 1.2rem;
  text-align: center;
  border: 4px solid #CCC000;   /* change 8px to 4px if you like */
  background-color: #111111;
  border-radius: 8px;
}
/* UNIVERSAL BOOK IMAGE STYLE */
figure img.book,
figure img.new,
figure img.preorder {
  border: 4px solid #0b3719;
  padding: 8px;
  background: #000;
  border-radius: 4px;
}
