/* --- Fonts --- */
@font-face {
  font-family: 'Acumin Variable';
  src: url('/fonts/AcuminVariableConcept.otf') format('opentype');
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Romie';
  src: url('/fonts/romie-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Romie';
  src: url('/fonts/RomieTrial-Regular-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --page-bg: #ffffff;
  /* fixed as requested */
  --text: #1a1a1a;
  --text-sec: #414141;
  --footer: #1a1a1a;
  --muted: #666b72;
  --text-footer: #57585a;
  --border: #e7e9ed;
  --ink: #222;
  --container: 1500px;
  --feature-gap: 56px;
  --section-sp: 120px;
  --img-w: 560px;
}

/* --- Base / normalize --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--page-bg);
  color: var(--text);
  font-family: 'Acumin Variable', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.65;
  font-weight: 400;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a.link {
  text-decoration: underline;
}

.sr-only {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0;
  border: 0;
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}

/* --- Containers --- */
.container {
  width: min(calc(100% - 20px), var(--container));
  margin-inline: auto;
}

/* --- Type --- */
h1,
h2,
h3,
h4 {
  letter-spacing: -0.02em;
}

/* --- Header (slim, centered brand) --- */
.site-header {
  background: #fff;
  position: relative;
  z-index: 100;
  margin-bottom: 1rem;
}

.site-header .logo {
  width: fit-content;
  margin-inline: auto;
  padding: 1rem 0 0.25rem;
}

.brand {
  font-family: 'Romie', serif;
  letter-spacing: 0.18em;
  font-size: 1.35rem;
  font-weight: 400;
}

.menu {
  display: flex;
  gap: 22px;
  position: relative;
  flex-wrap: wrap;
}

.menu a {
  padding: 4px 6px;
  border-radius: 4px;
}

.menu li:hover {
  background: #f5f6f8;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 22px;
  position: absolute;
  top: 2rem;
  right: 1rem;
}

@media (max-width: 1020px) {
  .nav-toggle {
    display: block;
  }

  .menu {
    display: none;
    position: absolute;
    right: 32px;
    top: 72px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  }

  .menu.open {
    display: grid;
    gap: 6px;
  }
}

/* --- Hero (big, exact height like screenshot) --- */
.hero {
  min-height: 500px;
  background: var(--hero, linear-gradient(#d3d3d3, #bebebe)) center/cover no-repeat;
}

.hero-inner {
  padding-block: 0;
}

/* purely visual */

/* --- Feature blocks (left/right aligned, fixed image width) --- */
main {
  padding-block: 20px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--feature-gap);
  align-items: start;
  margin-bottom: var(--section-sp);
}

.feature-media img {
  width: 100%;
  /* border-radius: 2px; */
}

.feature-copy {
  padding-top: 10px;
  max-width: 520px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text-sec);
}

.feature-copy h2 {
  font-size: 34px;
  line-height: 1.18;
  margin-bottom: 10px;
  font-weight: 300;
}

.feature-copy p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 10px;
}

.feature.reverse {
  grid-template-columns: 1fr 1fr;
}

.feature.reverse .feature-media {
  order: 2;
}

.feature.reverse .feature-copy {
  order: 1;
  justify-self: end;
}

@media (max-width: 1120px) {
  :root {
    --img-w: 520px;
  }
}

@media (max-width: 980px) {

  .feature,
  .feature.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: center;
  }
/* 
  .feature.reverse .feature-media,
  .feature.reverse .feature-copy {
    order: unset;
    justify-self: auto;
  } */
}

/* --- Lede --- */

.lede-copy {
  font-family: 'Romie', serif;
  font-size: 22px;
  line-height: 1.55;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  color: var(--text-sec);
  font-weight: 300;
}

.lede-copy em {
  font-style: italic;
}

/* --- Communities (exact card sizing & gaps) --- */
.communities {
  padding-block: 56px 40px;
}

.headline-center {
  font-family: 'Romie', serif;
  font-weight: 300;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--text-sec);
}

.cards-wrap {
  position: relative;
}

.cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 300px;
  /* card width */
  gap: 3rem;
  overflow-x: auto;
  padding: 2px 6px 8px;
  scroll-snap-type: x mandatory;
  overflow-x: hidden;
  /* Hide the scroll bar */
  -ms-overflow-style: none;
  /* For IE/Edge */
  scrollbar-width: none;
  /* For Firefox */
}

.card {
  background: #fff;
  overflow: hidden;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.card-img {
  position: relative;
  aspect-ratio: 16/14;
}

.card .card-img img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.card .card-img h4 {
  font-family: 'Romie', serif;
  font-weight: 300;
  padding: 12px 14px 2px;
  font-size: 2rem;
}

.card .card-img h4 {
  padding: 0 14px 12px;
  position: absolute;
  top: 50%;
  /* Center the text */
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  z-index: 100;
}

.card p.muted {
  color: #808791;
  padding-top: 2px;
}

.card .btn-card {
  display: block;
  margin-top: 16px;
  padding: 12px;
  background-color: transparent;
  color: #2d2d2d;
  text-align: center;
  border: 1px solid var(--text-sec);
  cursor: pointer;
  width: 100%;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    transform 0.2s ease;
}

.card .btn-card:hover {
  background-color: var(--text);
  color: #fff;
  border-color: var(--text);
  transform: translateY(-1px);
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 10;
  /* box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12); */
}

.scroll-btn.left {
  left: 1rem;
}

.scroll-btn.right {
  right: 1rem;
}

.scroll-btn i {
  font-size: 14px;
}

@media (max-width: 760px) {
  .scroll-btn {
    display: none;
  }
}

/* --- Banner --- */
.banner {
  position: relative;
  min-height: 380px;
  background: var(--banner, linear-gradient(#bcbcbc, #9b9b9b)) center/cover no-repeat;
  margin-top: 54px;
}

.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
}

.banner-inner {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 110px 0 96px;
}

.banner-title {
  font-family: 'Romie', serif;
  font-size: 2.5rem;
  font-weight: 300;
}

.banner-sub {
  font-family: 'Romie', serif;
  opacity: 0.92;
  margin-top: 4px;
  font-size: 2.5rem;
  font-weight: 400;
}

/* --- Footer --- */
.site-footer {
  margin-top: 0;
  background-color: var(--footer);
  color: var(--text-footer);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 36px 0 24px;
}

.footer-grid h5 {
  margin-bottom: 10px;
  font-style: italic;
  font-weight: 400;
}

.links {
  display: grid;
  gap: 8px;
  font-weight: 400;
}

.subscribe {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  position: relative;
}

.subscribe input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--border);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.subscribe input:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 1px #ffffff;
}

.subscribe span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 2rem;
  color: var(--text-footer);
}

.social {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 50%;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.social a:hover {
  background-color: #ffffff;
  color: var(--footer);
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
}

@media (max-width: 620px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-bar {
  margin-top: 0.5rem;
  padding-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- A11y helpers --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  background: #000;
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  z-index: 1000;
}

.article {
  text-align: center;
}

.article-header {
  font-size: 4rem;
  color: var(--text);
}

.sub-header {
  font-size: 1.5rem;
}

.article p {
  color: var(--text-sec);
  font-size: 1rem;
  padding-bottom: 0.2rem;
}