/* Café AdAstra preview. "Inkoust": the café's motto, per aspera ad astra, printed in warm ink.
   One star for each kavárník, ochre only where something is current today, paper sections
   like a printed menu card. Bodoni Moda and Atkinson Hyperlegible, nothing else. */

/* Fonts: self-hosted from Fontsource (SIL Open Font License, see fonts/LICENSE-*.txt). */
@font-face {
  font-family: 'Bodoni Moda';
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/bodoni-moda-latin-ext-400-normal.woff2') format('woff2');
  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: 'Bodoni Moda';
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/bodoni-moda-latin-400-normal.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;
}
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/bodoni-moda-latin-ext-400-italic.woff2') format('woff2');
  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: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/bodoni-moda-latin-400-italic.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;
}
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/bodoni-moda-latin-ext-500-italic.woff2') format('woff2');
  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: 'Bodoni Moda';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/bodoni-moda-latin-500-italic.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;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-latin-ext-400-normal.woff2') format('woff2');
  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: 'Atkinson Hyperlegible';
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-latin-400-normal.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;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-latin-ext-700-normal.woff2') format('woff2');
  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: 'Atkinson Hyperlegible';
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-latin-700-normal.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;
}

/* /navrh in the Inkoust style: paper for everything, ink only for the opening and the contact. */

:root {
  --ink: #1a1c1f;
  --paper: #e9e1cf;
  --ochre: #d6a24a;
  /* on paper the ochre is darkened so it still reads (4.5:1) */
  --ochre-deep: #87591a;
  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --sans: 'Atkinson Hyperlegible', system-ui, sans-serif;
  --bg: var(--paper);
  --fg: var(--ink);
  --acc: var(--ochre-deep);
  --dim: #5c574f;
  --rule: rgb(26 28 31 / 0.2);
  --gut: 16px;
  --sec: 64px;
}
.tma {
  --bg: var(--ink);
  --fg: var(--paper);
  --acc: var(--ochre);
  --dim: #a9a397;
  --rule: rgb(233 225 207 / 0.2);
  background: var(--bg);
  color: var(--fg);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.5 var(--sans);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
a:focus-visible,
summary:focus-visible,
input:focus-visible + * {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  text-wrap: balance;
}
p,
li {
  text-wrap: pretty;
}
p {
  margin: 0 0 1em;
}
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gut);
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--paper);
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--acc);
  border-radius: 2px;
  background: var(--acc);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.tma .btn {
  color: var(--ink);
}
.btn:hover {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}
/* the one thing the page asks for: open the proposed site */
.btn-hlavni {
  min-height: 64px;
  padding: 0 30px;
  font-size: 21px;
  box-shadow: 0 10px 30px -12px rgb(214 162 74 / 0.6);
}
.btn-hlavni span {
  transition: transform 0.2s;
}
.btn-hlavni:hover span {
  transform: translateX(5px);
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fg);
}
.akce {
  align-items: center;
}
@media (max-width: 759px) {
  .btn-hlavni {
    width: 100%;
    justify-content: center;
  }
}
.btn-line {
  background: none;
  color: var(--fg);
  border-color: var(--rule);
}
.tma .btn-line {
  color: var(--fg);
  border-color: rgb(233 225 207 / 0.45);
}
.btn b {
  font-variant-numeric: lining-nums tabular-nums;
}
.lead {
  font-size: 20px;
  line-height: 1.45;
  max-width: 34ch;
}
.drobne,
.sub {
  color: var(--dim);
  font-size: 15px;
}
.akce {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 14px;
}

