/* Orchard site — deliberately plain baseline. Restyle to taste:
   colors, fonts, spacing, and the hero background are yours to drive.
   The green accent (--accent) is a placeholder; swap for the real brand color. */

:root {
  --bg: #ffffff;
  --text: #323336;         /* Carrd text color */
  --muted: #6b7c73;
  --accent: #d2f73b;       /* Orchard lime (from Carrd) */
  --accent-ink: #2a3a0e;   /* readable text on the lime accent */
  --border: #e4eae6;
  --maxw: 44rem;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --display: 'Bakbak One', var(--font);
  /* Ken Burns timing: each slide is visible for --kb-hold, full cycle = slides × --kb-hold */
  --kb-hold: 7s;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { min-height: 60vh; }

/* Home page: full-height flex column so the footer sticks to the viewport
   bottom when content is short (no scrollbar), and the page grows + scrolls
   only when content is too tall (e.g. landscape phones) — no overlap. */
body.home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
body.home main { flex: 1 0 auto; min-height: 0; display: flex; }
body.home main > .hero { flex: 1; }

/* ---- Header (shared across landing + every blog post) ---- */
.site-header {
  padding: 1rem 1.5rem;
}
/* On the home page the header sits in flow at the top of the flex column,
   above the fixed Ken Burns background. */
.site-header--overlay {
  position: relative;
  z-index: 10;
  padding-top: 1.25rem;
}

/* Rounded translucent pill holding brand (home link) + nav. */
.header-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
/* Off the home page (no photo behind), use a light, legible pill. */
.site-header:not(.site-header--overlay) .header-pill {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: #fff;
}
.site-brand .brand-icon {
  width: 28px; height: 28px;
  display: block;
}
.site-brand .brand-name {
  font-family: var(--display);
  letter-spacing: 0.01em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);  /* match the hero title */
}

.site-nav a {
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;                                /* white reads on any photo frame */
  /* Inter's thinner strokes need a stronger, layered shadow to read as
     prominently as the heavy Bakbak One "Orchard" brand. */
  text-shadow: 0 2px 6px rgba(0,0,0,0.7), 0 2px 20px rgba(0,0,0,0.6);
}
.site-nav a:hover { color: var(--accent); }

/* Off-home (light pill): readable dark text instead of white. */
.site-header:not(.site-header--overlay) .site-brand { color: var(--text); }
.site-header:not(.site-header--overlay) .site-brand .brand-name { text-shadow: none; }
.site-header:not(.site-header--overlay) .site-nav a { color: var(--accent-ink); text-shadow: none; }
.site-header:not(.site-header--overlay) .site-nav a:hover { color: var(--text); filter: none; }

/* ---- Hero / landing (full-bleed) ---- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;           /* header/footer are in flow now, so no clearance padding needed */
  text-align: center;
  color: #fff;
}
.hero > *:not(.kenburns) { position: relative; z-index: 2; }
.hero-inner-width { max-width: var(--maxw); margin: 0 auto; }

.hero-icon {
  width: 120px; height: 120px;
  margin: 0 auto 1rem;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35));
}
.hero-title {
  font-family: var(--display);
  font-size: 4rem;
  margin: 0 0 0.25rem;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}
.hero-tagline { font-size: 1.2rem; margin: 0 0 2rem; text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.hero-copy {
  font-size: 1.4rem;
  max-width: 32rem;
  margin: 0 auto 2.5rem;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}
.hero-copy strong { color: var(--accent); }

/* Centered container for the injected Beehiiv form. The form is set to 100%
   of its container in Beehiiv's designer, so its width is driven by the
   container width here. min() caps it to the viewport so it never overflows
   on small phones. */
.signup {
  margin: 2rem auto 0;
  display: flex;
  justify-content: center;
  width: min(32rem, 100%);
}
.signup > * { width: 100%; }
.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
}
.cta:hover { filter: brightness(1.05); }
.signup-note { font-size: 0.85rem; margin-top: 0.75rem; opacity: 0.85; }
.attribution { font-size: 0.95rem; margin-top: 2.5rem; text-shadow: 0 1px 8px rgba(0,0,0,0.55); }
.attribution strong { color: var(--accent); }

/* ---- Ken Burns slideshow background ---- */
.kenburns {
  position: fixed;
  inset: 0;
  z-index: 0;            /* behind header, hero content, and footer (all z-index 2–10) */
  overflow: hidden;
}
.kb-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  will-change: opacity, transform;
  animation-duration: calc(var(--kb-hold) * 4);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
