/* ==========================================================================
   style.css — base typography + custom component classes
   (Tailwind utility classes are supplied by the Play CDN; this file holds the
    bespoke classes used across the markup.)
   ========================================================================== */

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  /* !important so it also relaxes headings that carry an inline letter-spacing */
  letter-spacing: normal !important;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.1;
}

a { color: inherit; text-decoration: none; }

/* Paragraph copy uses the serif body font (Merriweather), with a little
   letter-spacing for easier reading. */
p { font-family: var(--font-body); letter-spacing: 0.015em; }

/* ---- Layout containers ---- */
.container-page  { max-width: var(--w-page);  margin-inline: auto; padding-inline: 24px; }
.container-feed  { max-width: var(--w-feed);  margin-inline: auto; padding-inline: 24px; }
.container-prose { max-width: var(--w-prose); margin-inline: auto; padding-inline: 24px; }

/* ---- Brand link ---- */
.link-brand { color: var(--brand); transition: color var(--ease); }
.link-brand:hover { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Buttons ---- */
.btn-brand {
  background-color: var(--brand);
  color: #FFFFFF;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  transition: background-color var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}
.btn-brand:hover { background-color: var(--brand-hover); }

.btn-ghost {
  color: var(--ink);
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  border: 1px solid var(--line);
  transition: border-color var(--ease), color var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ---- Hero backdrop (subtle brand-tinted gradient + dot texture) ---- */
.bg-hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 0% -5%, rgba(255, 92, 31, 0.07), transparent 60%),
    radial-gradient(720px 360px at 100% 0%, rgba(255, 92, 31, 0.045), transparent 55%);
}
.bg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(32, 32, 32, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 70%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 70%);
}
.bg-hero > * { position: relative; }

/* ---- Warehouse-style grid-line background ---- */
.bg-grid { position: relative; }
.bg-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(32, 32, 32, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(32, 32, 32, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 55%, transparent 100%);
}
.bg-grid > * { position: relative; }
.bg-grid-brand::before {
  background-image:
    linear-gradient(to right, rgba(255, 92, 31, 0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 92, 31, 0.10) 1px, transparent 1px);
}

/* ---- Feed thumbnail rounding (config sets rounded-* to 0, so be explicit) ---- */
.thumb { border-radius: 12px; }

/* ---- Lucide icon sizing helper ---- */
[data-lucide] { display: inline-flex; vertical-align: middle; }

/* ---- Line clamp fallback (Tailwind also provides these) ---- */
.line-clamp-1, .line-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-1 { -webkit-line-clamp: 1; }
.line-clamp-2 { -webkit-line-clamp: 2; }

/* ---- Rich text from the WP editor (the_content) ---- */
.ail-prose { color: var(--ink-muted); font-size: 15px; line-height: 1.75; }
.ail-prose > * + * { margin-top: 1.1em; }
.ail-prose h2 { color: var(--ink); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; margin-top: 2rem; margin-bottom: .75rem; }
.ail-prose h3 { color: var(--ink); font-size: 19px; font-weight: 500; letter-spacing: -0.02em; margin-top: 1.5rem; margin-bottom: .5rem; }
.ail-prose h4 { color: var(--ink); font-size: 16px; font-weight: 600; margin-top: 1.25rem; }
.ail-prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.ail-prose ul { list-style: disc; padding-left: 1.25rem; }
.ail-prose ol { list-style: decimal; padding-left: 1.25rem; }
.ail-prose li { margin-top: .4rem; }
.ail-prose strong { color: var(--ink); font-weight: 600; }
.ail-prose blockquote { border-left: 4px solid var(--brand); background: var(--brand-tint); padding: 1rem 1.25rem; color: var(--ink); }
.ail-prose img { max-width: 100%; height: auto; border: 1px solid var(--line); }
.ail-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
