/* SIM Cat site. One stylesheet, self-hosted fonts, no scripts. Palette and structure follow the
   OkPath Connect site (OKPATH, INC.); the accent is the app icon's teal. */

@font-face {
  font-family: "Vollkorn";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/vollkorn-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Vollkorn";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/vollkorn-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Serif";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/noto-serif-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --bg: #f0eee5;
  --surface: #f5f3ea;
  --surface-2: #e8e5da;
  --ink: #1a1a1a;
  --muted: #5c5950;
  --faint: #a6a39a;
  --rule: #dad7cc;
  --rule-strong: #8a877e;
  --grid: rgba(26, 26, 26, 0.035);
  --accent: #0e6b59;
  --accent-ink: #f5f3ea;
  --focus: #1a1a1a;
  --mark-ring: transparent;
  --footer-bg: #1a1a1a;
  --footer-ink: #f0eee5;
  --footer-muted: #a6a39a;
  --display: "Vollkorn", "EB Garamond", "Noto Serif", Georgia, "Times New Roman", serif;
  --text: "Noto Serif", Georgia, Cambria, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --rail: 48rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1915;
    --surface: #23221d;
    --surface-2: #2c2a24;
    --ink: #f0eee5;
    --muted: #a6a39a;
    --faint: #6f6c64;
    --rule: #34322c;
    --rule-strong: #6f6c64;
    --grid: rgba(240, 238, 229, 0.03);
    --accent: #4fc3a7;
    --accent-ink: #10201c;
    --focus: #f0eee5;
    --mark-ring: #3a3832;
    --footer-bg: #121110;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--faint);
}
a:hover {
  text-decoration-color: currentColor;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
main:focus {
  outline: none;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 0.375rem;
  text-decoration: none;
}
.skip:focus {
  top: 1rem;
}

/* Layout */
.rail {
  width: 100%;
  max-width: var(--rail);
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 40rem) {
  .rail {
    padding-inline: 1.5rem;
  }
}
.site-header {
  padding-block: 1.25rem 0.5rem;
}
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  border-radius: 0.5rem;
}
.mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 0 1px var(--mark-ring);
}
.brand-name {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.brand-by {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav li {
  margin: 0;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border-radius: 0.375rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
}
.site-nav a:hover {
  color: var(--ink);
  background: var(--surface);
}
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 0.4em;
}
@media (max-width: 30rem) {
  .bar {
    gap: 0.5rem;
  }
  .site-nav {
    width: 100%;
    border-top: 1px solid var(--rule);
    padding-top: 0.25rem;
  }
  .site-nav ul {
    gap: 0;
  }
  .site-nav li:first-child a {
    padding-left: 0;
  }
}
main {
  display: block;
  flex: 1 0 auto;
  padding-bottom: 2rem;
}

/* Type */
h1,
h2,
h3 {
  font-variant-numeric: lining-nums;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.375rem, 8vw, 3.75rem);
  margin: 0 0 1rem;
}
h2 {
  font-size: clamp(1.625rem, 4.5vw, 2rem);
  margin: 3rem 0 1rem;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 2rem 0 0.5rem;
}
p,
ul,
ol,
dl,
address {
  margin: 0 0 1rem;
}
p,
li {
  text-wrap: pretty;
}
ul,
ol {
  padding-left: 1.25rem;
}
li {
  margin: 0.35rem 0;
}
li > ul,
li > ol {
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}
strong {
  font-weight: 650;
}
code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
  overflow-wrap: anywhere;
}
address {
  font-style: normal;
}
.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead {
  font-size: clamp(1.125rem, 2.6vw, 1.3125rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 38rem;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.9375rem;
}
.accent {
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}
.nowrap {
  white-space: nowrap;
}
.updated {
  display: inline-block;
  margin-top: 0.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Page heads and sections */
.page-head {
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}
@media (min-width: 48rem) {
  .page-head {
    padding-top: 3.5rem;
  }
}
section {
  scroll-margin-top: 1rem;
}
h2[id],
h3[id] {
  scroll-margin-top: 1rem;
}
.section {
  padding-top: 0.5rem;
}
.section > h2:first-child {
  margin-top: 2.5rem;
}
.hero {
  padding-top: 2.5rem;
  padding-bottom: 1rem;
}
@media (min-width: 48rem) {
  .hero {
    padding-top: 4rem;
    padding-bottom: 2rem;
  }
}
.hero h1 {
  font-size: clamp(2.75rem, 11vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.actions li {
  margin: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--accent);
  border-radius: 0.375rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--display);
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
}
.btn:hover {
  opacity: 0.88;
}
.btn svg {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-outline:hover {
  opacity: 1;
  background: var(--surface);
}
@media (max-width: 30rem) {
  .actions li {
    flex: 1 1 auto;
  }
  .actions li:first-child {
    flex-basis: 100%;
  }
  .actions .btn {
    width: 100%;
  }
}

/* The TestFlight button stays out of sight while its link is the placeholder TESTFLIGHT_LINK:
   replace the href in index.html and the button appears and the "coming soon" line goes. */
a[href="TESTFLIGHT_LINK"] {
  display: none;
}
.actions li:has(> a[href="TESTFLIGHT_LINK"]) {
  display: none;
}
.beta-pending {
  display: none;
}
.get-it:has(a[href="TESTFLIGHT_LINK"]) .beta-pending {
  display: block;
}
.get-it:has(a[href="TESTFLIGHT_LINK"]) .beta-ready {
  display: none;
}

/* Cards, notes, steps */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 40rem) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}
.card {
  margin: 0;
  padding: 1.25rem 1.25rem 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  background-color: var(--surface);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 1.5rem 1.5rem;
}
.card h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
  font-size: 1.1875rem;
}
.card p {
  font-size: 0.96875rem;
  line-height: 1.6;
}
.icon {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--accent);
}
.icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.note {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 0.5rem;
  background: var(--surface);
}
.note > :last-child {
  margin-bottom: 0;
}
.note-warn {
  border-left-color: var(--ink);
}
.summary {
  margin: 0 0 1rem;
  padding: 1.25rem 1.25rem 0.25rem;
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  background: var(--surface);
}
.summary ul {
  padding-left: 1.1rem;
}
.summary li {
  margin: 0.5rem 0;
}
.steps {
  counter-reset: step;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}
