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

:root {
  --white: #ffffff;
  --black: #000000;
  --blue: #0000fd;
  --red: #fd0000;
  --soft: #f2f2f7;
  --unit: clamp(1rem, 2.2vw, 1.5rem);
  --edge: calc(var(--unit) * 2);
  --font: "Archivo", "Arial Black", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--black); color: var(--white); padding: .6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

/* Headings speak the logo's language: black, heavy, wide, capitals */
h1, h2 {
  margin: 0;
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: -.01em;
}
h2 { font-size: clamp(2rem, 5vw, 3.6rem); }

/* Header */
.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--unit) var(--edge);
  border-bottom: 4px solid var(--black);
}
.mark img { height: 2.6rem; width: auto; }
.top nav { display: flex; gap: calc(var(--unit) * 1.4); }
.top nav a {
  text-decoration: none; font-weight: 800; font-stretch: 112%;
}
.top nav a:hover { color: var(--blue); }
.top nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .3em; }

/* Hero: the logo is the headline */
.hero { padding: calc(var(--unit) * 4) var(--edge) calc(var(--unit) * 4); }
.name { margin: 0; }
.name img { width: min(100%, 60rem); }
.lede {
  max-width: 36ch;
  margin: calc(var(--unit) * 2) 0 0;
  font-size: clamp(1.25rem, 2.3vw, 1.6rem);
  line-height: 1.35;
  font-weight: 500;
}

/* Page heads on subpages */
h1 { font-size: clamp(2.8rem, 8vw, 6.5rem); }
.page-head { padding: calc(var(--unit) * 3.5) var(--edge) calc(var(--unit) * 2); }
.page-head p { margin: var(--unit) 0 0; font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 500; max-width: 40ch; }

/* Home: three doors to the subpages */
.doors {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--unit);
  padding: 0 var(--edge) calc(var(--unit) * 4);
}
.door {
  display: grid; gap: .8rem; align-content: space-between;
  min-height: 13rem;
  padding: calc(var(--unit) * 1.2);
  border: 5px solid var(--black);
  text-decoration: none;
  font-weight: 500;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.door-title {
  font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.02;
}
.door:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.nw { white-space: nowrap; }
.door:hover .door-title .nw::after { background: var(--white); }
.door-title .nw::after {
  content: ""; display: inline-block; width: .3em; height: .3em; margin-left: .2em;
  border-radius: 50%; background: var(--red); vertical-align: .1em;
}
@media (prefers-reduced-motion: reduce) { .door { transition: none; } }

/* Clients */
.clients {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--unit); align-items: start;
  padding: 0 var(--edge) calc(var(--unit) * 4);
}
.card-title {
  margin: 0;
  font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.05;
}

/* Work */
.work { padding: 0 var(--edge) calc(var(--unit) * 4); }
.work > h2 { margin-bottom: calc(var(--unit) * 1.2); font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
.web-card { max-width: 40rem; }
.vgroups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--unit) * 1.5); }
.vgroup { border: 5px solid var(--black); padding: calc(var(--unit) * 1.2); }
.vgroup-head { display: flex; align-items: center; gap: var(--unit); margin-bottom: var(--unit); }
.vgroup-head img { width: auto; max-width: 9rem; max-height: 4.5rem; object-fit: contain; }
.vgroup-head p { margin: 0; }

/* Past experience: kept small, at the bottom of O mně */
.past { padding: calc(var(--unit) * 3) var(--edge); border-top: 4px solid var(--black); }
.past h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: var(--unit); }
.past-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--unit); }
.past-list li { display: flex; align-items: center; gap: var(--unit); }
.past-list img { width: 6.5rem; height: 3.5rem; object-fit: contain; flex: none; }
.past-list p { margin: 0; }
.past-role { font-weight: 800; }
.past-more { margin: calc(var(--unit) * 1.2) 0 0; }
.past-more a { font-weight: 700; color: var(--blue); }

/* Call to action at the end of subpages */
.cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--unit);
  padding: calc(var(--unit) * 2.5) var(--edge);
  background: var(--blue); color: var(--white);
}
.cta p { margin: 0; font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(1.4rem, 3vw, 2.2rem); }
.cta .go { margin: 0; }
.cta :focus-visible { outline-color: var(--white); }

