/* ============================================================
   prjk+ baseball — Ghost theme
   Brand: black + cream + crimson · Inter / Inter Tight
   Mobile-first. No build step — this is the final CSS.
   ============================================================ */

:root {
  --black: #0E0E0E;
  --black-2: #000000;
  --black-3: #1F1F1F;
  --cream: #F5F1E8;
  --cream-2: #EDE7D8;
  --crimson: #B8302D;
  --crimson-2: #D44641;
  --maxw: 1120px;
  --maxw-narrow: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--crimson); text-decoration: none; }
a:hover { color: var(--crimson-2); }

.display {
  font-family: 'Inter Tight', Inter, sans-serif;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: var(--maxw-narrow); }
.center { text-align: center; }
.muted { color: rgba(14,14,14,.6); }
.muted-light { color: rgba(245,241,232,.75); }
.accent { color: var(--crimson); }
.accent-2 { color: var(--crimson-2); font-weight: 600; }
.plus { color: var(--crimson); }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 12px;
}

.accent-bar::after {
  content: '';
  display: block;
  width: 72px;
  height: 4px;
  background: var(--crimson);
  margin-top: 16px;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn-small { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--crimson); color: #fff; }
.btn-primary:hover { background: var(--crimson-2); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(184,48,45,.32); }
.btn-ghost { background: transparent; color: var(--black); border-color: rgba(14,14,14,.22); }
.btn-ghost:hover { border-color: var(--crimson); background: rgba(184,48,45,.06); }
.section-dark .btn-ghost, .site-header .btn-ghost { color: var(--cream); border-color: rgba(245,241,232,.35); }
.section-dark .btn-ghost:hover, .site-header .btn-ghost:hover { border-color: var(--crimson); background: rgba(184,48,45,.12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14,14,14,.95);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(245,241,232,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; color: var(--cream); }
.brand-logo { height: 26px; width: auto; }
.brand-wordmark { font-family: 'Inter Tight', sans-serif; font-weight: 900; font-size: 19px; color: var(--cream); letter-spacing: -0.02em; }
.nav { display: none; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav a { color: rgba(245,241,232,.8); font-size: 14px; }
.nav a:hover { color: var(--crimson-2); }
.header-cta .btn { padding: 9px 16px; font-size: 14px; }

/* ---------- Home splash (logo only) ---------- */
.home-template .site-header,
.home-template .site-footer { display: none; }
.splash {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 90% 60% at 80% 20%, rgba(184,48,45,.10), transparent 60%),
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(184,48,45,.06), transparent 60%),
    var(--black);
}
.splash-inner { text-align: center; }
.splash-logo { width: min(440px, 78vw); height: auto; margin: 0 auto; }
.splash-signin {
  display: inline-block;
  margin-top: 36px;
  color: rgba(245,241,232,.65);
  font-size: 14px;
  letter-spacing: .03em;
}
.splash-signin:hover { color: var(--crimson-2); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 90% 60% at 80% 20%, rgba(184,48,45,.10), transparent 60%),
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(184,48,45,.06), transparent 60%),
    var(--black);
  color: var(--cream);
}
.hero-inner { padding: 96px 20px 88px; }
.hero .eyebrow { color: var(--crimson); }
.hero-title { font-size: clamp(3rem, 12vw, 6rem); color: var(--cream); margin: 0; }
.hero-sub { font-size: clamp(1.05rem, 2.5vw, 1.35rem); color: rgba(245,241,232,.85); max-width: 640px; margin: 28px 0 0; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--black); color: var(--cream); }
.section-dark .section-title { color: var(--cream); }
.section-title { font-size: clamp(2rem, 6vw, 3.25rem); margin: 0; }

/* ---------- Post grid (updates feed) ---------- */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
.post-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(14,14,14,.06), 0 8px 24px rgba(14,14,14,.06); display: flex; flex-direction: column; }
.post-card-image { display: block; height: 180px; background-size: cover; background-position: center; }
.post-card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.post-card-tag { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--crimson); font-weight: 700; }
.post-card-title { font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: 1.25rem; margin: 0; line-height: 1.15; }
.post-card-title a { color: var(--black); }
.post-card-title a:hover { color: var(--crimson); }
.post-card-excerpt { color: rgba(14,14,14,.7); font-size: .95rem; margin: 0; }
.post-card-meta { color: rgba(14,14,14,.45); font-size: .8rem; margin-top: 4px; }

