/* useCalibre marketing site. One stylesheet, no build step. Warm paper, ink and the app's crimson, with a book serif
   for headings. Every page shares the header, footer and these classes. */

:root {
  --paper: #f7f2e8;
  --paper-2: #efe7d6;
  --card: #fffdf8;
  --ink: #241a17;
  --muted: #6b5d55;
  --crimson: #be123c;
  --crimson-deep: #8f1d33;
  --night: #1c1513;
  --rule: rgb(36 26 23 / 0.12);
  --serif: "Literata", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 70rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 18px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--crimson-deep);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--crimson);
}

:focus-visible {
  outline: 3px solid var(--crimson);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 5.5vw, 4rem);
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow {
  max-width: 46rem;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--card);
  padding: 0.5rem 1rem;
}

/* ---------- Header and footer ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgb(247 242 232 / 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand img {
  width: 30px;
  height: 30px;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
}

.nav a:hover {
  color: var(--crimson);
}

.nav .button {
  color: #fff;
}

@media (max-width: 760px) {
  .nav .secondary-link {
    display: none;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--crimson);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 0;
}

.button:hover {
  background: var(--crimson-deep);
  color: #fff;
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}

.button.ghost:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 5rem;
  padding: 3rem 0 2rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 2rem;
}

.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--crimson);
}

.disclaimer {
  margin-top: 2.5rem;
  font-size: 0.82rem;
}

/* ---------- Sections ---------- */

.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 3rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--crimson-deep);
  margin-bottom: 1rem;
}

.lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 40rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.9rem;
}

.shot {
  margin-top: 3rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgb(36 26 23 / 0.45), 0 0 0 1px var(--rule);
  background: var(--night);
}

.section {
  padding: 4.5rem 0 0;
}

.section > .wrap > p.lede {
  margin-bottom: 2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem;
}

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

.card .icon {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--crimson);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.split .shot {
  margin-top: 0;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
  display: grid;
  gap: 0.5rem;
}

.checks li {
  padding-left: 1.6rem;
  position: relative;
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--crimson);
  font-weight: 700;
}

.band {
  background: var(--night);
  color: #f3ece2;
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
}

.band h2 {
  color: #fff;
}

.band p {
  color: #d6ccc0;
}

.band .button.ghost {
  color: #fff;
  border-color: rgb(255 255 255 / 0.25);
}

.band .button.ghost:hover {
  background: rgb(255 255 255 / 0.08);
}

/* ---------- Tables, FAQ, articles ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rule);
  font-size: 0.95rem;
}

.table-scroll {
  overflow-x: auto;
}

th,
td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th {
  background: var(--paper-2);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: 0;
}

.yes {
  color: #166534;
  font-weight: 600;
}

.no {
  color: var(--muted);
}

.faq details {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

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

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

.faq details p:last-child {
  margin-bottom: 0;
}

.article {
  padding-top: 3rem;
}

.article h2 {
  margin-top: 2.25rem;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
}

.article ol,
.article ul {
  padding-left: 1.4rem;
}

.article li {
  margin-bottom: 0.4rem;
}

.article code,
.article pre {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--paper-2);
  border-radius: 6px;
}

.article code {
  padding: 0.1em 0.35em;
}

.article pre {
  padding: 1rem;
  overflow-x: auto;
}

.breadcrumbs {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--muted);
}

.callout {
  background: var(--card);
  border-left: 4px solid var(--crimson);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.updated {
  font-size: 0.88rem;
  color: var(--muted);
}

.related {
  margin-top: 3rem;
}

/* A card's heading on the guides index: an h2 for the outline, sized like the other cards' h3. */
.h3 {
  font-size: 1.25rem;
}

.card h2 a,
.card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.card h2 a:hover,
.card h3 a:hover {
  color: var(--crimson);
}

/* Long article headlines read better a size down in the narrow column. */
.article h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
}
