/* Hoddmimir — hub page (hoddmimir.no). Implements Hoddmimir.dc.html. */

/* ---------- page shell ---------- */

html, body { margin: 0; padding: 0; }
body {
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-ui);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

/* Web layout: 1160px measure, 48px gutters (24px on narrow screens). */
.wrap {
  --gutter: var(--space-7);
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

.kicker {
  font-size: var(--text-kicker);
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--text-caption);
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.brand__mark { border-radius: var(--space-2); display: block; }
.brand__word {
  font-size: var(--text-body);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: var(--text-secondary);
  font-weight: 500;
}
.site-nav a.is-muted,
.site-footer a.is-muted { color: var(--text-muted); }
.site-nav a.is-muted:hover,
.site-footer a.is-muted:hover { color: var(--ink); }
.site-nav a { white-space: nowrap; }

/* Product pages and long-form pages link the brand back to the hub and may
   add a product name after it. */
.brand__link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink);
}
.brand__link:hover { color: var(--ink); }
.brand__sep { color: rgba(23,25,28,0.2); }
.brand__product {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--text-muted);
}

/* Compact nav CTA: the pill shape of .btn at nav height. */
.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding-inline: 18px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
}
.nav-cta:hover { background: var(--night); color: #fff; }

/* ---------- hero ---------- */

.hero { padding-block: 96px 80px; }
.hero__kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
}
.hero__title {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin: 20px 0 0;
  max-width: 13ch;
  text-wrap: pretty;
}
.hero__lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 52ch;
  margin: var(--space-5) 0 0;
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

/* Buttons: fully-rounded pills, no elaborate hover — colour + cursor only. */
.btn {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding-inline: 28px;
  border-radius: var(--radius-pill);
  font-size: var(--text-body);
  font-weight: 600;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--night); color: #fff; }
.btn--secondary {
  border: 1px solid var(--border-strong);
  color: var(--ink);
}
.btn--secondary:hover { color: var(--ink); border-color: var(--ink); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--link-hover); color: #fff; }

/* ---------- apps ---------- */

.apps {
  background: var(--frost-3);
  border-block: 1px solid var(--border-faint);
}
.apps > .wrap { padding-block: var(--space-8); }

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: var(--space-5);
}

.app-card {
  display: block;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
/* Unreleased apps sit back a step rather than getting a different treatment. */
.app-card--soon { opacity: 0.72; }

.app-card__tile {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
}
.app-card__tile svg { display: block; }
.app-card__head {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-card__name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--ink);
}
.app-card__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-top: var(--space-2);
  text-wrap: pretty;
}

.tag {
  font-size: var(--text-kicker);
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
}
.tag--soon {
  background: var(--border);
  color: var(--text-muted);
}

/* ---------- about ---------- */

.about { padding-block: 80px 96px; }
.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-7);
  align-items: start;
}
.about__title {
  font-size: var(--text-title-1);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 14px 0 0;
  text-wrap: pretty;
}
.about__body {
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--text-muted);
  margin: var(--space-4) 0 0;
  text-wrap: pretty;
}

.tenets {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tenet {
  display: flex;
  gap: var(--space-4);
  padding: 20px 22px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--space-4);
}
.tenet__rune {
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
}
.tenet__title {
  font-size: 15px;
  font-weight: 700;
}
.tenet__body {
  font-size: var(--text-secondary);
  line-height: 1.55;
  color: var(--text-muted);
  margin-top: var(--space-1);
  text-wrap: pretty;
}

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--border-faint); }
.site-footer > .wrap {
  padding-block: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.site-footer__legal {
  font-size: 13px;
  color: var(--text-caption);
}
.site-footer__links {
  display: flex;
  gap: 22px;
  font-size: 13px;
}

/* ---------- narrow screens ---------- */

@media (max-width: 640px) {
  .wrap { --gutter: var(--space-5); }
  /* Brand and nav each take a row rather than crowding into one. */
  .site-header { flex-wrap: wrap; gap: 14px; }
  .site-nav { gap: 18px; flex-wrap: wrap; row-gap: 10px; }
  .hero { padding-block: 64px 56px; }
  .apps > .wrap { padding-block: var(--space-7); }
  .about { padding-block: 56px 64px; }
}