/* Section shell */
.block {
  padding: calc(var(--unit) * 4) var(--edge);
  border-top: 4px solid var(--black);
}
.block > h2 { margin-bottom: calc(var(--unit) * 1.6); }
h3 {
  margin: 0;
  font-weight: 900; font-stretch: 125%;
  text-transform: uppercase;
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  line-height: 1.08;
}
h4 { margin: 0 0 .6rem; font-size: 1rem; font-weight: 800; }

/* Placeholders still to be filled in */
.todo {
  border: 3px dashed #9a9aa6 !important;
  background: var(--soft) !important;
  color: #55555f !important;
}

.stats {
  list-style: none; margin: 0 0 calc(var(--unit) * 1.4); padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem;
}
.stats li { display: grid; gap: .1rem; padding: .7rem .9rem; border: 3px solid var(--black); }
.stats .num { font-weight: 900; font-stretch: 125%; font-size: 1.8rem; line-height: 1; }
.stats span:last-child { font-size: .92rem; font-weight: 600; }

.samples {
  max-width: 30rem;
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem;
}
.samples li {
  aspect-ratio: 9 / 16;
  display: grid; place-items: center;
  font-weight: 700; font-size: .95rem;
}

/* Projects */
.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--unit);
  align-items: stretch;
}
.project { border: 5px solid var(--black); display: flex; flex-direction: column; }
.project-body { padding: calc(var(--unit) * 1.2); display: grid; gap: .7rem; align-content: start; }
.project-body p { margin: 0; max-width: 46ch; }
.kind { font-weight: 700; font-size: .95rem; }
.role { font-weight: 800; color: var(--blue); }

.project-midnight { background: var(--black); color: var(--white); border-color: var(--black); }
.project-midnight img { width: 100%; }
.project-midnight .role { color: var(--white); }
.project-midnight .project-body { padding-top: 0; }
.dates { list-style: none; margin: .2rem 0; padding: 0; display: grid; gap: .45rem; }
.dates li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .5rem; }
/* the red dot from the logo's A, used as a "live" marker for upcoming events */
.live {
  width: .6rem; height: .6rem; border-radius: 50%;
  background: var(--red); flex: none; align-self: center;
}
.project-banany { background: var(--blue); color: var(--white); border-color: var(--blue); }
.project-banany .role { color: var(--white); }

.go {
  justify-self: start;
  display: inline-block;
  margin-top: .3rem;
  font-weight: 800;
  background: var(--white); color: var(--black);
  padding: .55rem 1rem;
  text-decoration: none;
  border: 3px solid var(--black);
}
.go:hover { background: var(--black); color: var(--white); border-color: var(--white); }
.project-midnight :focus-visible, .project-banany :focus-visible { outline-color: var(--white); }

/* About */
.photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; }

/* Co dělám */
.services { padding: calc(var(--unit) * 3.5) var(--edge) calc(var(--unit) * 4); border-top: 4px solid var(--black); }
.services > h2 { margin-bottom: calc(var(--unit) * 1.5); }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--unit); }
.service {
  display: grid; grid-template-rows: auto 1fr auto; gap: var(--unit);
  border: 5px solid var(--black); padding: calc(var(--unit) * 1.2);
}
.service p { margin: 0; max-width: 52ch; }
.service .sample { aspect-ratio: 16 / 9; display: grid; place-items: center; font-weight: 700; }

/* Instagram link in the contact block */
.ig {
  display: inline-block; margin-top: .2rem;
  padding: .8rem 1.2rem;
  background: var(--white); color: var(--black);
  font-weight: 800; text-decoration: none;
  border: 4px solid var(--black);
}
.ig:hover { background: var(--black); color: var(--white); }
.about-text h2 { margin-bottom: var(--unit); }
.about {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: stretch;
  gap: calc(var(--unit) * 1.5);
  padding: 0 var(--edge) calc(var(--unit) * 4);
}
.about-text p { margin: 0 0 1rem; max-width: 52ch; }
.about-text { display: flex; flex-direction: column; justify-content: space-between; gap: calc(var(--unit) * 1.5); }
.about-text .about-lead {
  margin: 0; max-width: none;
  font-weight: 800; font-stretch: 112%;
  font-size: clamp(1.7rem, 3.7vw, 3.5rem); line-height: 1.12; letter-spacing: -.01em;
}
.about-text .about-more { margin: 0; max-width: 44ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem); }