/* Each slide owns ~25% of the cycle but stays on a little longer so its fade-out
   overlaps the next slide's fade-in — a true cross-fade with no gap and no dark
   dip. A slide fades IN over 0%–7% and OUT over 25%–32%; because each slide is
   delayed by exactly 25%, slide N's fade-out (25%–32%) lines up in real time with
   slide N+1's fade-in (0%–7%). Motion (zoom/pan) runs across the visible window,
   then resets while hidden. Each slide has its own motion; #2 is a strong pan. */
.kb-slide:nth-child(1) { animation-name: kb1; animation-delay: 0s; }
.kb-slide:nth-child(2) { animation-name: kb2; animation-delay: var(--kb-hold); }
.kb-slide:nth-child(3) { animation-name: kb3; animation-delay: calc(var(--kb-hold) * 2); }
.kb-slide:nth-child(4) { animation-name: kb4; animation-delay: calc(var(--kb-hold) * 3); }

/* #1 — straight zoom in */
@keyframes kb1 {
  0%   { opacity: 0; transform: scale(1.00); }
  7%   { opacity: 1; }
  25%  { opacity: 1; }
  32%  { opacity: 0; transform: scale(1.15); }
  90%  { opacity: 0; transform: scale(1.00); }   /* reset while hidden */
  100% { opacity: 0; transform: scale(1.00); }
}
/* #2 — strong horizontal pan, left → right (scale 1.18 keeps edges off-screen) */
@keyframes kb2 {
  0%   { opacity: 0; transform: scale(1.18) translateX(-6%); }
  7%   { opacity: 1; }
  25%  { opacity: 1; }
  32%  { opacity: 0; transform: scale(1.18) translateX(6%); }
  90%  { opacity: 0; transform: scale(1.18) translateX(-6%); }
  100% { opacity: 0; transform: scale(1.18) translateX(-6%); }
}
/* #3 — zoom out while panning up */
@keyframes kb3 {
  0%   { opacity: 0; transform: scale(1.20) translateY(4%); }
  7%   { opacity: 1; }
  25%  { opacity: 1; }
  32%  { opacity: 0; transform: scale(1.12) translateY(-4%); }
  90%  { opacity: 0; transform: scale(1.20) translateY(4%); }
  100% { opacity: 0; transform: scale(1.20) translateY(4%); }
}
/* #4 — zoom in on a diagonal drift */
@keyframes kb4 {
  0%   { opacity: 0; transform: scale(1.08) translate(3%, 3%); }
  7%   { opacity: 1; }
  25%  { opacity: 1; }
  32%  { opacity: 0; transform: scale(1.18) translate(-3%, -3%); }
  90%  { opacity: 0; transform: scale(1.08) translate(3%, 3%); }
  100% { opacity: 0; transform: scale(1.08) translate(3%, 3%); }
}

/* Respect users who ask for less motion: hold a single static image. */
@media (prefers-reduced-motion: reduce) {
  .kb-slide { animation: none; opacity: 0; transform: none; }
  .kb-slide:nth-child(1) { opacity: 1; }
}

/* ---- Latest posts on the landing page ---- */
.latest-posts {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
}

