/* Deskmates site. Sage palette from app/src/theme.ts; Nunito for headings, system font for text. */
:root {
  --sage: #1b7a5b;
  --sage-ink: #145c44;
  --sage-soft: #e3f2ea;
  --sage-mist: #cfe8dc;
  --clay: #a84e10;
  --clay-soft: #fcebdd;
  --gold: #7a5200;
  --gold-soft: #fff1c7;
  --cream: #f4ebdd;
  --ink: #1c1c1e;
  --ink-2: #3a3a3c;
  --grey: #636366;
  --line: #e5e5ea;
  --card: #ffffff;
  --bg: #fbfaf7;
  --radius: 18px;
  --heading: 'Nunito', ui-rounded, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: var(--sage);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--sage-ink);
}

h1,
h2,
h3 {
  font-family: var(--heading);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 {
  font-weight: 900;
  font-size: clamp(30px, 6vw, 44px);
  letter-spacing: -0.01em;
}

h2 {
  font-weight: 800;
  font-size: 23px;
  margin-top: 1.6em;
}

h3 {
  font-weight: 800;
  font-size: 18px;
  margin-top: 1.3em;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

li + li {
  margin-top: 0.35em;
}

.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--sage-soft);
  border-bottom: 1px solid var(--sage-mist);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--heading);
  font-weight: 900;
  font-size: 20px;
  color: var(--sage-ink);
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--sage);
  display: inline-grid;
  place-items: center;
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--sage-soft) 0%, var(--cream) 100%);
  padding: 48px 0 40px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--heading);
  font-weight: 800;
  font-size: 14px;
  color: var(--sage-ink);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.lead {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 34em;
}

main {
  padding: 32px 0 48px;
}

/* Cards and steps */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 0 0 16px;
}

.card.soft {
  background: var(--sage-soft);
  border-color: var(--sage-mist);
}

.card.clay {
  background: var(--clay-soft);
  border-color: #f1c7c2;
}

.card.gold {
  background: var(--gold-soft);
  border-color: #f0dd9c;
}

.card > :last-child {
  margin-bottom: 0;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  min-height: 32px;
}

.steps li + li {
  margin-top: 14px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-family: var(--heading);
  font-weight: 900;
  font-size: 15px;
  display: grid;
  place-items: center;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 8px;
}

.button {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--sage);
  color: #fff;
  font-family: var(--heading);
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
}

.button:hover {
  background: var(--sage-ink);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--sage-ink);
  border: 1.5px solid var(--sage-mist);
}

.button.secondary:hover {
  background: var(--sage-soft);
  color: var(--sage-ink);
}

.button[hidden] {
  display: none;
}

.note {
  font-size: 15px;
  color: var(--grey);
}

.status {
  min-height: 1.5em;
  font-size: 15px;
  color: var(--sage-ink);
}

kbd,
.ui {
  font-family: var(--body);
  font-weight: 600;
  background: var(--sage-soft);
  color: var(--sage-ink);
  border-radius: 6px;
  padding: 1px 6px;
  white-space: nowrap;
}

/* Legal pages */
.legal h2 {
  border-top: 1px solid var(--line);
  padding-top: 1.1em;
}

.legal .card h2 {
  border-top: 0;
  padding-top: 0;
}

.updated {
  color: var(--grey);
  font-size: 15px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 40px;
  font-size: 15px;
  color: var(--grey);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 8px;
}

.site-footer a {
  color: var(--sage-ink);
  font-weight: 600;
}