/* ---------- Post / Page ---------- */
.post, .page { padding: 72px 0; }
.post-header { margin-bottom: 28px; }
.post-title { font-size: clamp(2rem, 6vw, 3.25rem); margin: 10px 0 14px; }
.post-meta { color: rgba(14,14,14,.55); font-size: .9rem; }
.post-feature-image { width: 100%; border-radius: 14px; margin-bottom: 32px; }
.post-content { font-size: 1.08rem; }
.post-content h2 { font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: 1.7rem; margin: 2em 0 .5em; }
.post-content h3 { font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: 1.3rem; margin: 1.6em 0 .4em; }
.post-content img { border-radius: 10px; margin: 1.5em 0; }
.post-content blockquote { border-left: 4px solid var(--crimson); margin: 1.5em 0; padding: .2em 0 .2em 1.2em; color: rgba(14,14,14,.7); font-style: italic; }
.post-content a { text-decoration: underline; }
.post-content .table-wrap { overflow-x: auto; margin: 1.6em 0; -webkit-overflow-scrolling: touch; }
.post-content table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.post-content th, .post-content td { text-align: left; padding: 9px 12px; border-bottom: 1px solid rgba(14,14,14,.10); vertical-align: top; }
.post-content thead th { background: var(--black); color: var(--cream); font-family: 'Inter Tight', sans-serif; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.post-content tbody tr:nth-child(even) { background: rgba(14,14,14,.025); }
.post-content .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  /* Ghost drops wrapper divs on import, so make tables themselves scroll on phones */
  .post-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Koenig editor card widths (required by Ghost) */
.post-content :where(figure, .kg-card) { margin: 1.6em 0; }
.kg-width-wide { width: min(1080px, 92vw); margin-left: 50%; transform: translateX(-50%); }
.kg-width-full { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.kg-width-full img { width: 100%; border-radius: 0; }
.kg-image { margin-left: auto; margin-right: auto; }
.kg-embed-card, .kg-gallery-card { display: flex; flex-direction: column; align-items: center; }
.kg-bookmark-card a { text-decoration: none; }

/* ---------- Team Hub ---------- */
.hub { padding: 56px 0 88px; }
.hub-header { margin-bottom: 32px; }
.hub-intro { color: rgba(14,14,14,.7); max-width: 640px; margin-top: 14px; }
.hub-content { margin-bottom: 32px; }
.hub-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.hub-card { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 1px 2px rgba(14,14,14,.06), 0 8px 24px rgba(14,14,14,.06); }
.hub-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.hub-card-title { font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: 1.35rem; margin: 0; text-transform: uppercase; letter-spacing: -.01em; }
.booking-links { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.calendar-embed { position: relative; width: 100%; border-radius: 10px; overflow: hidden; }
.calendar-embed iframe { width: 100%; height: 520px; display: block; }
.calendar-sub { margin-top: 14px; }
.calendar-cta { text-align: center; padding: 8px 0 4px; }
.calendar-blurb { color: rgba(14,14,14,.7); max-width: 460px; margin: 0 auto 18px; }
.calendar-note { font-size: .8rem; }
.calendar-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }

/* FullCalendar — brand it */
.team-calendar {
  --fc-button-bg-color: var(--crimson);
  --fc-button-border-color: var(--crimson);
  --fc-button-hover-bg-color: var(--crimson-2);
  --fc-button-hover-border-color: var(--crimson-2);
  --fc-button-active-bg-color: var(--crimson-2);
  --fc-button-active-border-color: var(--crimson-2);
  --fc-today-bg-color: rgba(184,48,45,.08);
  --fc-event-bg-color: var(--crimson);
  --fc-event-border-color: var(--crimson);
  --fc-list-event-hover-bg-color: rgba(184,48,45,.05);
  --fc-border-color: rgba(14,14,14,.10);
  font-size: .95rem;
}
.team-calendar .fc .fc-toolbar-title { font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: 1.25rem; }
.team-calendar .fc .fc-button { font-weight: 600; text-transform: none; box-shadow: none; }
.team-calendar .fc-event-loc { font-size: .82rem; color: rgba(14,14,14,.55); font-weight: 400; margin-top: 2px; }

/* Hub: Guides & Updates list */
.hub-post-list { list-style: none; margin: 0; padding: 0; }
.hub-post { border-bottom: 1px solid rgba(14,14,14,.08); }
.hub-post:last-child { border-bottom: none; }
.hub-post-link { display: block; padding: 14px 0; color: inherit; }
.hub-post-link:hover .hub-post-title { color: var(--crimson); }
.hub-post-title { display: block; font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--black); }
.hub-post-excerpt { display: block; color: rgba(14,14,14,.6); font-size: .9rem; margin-top: 3px; }
.team-calendar .fc .fc-col-header-cell-cushion,
.team-calendar .fc .fc-list-day-text,
.team-calendar .fc .fc-list-day-side-text { text-decoration: none; }
@media (max-width: 640px) {
  .team-calendar .fc-toolbar.fc-header-toolbar { flex-direction: column; gap: 10px; align-items: stretch; }
  .team-calendar .fc .fc-toolbar-title { font-size: 1.1rem; text-align: center; }
}
.vote-embed iframe { width: 100%; min-height: 520px; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black-2); color: rgba(245,241,232,.7); }
.footer-inner { display: flex; flex-direction: column; gap: 28px; padding: 56px 20px 24px; }
.footer-wordmark { font-size: 22px; color: var(--cream); }
.footer-note { font-size: .9rem; color: rgba(245,241,232,.6); max-width: 420px; margin: 8px 0 0; }
.footer-meta .eyebrow { color: var(--crimson); }
.footer-meta .muted { color: rgba(245,241,232,.5); }
.footer-bottom { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-top: 1px solid rgba(245,241,232,.1); font-size: .8rem; color: rgba(245,241,232,.45); }
.footer-bottom a { color: var(--crimson); }

/* ---------- Responsive ---------- */
@media (min-width: 700px) {
  .wrap { padding: 0 32px; }
  .nav { display: block; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-card-wide { grid-column: 1 / -1; }
  .footer-inner { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
  .booking-links { flex-direction: row; flex-wrap: wrap; }
  .booking-links .btn { flex: 1; min-width: 200px; }
}

@media (min-width: 1000px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); }
}