/* ---- Blog index + posts ---- */
.post-index, .post {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.post-list { list-style: none; padding: 0; }
.post-list li { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.post-list a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.post-list a:hover { color: var(--accent); }
.post-list time { display: block; color: var(--muted); font-size: 0.85rem; }
.post-summary { color: var(--muted); margin: 0.35rem 0 0; }

.post-header h1 { font-size: 2.1rem; margin-bottom: 0.25rem; letter-spacing: -0.01em; }
.post-header time { color: var(--muted); font-size: 0.9rem; }
.post-body { margin-top: 2rem; font-size: 1.08rem; }
.post-body h2 { margin-top: 2.25rem; }
.post-body img { max-width: 100%; height: auto; }
.post-body pre {
  background: #f4f7f5;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
}
.post-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* ---- Footer ---- */
.site-footer {
  display: flex;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}
/* On the home page the footer sits in flow at the bottom of the flex column,
   above the fixed Ken Burns background. */
.site-footer--overlay {
  position: relative;
  z-index: 10;
  padding-bottom: 1.5rem;
}
/* Rounded pill mirroring the header. */
.footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.55rem 1.1rem;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
}
/* Over the hero photos, use the frosted translucent style like the header pill. */
.site-footer--overlay .footer-pill {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.social-link svg { width: 20px; height: 20px; display: block; }
.social-link:hover { color: var(--accent); }
.footer-email {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-email:hover { color: var(--accent); }
/* White text/icons on the translucent over-photo footer. */
.site-footer--overlay .social-link,
.site-footer--overlay .footer-email { color: #fff; }
.site-footer--overlay .social-link:hover,
.site-footer--overlay .footer-email:hover { color: var(--accent); }
.muted { color: var(--muted); }

/* ---- Press kit ---- */
.press-lede { font-size: 1.2rem; }
.press-downloads { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.75rem 0 0.75rem; }
.press-button {
  display: inline-block;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.press-button:hover { border-color: var(--accent-ink); }
.press-button--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.press-button--primary:hover { border-color: var(--accent-ink); }
.press-note { color: var(--muted); font-size: 0.95rem; }
.press-facts { width: 100%; border-collapse: collapse; font-size: 1rem; }
.press-facts th, .press-facts td { text-align: left; vertical-align: top; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.press-facts th { width: 9rem; padding-right: 1rem; color: var(--muted); font-weight: 500; }
.press-gallery { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 1.25rem; }
.press-gallery figure { margin: 0; }
.press-gallery figure > a { display: block; background: #f4f7f5; border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; }
.press-gallery img { display: block; max-width: 100%; max-height: 560px; width: auto; height: auto; margin: 0 auto; border-radius: 8px; }
.press-gallery figcaption { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted); }
.press-gallery figcaption strong { color: var(--text); }
.press-bio { display: flex; gap: 1.25rem; align-items: flex-start; }
.press-headshot { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; flex: none; }
.press-bio p { margin-top: 0; }
@media (max-width: 600px) {
  .press-bio { flex-direction: column; }
  .press-facts th { width: 6.5rem; }
}
.print-only { display: none; }
@media print {
  @page { margin: 14mm 16mm; }
  .site-header, .site-footer, .post-footer, .press-downloads, .press-note, .press-screens, .post-header { display: none; }
  .print-only { display: flex; }
  .press-print-header { align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
  .press-print-header strong { display: block; font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }
  .press-print-header span { color: var(--muted); font-size: 0.8rem; }
  .post-body h3 { break-after: avoid; }
  .press-facts, .press-lede, .product-plan-note { font-size: 0.82rem; }
  .press-facts th { width: 7rem; }
  .post-body h2 { margin: 0.9rem 0 0.35rem; font-size: 1.05rem; }
  .post-body p { margin: 0.3rem 0; }
  .product-plans, .product-plan { break-inside: avoid; }
  .product-plan h3 { margin-top: 0.5rem; }
  .product-feature h3, .product-plan h3 { margin-top: 0.6rem; font-size: 0.95rem; }
  .press-facts th, .press-facts td { padding: 0.3rem 0; }
  .press-bio p, .product-feature p { line-height: 1.45; }
  .post { padding: 0; max-width: none; }
  .post-header h1 { font-size: 1.6rem; }
  .post-body { margin-top: 0; font-size: 0.82rem; line-height: 1.45; }
  .post-body h2 { break-after: avoid; }
  .press-lede { font-size: 1rem; }
  .press-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
  .press-gallery figure > a { padding: 0.4rem; }
  .press-gallery img { max-height: 220px; }
  .press-gallery figcaption { font-size: 0.7rem; }
  .press-gallery figure, .press-facts tr, .press-bio { break-inside: avoid; }
  .press-headshot { width: 96px; height: 96px; }
  a { color: inherit; text-decoration: none; }
}

/* ---- Release teaser (landing hero) and product page ---- */
.hero-tagline .availability { margin: 0; }
.hero-tagline .cta { margin-bottom: 0.5rem; }
.hero-links { margin: 0; }
.availability { font-size: 1.15rem; }
.availability-block { margin: 1.75rem 0; }
.product-icon { display: block; width: 128px; height: 128px; margin: 0 0 1rem; }
.product-headline { font-family: var(--display); font-size: 1.7rem; line-height: 1.25; margin: 0 0 1rem; }
.product-features { display: grid; gap: 0.25rem; }
.product-feature h3, .product-plan h3 { margin: 1rem 0 0.35rem; font-size: 1.1rem; }
.product-feature p, .product-plan p { margin: 0; }
.product-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.product-plan { border: 1px solid var(--border); border-radius: 12px; padding: 0 1rem 1rem; }
.product-plan-price { font-weight: 700; margin: 0 0 0.5rem !important; }
.product-more { color: var(--muted); font-size: 0.95rem; margin-top: 2rem; }
@media (max-width: 700px) {
  .product-plans { grid-template-columns: 1fr; }
}
@media print {
  .product-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
  .product-plan { padding: 0 0.6rem 0.6rem; }
}
.product-plan-note { font-size: 0.88rem; color: var(--muted); margin: 0 0 0.6rem !important; }
@media (max-width: 480px) {
  .site-header { padding: 1rem 0.75rem; }
  .header-pill { gap: 0.5rem; padding: 0.45rem 0.75rem; }
  .site-brand { font-size: 1.05rem; }
  .site-nav a { margin-left: 0.8rem; font-size: 0.85rem; }
}

/* Fact-sheet print overrides — last in the file so they beat the screen rules above. */
@media print {
  .product-feature h3, .product-plan h3 { font-size: 0.92rem; margin: 0.55rem 0 0.15rem; }
  .product-plan-note { font-size: 0.75rem; margin: 0 0 0.3rem !important; }
  .product-plan { padding: 0 0.6rem 0.5rem; }
  .product-plan-price { margin: 0 0 0.2rem !important; }
  .press-headshot { width: 72px; height: 72px; }
}
@media print {
  @page { margin: 12mm 15mm; }
  .post-body { font-size: 0.78rem; line-height: 1.4; }
  .press-lede, .press-facts { font-size: 0.8rem; }
  .press-facts th, .press-facts td { padding: 0.22rem 0; }
  .post-body h2 { margin: 0.7rem 0 0.25rem; font-size: 1rem; }
}

/* ---- Reviewer's guide (/press/reviewers-guide/) — printed one section per page ---- */
.guide-cover { text-align: center; padding: 2rem 0 1rem; }
.guide-cover img { display: block; margin: 0 auto 1rem; width: 160px; height: 160px; }
.guide-cover h1 { font-family: var(--display); font-size: 2.6rem; margin: 0; }
.guide-cover-sub { font-size: 1.4rem; margin: 0.25rem 0 0.5rem; }
.guide-cover-date { color: var(--muted); }
.guide-section { margin-top: 3rem; }
.guide-section > h2 { margin-top: 0; }
.guide-shot { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); margin: 0.75rem 0 1.25rem; }
.guide-section ul { padding-left: 1.2rem; }
.guide-section li { margin: 0.3rem 0; }
.guide-qa dt { font-weight: 700; margin-top: 0.9rem; }
.guide-qa dd { margin: 0.2rem 0 0; }
.guide-contacts { text-align: center; }
@media print {
  .guide .post-header { display: none; }
  .guide-cover { min-height: 230mm; display: flex; flex-direction: column; justify-content: center; break-after: page; }
  .guide-section { margin-top: 0; break-after: page; }
  .guide-section:last-child { break-after: auto; }
  .guide .post-body { font-size: 0.85rem; line-height: 1.45; }
  .guide .post-body h2 { font-size: 1.35rem; margin: 0 0 0.4rem; }
  .guide-shot { margin: 0.4rem 0 0.8rem; }
  .guide-section li { margin: 0.15rem 0; }
}
.post-body pre, .post-body code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.92em; }
/* Press kit downloads: the zip with its explanation beside it, then the single files in a 2×2 grid. */
.press-downloads { display: block; margin: 1.75rem 0 1rem; }
.press-download-main { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.press-download-main .press-note { align-self: stretch; }
.press-download-main .press-button { flex: none; }
.press-download-main .press-note { margin: 0; }
.press-download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin-top: 1rem; }
.press-download-grid .press-button { text-align: center; }
@media (max-width: 600px) {
  .press-download-grid { grid-template-columns: 1fr; }
}
.press-download-main { border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem 1.25rem 1.1rem; }

/* Landing page: a frosted panel behind the hero text, in the style of the header and
   footer pills but darker, so the white text stays readable over every slideshow photo. */
.hero-panel {
  max-width: 36rem;
  margin: 0 auto;
  padding: 2rem 2.25rem 1.75rem;
  background: rgba(16, 22, 18, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}
.hero-panel .hero-copy { margin-bottom: 1.75rem; }
.hero-panel .attribution { margin-top: 1.75rem; margin-bottom: 0; }
@media (max-width: 480px) {
  .hero-panel { padding: 1.5rem 1.25rem 1.25rem; border-radius: 22px; }
}

/* Print: keep the press kit's download area off the fact sheet. Last in the file, so the
   screen layout rules for it above can't override it. */
@media print {
  .press-downloads, .press-note { display: none !important; }
}
