/* aliger.cz — shared styles. Plain CSS, no build. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #2c1c14;
  --ink-soft: #5c463c;
  --terracotta: #7a3224;
  --roof: #c4623a;
  --spark: #f07818;
  --paper: #faf4ec;
  --line: #e4d5c4;
  --sky: #f3d2b4;
  color-scheme: light;
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(1.15rem, 4vw, 1.5rem);
  --page-edge: max(1.35rem, 5.5vw);
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

::selection {
  background: #f0c4a4;
  color: var(--ink);
}

abbr {
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  cursor: help;
}

a {
  color: var(--terracotta);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #5c2418;
}

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

.hero {
  position: relative;
  background: var(--sky);
}

.hero picture {
  display: block;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
}

.hero--banner picture {
  height: clamp(200px, 52vw, 420px);
  overflow: hidden;
}

.hero--banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}

.hero-copy {
  position: relative;
  z-index: 1;
  margin-top: -1.15rem;
  padding: 1.35rem var(--gutter) 0;
  border-radius: 1.2rem 1.2rem 0 0;
  background: var(--paper);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  color: var(--terracotta);
  font-family: var(--serif);
  font-weight: 520;
  font-size: 1.05rem;
  line-height: 1;
  font-variation-settings: "opsz" 36, "SOFT" 20, "WONK" 0, "wght" 520;
}

.eyebrow a {
  color: inherit;
  text-decoration: none;
}

.eyebrow a:hover {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

/* .hero img { width: 100% } would otherwise blow the spark up to the column width. */
.spark,
.hero .spark {
  width: 1.2rem;
  height: 1.2rem;
  max-width: 1.2rem;
  max-height: 1.2rem;
  display: block;
  flex: none;
  align-self: center;
  object-fit: contain;
}

.spark-lg {
  width: 2.75rem;
  height: 2.75rem;
  max-width: 2.75rem;
  max-height: 2.75rem;
  display: block;
  margin: 0 0 0.85rem;
  object-fit: contain;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(1.95rem, 8.4vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 96, "SOFT" 28, "WONK" 0.35, "wght" 560;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin: 0.95rem 0 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 520;
  line-height: 1.45;
}

.facts span {
  white-space: nowrap;
}

.facts span:not(:last-child)::after {
  content: "·";
  margin: 0 0.5rem;
  color: var(--roof);
}

.intro {
  padding: 1.65rem var(--gutter) 0.25rem;
}

.intro p,
.lost p {
  margin: 0;
  max-width: 38rem;
  text-wrap: pretty;
}

.lost {
  padding: 1.55rem var(--gutter) 0.25rem;
}

.lost h1 {
  max-width: 12em;
}

.lost p {
  margin-top: 0.85rem;
}

.home-link {
  display: inline-block;
  margin-top: 1.15rem;
  color: var(--terracotta);
  font-weight: 650;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

.page-head {
  padding: 2.4rem var(--gutter) 0;
}

.page-head h1 {
  max-width: 14em;
}

.site-footer {
  margin-top: 2.25rem;
  padding: 0.95rem var(--gutter) 1.35rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

@media (min-width: 960px) {
  h1 {
    font-size: clamp(2.5rem, 3.5vw, 3.4rem);
  }

  .hero-copy {
    position: absolute;
    top: 11%;
    left: var(--page-edge);
    width: min(34rem, 44%);
    margin-top: 0;
    padding: 0;
    border-radius: 0;
    background: none;
  }

  .intro {
    padding: 2rem var(--page-edge) 0.25rem;
  }

  .intro p {
    max-width: 36rem;
    font-size: 1.2rem;
    line-height: 1.65;
  }

  .lost {
    padding: 2.3rem var(--page-edge) 0.25rem;
  }

  .page-head {
    padding: 3.6rem var(--page-edge) 0;
  }

  .site-footer {
    padding-left: var(--page-edge);
    padding-right: var(--page-edge);
  }
}

@media (min-width: 1400px) {
  .hero-copy {
    top: 13%;
  }
}

@media print {
  body {
    background: #fff;
  }

  .hero-copy {
    position: static;
    width: auto;
    margin-top: 0;
    padding: 1rem 0 0;
    background: none;
  }

  .site-footer {
    border-top: 1px solid #ccc;
  }
}
