/* ==========================================================================
   Featured hero
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  border-bottom: 1px solid var(--ase-rule);
}
.hero__media {
  aspect-ratio: 4 / 3;
  background: var(--ase-ink) center/cover no-repeat;
  position: relative;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__copy {
  padding: var(--ase-gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}
.hero__copy h1 { max-width: 16ch; }
.hero__copy .dek { max-width: 42ch; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 16 / 10; }
}

/* ==========================================================================
   Story cards
   ========================================================================== */
.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card__media {
  aspect-ratio: 4 / 5;
  background: var(--ase-grey-dark) center/cover no-repeat;
  overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card h3 a:hover { color: var(--ase-red); }
.card .dek { font-size: 14px; }
.card .byline { font-size: 11px; }

.card--rail .card__media { aspect-ratio: 3 / 4; }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--ase-gutter);
}
@media (max-width: 980px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grid-cards { grid-template-columns: 1fr; } }

/* ==========================================================================
   Section rail (per-category homepage row)
   ========================================================================== */
.section-rail {
  padding: 68px var(--ase-gutter);
  border-bottom: 1px solid var(--ase-rule);
}
.section-rail__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  max-width: var(--ase-container);
  margin-inline: auto;
}
.section-rail__head h2 { margin-top: 8px; }
.section-rail__head .view-all {
  font-family: var(--ase-font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  white-space: nowrap;
}
.section-rail__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ase-gutter);
  max-width: var(--ase-container);
  margin: 0 auto;
}
@media (max-width: 900px) { .section-rail__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .section-rail__grid { grid-template-columns: 1fr; } }

.latest-stories { padding: 68px var(--ase-gutter); border-bottom: 1px solid var(--ase-rule); }
.latest-stories > .container-inner { max-width: var(--ase-container); margin: 0 auto; }
.latest-stories .eyebrow { margin-bottom: 30px; }

/* ==========================================================================
   Newsletter band
   ========================================================================== */
.newsletter-band {
  background: var(--ase-bg-inverse);
  color: var(--ase-fg-inverse);
  padding: 90px var(--ase-gutter);
  text-align: center;
}
.newsletter-band .eyebrow { color: var(--ase-gold); justify-content: center; }
.newsletter-band h2 { margin: 16px 0 12px; }
.newsletter-band p.dek { color: var(--ase-fg-inverse); opacity: 0.72; max-width: 46ch; margin: 0 auto 32px; }

.newsletter-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  border: 1.5px solid var(--ase-fg-inverse);
}
.newsletter-form input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  padding: 15px 18px;
  color: var(--ase-fg-inverse);
  font-size: 14px;
}
.newsletter-form input[type="email"]::placeholder { color: var(--ase-fg-inverse); opacity: 0.55; }
.newsletter-form input[type="email"]:focus { outline: none; }
.newsletter-form button {
  background: var(--ase-red);
  border: none;
  color: #fff;
  font-family: var(--ase-font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 26px;
  cursor: pointer;
}
.newsletter-form button:hover { opacity: 0.88; }
.newsletter-note { margin-top: 16px; font-size: 12.5px; opacity: 0.6; }
.newsletter-response { margin-top: 16px; font-size: 14px; font-weight: 700; }
.newsletter-response[data-state="ok"] { color: var(--ase-gold); }
.newsletter-response[data-state="err"] { color: var(--ase-red); }

/* ==========================================================================
   Archive filter bar
   ========================================================================== */
.archive-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding: 26px var(--ase-gutter);
  border-bottom: 1px solid var(--ase-rule);
}
.archive-toolbar form { display: contents; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-pill {
  font-family: var(--ase-font-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 15px;
  border: 1.5px solid var(--ase-rule);
  border-radius: 20px;
}
.filter-pill.is-active { border-color: var(--ase-red); color: var(--ase-red); }
.archive-search { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.archive-search input {
  border: none; border-bottom: 1.5px solid var(--ase-fg); background: transparent;
  font-style: italic; font-size: 15px; padding: 4px 2px; width: 200px;
}
.archive-search input:focus { outline: none; }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ase-gutter) var(--ase-gutter);
}
@media (max-width: 900px) { .archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .archive-grid { grid-template-columns: 1fr; } }

.no-results { padding: 60px 0; text-align: center; }
.no-results p.dek { max-width: 40ch; margin: 12px auto 0; }

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 64px;
  font-family: var(--ase-font-display);
  font-weight: 700;
  font-size: 13px;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; border: 1px solid var(--ase-rule); padding: 0 10px;
}
.pagination .current { border-color: var(--ase-red); color: var(--ase-red); }
.pagination a:hover { border-color: var(--ase-fg); }

/* ==========================================================================
   Forms (contact page)
   ========================================================================== */
.form-grid { display: grid; gap: 22px; max-width: 640px; }
.form-row { display: grid; gap: 8px; }
.form-row label {
  font-family: var(--ase-font-display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ase-grey-dark);
}
.form-row input, .form-row select, .form-row textarea {
  border: 1.5px solid var(--ase-rule);
  background: transparent;
  padding: 13px 14px;
  font-size: 15.5px;
  border-radius: 2px;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--ase-fg);
}
.form-row textarea { resize: vertical; min-height: 140px; }
.form-honeypot { position: absolute; left: -9999px; }

.enquiry-routes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ase-rule);
  border: 1px solid var(--ase-rule);
  margin: 40px 0 56px;
}
.enquiry-route { background: var(--ase-bg); padding: 26px 24px; }
.enquiry-route h4 { margin-bottom: 8px; color: var(--ase-fg); }
.enquiry-route p { font-size: 14px; color: var(--ase-grey-dark); margin: 0; }
.enquiry-route a { color: var(--ase-red); font-weight: 700; }
@media (max-width: 700px) { .enquiry-routes { grid-template-columns: 1fr; } }
