/* ------------------------------------------------------------------
   Authorship Press — primitives
   Reusable building blocks shared by the portal and the public site:
   page container, type roles, hero, sections, pills, cards, buttons,
   callouts, header, and footer chrome. Portal-only layout stays in
   portal/src/app.css. Tokens come from brand.css; base comes from
   base.css. Both are loaded before this file.
------------------------------------------------------------------- */

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

.page {
  max-width: var(--page);
  margin: 0 auto;
  padding: 44px 28px 88px;
}

.eyebrow {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.hero {
  display: grid;
  gap: 12px;
  margin-bottom: 34px;
  max-width: 760px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(31px, 4.3vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.012em;
}

.hero h1 em {
  font-style: italic;
}

.hero p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 64ch;
}

/* -------------------------------------------------------------- sections */

.section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  max-width: 68ch;
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.section-head p {
  color: var(--muted);
  font-size: 14px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 14px;
}

/* ------------------------------------------------------------------ pill */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pill-pause {
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid #e8d8ba;
}

.pill-quiet {
  background: var(--paper-deep);
  color: var(--muted);
  border: 1px solid var(--line);
}

/* ------------------------------------------------------------------ card */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 22px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

a.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

a.card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}

.card-title {
  font-size: 14.5px;
  font-weight: 620;
  text-align: center;
  letter-spacing: -0.005em;
}

.card-desc {
  font-size: 12.8px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-arrow {
  display: inline-flex;
  color: var(--muted-soft);
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

/* --------------------------------------------------------------- buttons */

.button {
  appearance: none;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.button:hover:not(:disabled) {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.button:disabled {
  opacity: 0.55;
  cursor: default;
}

.button-quiet {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
}

/* --------------------------------------------------------------- callout */

.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 26px;
}

.callout svg {
  flex: none;
  margin-top: 2px;
  color: var(--muted-soft);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 237, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(241, 237, 227, 0.5);
}

.footer-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--muted-soft);
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
