/* Page-specific composition: home hero, template cards, blog, profile, auth. */

/* --- Hero ---------------------------------------------------------------- */

.hero {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  padding-block: clamp(1rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3.5rem);
  max-width: 62ch;
}

.hero h1 {
  font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.4rem);
}

.hero__lead {
  font-size: clamp(1.02rem, 0.98rem + 0.4vw, 1.2rem);
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

/* --- Feature grid -------------------------------------------------------- */

.feature {
  display: grid;
  gap: 0.6rem;
  justify-items: start;
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
}

.feature h3 {
  font-size: 1.02rem;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* --- Category cards ------------------------------------------------------ */

.category-card {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
}

.category-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
}

.category-card__full-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.category-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* --- Template cards ------------------------------------------------------ */

.template-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.template-card__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.template-card__description {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.template-card__rounds {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
  font-size: 0.88rem;
}

.template-card__rounds ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  max-height: 11rem;
  overflow-y: auto;
}

.template-card__rounds li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.template-card__rounds li span:last-child {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.template-card__actions {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
}

.template-card__actions > * {
  flex: 1;
}

/* --- Blog ---------------------------------------------------------------- */

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.post-card__image {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  background: var(--surface-sunken);
}

.post-card__body {
  display: grid;
  gap: 0.5rem;
  padding: 1.15rem;
}

.post-card h3 {
  font-size: 1.05rem;
}

.post-header {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.post-header__image {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-top: 0.75rem;
}

/* --- Auth ---------------------------------------------------------------- */

.auth {
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
}

.auth__head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth__head p {
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* --- Profile ------------------------------------------------------------- */

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.profile-header__avatar {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
  flex: none;
}

.profile-header__meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- FAQ ----------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 0.6rem;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  padding: 0.9rem 1.1rem;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--text-muted);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details[open] summary {
  margin-bottom: 0.6rem;
}

.faq p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* --- Contact ------------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
}

.contact-method + .contact-method {
  margin-top: 1.5rem;
}

.contact-method h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.contact-method p {
  color: var(--text-muted);
  font-size: 0.92rem;
}
