/* AgroŠtít site: the app's look (D1 «Den a noc», D5 «Statek a výměnek», mobile/src/ui/theme.ts).
   Night header with the yard and two golden windows, light working surface, Atkinson Hyperlegible Next headings.
   Large type and strong contrast for readers 40+ and 60+ (senior-a11y). No external fonts, scripts or cookies. */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/AtkinsonHyperlegibleNext-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/AtkinsonHyperlegibleNext-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #f8f7f5;
  --surface: #ffffff;
  --text: #1a2233;
  --muted: #454e5e;
  --note: #576072;
  --primary: #1d3461;
  --primary-pressed: #14264a;
  --tint: #e4eaf4;
  --border: #6b7a93;
  --hairline: #e6e4e0;
  --night: #1d3461;
  --night-deep: #142648;
  --on-night: #ffffff;
  --on-night-muted: #c8d5ea;
  --neon: #8ec3ff;
  --gold: #e8b84a;
  --heading: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html {
  font-size: 112.5%; /* 18 px body at the default 16 px, as in the app; scales with the browser's text size */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}
.wrap,
main {
  max-width: 42rem;
  margin: 0 auto;
  padding-inline: 1rem;
}
h1,
h2 {
  font-family: var(--heading);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
}
h1 {
  font-size: 1.9rem;
  margin: 0.5rem 0;
}
h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
}
a {
  color: var(--primary);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}
a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--neon);
  outline-offset: 3px;
}
li {
  margin-block: 0.4rem;
}

/* Night header */
.night {
  background: linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%);
  color: var(--on-night);
  border-bottom: 1px solid rgba(238, 246, 255, 0.5);
}
.night .wrap {
  position: relative;
  padding-top: 0.5rem;
}
.night nav {
  font-size: 0.9rem;
  color: var(--on-night-muted);
}
.night nav a {
  display: inline-block;
  padding-block: 0.6rem; /* touch target ≥ 44 px */
  color: var(--on-night);
}
.night h1 {
  color: var(--on-night);
}
.hero {
  position: relative;
  padding-top: 1rem;
}
.hero .logo {
  display: block;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
}
.hero .lead {
  color: var(--on-night-muted);
  font-size: 1.1rem;
  max-width: 34rem;
}
.sky {
  position: absolute;
  top: 0.75rem;
  right: 0;
  width: 3.5rem;
  height: auto;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 0.5rem;
}
.yard {
  display: block;
  width: 100%;
  max-width: 30rem;
  height: auto;
  margin: 1rem 0 0 auto;
}

/* Buttons: like the app's main button, ≥ 56 px */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.5rem 1.25rem;
  border-radius: 14px;
  background: var(--primary);
  color: var(--on-night);
  font-family: var(--heading);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}
.button:hover {
  background: var(--primary-pressed);
}
.button.light {
  background: var(--on-night);
  color: var(--primary);
  min-width: 8rem;
}
.button.light:hover {
  background: #dcebff;
}

/* Main surface */
main {
  padding-block: 1.5rem 3rem;
}
.moments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem;
}
.moment,
.card {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(20, 38, 72, 0.08), 0 4px 14px rgba(20, 38, 72, 0.06);
}
.moment {
  padding: 1rem;
}
.moment h2 {
  font-size: 1.1rem;
  margin: 0.4rem 0 0.25rem;
}
.moment p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
  font-family: var(--heading);
  font-weight: 700;
}
.card {
  padding: 0.25rem 1.25rem 1.25rem;
  margin-top: 1.5rem;
}
.video {
  position: relative;
  display: block;
  margin-block: 1.5rem 0.5rem;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(20, 38, 72, 0.12);
}
.video img {
  display: block;
  width: 100%;
  height: auto;
}
.video span {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-night);
  font-family: var(--heading);
  font-weight: 600;
}
.install {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: flex-start;
}
.install ol {
  flex: 1 1 18rem;
  margin: 0;
}
.steps {
  list-style: none;
  counter-reset: step;
  padding-left: 0;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.6rem;
  margin-block: 0.9rem;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-family: var(--heading);
  font-weight: 700;
  font-size: 0.95rem;
}
.steps .button {
  margin-top: 0.5rem;
}
.install figure {
  flex: 0 0 auto;
  margin: 0;
  max-width: 10rem;
}
.install figure img {
  display: block;
  width: 8rem;
  height: 8rem;
  padding: 0.4rem;
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: 10px;
}
.install figcaption,
.note,
.footer {
  font-size: 0.85rem;
  color: var(--note);
}
.install figcaption {
  margin-top: 0.4rem;
}
.footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
}
@media (max-width: 30rem) {
  .install figure {
    display: none; /* on the phone itself a QR code is useless */
  }
}
