/* OroLog site: the app's palette (Material 3 Fidelity from #FF8C00), light and dark.
   System fonts only: no requests to third parties from these pages. */
:root {
  --bg: #fff8f5;
  --surface: #fff1e9;
  --text: #241912;
  --muted: #564334;
  --primary: #904d00;
  --brand: #ff8c00;
  --line: #f0dccf;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b110a;
    --surface: #241912;
    --text: #f3dfd1;
    --muted: #ddc1ae;
    --primary: #ffb77d;
    --line: #3d2f25;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--primary); }

.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
}

.hero img { width: 128px; height: 128px; }

.hero h1 {
  margin: 16px 0 4px;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.tagline { margin: 0; font-size: 20px; color: var(--muted); }

.soon {
  margin-top: 32px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--brand);
  color: #2f1500;
  font-weight: 700;
}

footer {
  padding: 24px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* Privacy policy */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.doc header { display: flex; align-items: center; gap: 12px; }
.doc header img { width: 48px; height: 48px; }
.doc header a { text-decoration: none; color: var(--text); font-weight: 800; font-size: 22px; }

.langs { margin: 16px 0 8px; font-size: 15px; }

.doc h1 { font-size: 32px; line-height: 1.25; margin: 24px 0 4px; }
.doc h2 { font-size: 22px; margin: 32px 0 8px; }
.doc h3 { font-size: 18px; margin: 20px 0 4px; }
.updated { color: var(--muted); margin: 0 0 16px; }

.summary {
  background: var(--surface);
  border-radius: 20px;
  padding: 16px 20px;
}

.summary ul { margin: 0; padding-left: 20px; }

hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

/* Data page (/data) */
.btn {
  font: inherit;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  background: var(--brand);
  color: #2f1500;
  cursor: pointer;
}

.btn-quiet { background: var(--surface); color: var(--text); padding: 8px 16px; }

.account { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.error { color: #ba1a1a; }

.project {
  background: var(--surface);
  border-radius: 24px;
  margin: 12px 0;
  padding: 4px 16px 8px;
}

.project summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
  list-style: none;
}

.project summary::-webkit-details-marker { display: none; }

.project-icon, .project-photo { width: 44px; height: 44px; flex: none; }
.project-photo { border-radius: 50%; object-fit: cover; }

.project-titles { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.project-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-meta { font-size: 14px; color: var(--muted); }
.project-total { font-weight: 800; font-size: 20px; color: var(--primary); white-space: nowrap; }

.month {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.entry { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.entry-hours { font-weight: 800; color: var(--primary); min-width: 84px; }
.entry-text { display: flex; flex-direction: column; min-width: 0; }
.entry-day { font-weight: 600; }
.entry-note { color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---- Home page (index.html): a short presentation, Google Play, OroLog on the web. Nunito and
   the OpenMoji line icons from the web app, served by this site. */
@font-face {
  font-family: "Nunito";
  src: url("/web/fonts/nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

.landing {
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.landing main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* One language at a time: Italian unless the page says English (set by the script in <head>). */
[data-l="en"] { display: none; }
html[data-lang="en"] [data-l="en"] { display: revert; }
html[data-lang="en"] [data-l="it"] { display: none; }

.land-icon {
  display: inline-block;
  flex: none;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}

.land-top {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
  padding: 16px;
}
.land-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 22px; }
.land-brand img { width: 32px; height: 32px; }
.land-spacer { flex: 1; }
.land-langs { display: flex; gap: 2px; }
.land-langs button {
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.land-langs button[aria-pressed="true"] { color: var(--primary); }
.land-web {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}
.land-web:hover { border-color: var(--primary); }
.land-web .land-icon { width: 20px; height: 20px; color: var(--primary); }
.land-short { display: none; }

.land-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 0 40px;
}
.land-logo { width: 128px; height: 128px; }
.land-hero h1 { margin: 16px 0 4px; font-size: 52px; font-weight: 800; letter-spacing: -0.5px; }
.land-tagline { margin: 0; font-size: 22px; color: var(--muted); }
.land-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 14px 28px 14px 22px;
  border-radius: 999px;
  background: var(--brand);
  color: #2f1500;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.12), 0 4px 16px rgb(0 0 0 / 0.1);
}
.land-play:hover { filter: brightness(1.05); }

.land-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 24px 0 48px;
}
.land-feature { background: var(--surface); border-radius: 24px; padding: 20px; }
.land-feature .land-icon { width: 32px; height: 32px; color: var(--primary); }
.land-feature h2 { margin: 12px 0 4px; font-size: 18px; font-weight: 800; }
.land-feature p { margin: 0; color: var(--muted); font-size: 16px; }

@media (max-width: 860px) {
  .land-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .land-features { grid-template-columns: 1fr; }
  .land-hero { padding-top: 32px; }
  .land-hero h1 { font-size: 42px; }
  .land-tagline { font-size: 19px; }
  .land-long { display: none; }
  .land-short { display: inline; }
}