/* Skills drawn like the share icon in the logo: blue nodes on a black line */
.skills { position: relative; margin: 0; display: grid; gap: 1.4rem; align-content: start; }
.skills::before {
  content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px;
  width: 3px; background: var(--black);
}
.skills div { position: relative; padding-left: 2.4rem; }
.skills div::before {
  content: ""; position: absolute; left: 0; top: .2rem;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--blue);
}
.skills dt { font-weight: 800; }
.skills dd { margin: 0; }

/* Contact */
.contact {
  background: var(--blue);
  color: var(--white);
  padding: calc(var(--unit) * 4) var(--edge);
}
.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: calc(var(--unit) * 2);
}
.contact-intro p { max-width: 40ch; margin: var(--unit) 0 calc(var(--unit) * 1.2); font-size: 1.15rem; }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; max-width: 22rem; }
.links li { padding: .7rem 1rem; font-weight: 700; }
.contact :focus-visible { outline-color: var(--white); }
form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--unit);
  max-width: 52rem;
}
form label { display: grid; gap: .35rem; font-weight: 700; }
form .wide { grid-column: 1 / -1; }
input, textarea {
  font: inherit; font-weight: 400;
  color: var(--black); background: var(--white);
  border: 4px solid var(--black); border-radius: 0;
  padding: .75rem .9rem;
}
textarea { resize: vertical; }
button {
  justify-self: start;
  font: inherit; font-weight: 900; font-stretch: 125%;
  text-transform: uppercase;
  background: var(--black); color: var(--white);
  border: 0; padding: 1rem 1.8rem; cursor: pointer;
}
button:hover { background: var(--white); color: var(--black); }
.hp { position: absolute; left: -9999px; }

/* Partner logos, above the footer on every page */
.partners { padding: calc(var(--unit) * 2.5) var(--edge); border-top: 4px solid var(--black); }
.partners h2 { font-size: 1.15rem; font-stretch: 112%; text-transform: none; letter-spacing: 0; margin-bottom: calc(var(--unit) * 1.2); }
.partner-logos {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: calc(var(--unit) * 1.2) calc(var(--unit) * 2.5);
}
.partner-logos li { display: flex; align-items: center; height: 3.2rem; }
.partner-logos img { height: 100%; width: auto; }
.partner-logos a { display: block; height: 100%; transition: opacity .2s ease; }
.partner-logos a:hover, .past-list a:hover { opacity: .65; }
.past-list a { flex: none; }
.partner-logos .tall { height: 3.8rem; }
.partner-logos .wide { height: 2.3rem; }
.partner-logos .edison { height: 3rem; }
.card-logo { width: 6rem; height: auto; margin-bottom: .3rem; }
.partner-logos .wordmark {
  font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: 1rem; line-height: 1;
}

/* Footer */
.foot {
  border-top: 2px solid var(--black);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  padding: calc(var(--unit) * 1.5) var(--edge);
}
.foot img { height: 2rem; width: auto; }
.foot p { margin: 0; font-weight: 600; }
.foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-weight: 700; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--blue); }

/* Thank-you and 404 */
.simple { min-height: 70vh; padding: calc(var(--unit) * 4) var(--edge); }
.simple h1 { margin-bottom: var(--unit); }
.simple p { max-width: 44ch; font-size: 1.2rem; }

@media (max-width: 1000px) {
  .contact, .clients, .vgroups { grid-template-columns: 1fr; }
  .doors { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --edge: var(--unit); }
  .mark img { height: 2rem; }
  .top nav { gap: .75rem; font-size: .9rem; }
  .hero { padding-top: calc(var(--unit) * 2.5); padding-bottom: calc(var(--unit) * 3); }
  .doors, .about, .past-list { grid-template-columns: 1fr; }
  .door { min-height: 0; }
  .photo { max-width: 18rem; }
  .stats .num { font-size: 1.4rem; }
  .samples { gap: .5rem; }
  form { grid-template-columns: 1fr; }
}
