/* StarGround Capital — site styles
   Recreates the Squarespace 7.1 theme the site used:
   black background, near-white text, light-grey accent, Poppins body text.
   The original heading font (Acumin Pro, Adobe Fonts) is replaced by Inter,
   a free typeface with very similar proportions. */

:root {
  --black: hsl(0, 0%, 0%);
  --white: hsl(0, 0%, 98.04%);
  --accent: hsl(0, 0%, 86.27%);
  --dark-accent: hsl(0, 0%, 10.98%);
  --light-accent: hsl(0, 0%, 100%);

  --heading-font: "Inter", "Acumin Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body-font: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --heading-weight: 500;
  --body-weight: 300;

  --h1: clamp(2.4rem, 1.6rem + 3vw, 4rem);
  --h2: clamp(1.9rem, 1.3rem + 2vw, 2.8rem);
  --h3: clamp(1.5rem, 1.15rem + 1.3vw, 2.2rem);
  --h4: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);

  --gutter: clamp(1.5rem, 4vw, 3rem);
  --max-width: 1600px;
  --content-width: 1200px;
  --header-height: 76px;
  --radius: 10px;

  /* Section theme defaults (dark) */
  --bg: var(--black);
  --fg: var(--white);
  --btn-bg: var(--accent);
  --btn-fg: var(--black);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body-font);
  font-weight: var(--body-weight);
  font-size: 1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  line-height: 1.4;
  letter-spacing: 0;
  margin: 0 0 0.6em;
}
h1 { font-size: var(--h1); line-height: 1.2; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--accent); color: var(--black);
  padding: 0.6rem 1rem; border-radius: var(--radius);
  z-index: 100; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--body-font);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  padding: 1rem 1.3rem;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.85; }
.btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.btn--sm { font-size: 0.9rem; padding: 0.85rem 1.3rem; }

/* ---------- Sections ---------- */
.section {
  background: var(--bg);
  color: var(--fg);
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
}
.section--light {
  --bg: var(--white);
  --fg: var(--black);
  --btn-bg: var(--black);
  --btn-fg: var(--white);
}
.section__inner {
  max-width: var(--content-width);
  margin: 0 auto;
}
.text-center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--black);
  color: var(--white);
}
.site-header__inner {
  min-height: var(--header-height);
  padding: 1.2rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-title {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  font-size: 1.5rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}
.site-nav__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: 1.3rem;
}
.site-nav__link {
  font-size: 1rem;
  font-weight: var(--body-weight);
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.site-nav__link:hover,
.site-nav__link[aria-current="page"] { border-bottom-color: currentColor; }

.nav-toggle {
  display: none;
  background: none; border: 0; color: inherit;
  width: 44px; height: 44px; padding: 8px;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block; height: 2px; background: currentColor;
  margin: 6px 0; transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--black);
    padding: 1rem var(--gutter) 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    border-top: 1px solid var(--dark-accent);
  }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .site-nav__link { font-size: 1.4rem; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Home: hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--black);
  color: var(--white);
  min-height: calc(100vh - var(--header-height));
}
.hero__text {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
}
.hero__text > div { max-width: 26rem; }
.hero__quote { margin-bottom: 1rem; }
.hero__attribution { font-weight: var(--heading-weight); }
.hero__attribution em { font-style: italic; }
.hero__media { position: relative; min-height: 60vw; }
.hero__media img, .hero__media picture {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { min-height: 0; aspect-ratio: 1136 / 1320; }
  .hero__media img { position: static; }
}

.intro .section__inner { max-width: 60rem; }

.cta-title { padding-top: clamp(4rem, 10vw, 8rem); padding-bottom: clamp(4rem, 10vw, 8rem); }
.cta-title h2 { margin-bottom: 1.6rem; }

.cta-contact .section__inner {
  max-width: var(--max-width);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem 4rem;
  align-items: center;
}
.cta-contact h3 { margin: 0; max-width: 24rem; }
.cta-contact .btn { padding: 1.6rem 3.4rem; justify-self: start; }
@media (max-width: 700px) {
  .cta-contact .section__inner { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) clamp(3rem, 6vw, 5rem);
}
.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
}
.site-footer__brand {
  text-align: center;
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  font-size: var(--h2);
  line-height: 1.3;
  margin: 0;
}

/* ---------- Blog list (Principles / Reports) ---------- */
.blog-list .section__inner { max-width: var(--max-width); }
.blog-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 3rem 2rem;
}
.blog-card { text-align: center; }
.blog-card__image {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin-bottom: 1.3rem;
}
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__meta {
  font-size: 0.9rem;
  display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.blog-card__title { font-size: var(--h3); margin-bottom: 0.8rem; }
.blog-card__title a { text-decoration: none; }
.blog-card__title a:hover { text-decoration: underline; }
.blog-card__excerpt { font-size: 0.9rem; opacity: 0.92; }
.blog-card__more {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.blog-empty {
  min-height: 40vh;
}
.blog-note .section__inner { max-width: 50rem; }

/* ---------- Blog post ---------- */
.post { padding: clamp(3rem, 6vw, 5rem) var(--gutter) clamp(2rem, 4vw, 3rem); }
.post__inner { max-width: 54rem; margin: 0 auto; }
.post__meta { font-size: 0.9rem; margin-bottom: 2.5rem; }
.post__meta a { text-decoration: none; }
.post__meta a:hover { text-decoration: underline; }
.post__body { font-size: 1.05rem; text-align: justify; hyphens: auto; }
.post__body blockquote {
  margin: 0 0 2rem;
  padding: 0 1.5rem;
  font-size: 1.15rem;
  text-align: center;
  font-style: italic;
}
.post__body h4 { margin-top: 2.2rem; text-align: left; }
.post__body figure { margin: 2.2rem 0; }
.post__body figcaption {
  font-size: 0.9rem;
  text-align: left;
  opacity: 0.85;
  margin-top: 0.8rem;
}
.post__author {
  margin-top: 4rem;
  font-size: 1rem;
}
.post__back {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* ---------- Contact ---------- */
.contact .section__inner {
  max-width: var(--max-width);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
.contact__media { aspect-ratio: 1 / 1; overflow: hidden; }
.contact__media img { width: 100%; height: 100%; object-fit: cover; }
.contact__text { text-align: center; }
.contact__text h2 { margin-bottom: 1rem; }
.contact__text p { font-size: 0.95rem; }
.contact__text a { text-decoration: none; }
.contact__text a:hover { text-decoration: underline; }
@media (max-width: 800px) {
  .contact .section__inner { grid-template-columns: 1fr; }
}

/* ---------- 404 ---------- */
.not-found { min-height: 50vh; display: flex; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