.steps > li {
  counter-increment: step;
  position: relative;
  margin: 0 0 1.25rem;
  padding-left: 3rem;
  min-height: 2.25rem;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  display: grid;
  place-items: center;
  width: 2.125rem;
  height: 2.125rem;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  font-variant-numeric: lining-nums;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1;
}
.steps > li > strong:first-child {
  font-family: var(--display);
  font-size: 1.125rem;
}

/* Diagram of the three parts on /setup */
.parts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 40rem) {
  .parts {
    grid-template-columns: repeat(3, 1fr);
  }
}
.parts li {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  background: var(--surface);
}
.parts .part-name {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1.25;
}
.parts .part-where {
  display: block;
  margin: 0.15rem 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.parts p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
}
.table-wrap {
  margin: 1rem 0 1.5rem;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}
th,
td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
th {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Contact block and Q&A */
.contact {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  background: var(--surface);
}
@media (min-width: 40rem) {
  .contact {
    grid-template-columns: 1fr 1fr;
  }
}
.contact dl {
  margin: 0;
}
.contact dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact dd {
  margin: 0.15rem 0 0.9rem;
}
.contact dd:last-child {
  margin-bottom: 0;
}
.big-link {
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 600;
}
.qa {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.qa h3 {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
}

/* Table of contents and long text */
.toc {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  background: var(--surface);
}
.toc h2 {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ol {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.toc li {
  margin: 0.4rem 0;
}
.toc a {
  text-decoration-color: var(--rule-strong);
}
@media (min-width: 44rem) {
  .toc ol {
    columns: 2;
    column-gap: 2rem;
  }
  .toc li {
    break-inside: avoid;
  }
}
.prose {
  max-width: 45rem;
}
.prose h2 {
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.prose h2.first {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.prose ol > li::marker,
.prose ul > li::marker {
  color: var(--muted);
}
.prose h3 {
  margin-top: 2.25rem;
}

/* 404 */
.notfound {
  padding: 4rem 0 3rem;
  text-align: center;
}
.notfound .code {
  font-variant-numeric: lining-nums;
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(5rem, 22vw, 8rem);
  line-height: 1;
  margin: 0 0 0.5rem;
  color: var(--rule-strong);
}
.notfound .lead {
  margin-inline: auto;
}
.notfound .actions {
  justify-content: center;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 2rem 0 2.5rem;
  background: var(--footer-bg);
  color: var(--footer-ink);
}
.site-footer a {
  color: var(--footer-muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--footer-ink);
  text-decoration: underline;
}
.site-footer :focus-visible {
  outline-color: var(--footer-ink);
}
.footer-brand {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.625rem;
  line-height: 1.1;
}
.footer-brand b {
  font-weight: 700;
}
.footer-brand span {
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--footer-muted);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(240, 238, 229, 0.12);
  font-family: var(--mono);
  font-size: 0.8125rem;
}
.footer-row p {
  margin: 0;
  color: var(--footer-muted);
}
.footer-row ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-row li {
  margin: 0;
}
.footer-row a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

@media print {
  .site-header,
  .site-footer,
  .skip,
  .toc {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  a {
    text-decoration: none;
  }
  .summary,
  .note,
  .card,
  .contact {
    background: none;
  }
}
