@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --ink: #11110f;
  --paper: #f2efe6;
  --paper-soft: #e7e2d7;
  --violet: #6d40ff;
  --acid: #d7ff53;
  --serif: 'Instrument Serif', Georgia, serif;
}

body { background: var(--paper); color: var(--ink); }

.header {
  top: 14px;
  width: calc(100% - 28px);
  margin: 0 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 100px;
  background: rgba(17,17,15,.9);
}
.header-inner { max-width: 1380px; padding: 10px 12px 10px 20px; }
.logo, .nav-links a { color: #fff; }
.logo-icon { border-radius: 50%; background: var(--acid); color: var(--ink); box-shadow: none; }
.btn { border-radius: 100px; font-weight: 700; }
.btn-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.hero {
  min-height: auto;
  padding: 190px 24px 95px;
  background: var(--ink);
  border-radius: 0 0 36px 36px;
  text-align: left;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr);
  gap: 80px;
  align-items: end;
  max-width: 1380px;
  margin: auto;
  text-align: left;
}
.hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 400;
  line-height: .86;
  letter-spacing: -.055em;
}
.hero h1::before {
  content: 'AI Visibility Studio Journal';
  display: block;
  margin-bottom: 28px;
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-style: normal;
  line-height: 1.4;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero h1::after { display: none; }
.hero p {
  max-width: 520px;
  margin: 0 0 28px;
  color: rgba(255,255,255,.64);
  font-size: 1.15rem;
  line-height: 1.6;
}
.search-container { max-width: 520px; margin: 0; }
.search-container input {
  padding: 17px 54px 17px 22px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 100px;
  background: transparent;
  color: #fff;
}
.search-container input:focus { border-color: var(--acid); box-shadow: none; }

.blog-section { max-width: 1380px; padding: 90px 24px 140px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 50px 24px;
}
.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.article-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
  padding: 18px;
  border: 1px solid var(--ink);
  background: var(--paper-soft);
}
.article-card:hover { transform: none; border-color: inherit; box-shadow: none; }
.article-image-link {
  height: 220px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--ink);
}
.article-card:first-child .article-image-link { height: 430px; }
.article-image { filter: saturate(.7) contrast(1.03); }
.article-card:hover .article-image { transform: scale(1.02); filter: saturate(1); }
.article-content { display: flex; flex: 1; flex-direction: column; padding: 22px 0 0; }
.article-card:first-child .article-content { padding: 28px 10px 10px; }
.article-meta {
  color: var(--violet);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.article-title {
  margin: 14px 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.025em;
}
.article-card:first-child .article-title { max-width: 760px; font-size: clamp(3rem, 5vw, 4.8rem); line-height: .95; }
.article-excerpt { color: rgba(17,17,15,.62); line-height: 1.65; }
.article-link {
  margin-top: auto;
  padding-top: 18px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 700;
  width: fit-content;
}
.article-link:hover { color: var(--violet); border-color: var(--violet); }
.no-results { grid-column: 1 / -1; color: var(--ink); }
.footer { background: var(--ink); border: 0; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 38px; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .header { top: 8px; width: calc(100% - 16px); margin: 0 8px; }
  .hero { padding: 145px 20px 65px; border-radius: 0 0 24px 24px; }
  .hero h1 { font-size: clamp(4.4rem, 21vw, 6rem); }
  .hero p { font-size: 1rem; }
  .blog-section { padding: 65px 20px 100px; }
  .blog-grid { display: block; }
  .article-card, .article-card:first-child { margin-bottom: 42px; padding: 0; border: 0; background: transparent; }
  .article-image-link, .article-card:first-child .article-image-link { width: 100%; height: 220px; }
  .article-card:first-child .article-content { padding: 22px 0 0; }
  .article-card:first-child .article-title { font-size: 2.8rem; }
  .article-title { font-size: 2.15rem; }
}
