/* perky.co.il: the app's tokens (paper, ink) and its typefaces, self-hosted. No JavaScript. */

@font-face {
  font-family: 'Heebo';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Heebo_400Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Heebo';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Heebo_600SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Heebo';
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/Heebo_800ExtraBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Figtree';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Figtree_400Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Figtree';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Figtree_600SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Figtree';
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/Figtree_800ExtraBold.ttf') format('truetype');
}

:root {
  --paper: #f3f1eb;
  --ink: #16181b;
  --muted: #5f6368;
  --line: #d9d6ce;
  --card: #ffffff;
  --accent: #16181b;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --measure: 44rem;
}

html[lang='he'] {
  --font-body: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-color: var(--line);
}
a:hover {
  text-decoration-color: var(--ink);
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1rem 1.25rem;
  max-width: calc(var(--measure) + 2.5rem);
  width: 100%;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 2rem;
  height: 2rem;
  flex: none;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.25rem 0;
}
.site-nav a[aria-current='page'],
.site-nav a:hover {
  color: var(--ink);
}
.site-nav .lang {
  margin-inline-start: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
}

/* Page */
.page {
  flex: 1;
  width: 100%;
  max-width: calc(var(--measure) + 2.5rem);
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
}
.page h1 {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 1rem 0 1.25rem;
}
.page h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 2.25rem 0 0.75rem;
}
.page h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}
.page p,
.page li {
  margin: 0 0 0.9rem;
}
.page ul {
  padding-inline-start: 1.25rem;
}
.page li {
  margin-bottom: 0.45rem;
}
.page blockquote {
  margin: 1.25rem 0;
  padding: 0.9rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}
.page blockquote p:last-child {
  margin-bottom: 0;
}
.page hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}
.page code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 0.25em;
}

/* Tables (the privacy policy) */
.page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.93rem;
  display: block;
  overflow-x: auto;
}
.page th,
.page td {
  text-align: start;
  vertical-align: top;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
}
.page th {
  font-weight: 600;
  background: var(--card);
}

/* Footer */
.site-footer {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1.5rem 1.25rem 2rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 480px) {
  html {
    font-size: 16px;
  }
  .page h1 {
    font-size: 1.7rem;
  }
}
