/* Zapečetit – stránka ve výstavbě. Barvy a písmo z aplikace (frontend/app/css/app.css).
   Zavřená obálka s pečetí: jediný výrazný prvek a jediný pohyb, otisk pečeti při načtení. */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(fonts/schibsted-grotesk-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(fonts/schibsted-grotesk-latin-wght-normal.woff2) format("woff2-variations");
  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 dark;
  --bg: #E8EBE7;
  --chlopen: #FBFBF8;
  --ink: #0E1412;
  --muted: #535D58;
  --odkaz: #1D5C4A;
  --stin: rgba(14, 20, 18, .2);
  --pecet: clamp(96px, 15vw, 148px);
  --vyska-chlopne: clamp(170px, min(38svh, 60vw), 400px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1412;
    --chlopen: #1A2220;
    --ink: #E8EDEA;
    --muted: #A2ADA7;
    --odkaz: #7FBFA6;
    --stin: rgba(0, 0, 0, .55);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.125rem/1.6 "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
}

.obalka {
  position: relative;
  height: var(--vyska-chlopne);
  flex: none;
}
.chlopen-stin {
  height: 100%;
  filter: drop-shadow(0 14px 26px var(--stin));
}
.chlopen {
  height: 100%;
  background: var(--chlopen);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.pecet {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: var(--pecet);
  height: var(--pecet);
  transform: translate(-50%, 50%);
  border-radius: 50%;
  box-shadow: 0 6px 18px var(--stin);
  animation: otisk .75s cubic-bezier(.2, .8, .2, 1) .15s both;
}
@keyframes otisk {
  0% { opacity: 0; transform: translate(-50%, 50%) scale(1.55); }
  55% { opacity: 1; transform: translate(-50%, 50%) scale(.96); }
  100% { opacity: 1; transform: translate(-50%, 50%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .pecet { animation: none; }
}

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: calc(var(--pecet) / 2 + 1.5rem) 1.25rem 2.5rem;
  text-align: center;
}
main p { margin: 0 0 1rem; }
.znacka {
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--muted);
}
h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.tise { color: var(--muted); }
.kontakt { margin-top: 1.75rem; }
a {
  color: var(--odkaz);
  font-weight: 500;
  text-underline-offset: .18em;
}
a:focus-visible {
  outline: 2px solid var(--odkaz);
  outline-offset: 3px;
  border-radius: 2px;
}

footer {
  flex: none;
  padding: 1.25rem;
  text-align: center;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--muted);
}
footer p { margin: 0; }