/* opening: the headline, one sentence, and the site itself running in a phone */
.uvod {
  position: relative;
  z-index: 1;
  padding: 40px 0 0;
}
.uvod-grid {
  display: grid;
  gap: 36px;
}
.podpis {
  color: var(--acc);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.uvod h1 {
  margin: 8px 0 22px;
  font-size: clamp(46px, 12vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.telefon {
  justify-self: center;
  width: min(300px, 82vw);
  margin-bottom: -90px;
  padding: 10px;
  border-radius: 46px;
  background: #0e0f10;
  box-shadow:
    0 0 0 1px rgb(233 225 207 / 0.12),
    0 40px 80px -30px rgb(0 0 0 / 0.8);
}
.screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 390 / 844;
  border-radius: 36px;
  background: #faf6f0;
}
.screen .poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.screen iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 390px;
  height: 844px;
  border: 0;
  transform: scale(var(--s, 0.8));
  transform-origin: 0 0;
  opacity: 0;
  transition: opacity 0.4s;
}
.screen.is-live iframe {
  opacity: 1;
}

/* sections on paper */
.sekce {
  padding: var(--sec) 0 0;
}
.uvod + .sekce {
  padding-top: calc(var(--sec) + 90px);
}
.sekce h2 {
  font-size: clamp(34px, 8vw, 56px);
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

/* before and after: one phone screen, a handle drags between today and the proposal */
.pred-grid {
  display: grid;
  gap: 8px;
}
.porovnani {
  position: relative;
  width: min(310px, 100%);
  aspect-ratio: 390 / 844;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--rule);
  touch-action: pan-y;
}
.porovnani img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.porovnani .pred {
  clip-path: inset(0 calc(100% - var(--x)) 0 0);
}
.tahlo {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x);
  width: 2px;
  margin-left: -1px;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.25);
  pointer-events: none;
}
.tahlo:after {
  content: '‹ ›';
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font: 700 18px/1 var(--sans);
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.35);
}
.stitek {
  position: absolute;
  bottom: 14px;
  padding: 4px 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
}
.stitek-pred {
  left: 14px;
}
.stitek-po {
  right: 14px;
}
.porovnani input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

/* what changes: four numbers, before → after */
.cisla {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.cisla li {
  padding: 18px 18px 4px;
  border-top: 3px solid var(--ink);
  background: rgb(255 255 255 / 0.35);
}
.zmena {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 10px;
  font-family: var(--serif);
  font-variant-numeric: lining-nums;
  line-height: 1.05;
}
.zmena span {
  font-size: 24px;
  color: var(--dim);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.zmena i {
  font-style: normal;
  color: var(--acc);
  font-size: 24px;
}
.zmena b {
  font-weight: 400;
  font-size: 34px;
}

.zustane {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  max-width: 720px;
}
.zustane li {
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid var(--rule);
  font-size: 19px;
  position: relative;
}
.zustane li:before {
  content: '✓';
  position: absolute;
  left: 2px;
  color: var(--acc);
  font-weight: 700;
}

.prakticky {
  display: grid;
  gap: 28px;
  margin-top: 18px;
}
.prakticky h3 {
  font-size: 26px;
  margin-bottom: 10px;
}
.kroky {
  margin: 0 0 12px;
  padding-left: 1.3em;
}
.kroky li {
  margin-bottom: 4px;
}

.overit {
  margin-top: 40px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.overit summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
  cursor: pointer;
  font: 400 24px/1.2 var(--serif);
  list-style: none;
}
.overit summary::-webkit-details-marker {
  display: none;
}
.overit summary:after {
  content: '+';
  font: 400 28px/1 var(--sans);
  color: var(--acc);
  transition: transform 0.2s;
}
.overit[open] summary:after {
  transform: rotate(45deg);
}
.overit ul {
  margin: 0 0 22px;
  padding-left: 1.2em;
  max-width: 720px;
}
.overit li {
  margin-bottom: 8px;
}

/* the contact, and Webtix underneath it */
.kontakt {
  margin-top: var(--sec);
  padding: var(--sec) 0 0;
}
.kontakt h2 {
  font-size: clamp(38px, 9vw, 72px);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.paticka {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: var(--sec);
  padding-top: 22px;
  padding-bottom: 28px;
  border-top: 1px solid var(--rule);
  color: var(--dim);
}
.paticka p {
  margin: 0;
}
.paticka a {
  display: inline-block;
  padding-block: 12px;
  text-decoration: none;
  color: var(--fg);
}
.znacka {
  font: 700 26px/1 var(--serif);
  letter-spacing: -0.01em;
  color: var(--fg);
}

@media (min-width: 760px) {
  :root {
    --gut: 32px;
    --sec: 104px;
  }
  .cisla {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .prakticky {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
  .pred-grid {
    grid-template-columns: 5fr 7fr;
    gap: 40px;
    align-items: start;
  }
}
@media (min-width: 960px) {
  .uvod {
    padding-top: 64px;
  }
  .uvod-grid {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: 48px;
  }
  .uvod-text {
    padding-bottom: 90px;
  }
  .telefon {
    width: 340px;
    margin-bottom: -120px;
  }
  .porovnani {
    width: 340px;
  }
  .uvod + .sekce {
    padding-top: calc(var(--sec) + 120px);
  }
}
