/* JAP projekt: the design canvas's road between the words and the people.
   A light concrete ground, near-black ink, the asphalt and its white lines,
   and one road-sign yellow. Archivo throughout, heavy and in capitals for
   the name and the heading. Written for a phone first; from 900px the road
   turns to run down between the two columns, as on the canvas. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("archivo-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("archivo-latin.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;
}

:root {
  --ground: #f6f6f5;
  --ink: #1e1e22;
  --asphalt: #26262b;
  --line: #ffffff;
  --card: #ffffff;
  --accent: #ffe600;
  --footer-ink: #f5f2e8;
  --font: "Archivo", Arial, sans-serif;
  --gutter: 1.25rem;
  --road: 6rem;
  --shadow: 8px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
}

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

a {
  color: var(--ink);
  text-underline-offset: 4px;
}

a:hover {
  color: #000000;
}

a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* The page: the words, the road, the people */

.home {
  display: flex;
  flex-direction: column;
}

.home__text {
  padding: 2rem var(--gutter) 2.5rem;
}

.wordmark {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.wordmark strong {
  font-weight: 900;
}

.home__heading {
  margin: 2.5rem 0 0;
  font-size: clamp(1.875rem, 8.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}

.home__lead {
  max-width: 35rem;
  margin: 1.5rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.home__lead + .home__lead {
  margin-top: 1em;
}

/* The road: asphalt, a white line at each edge and a dashed one down its
   middle. Across the page on a phone, down it on a wider screen. */

.road {
  --dash: 44px;
  --gap: 36px;
  position: relative;
  height: var(--road);
  background:
    linear-gradient(var(--line), var(--line)) left 0 top 10px / 100% 5px no-repeat,
    linear-gradient(var(--line), var(--line)) left 0 bottom 10px / 100% 5px no-repeat,
    repeating-linear-gradient(to right, var(--line) 0 var(--dash), transparent var(--dash) calc(var(--dash) + var(--gap)))
      left 0 center / 100% 8px no-repeat,
    var(--asphalt);
}

/* The people */

.people {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.5rem;
  padding: 2.5rem var(--gutter) 3.5rem;
}

.card {
  width: calc(100% - var(--shadow));
  max-width: 25rem;
  padding: 1.5rem 1.5rem 1.75rem;
  border: 3px solid var(--ink);
  background: var(--card);
  box-shadow: var(--shadow) var(--shadow) 0 var(--ink);
}

.card__name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.card__work {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.card__facts {
  margin: 1.125rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.card__facts > div + div {
  margin-top: 0.625rem;
}

.card__facts dt {
  font-weight: 800;
}

.card__facts dd {
  margin: 0;
}

/* The IČO reads on one line: its label, then the number. */
.card__ico dt,
.card__ico dd {
  display: inline;
}

.card__ico dd::before {
  content: " ";
}

.card__reach {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin: 1rem 0 0;
  font-size: 1rem;
  font-weight: 600;
}

/* Each link as tall as a finger needs, however short its line. */
.card__reach a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  overflow-wrap: anywhere;
}

.card__phone {
  text-decoration: none;
}

.card__phone:hover {
  text-decoration: underline;
}

/* The footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem 3rem;
  padding: 2.5rem var(--gutter);
  background: var(--ink);
  color: var(--footer-ink);
}

.site-footer__label {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer address {
  font-size: 1rem;
  font-style: normal;
  line-height: 1.6;
}

.site-footer__copy {
  margin: 0;
  color: rgb(245 242 232 / 0.65);
  font-size: 0.875rem;
}

.site-footer a:focus-visible {
  outline-color: var(--accent);
}

/* A wider screen: the canvas's three columns, the road down the middle */

@media (min-width: 900px) {
  .home {
    display: grid;
    grid-template-columns: 1fr 8rem 1fr;
    align-items: stretch;
    min-height: 70vh;
  }

  .home__text {
    padding: 3rem 3.5rem 2.5rem 3rem;
  }

  .wordmark {
    font-size: 2.125rem;
  }

  .home__heading {
    margin-top: 4rem;
    font-size: clamp(2.125rem, 3.6vw, 3.5rem);
  }

  .home__lead {
    margin-top: 1.625rem;
    font-size: 1.1875rem;
  }

  .road {
    height: auto;
    background:
      linear-gradient(var(--line), var(--line)) left 10px top 0 / 5px 100% no-repeat,
      linear-gradient(var(--line), var(--line)) right 10px top 0 / 5px 100% no-repeat,
      repeating-linear-gradient(to bottom, var(--line) 0 var(--dash), transparent var(--dash) calc(var(--dash) + var(--gap)))
        center top / 8px 100% no-repeat,
      var(--asphalt);
  }

  .people {
    padding: 9.125rem 3rem 4rem;
  }

  .card {
    width: 100%;
    padding: 2rem 2.375rem;
  }

  .card__name {
    font-size: 1.6875rem;
  }

  .site-footer {
    padding: 3rem;
  }
}
