/* serviceil.com: the platform's own pages. Static, no script, nothing from
   another host. Colours are roles; the mode follows the visitor's system,
   since the site sets nothing to remember a choice by. */

@font-face {
  font-family: "Assistant";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/assistant-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: "Assistant";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/assistant-latin.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;
  --page: #fdf6e4;
  --surface: #fffbf2;
  --ink: #1d2725;
  --muted: #4d5a57;
  --line: #e4d9c0;
  --brand: #1f5b53;
  --on-brand: #fdf6e4;
  --accent: #eda320;
  --focus: #1f5b53;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #121816;
    --surface: #1a2220;
    --ink: #e6ece9;
    --muted: #a9b5b1;
    --line: #2d3936;
    --brand: #5cb8a8;
    --on-brand: #0d1412;
    --accent: #eda320;
    --focus: #5cb8a8;
  }
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Assistant", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  min-block-size: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.wrap {
  inline-size: 100%;
  max-inline-size: 68rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 40rem) {
  .wrap {
    padding-inline: 2rem;
  }
}

a {
  color: var(--brand);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

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

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: -10rem;
  background: var(--brand);
  color: var(--on-brand);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  z-index: 10;
}

.skip:focus {
  inset-block-start: 1rem;
}

/* The bar: the logo at the start, the other language at the end. */
.top {
  border-block-end: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.brand {
  display: block;
  line-height: 0;
}

.brand img {
  display: block;
  block-size: 2.4rem;
  inline-size: auto;
}

.lang {
  font-weight: 600;
  padding: 0.35rem 0.2rem;
}

/* The homepage. */
.hero .wrap {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: 3rem 2.5rem;
}

@media (min-width: 52rem) {
  .hero .wrap {
    grid-template-columns: 1fr auto;
    padding-block: 5rem 4rem;
  }
}

.hero h1 {
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem);
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
  max-inline-size: 18ch;
}

.lead {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
  color: var(--muted);
  margin: 0;
  max-inline-size: 34rem;
}

.hero-mark {
  display: none;
}

@media (min-width: 52rem) {
  .hero-mark {
    display: block;
  }

  .hero-mark img {
    display: block;
    inline-size: 15rem;
    block-size: auto;
  }
}

.tiles {
  display: grid;
  gap: 1rem;
  padding-block-end: 3rem;
}

@media (min-width: 46rem) {
  .tiles {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-block-start: 4px solid var(--accent);
  border-radius: 14px;
  padding: 1.4rem 1.4rem 1.5rem;
}

.tile svg {
  display: block;
  inline-size: 2.5rem;
  block-size: 2.5rem;
  color: var(--brand);
  margin-block-end: 0.75rem;
}

.tile h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 0 0 0.35rem;
}

.tile p {
  margin: 0;
  color: var(--muted);
}

.contact {
  padding-block: 1rem 4rem;
}

.contact-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.75rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.contact h2 {
  font-size: 1.5rem;
  margin: 0;
  line-height: 1.3;
}

.contact p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.button {
  display: inline-block;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  overflow-wrap: anywhere;
}

.button:hover {
  text-decoration: underline;
}

/* The policy and the statement: long text, a readable measure. */
.doc {
  max-inline-size: 46rem;
  padding-block: 2.5rem 4rem;
}

.doc h1 {
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 0.4rem;
}

.doc .updated {
  color: var(--muted);
  margin: 0 0 2rem;
}

.doc h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 2.4rem 0 0.6rem;
}

.doc p,
.doc ul {
  margin: 0 0 1rem;
}

.doc ul {
  padding-inline-start: 1.4rem;
}

.doc li {
  margin-block-end: 0.5rem;
}

.doc li::marker {
  color: var(--brand);
}

.doc .quote {
  border-inline-start: 4px solid var(--accent);
  padding: 0.6rem 1rem;
  background: var(--surface);
  border-start-end-radius: 8px;
  border-end-end-radius: 8px;
}

/* An address or a name in Latin letters inside Hebrew: isolated, so the
   sentence around it keeps its order. */
.ltr {
  unicode-bidi: isolate;
}

.foot {
  border-block-start: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  padding-block: 1.4rem 1.8rem;
}

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

.notfound {
  padding-block: 4rem;
}

.notfound h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}
