/* sencadia.com. Same colours and title face as the app. No scripts, no outside requests. */

@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/InstrumentSerif-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f6f4ef;
  --surface: #ffffff;
  --text: #1b1a18;
  --text-2: #5f5b54;
  --border: #e3dfd5;
  --accent: #4b45d6;
  --accent-soft: #e8e7fa;
  --wash: #e4defa;
  --navy: #040327;
  --lavender: #c9bdfb;
  --bezel: #1b1a18;
  --card-shadow: 0 1px 2px rgba(27, 26, 24, 0.04), 0 6px 18px rgba(27, 26, 24, 0.05);
  --phone-shadow: 0 30px 60px rgba(27, 26, 24, 0.2), 0 6px 14px rgba(27, 26, 24, 0.1);
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110;
    --surface: #1c1c1a;
    --text: #f1efea;
    --text-2: #b1ada5;
    --border: #2e2d2a;
    --accent: #a5a1ff;
    --accent-soft: #27264a;
    --wash: #262149;
    --bezel: #2a2a28;
    --card-shadow: none;
    --phone-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* The lilac wash behind the top of each page, like Today in the evening. */
.wash {
  background: linear-gradient(var(--wash), var(--bg));
}

/* ---- Top bar ---- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
}

.brand img {
  width: 40px;
  height: 40px;
  padding: 7px;
  border-radius: 10px;
  background: var(--navy);
}

.top nav {
  display: flex;
  gap: 4px;
}

.top nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.top nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.top nav a[aria-current='page'] {
  color: var(--accent);
}

/* ---- Home: opening ---- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 56px;
  padding-top: 48px;
  padding-bottom: 88px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 7.2vw, 84px);
  line-height: 1;
  letter-spacing: -0.01em;
}

.hero h1 span {
  display: block;
}

.lede {
  max-width: 34em;
  margin-top: 26px;
  color: var(--text-2);
  font-size: 20px;
  line-height: 1.55;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
}

.status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.phone {
  width: 300px;
  max-width: 78vw;
  margin: 0;
  padding: 10px;
  border-radius: 46px;
  background: var(--bezel);
  box-shadow: var(--phone-shadow);
}

.phone img {
  display: block;
  width: 100%;
  border-radius: 36px;
}

/* ---- Home: the three steps ---- */

.section {
  padding-top: 24px;
  padding-bottom: 88px;
}

.section > h2,
.closing h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.08;
}

.section > h2 + p {
  max-width: 38em;
  margin-top: 14px;
  color: var(--text-2);
  font-size: 19px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.steps .phone {
  width: 250px;
  padding: 8px;
  border-radius: 40px;
}

.steps .phone img {
  border-radius: 32px;
}

.kicker {
  margin-top: 30px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.steps h3 {
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.25;
}

.steps p:last-child {
  max-width: 20em;
  margin-top: 10px;
  color: var(--text-2);
}

/* ---- Home: the details ---- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.cards li {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.cards h3 {
  font-size: 18px;
  line-height: 1.3;
}

.cards p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.55;
}

/* ---- Home: closing panel ---- */

.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 72px;
  padding: 64px 28px 68px;
  border-radius: 32px;
  background: radial-gradient(circle at 50% 30%, rgba(124, 104, 255, 0.22), rgba(124, 104, 255, 0) 60%), var(--navy);
  color: #f1efea;
  text-align: center;
}

.closing img {
  width: 132px;
  height: 132px;
}

.closing h2 {
  margin-top: 20px;
}

.closing p {
  max-width: 30em;
  margin-top: 14px;
  color: #c7c3dc;
  font-size: 18px;
}

.closing a {
  color: var(--lavender);
}

/* ---- Privacy, support and other reading pages ---- */

.page-head {
  padding-top: 40px;
  padding-bottom: 44px;
}

.page-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1.04;
}

.page-head p {
  margin-top: 12px;
  color: var(--text-2);
}

.narrow {
  max-width: 728px;
}

.prose {
  padding-bottom: 88px;
}

.prose h2 {
  margin-top: 48px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
}

.prose h3 {
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.35;
}

.prose p,
.prose ul,
.prose ol {
  margin-top: 14px;
}

.prose ul,
.prose ol {
  margin-bottom: 0;
  padding-left: 22px;
}

.prose li + li {
  margin-top: 8px;
}

.prose > :first-child {
  margin-top: 0;
}

.callout {
  margin-top: 0;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.callout h2 {
  margin-top: 0;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
}

.path {
  font-weight: 600;
  white-space: nowrap;
}

/* ---- Foot ---- */

.foot {
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 15px;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 26px;
  padding-bottom: 34px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.foot a {
  color: var(--text-2);
}

.foot a:hover {
  color: var(--accent);
}

/* ---- Narrow screens ---- */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 48px;
    padding-top: 28px;
    padding-bottom: 72px;
    text-align: center;
  }

  .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .section {
    padding-bottom: 72px;
  }
}

@media (min-width: 861px) and (max-width: 1020px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    gap: 20px;
  }

  .steps .phone {
    width: 220px;
  }
}

@media (max-width: 420px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .brand {
    font-size: 25px;
  }

  .top nav a {
    padding: 10px 10px;
  }
}

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